I might be missing some entirely, but I am stuck in a dead end here.
My task is to take a bunch of objects (by GUID) and export those objects into a new 3dm-file. So I thought I’d create a new File3dm-instance, add copies of the objects at hand to its empty object table and write the file. But:
Rhino.FileIO.File3dm gives access to the property
Objects, which contains all objects.
File3dmObjectTable has a method
Add(item)that “duplicates the object, then adds a copy of the object to the document”. That sounds great, because I am getting a mixed platter of objects and don’t want to distinguish between
Add(item) takes a single item of type
- File3dmObject has NO constructor and I couldn’t find any method that returns a File3dmObject - except for taking them out of aFile3dmObjectTable.
So, there’s no easy way to add a copy of an object in the current file to the object table of a new file?