Best Regards,Nevron Support Team
Hi,
After deserializing,
Even after assigning activelayeruniqueid = layer.uniqueid,
It gives active layer as null.
If we try to add a new layer to the layers. it says document.Layers is null.
Pramod
Thank you, resolved.
Thanks, but NDrawingDocument.ActiveLayer is READONLY!?
I put some shapes onto the document, then serialize the ActiveLayer of current document and save it to a file.
After I deserialize from the FileStream and get NLayer instance (nLayerInstance), Then
CurrentNDrawingDocument.Layers.AddChild(nLayerInstance);
nLayerInstance.BringToFront();
Then the shape appears. But cannot be selected.
In this case, if I call "NDrawingDocument.ActiveLayer", I will get "null".
does anybody have meet this problem? How did you resolved? Thanks