|
Is drawing of block diagrams / flow charts supported? |
Posted by Ulrich Telle on Dec-16-2010 06:03 |
|
In my application I need to create relatively simple block diagrams, i.e. a diagram consists of a number of different box shapes which are connected by lines and/or arrows. Is this possible to accomplish with ChartDirector? If yes, what would be the best approach? |
Re: Is drawing of block diagrams / flow charts supported? |
Posted by Peter Kwan on Dec-17-2010 01:23 |
|
Hi Ulrich,
ChartDirector can draw boxes of different shapes (using DrawArea.polygon), text and lines. Your code would need to tell ChartDirector where to draw the shapes, text and lines so that they become a block diagram/flow chart. ChartDirector cannot automatically position these objects so that they become a block diagram/flow chart.
For example, in VB/VBScript:
Set c = cd.XYChart(500, 500)
Set d = c.getDrawArea()
'draw polygons, text and lines
Call d.polygon(.......)
Call d.text(.....)
Call d.line(......)
......
...... output chart as usual ......
Hope this can help.
Regards
Peter Kwan |
Re: Is drawing of block diagrams / flow charts supported? |
Posted by Ulrich Telle on Dec-17-2010 05:17 |
|
Hi Peter,
thank you very much for your reply. It definitely pointed me in the right direction.
Regards
Ulrich |
|