Where a link comes from?


#1

Hi,
I have a GoDimond() on my document, and when I create a link from this object, I would like to know what port the link if from (topPort, rightPort…)
I’m sure there must be away of knowing this but can’t fugure it out.


#2

If you could post the code showing how your adding your link, that might be helpful. When I add links, I specifically attach them to one of the ports of my goobject. You can get the from and to ports of a link by using the GoLink.FromPort, and GoLink.ToPort, and determine if it is coming from a specific port on your GoObject, such as, if(GoLink.FromPort == GoNode.BottomPort). Hope this helps.

Ryan