In my C# plugin I’d like to load objects defined in external files and place them to a specific location in my open document.
Also, I’d like to do it the other way round: export specific blocks into separate files.
Attempt 1: File3dm class
So far, I tried to use the
File3dm class but it has no method to write an
InstanceObject into a file, nor does it give access to the block definitions in order to transform instances of them to specific points.
Attempt 2: InstanceDefinition/InstanceObject class
I also did not find a method to export/save and
Attempt 3: _-Import script
Always returns false:
RhinoApp.RunScript("_-Import myfile.3dm", true)
same with the commands
Could someone direct me to the right resource? I know my problem should be solvable.