salman Posted June 17, 2009 Posted June 17, 2009 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. Quote
Lee Mac Posted June 17, 2009 Posted June 17, 2009 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 Quote
Recommended Posts
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.