tpm_editaddelem

AutoCAD Map 3D AutoLISP

Up a level
tpm_editaddelem
 
 

Adds an element to a topology.

(tpm_editaddelem tpm_id type elem)

Returns T or nil.

tpm_id Topology ID (real).
type Element type code (integer): 1, 2, or 3, where 1 = Node, 2 = Link, and 3 = Polygon.
elem Element to add. Depending on the type argument, specify one of the following: If 1, specify a point or the entity name of a point object. If 2, specify the entity name of a line object. If 3, specify a selection set.

The topology must be open with Write access. If you add a node to a link, the link is split.