Robots in Architecture Forum

KUKA|prc - parametric robot control for Grasshopper => Support => Topic started by: hyun.parke on March 26, 2017, 12:12:36 PM

Title: Compilation error, - "Component not of this type"
Post by: hyun.parke on March 26, 2017, 12:12:36 PM
Hello,

I have recently started milling surfaces with KR6 900 with Kress 1050 spindle.

KUKA PRC works fine most of the time but sometimes when the src file is moved to the KRC - meaning when the file is compiled, - I am given a compilation error.

Sometimes it only gives a few lines of error, which I can manually work on but the file I am attaching gives me a whopping 900 lines of errors when the total number of lines is around 930.

Simulation doesn't show anything much, it looks fine as the ones that work okay.

What could have caused this error and how can I prevent it?
Title: Re: Compilation error, - "Component not of this type"
Post by: Johannes @ Robots in Architecture on March 26, 2017, 12:36:40 PM
Hello,

It seems that you have used the "Safe Space" option - it seems that it is causing problems (there are blocks with "AX" for some reason), so please deactivate it and it should work just fine. It would be great if you could send me the GH file, then I can try to find the problem. It might also be that this has already been fixed for the member version.

Best,
Johannes
Title: Re: Compilation error, - "Component not of this type"
Post by: hyun.parke on March 27, 2017, 06:37:18 AM
Thanks Johannes for quick reply,

Safe space option? I assume it is related to code generation so I looked up  KUKA PRC settings, but can't find it.

Where should I look for? Or do you mean by safe plane?
Title: Re: Compilation error, - "Component not of this type"
Post by: Johannes @ Robots in Architecture on March 27, 2017, 07:35:50 AM
Hello,
Sorry, the exact name would be "Reduce Filesize - Skip Redundant Positions" in the settings via Advanced/Code. Without it, there shouldn't be a problem. Or upgrade to the member version, which is at least one year ahead of the trial version.
Best,
Johannes
Title: Re: Compilation error, - "Component not of this type"
Post by: hyun.parke on March 27, 2017, 07:55:22 AM
Thanks Johannes, will try with the reduce filesize unchecked.

By they way I already have a member license from this year!  :D
Title: Re: Compilation error, - "Component not of this type"
Post by: Johannes @ Robots in Architecture on March 27, 2017, 07:56:13 AM
I know, I unlocked you yesterday!
But you need to download it from the member section if you haven't done so already!

Best, Johannes
Title: Re: Compilation error, - "Component not of this type"
Post by: hyun.parke on March 27, 2017, 04:19:03 PM
Okay here's the definition I'm having trouble with.

I kept getting the same error message so I simplified it down, but still getting the same compilation errors.

Title: Re: Compilation error, - "Component not of this type"
Post by: Johannes @ Robots in Architecture on March 27, 2017, 06:11:21 PM
Hello,

Here's your file back - the Reduce Filesize option was enabled, now I've turned it off. Also, the Safe Plane component needs a plane as the input, not a surface (though it might still work due to GH's creative casting).
Note that your referenced Rhino geometry was missing, so I filled in some placeholders.

Best,
Johannes