entpos
(entpos position)
The entpos function sets the database pointer in the entity section to an absolute or relative position and returns the name of the entity found at that position.
The flag argument position sets the entity-name-pointer in the current drawing database entity section.
Valid flags are:
Position |
Description |
0 |
First entity of the current drawing database |
1 |
Last entity of the current drawing database |
2 |
Succeeding (next) entity of the current drawing database |
3 |
Preceding (previous) entity of the current drawing database |
4 |
Current entity (entity at the current ename pointer position) |
The function only permits retrieving "main" (non-complex) entities, but not vertices, attributes etc.
See the entnext function to evaluate sub-elements of complex drawing objects.