AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Shortest Path/Network topology

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
319 Views, 3 Replies

Shortest Path/Network topology

I created a network topology and did a "shortest path" between two points
and made that its own topology now I want to be able to get the distance of
that shortest path (topology) using VBA or lisp. If I go to 'Topology
Administration' and click the statistics button I can see the total distance
but I can't write that value out to anything. HELP!

-Patrick Robinson
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Patrick hi,

I am not sure about VBA or Lisp, but if you made your result "Short Path"
into a permanent topology then you have all it's objects and a simple Map
Query and Report
can give you the answer to what you need. You can calculate sums in Excel,
for example.

Hope this helps,
Arad

"Patrick Robinson" wrote in message
news:A54BFE168A240BD8EFFA79AA5F040A91@in.WebX.maYIadrTaRb...
> I created a network topology and did a "shortest path" between two points
> and made that its own topology now I want to be able to get the distance
of
> that shortest path (topology) using VBA or lisp. If I go to 'Topology
> Administration' and click the statistics button I can see the total
distance
> but I can't write that value out to anything. HELP!
>
> -Patrick Robinson
>
>
Message 3 of 4
Anonymous
in reply to: Anonymous

Worked great, thanks!

"Arad Gazit" wrote in message
news:EE45B819C334FF8980F61CE0E8E6BF52@in.WebX.maYIadrTaRb...
> Patrick hi,
>
> I am not sure about VBA or Lisp, but if you made your result "Short Path"
> into a permanent topology then you have all it's objects and a simple Map
> Query and Report
> can give you the answer to what you need. You can calculate sums in Excel,
> for example.
>
> Hope this helps,
> Arad
>
> "Patrick Robinson" wrote in message
> news:A54BFE168A240BD8EFFA79AA5F040A91@in.WebX.maYIadrTaRb...
> > I created a network topology and did a "shortest path" between two
points
> > and made that its own topology now I want to be able to get the distance
> of
> > that shortest path (topology) using VBA or lisp. If I go to 'Topology
> > Administration' and click the statistics button I can see the total
> distance
> > but I can't write that value out to anything. HELP!
> >
> > -Patrick Robinson
> >
> >
>
>
Message 4 of 4
Anonymous
in reply to: Anonymous

Patrick,

The best bet is to write your own network tracing program in AutoLISP, using the
topology handling functions available in AutoLISP. It will help you to get the
trace information (Like the total length of the trace, the IDs of all network
segments that comprise the trace, all the nodes through which the trace passes.)

Kuldeep Singh

Patrick Robinson wrote:

> I created a network topology and did a "shortest path" between two points
> and made that its own topology now I want to be able to get the distance of
> that shortest path (topology) using VBA or lisp. If I go to 'Topology
> Administration' and click the statistics button I can see the total distance
> but I can't write that value out to anything. HELP!
>
> -Patrick Robinson

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost