Is there a routable connector with true "length"?

J

John Petry

It seems that in Visio, when you use a connector and refer to the SIZE & POSITION data, the length that is reported is actually a reference to the distance between beginning point and end point on a particular axis, not a true length at all! In routing wires (the task at hand) I need to determine the "run length" or true overall length of the line (all legs combined). Is there a (routable, muli-legged) shape available that will let me try various wiring paths and then report the length of the wire I need

Having to dimension each leg is a pain in the posterior

Thanks in advance
jlp
 
A

Al Edlund

have you investigated the LengthIU property. works for me when I use dynamic
connectors.
Al
John Petry said:
It seems that in Visio, when you use a connector and refer to the SIZE &
POSITION data, the length that is reported is actually a reference to the
distance between beginning point and end point on a particular axis, not a
true length at all! In routing wires (the task at hand) I need to determine
the "run length" or true overall length of the line (all legs combined). Is
there a (routable, muli-legged) shape available that will let me try various
wiring paths and then report the length of the wire I need?
 
J

John Petry

No, I have not. Where do I find that property? ShapeSheet

----- Al Edlund wrote: ----

have you investigated the LengthIU property. works for me when I use dynami
connectors
A
John Petry said:
It seems that in Visio, when you use a connector and refer to the SIZE
POSITION data, the length that is reported is actually a reference to th
distance between beginning point and end point on a particular axis, not
true length at all! In routing wires (the task at hand) I need to determin
the "run length" or true overall length of the line (all legs combined). I
there a (routable, muli-legged) shape available that will let me try variou
wiring paths and then report the length of the wire I need
 
A

Al Edlund

I grab it with a call to the object and then save it in a custom property (gives visibility from standard functions and export), mostly I use it for calculating cable runs.....
al

LengthIU property
See also Example Applies to

Returns the length (perimeter) of the object in internal units.

Version added

4.0

Syntax

retVal = object.LengthIU
retVal
Double. The length (perimeter) of the object in internal units (inches).

object
Required. An expression that returns a Shape object.
 
M

Mark Nelson [MS]

This one is on my list too. Obviously Visio can determine the length since
there is an API method for it. We should include the function for the
Shapesheet as well.

BTW, John, the two items I saw on the MVP wish list that were added in Visio
2003 but not marked were:
- JM0013 Group Explorer window - This is the new Master Explorer for
working in stencils.
- JM0032 Macro Recorder - We finally have one. It covers most operations,
but not all. I would use it to become familiar with the API methods and
syntax but don't treat this as a best practices way for writing code. Work
with the sample code in the SDK for that.
 
J

John Marshall, MVP

Thanks Mark. I was quite impressed with the macro record when I saw it a
year ago and it was a great secret weapon when answering newsgroup questions
during the beta testing of Visio 2003. Specifically, the questions about how
to do certain activities in code.

I'll have to check out the Master Explorer.

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
 

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