Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic De/serializing of Diagram without its settings (Read 2529 times)
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
De/serializing of Diagram without its settings
Jan 3rd, 2010 at 1:07am
Print Post  
Hi!

I would like to know if there is a way how to serialize diagram to XML but without settings like BackBrush, ShowGrid, GridStyle etc.

I need to save diagram to file and later load it from file to my application with users settings of diagram (BackBrush, ShowGrid, GridStyle etc) so also I need to keep these users settings of actual giagram/diagramview. Now I need to remember settings, load diagram from file and apply old settings again.

So I need ONLY diagram data (nodes, links... their position, colors etc)
Is there any way, parameter, property or whatever?
Thx.


...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: De/serializing of Diagram without its settings
Reply #1 - Jan 4th, 2010 at 11:37am
Print Post  
This version adds LoadFromXml overloads that take a loadDiagramProperties boolean argument:
https://mindfusion.eu/_beta/fcnet534.zip

Stoyan
  
Back to top
 
IP Logged
 
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Re: De/serializing of Diagram without its settings
Reply #2 - Jan 4th, 2010 at 11:47am
Print Post  
Hi Stoyo!

Ive just released new version for customer so I havent tried it yet.

So r u going to implement this function to official FCNET 5.3.4? Also the same behavior for saving not only loading?

...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: De/serializing of Diagram without its settings
Reply #3 - Jan 4th, 2010 at 2:21pm
Print Post  
Hi,

Yes, it will be available in 5.3.4. We don't plan implementing that for the Save methods, it would only spare you a few kb of XML.

Stoyan
  
Back to top
 
IP Logged
 
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Re: De/serializing of Diagram without its settings
Reply #4 - Jan 4th, 2010 at 2:27pm
Print Post  
Hi.

Nice, so I will be able to load diagram without diagram settings Smiley

Thx.

...MUDO...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint