Ping results displayed in Visio

M

mkieran

I currently have a Visio diagram that is a world map which contains
lines connecting NY and other regions. The lines are labeled with the
network latency between NY and the other region. Is there a way to
have a macro run and relabel the lines with the latency at the time
the macro was run?

Any help is greatly appreciated.
 
A

Al Edlund

There's probably a lot of ways to do just the labeling change, here are two
a.) just have the macro change the text associated with the link/line
(assumption
here is that the current text is unused for labeling)
b.) for each link create a custom property for latency and then create a
text-field associated with it, thus updating the custom property updates the
text-field

A total screen/page update will probably take a little more work. I use
something
like this for updating a status page (i.e. color reflects response to ping)

Assumes that the shape at the remote end of the link has a unique tcpip
address

for each shape on page
if custom property exists(prop.ipaddress)
ping the device and get the time value
if shape has a connected link
get shapeid of connected link
if link shape has custom property of latency
update custom property for latency
end if
end if connected link
end if
next shape

Al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top