I’m working on a GH plugin that manipulates Brep components using Brep.TransformComponent. But I’m really stuck on the problem of referenced geometry.
I have my GH_PersistentParams for general components and specific types (currently edge, face, or vertex). They let the user right click the parameter and select in the viewport. But as of right now I haven’t done any serialization so when I load a saved file the parameter’s persistent data is null.
I’d like to replicate the behavior of Grasshopper referenced geometry - have it return an error when the reference can’t be found, try to find the reference when a new doc is loaded, and allow internalization (and then serialization and de-serialization). But I can’t find any reference to this kind of function in the API docs. Do I just have to do this from scratch with event listeners, search rhino doc for GUID on load, etc?
Also, if anyone has any reference for me to learn about serialization that would be wonderful. I can’t find much online.
Thanks