tpm_mntbuild

AutoCAD Map 3D AutoLISP

Up a level
tpm_mntbuild
 
 

Builds a topology.

(tpm_mntbuild var_id name desc type node_ss [link_ss cntr_ss])

Returns T or nil.

var_id Topology variables ID (real)
name Topology name (string)
desc Topology description (string)
type Topology type code (int):
1 Node
2 Network
3 Polygon
node_ss Entity selection set of nodes or nil
link_ss Entity selection set of links or nil.
Omit for node topology
cntr_ss Entity selection set of centroids or nil.
Omit for node and network topology

The topology variables ID references a set of topology variables.

The new topology is loaded, but closed. You must open it with tpm_acopen.

The following AutoCAD object types are acceptable for topology elements:

  • For links: line, arc, circle, 2D and 3D polyline
  • For nodes and centroids: point, insert, and text

A node topology can contain only nodes. A network topology can contain nodes or links, but not centroids. A polygon topology can contain all three.

When the topology is built, all links are assigned a default direction of bidirectional (a value of 0). The forward and reverse resistance values are the length of the link. Nodes are assigned a resistance of 0.

When a topology is built, it is given a set of object data fields. These fields contain information about the elements of the topology.