“How can I record the command sequence and corresponding parameters during the Rhino modeling process, and export the relevant modeling instruction file?”
“We’re undertaking a project to generate 3D model modeling instructions and need a large volume of 3D modeling instruction data. Can someone tell me how to automatically export the Rhino modeling process as a precise sequence of modeling commands with specific parameters, or as a corresponding Python code file? Something similar to SolidWorks’ macro recording feature.”
Please give it a try with Grasshopper modeling,
Can we obtain the complete model scripting through this tool?Alternatively, can we export the files corresponding to this tool, and then use a Python API to call Grasshopper for model generation?
The answer is Yes, you can do it
Hi @郑璇1
Though you could use Grasshopper it’s a completely different beast compared to modeling in Rhino so it’s not really like macro recording nor will it exactly mirror how you model in Rhino. Though that might be ok for your uses.
Rhino doesn’t have a true macro recorder. The only way I have found to do this is to use F2 key and copy the command history. You could save this as a text file and begin to break down the modeling steps. In excel you can parse your command history file and begin to make a modified command script. This is tricky and depending on your input you might need to make modules that interact with the command script. Then you can copy the command script and paste it into Rhino or they way I like is to use send keys from excel.
Before Gh I used excel files that modeled complete rooms and other things automatically using excel and a command script and then send keys to Rhino.
RM