Setting Tool and Base via Code

Started by daniel.auer, August 20, 2024, 01:05:08 PM

Previous topic - Next topic

daniel.auer

Hi,

is there an option to set the $TOOL and $BASE via code?
https://imgur.com/ArmwCWF


I found something like this in the forum, which hints that this is possible.
https://imgur.com/a/zg6SIs1

Johannes @ Robots in Architecture

Hello,
Sure, it's just regular KRL, so you can use the Custom KRL command. Just note that it won't be simulated if it's only text in KRL.
Or are you referring by "via code" to something like Python within Grasshopper?
Best,
Johannes

daniel.auer

Hi Johannes,

thanks for your quick reply. Yes, by code I mean creating a TOOL and a BASE which i can simulate and use for reachability analysis. So either by Python or C# node.

Johannes @ Robots in Architecture

I think the most straightforward approach would be to set the XYZABC values via your script and then use them as in the example!
You need to enable the Base option via right-clicking the core component, same goes for switching the Custom Tool - Plane component to accept XYZABC input.
Best,
Johannes