entnext


(entnext  [ ename ] )

This function returns the next or the first entity or object of the drawing.

Arguments

ename  (optional) specifies the entity, to get the next

if ename is omitted, the first nondeleted object or entity is returned

Return

ename of the first or next entity (if ename is specified), or NIL if no further entity or object is in the drawing

Example

(setq en (entlast))
(while en

  (setq en (entnext en))
  :
)

Remarks

(entnext) also returns sub-entities (vertices, attributes, entities inside a block definition);
see (entlast) (entmake) (entmakex) (entnext) functions



©  Bricsys NV. All rights reserved.