I can serialize Leaders successfully, however I cannot seem to Deserialize them? Unsure why. When I try I get this message:
“The constructor to deserialize an object of type ‘Rhino.Geometry.Leader’ was not found”.
My Plugin is storing a custom object that has a list of annotation objects as a property.
Can you prepare a sample for us that repeats what you are seeing?
Leader seems to lack a deserialization constructor. Don’t know if it’s intentional.
The issue could be circumvented by manually deserializing the ON data or injecting ctor method into the class…
Hi @dale, @gankeyu,
I’ve created a public repo on my GitHub you can clone from. It’s a simple Rhino Plugin with one command you can run and it should give the error I’m getting.
Thanks for the sample - I can reproduce. I’ve logged the issue.
Hurray thanks @brian !!
And thanks @dale for fixing it!!