Nevron Forum

Losing Connections Between Shapes When Saving as Custom Binary

https://www.nevron.com/Forum/Topic7585.aspx

By Jason Irby - Thursday, March 14, 2013

 

We are currently attaching extension objects to the tags of our Nevron shapes in our diagrams.

Accordingly we have been registering the classes with the PersistencyManager and serializing out as CustomXML.

We would like to explore being able to write our documents out as CustomBinary.  However, in our initial tests, saving daigrams out in this format loses connection between shapes spanned by lines or connectors.  The lines and shapes come back after load but they are not longer connected.

I have demostrated this behavior even when saving an example without custom tag objects through the provided Nevron Diagram Designer example.

 

Is there anyway to keep from losing those relationships when saving as CustomBinary?

 

Thanks in advance,

Jason Irby

 

I

By Nevron Support - Tuesday, March 19, 2013

Can you provide us with an XML serialized diagram that produces the problem when saved and loaded from CustomBinary?
By Jason Irby - Wednesday, March 20, 2013

Here is a very simple example.

 

(I'm not attaching custom data on tags here but the behavior is the same...)

Using you pre-built Diagram Designer example program that came with version 2012.v1  I create a simple diagram with two shapes connected by a line.

I then save as customXml and as a customBinary. 

If I then open the customXml version the shapes are present and still connected.

If I open the customBinary version, the shapes are present, but they seem to have lost the connection.  Move the shapes and see the line is no long connected.

 

Attaching the two saved files.

 

Thanks,

Jason Irby

 

 

By Nevron Support - Thursday, March 21, 2013

Hi Jason,

Thank you for the detailed information, we have managed to reproduce the issue now. We will analyze it and include a fix in the next service pack of Nevron Diagram for .NET.