tpm_cleanactionlistins

AutoCAD Map 3D AutoLISP

Up a level
tpm_cleanactionlistins
 
 

Inserts a cleanup action in the action list.

(tpm_cleanactionlistins clean_var_id index action action_var_id)

Returns T or nil.

clean_var_id Cleanup variables ID (real) returned by tpm_varalloc
index Where to insert in the list (integer)
action Cleanup action to insert (integer), a clean group type: see tpm_cleangrouptype for a list of types.
action_var_id Cleanup action variables ID (real) returned by tpm_varalloc

The clean_var_id argument references properties for the cleanup operation that you are preparing to initiate (see Cleanup Variables). These properties include the action list.

The index argument is a zero-based position in the action list, or -1 for the last position. A value greater than or equal to the list size or less than -1 is taken as -1.

Note  When you insert the Simplify Objects action (clean group type 128), it is always listed first, and you cannot insert it more than once.

The action_var_id argument references properties affecting the specific cleanup action that you are inserting (see Cleanup Action Variables). Use tpm_varset to set them before calling tpm_cleanactionlistins.

ADSRX Equivalent

int

tpm_cleanactionlistins

ade_id clean_var_id,

long index,

int action,

ade_id action_var_id);

Returns RTNORM or an error code.