Page Index Toggle Pages: 1 ... 3 4 [5] 6 7 ... 21 Send TopicPrint
Locked Topic Link between two nodes (Read 157398 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #60 - Jun 6th, 2014 at 1:12pm
 
node.Bounds, link.ControlPoints and default shape are mandatory, this is the bare minimum XML:

Code
Select All
<Diagram Version="16">
<Nodes>
	<Node Class="std:ShapeNode" Id="1" Version="1">
		<Bounds>10,0,80,30</Bounds>
	</Node>
	<Node Class="std:ShapeNode" Id="2" Version="1">
		<Bounds>10,75,80,90</Bounds>
	</Node>
</Nodes>
<Links>
	<Link Class="std:DiagramLink" Id="3" Version="2">
		<Origin Id="1" ClassId="std:ShapeNode" Version="1" />
		<Destination Id="2" ClassId="std:ShapeNode" Version="1" />
		<Points>
			<Point>50, 30</Point>
			<Point>50, 75</Point>
		</Points>
	</Link>
</Links>
<Properties>
	<DefaultShape Id="RoundRect" />
</Properties>
</Diagram>
 



Also the id counter is common for all items, not independent for nodes and links, so you should not start from 1 for links.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #61 - Jun 6th, 2014 at 1:36pm
 
what's the purpose of

<Points>
<Point>50, 30</Point>
<Point>50, 75</Point>
</Points>

How I can know the values i.e 50, 30, etc?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #62 - Jun 6th, 2014 at 1:49pm
 
The purpose is to hold the coordinates of link's control points. Just set any arbitrary values there if you will be applying a layout algorithm after that anyway. If you don't want to transfer the coordinates unnecessarily, then use the tutorial code, it only takes 8-9 lines in C# to create the objects from XML.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #63 - Jun 6th, 2014 at 2:15pm
 
As per your previous comment I have added POINTS tag and mentioned dummy values in that because after that i am applying Flowchart Layout.

Also ID started from 1 to onward, please check attached file, still I am not able load XML.
  

Vidp4x-processCustomerReturn_001.txt (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #64 - Jun 6th, 2014 at 4:29pm
 
Change the Class attribute of link elements from "td:DiagramLink" to "std:DiagramLink".
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #65 - Jun 9th, 2014 at 6:35am
 
when I m loading XML first time its displaying diagram properly, But in case of loading 2nd time following exception occurs
"Cannot remove the specified item because it was not found in the specified Collection."

Code:
DiagramView1.Diagram =new Diagram() ;
        DiagramView1.LoadFromXml(Server.MapPath(@"~\Users\s2tadmin\FlowCharts\Output\XML
\BusinessRuleXML\Diagrams\") + sFileName);

        MindFusion.Diagramming.Layout.FlowchartLayout ll = new MindFusion.Diagramming.Layout.FlowchartLayout();
        ll.Orientation = MindFusion.Diagramming.Layout.Orientation.Vertical;

        ll.Arrange(DiagramView1.Diagram);
        DiagramView1.Diagram.ResizeToFitItems(5);
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #66 - Jun 9th, 2014 at 9:21am
 
Please Ignore last comment, Its solved.

  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #67 - Jun 9th, 2014 at 9:23am
 
I want to apply color to rectangle, can u tell me which tag I have to add in XML.

I have below tag In xml but where I can use Index i.e 100
<Brushes>
<Brush Index="100" Type="Solid">
<Color>#FF87CEFA</Color>
</Brush>
<Brushes>

Please mention proper eg with its xml so that I can understand easily.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #68 - Jun 9th, 2014 at 9:38am
 
Hi,

Add a <Brush Id="100" /> child element under respective <Node> element.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #69 - Jun 9th, 2014 at 11:50am
 
Its displaying all nodes in black color.
  

FC_TEMP__002.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #70 - Jun 9th, 2014 at 11:51am
 
You must specify <Color> content in #AARRGGBB format, e.g. <Color>#FFFFCC00</Color> instead of <Color>#FFCC00</Color>.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #71 - Jun 9th, 2014 at 12:26pm
 
I am applying Flowchart layout, In that case some lines are intersecting nodes so did this Issue fixed in your paid version or not?

Or if you have released your latest version for decision layout, I will use that, if its fixed in this version.

I am going to attach screen shot with its XML file please check and let me know.
  

FC_TEMP__003.jpg (Attachment deleted)
Temp.txt (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #72 - Jun 9th, 2014 at 1:15pm
 
You can find a preliminary version of DecisionLayout here:
https://mindfusion.eu/_beta/netdiag511.zip

FlowchartLayout works better if you add paired start and end nodes for code structures such as loops and conditions, and make sure they are properly nested. For an example see the JavaScript sample project from our Windows Forms diagram control (https://www.mindfusion.eu/FCNetDemo.zip).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #73 - Jun 10th, 2014 at 4:34am
 
If are nested properly In some flowcharts this type of intersecting problems are occurred.
Is there any way to solve this or you can customize your product then we will decide to buy.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #74 - Jun 10th, 2014 at 5:16am
 
When I am loading XML some nodes are not displayed on web page but its present in PDF as well as in XML.
  

PDF.zip (Attachment deleted)
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 3 4 [5] 6 7 ... 21
Send TopicPrint