I hate to ask something this simple, but I have spent an embarrassing amount of time trying to do something that I thought would be easy and well documented.
From Python, I want to save the project as a 3dm file. That’s all!
I tried the the rs.Command approach…
rs.Command(f'!_-SaveAs "{self.newTemplateFile}" -Enter', False)
which doesn’t throw an error, but also doesn’t work.
I tried the “Rhino Common” approach, but it senses that I am ignorant of how to get the syntax correct.
result = Rhino.RhinoDoc.SaveAs(self.newTemplateFile, 8, False, False, False, False)
and
result = Rhino.RhinoDoc.SaveAs(self.newTemplateFile, 8, False, False, False, False)
could anyone please tell me the correct command for this?
Also, opening and saving files seem like the most basic thing - shouldn’t these have been the first two commands added to RhinoScriptSyntax? Very frustrated after a long day.
Henry