I am currently writing a plug-in for rhinoceros, in which I am working with a class derived from “Rhino.DocObjects.Custom.UserData”.
I currently want to update the “public override string Description”, every time any of the data from within this User Data is changed. The thing is that I don’t know from where it is triggered from. Anyone has any idea how this override works?
Thanks in advance for any input, I really appreciate the help. If there is anything more that I can add or any questions that I can answer I am here for that! Thanks!
Yes, but this doesn’t apply to a changing field. Only to retrieves the same value every time. It works in the same sense that my approach works, because it is only set once, when the class is initiated.
I see that the description override is not being called every time I open the details panel in Rhino, because I added a “RhinoApp.Writeline” to teste everytime this override is run, and it is only run once when class is initiated.
I now see the problem… It is not that the description is not updating, it is that the “details…” button is not retrieving the description again. Or so it seems like, because when I call RhinoApp.WriteLine(this.Description); it does give the correct values, but when I click on that UI menu, the values are not updated correctly. They are just set as they were when the CustomUserData was attatched to the object.