Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to draw a single line like Ms-Visio? (Read 2985 times)
heyx
Junior Member
**
Offline


I Love MindFusion!

Posts: 69
Joined: Oct 9th, 2014
how to draw a single line like Ms-Visio?
Dec 31st, 2014 at 2:03am
Print Post  
how to draw a single line like Ms-Visio in Diagram?

  

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to draw a single line like Ms-Visio?
Reply #1 - Dec 31st, 2014 at 2:12pm
Print Post  
Set Behavior = DrawLinks and AllowUnconnectedLinks = true.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
heyx
Junior Member
**
Offline


I Love MindFusion!

Posts: 69
Joined: Oct 9th, 2014
Re: how to draw a single line like Ms-Visio?
Reply #2 - Jan 4th, 2015 at 9:23am
Print Post  
hi Stoyan,
    I have tried as you told,but I find the start point of the lines which I crate is always the same. could you please tell me how to solve this?
   thanks very much!
  

drawline.jpg ( 24 KB | 78 Downloads )
drawline.jpg
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to draw a single line like Ms-Visio?
Reply #3 - Jan 5th, 2015 at 9:16am
Print Post  
Hi,

This looks like a bug we fixed a few releases ago, try moving to latest version 3.2. If you are already using latest one, please post your diagram initialization code.

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


I Love MindFusion!

Posts: 69
Joined: Oct 9th, 2014
Re: how to draw a single line like Ms-Visio?
Reply #4 - Jan 6th, 2015 at 5:15am
Print Post  
hi Stoyan,
   I have updated my project to version 3.2. but it still occur.I attach my project so you can check it .maybe it is my mistake.
  

EvSwitch_003.rar ( 56 KB | 87 Downloads )
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to draw a single line like Ms-Visio?
Reply #5 - Jan 6th, 2015 at 2:51pm
Print Post  
Hi,

Ok, the combination of RerouteLinks.WhileCreating and Anchoring.Keep flags in RoutingOptions does not work when you start drawing unconnected links. You could disable either of them when drawing such links, or handle InitializeLink like this as work-around:

Code
Select All
void diagram_InitializeLink(object sender, LinkEventArgs e)
{
	e.Link.StartPoint = diagram.Interaction.CurrentPoint;
	e.Link.OriginConnection.SaveEndRelative();
} 



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