Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic IncomingArrows   (Read 5220 times)
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
IncomingArrows  
Aug 31st, 2005 at 11:50am
Print Post  
If I liked to store a new box, I need the parent node ID(box id).
I like to use for it the attribute IncomingArrows  however I find not the characteristic of IncomingArrows, which stores the contal ID of the superordinate node.

Thx for help
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: IncomingArrows  
Reply #1 - Aug 31st, 2005 at 11:59am
Print Post  
If I understand correctly, from one box you need to get its neighbor boxes linked to the other end of incoming arrows. Use the arrows' OriginBox and DestinationBox properties to do that. E.g.

for each link in theBox.IncomingArrows
  dim otherEnd as box
  set otherEnd = link.OriginBox
next link

Or to find the boxes connected through box' OutgoingArrows:

for each link in theBox.OutgoingArrows
  dim otherEnd as box
  set otherEnd = link.DestinationBox
next link

I hope this helps.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: IncomingArrows  
Reply #2 - Aug 31st, 2005 at 12:01pm
Print Post  
So supposing you store the IDs in the box.Tag property, you can access them like:

for each link in theBox.IncomingArrows
  dim otherEnd as box
  dim id as integer
  set otherEnd = link.OriginBox
  id = otherEnd.Tag
next link
  
Back to top
 
IP Logged
 
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Re: IncomingArrows  
Reply #3 - Aug 31st, 2005 at 12:14pm
Print Post  
Sorry I have no .OriginBox only
.OrignIndex,
.OrignAnchor,
.Origin

foreach(Arrow a in b.IncomingArrows)
{
  Box ParentBox;
  ParentBox = a.xyz; //?
  b.Parent = ParentBox.Tag;
}
  
Back to top
 
IP Logged
 
lemon
YaBB Newbies
*
Offline



Posts: 28
Joined: Aug 31st, 2005
Re: IncomingArrows  
Reply #4 - Aug 31st, 2005 at 12:28pm
Print Post  
sorry wrong code

foreach(Arrow a in b.IncomingArrows)
{
  Box ParentBox;
  ParentBox = a.  ??? ;
  b.Tag = ParentBox.Tag +"|"+ b.Tag;
}
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: IncomingArrows  
Reply #5 - Aug 31st, 2005 at 12:34pm
Print Post  
It seems you are talking about FlowChart.NET and not about FlowChartX, right ? Then use the Origin and Destination properties of arrows.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint