tpm_elemid

Land Desktop Development ARX CPP SDK

Up a level
tpm_elemid
 
 

Gets the ID of an element.

ade_id

tpm_elemid(

ade_id tpm_id,

int type,

long index);

Returns an ade_id or ADE_NULLID.

tpm_id The topology ID.
type An element type. Values can be: 1 (node), 2 (link), or 3 (polygon).
index Element index. The index of the first element is 0

The ade_id of a topology element is used by the functions tpm_elemget, tpm_elemadj, tpm_editdelelem, and tpm_editmodelem.