Jump to content

Recommended Posts

Posted

I start line command and draw some lines more than 1. Now I want to select all those lines, to provide as input to some function. Is there some function available in lisp for selecting those lines. entlast would only select the last line drawn.

 

Secondly using entext we can move forward in a drawing database, If I want to move backward starting from the last object in the drawing, or any object and then i want to go backward in the database how can I do that .

 

Thanks.

Posted

Have a read of the help file entry on ENTNEXT:

 

entnext Returns the name of the next object (entity) in the drawing

(entnext [ename])

 

Arguments

ename The name of an existing entity.

 

Return Values

If entnext is called with no arguments, it returns the entity name of the first nondeleted entity in the database. If an ename argument is supplied to entnext, the function returns the entity name of the first nondeleted entity following ename in the database. If there is no next entity in the database, it returns nil. The entnext function returns both main entities and subentities.

 

Examples

(setq e1 (entnext)) ; Sets e1 to the name of the first entity in the drawing(setq e2 (entnext e1)) ; Sets e2 to the name of the entity following e1

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...