(ssdel entity-name selection-set)
Erase it from the selection set.
This function deletes the entity, entity-name, from the selection set, selection-set. Unlike the ssadd function, entity-name and selection-set are not optional.
If entity-name is part of the selection set, ssdel deletes it and returns the selection set. If it is not part of the selection set, a nil is returned.
Examples
Code | Comments |
---|---|
(setq sset1 (ssget)) | Creates a new selection set called sset1. |
(setq ent1 (entnext)) | Finds the first entity in the drawing and sets it to ent1. |
(ssadd ent1 sset1) | Adds ent1 to sset1 |
(ssdel ent1 sset1) | Deletes ent1 from sset1. |
(ssdel ent2 sset1) | Assuming ent2 is set to an entity(not in sset1), a nil would return. |
Tell me about...
(setq symbol1 statement1 [symbol2 statement2] ...)