generative modeling for Rhino
I am using a vb component to read out the guid-name.
Everytime I reopen the file I have to exchange the component with a new one ffrom the panel. Is there a way to avoid this? (Destroy cache, doesn´t work)
Private Sub RunScript(ByVal id As Guid, ByRef name As Object)
Dim obj As Rhino.DocObjects.RhinoObject = doc.Objects.Find(id)
If (obj Is Nothing) Then
name = "not found"
name = obj.Attributes.Name
Does reconnecting the input trigger it to work properly?
nope. only exchanging with a new one.
yes, latest gh-version.
Ok this only, if the definition has been saved with referenced objects and the objects are not (yet) in the current file. Then, if you want to rereference, the problems occurs.
If you save and load the file unreferenced, it works as usual.