Serializzation not work
Moderators: SDS, support, admin
Serializzation not work
In help file the class CADEntity is marked as serializzable.
When i try to serialize this object i get the following error:
- $exception {"There was an error reflecting type 'CADImport.FlatPoly'."} System.Exception {System.InvalidOperationException}
- InnerException {"Cannot serialize member 'CADImport.CADEntity.DrawEvent' of type 'CADImport.EventHandler', see inner exception for more details."} System.Exception {System.InvalidOperationException}
Message "CADImport.EventHandler cannot be serialized because it does not have a parameterless constructor." string
It is a bug?
I want to serialize CADImage object and all the content. How can i do that?
When i try to serialize this object i get the following error:
- $exception {"There was an error reflecting type 'CADImport.FlatPoly'."} System.Exception {System.InvalidOperationException}
- InnerException {"Cannot serialize member 'CADImport.CADEntity.DrawEvent' of type 'CADImport.EventHandler', see inner exception for more details."} System.Exception {System.InvalidOperationException}
Message "CADImport.EventHandler cannot be serialized because it does not have a parameterless constructor." string
It is a bug?
I want to serialize CADImage object and all the content. How can i do that?
Re: Serializzation not work
Hello.
You wrote
Alexander.
You wrote
But why you tried to serialize CADEntity object? CADEntity class have only purpose the implementation functional for descendant entities' classes. Why you create object of CADEntity? Did you tried to serialize CADImage object only?I want to serialize CADImage object and all the content.
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Serializzation not work
CADImage is marked not serializzable 

Re: Serializzation not work
Hello.
Did you tried to serialize entities from any drawing, and if so did you succeeded?
Alexander.
Did you tried to serialize entities from any drawing, and if so did you succeeded?
Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support