none
Visio: Sample Code - Properties of Connecting Objects RRS feed

  • Question

  • I would like to create two custom objects (for example a server and a PC). I would then like to have the user put multiple objects in a Visio diagram and connect them together. During the connection, I would like to be able to read the properties of the connecting object and not allow the user to make the connection. I also want to be able to read the properties of all objects that connect.

    So, for example:

    1. I want to be able to allow a user to connect a server to a PC, but not a PC to a PC.

    2. Once the connections are done, I want to be able to cycle through all of the server objects and read the PC properties that are connected to each server.

    Can someone point me to some sample code for these two activities? I want to use VBA to run a few functions. I can create the custom objects, need help with 1 & 2 above. Any help appreciated.


    Bob
    Monday, December 5, 2011 1:41 PM

Answers