 Dennis Nenadov Posts 14
|
// Set the mask for the desired color MASKCLEAR MASKCOLOR 1
// Get all entities in the viewport that match the mask CLEAR nSel INT nSel GETALL nSel
// If no entities were selected, exit if (0 == nSel) exit
// Get a handle to the desired level, creating it if necessary CLEAR hDestLevel HLEVEL hDestLevel LEVELBYSTRING "10", 1, hDestLevel, 1
// Move all entities in the selection list to this level. DEFATTR LEVEL SETATTR , hDestLevel
// Note a state and clear the mask NoteState MASKCLEAR
|