Cannot Deserialize Leaders

Hello Discourse,

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.

– Callum

Hi @csykes,

Can you prepare a sample for us that repeats what you are seeing?

Thanks,

– Dale

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!

Hi @csykes,

Thanks for the sample - I can reproduce. I’ve logged the issue.

https://mcneel.myjetbrains.com/youtrack/issue/RH-61100

– Dale

Thanks @dale!