Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Building and saving Graph programmatically (Read 2438 times)
Stymp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 17th, 2006
Building and saving Graph programmatically
Nov 17th, 2006 at 3:04pm
Print Post  
Hi there,

i was wondering if there is a way to build te graph programmatically (I believe there is) and most important 'read' the graph in a way that can be received programmatically (not saving to a file).
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Building and saving Graph programmatically
Reply #1 - Nov 17th, 2006 at 4:37pm
Print Post  
Hi,

You can build a graph using FlowChart methods such as CreateBox, CreateTable and CreateArrow. They are equivalent to calling Add(new Box/Table/Arrow()).

Use the Boxes, Tables and Arrows collections to read/access the diagram contents.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stymp
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Nov 17th, 2006
Re: Building and saving Graph programmatically
Reply #2 - Nov 17th, 2006 at 5:44pm
Print Post  
Yes that helped me, actually i am working on it now and must say the package seems promising.

But it wondered if there is an build in way to validate a flowgraph, like no floating Boxs or where a Decision has only 1 arrow out etc etc.

tnx in advange.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Building and saving Graph programmatically
Reply #3 - Nov 17th, 2006 at 6:22pm
Print Post  
There's no built-in validation logic provided. You can implement what you mention by iterating all boxes and checking the number of their links. The links of a box can be accessed through the OutgoingArrows and IncomingArrows properties of the Box class.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint