csykes
(CSykes)
October 20, 2020, 11:00pm
1
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
dale
(Dale Fugier)
October 21, 2020, 4:46am
2
Hi @csykes ,
Can you prepare a sample for us that repeats what you are seeing?
Thanks,
– Dale
gankeyu
(Keyu Gan)
October 21, 2020, 4:47am
3
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…
csykes
(CSykes)
October 21, 2020, 5:16pm
4
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!
dale
(Dale Fugier)
October 21, 2020, 9:18pm
5
Hi @csykes ,
Thanks for the sample - I can reproduce. I’ve logged the issue.
https://mcneel.myjetbrains.com/youtrack/issue/RH-61100
– Dale
brian
(Brian Gillespie)
February 9, 2022, 5:03am
7
csykes
(CSykes)
February 9, 2022, 4:20pm
8
Hurray thanks @brian !!
And thanks @dale for fixing it!!
1 Like