Hi,
I’ve looked through the API, and I can’t seem to find a way to programmatically create a new 3dm file, add objects and layouts to it, and write it to disk without using RhinoDoc
, since this would require me to close and open a file for each one that want to export.
Adding objects and layers is fine, but is there a way to add PageViews
, or read layout geometry from a template file through the FileIO
namespace?
The goal is to have a template Rhino file with some layouts and named objects which I would then load, copy, and populate with geometry, change data, etc. and then write to a folder. Ideally, I would do this through Python or C#, since I’d like to export geometry created in Grasshopper automatically. So far everything works, except the bit with the layouts.
Any tips or feedback would be much appreciated!
Tom