M
Matt Dargavel
Hi there,
A bit of a long one this, so bear with me!
I'm in the design phase of creating a program that lets a user design a
telecoms service flow, and I'm hoping to get the Visio 2003 Active X Control
to do the drawing and shape manipulation for me (from a c# application).
Once the flow has been designed within this new app, it will be used to drive
the equipment that will host the service.
As the flow will define the actual service, and isn't just for display
purposes, it's important how the shapes are linked together (connection
location, direction etc). For example, one of the shapes will be a database
operation which should have one input (although this could be any general
connection to the main part of the shape) and two distinct outputs (ok/fail).
I've put an example of how the shape may look as part of a simple service at
http://www.dargs.co.uk/flow_example.jpg .
I'm new to the Visio shapesheet etc and have a few questions:
First, should I be trying to control things like this within the
Visio shapesheet or catch and prevent / flag these "invalid" connections in
the C# application.
Second (depending on previous answer ;-)), I've managed to get most
of what I want by either disabling dynamic glue, and using connection points
on a shape defined solely by a set of geometries; and by defining a shape
made out of a group of sub-shapes, with dynamic glue enabled on the
sub-shapes that identify the connection points. Does anyone have any thought
on which of these approaches will be easier implement (considering the
automation control)?
Finally, one thing I haven't been able to work out how can you
control the direction of connectors allowed to connect to points on a shape.
I've tried changing the attributes of the connection points to Input and
Output, but Output doesn't seem to let you connect at all with the connector
tool. I'm obviously missing something here!?!
Any help and suggestions you can provide would be greatly appreciated,
Thanks and regards,
Matt Dargavel
A bit of a long one this, so bear with me!
I'm in the design phase of creating a program that lets a user design a
telecoms service flow, and I'm hoping to get the Visio 2003 Active X Control
to do the drawing and shape manipulation for me (from a c# application).
Once the flow has been designed within this new app, it will be used to drive
the equipment that will host the service.
As the flow will define the actual service, and isn't just for display
purposes, it's important how the shapes are linked together (connection
location, direction etc). For example, one of the shapes will be a database
operation which should have one input (although this could be any general
connection to the main part of the shape) and two distinct outputs (ok/fail).
I've put an example of how the shape may look as part of a simple service at
http://www.dargs.co.uk/flow_example.jpg .
I'm new to the Visio shapesheet etc and have a few questions:
First, should I be trying to control things like this within the
Visio shapesheet or catch and prevent / flag these "invalid" connections in
the C# application.
Second (depending on previous answer ;-)), I've managed to get most
of what I want by either disabling dynamic glue, and using connection points
on a shape defined solely by a set of geometries; and by defining a shape
made out of a group of sub-shapes, with dynamic glue enabled on the
sub-shapes that identify the connection points. Does anyone have any thought
on which of these approaches will be easier implement (considering the
automation control)?
Finally, one thing I haven't been able to work out how can you
control the direction of connectors allowed to connect to points on a shape.
I've tried changing the attributes of the connection points to Input and
Output, but Output doesn't seem to let you connect at all with the connector
tool. I'm obviously missing something here!?!
Any help and suggestions you can provide would be greatly appreciated,
Thanks and regards,
Matt Dargavel