I have a rhino file with hundreds of possible facade parts each of them modelled as a Block. Let’s call it a facade library. My goal is to import only certain blocks from the facade library to my current file according to the facade type defined by the user. Thus I can make the file size manageble and keep the library up-to-date without the need of manually importing blocks every time something is changed.
To this point I managed to collect all the InstanceDefinitions from the library file using Rhino.FileIO.File3dm.Read() and AllInstanceDefinitions property. But I can’t find a way to import an InstanceDefinition from a libary into my active RhinoDoc. Is there anything i’m missing?
I found an old thread with a similar question How to import selected blocks from a File3dm? (Or were blocks saved incorrectly in this file?) with an example from @dale but the file is not available anymore.