Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Merge Two Diagrams in a single diagram (Read 1453 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
Merge Two Diagrams in a single diagram
Nov 16th, 2010 at 1:24pm
Print Post  
Hi Stoyo

I have a requirement where I need to merge two or more diagrams in one diagram.

For eq. Assume that I have two diagrams viz. diagram1 & diagram2 which is created automatically and later on user postions the nodes properly to make diagram nice one.

Over a period of time, there is a relation between "Node X" from diagram1 to "Node Y" from diagram2.
Now I need to generate a diagram which is combination of "Diagram1" & "Diagram2" but I don't want to re-arrange the all nodes individually again. In this generated diagram, what I expect is that the nodes in "Diagram1" and nodes in "Diagram2" should maintain there positions but whole set of nodes in diagram1 and all nodes in "Diagram2" should positioned such that link between "Node X" and "Node Y" is properly created.

One possiblity is that I place first diagram1 as it is and add a height or width as a offset for all nodes in diagram2 but i want something over here as auto arrange.

Any idea, how to achive this ?

Regards
Rajesh

  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Merge Two Diagrams in a single diagram
Reply #1 - Nov 16th, 2010 at 4:10pm
Print Post  
Hi Rajesh,

You can use a temporary Diagram instance to transfer the two diagrams to the main instance by calling LoadFromXml, CopySelection and PasteSelection. The PasteSelection method lets you specify an offset for the second set from its original position, which you can calculate from the diagrams' bounding rectangles.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint