Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagramlink connect diagramlink (Read 2264 times)
lexeranddn
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Nov 30th, 2018
Diagramlink connect diagramlink
Nov 30th, 2018 at 10:45am
Print Post  
Hello, I want to realize tracing one diagramlink through another (cable in bundle), cable connect bundle in different point and get out in defferent too (bundle can be like a bus). Is it possible to do with a help of standard functions of MindFusion Diagramming?
Thanks.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Diagramlink connect diagramlink
Reply #1 - Nov 30th, 2018 at 11:47am
Print Post  
Hi,

There's nothing built-in for bundling links. You could probably implement it by copying some subset of one link's ControlPoints to other ones from the bundle, e.g. from event handlers for LinkCreated / LinkRouted / LinkModified events.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
lexeranddn
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Nov 30th, 2018
Re: Diagramlink connect diagramlink
Reply #2 - Nov 30th, 2018 at 1:50pm
Print Post  
Thanks, I'll try, one more question than. I need interactively identify connecting to bundle, so I'm dragging one end of link onto another link and try to call Diagram.GetItemAt but it return me current link, how can I get the link under it?
Thanks
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Diagramlink connect diagramlink
Reply #3 - Nov 30th, 2018 at 2:53pm
Print Post  
TernaryConnections sample project does that like -

Code
Select All
a.Locked = true; // so we can exclude it from the search
DiagramLink trg = diagram.GetLinkAt(endPt, 6, true);
 



Alternatively you could create your own GetLinkAt method that loops over diagram.Links and calls ContainsPoint on them, skipping the new link specified as argument.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
lexeranddn
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 13
Joined: Nov 30th, 2018
Re: Diagramlink connect diagramlink
Reply #4 - Dec 3rd, 2018 at 7:38am
Print Post  
Great! Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint