I hope you can help me to figure out how I could use Rhinoceros more efficiently.
I have built a cnc machine to cut out elements for mosaic. I am using Rhinoceros on Mac to create a model (because of specifics of my particular case the model is flat consisting only lines and arc). then I am using ‘what’ command to produce a txt file describing that model. Then I am running python script, which I have written and out of txt file my script produces gcode file to be used by cnc machine.
Now I am wondering if I could automate this three-step process and invoke my python script within Rhino application. Rhinoceros does provide a way to invoke python script, however, in my particular case I need to run what command first. I’ve been searching Rhino’s command help and other sources but did not find clear description of ‘what’ command. (Rhinoceros’s help is still more Windows oriented and despite of the fact that I am running it on Mac, many examples still refer to windows. ). Unfortunately, what command invokes GUI, prompting user to either save its output to file or just exit (by clicking ‘Done’).
I guess my question is:
Is ‘what’ command a script or is it part of compiled program? Is it a way to pass some arguments to what command, so, I could use it inside the script without a need to deal with GUI?
I would also appreciate if you could suggest any other approach, different from what I am using - perhaps I missed something in your documentation and what I am trying to accomplish can be done easier and/or in different way.
Thank you in advance!