tpm_traceshort

AutoCAD Map 3D AutoLISP

Up a level
tpm_traceshort
 
 

Calculates the shortest path between two nodes.

(tpm_traceshort trace_id start end)

Returns T or nil.

trace_id Tracing model ID (real), returned by tpm_tracealloc
start Element ID of start node (real)
end Element ID of end node (real)

For the shortest path trace to succeed, the total calculated resistance cannot be greater than the value set for the maximum resistance or less than the value set for the minimum resistance. See tpm_tracesetminres and tpm_tracesetmaxres. The accumulated resistance value is the total resistance of the nodes and links that make up the shortest path.