leonucadomi Posted June 28, 2022 Share Posted June 28, 2022 hello i want to do something simple but i need help... I want to learn how to move an entity knowing your inner name... start this , but I don't know what's wrong help please (defun c:pru ( / ) (setq e (car (entsel "7ff7023f9d60") (command "_move" e "\\" "\\") ) pru2.dwg Quote Link to comment Share on other sites More sharing options...
mhupp Posted June 28, 2022 Share Posted June 28, 2022 lisp needs to be in wrapped in ( ) 1(setq e 2(car 3(entsel "Select Entity to move")3)2)1 this will work (defun c:pru (/ e) (setq e (car (entsel "Select Entity to move: "))) (command "_move" e pause pause) ) Quote Link to comment Share on other sites More sharing options...
leonucadomi Posted June 28, 2022 Author Share Posted June 28, 2022 what I am looking for is to learn how to move the object without having to select it knowing its internal hexadecimal name Quote Link to comment Share on other sites More sharing options...
leonucadomi Posted June 28, 2022 Author Share Posted June 28, 2022 I could do it before but I lost the information Quote Link to comment Share on other sites More sharing options...
mhupp Posted June 28, 2022 Share Posted June 28, 2022 (edited) (entlast) selects the last thing made. idk what your trying to do. Edited June 28, 2022 by mhupp Quote Link to comment Share on other sites More sharing options...
leonucadomi Posted June 28, 2022 Author Share Posted June 28, 2022 no friend, not like that entities have two hexadecimal names one that changes with the drawing session and another that remains what I want is ,in a drawing session, to manipulate the entity knowing its name that does not change Quote Link to comment Share on other sites More sharing options...
mhupp Posted June 28, 2022 Share Posted June 28, 2022 No that's all entity names your looking for the handle (defun c:pru (/ e) (setq e (handent "5B1B")) (command "_move" e pause pause) ) Quote Link to comment Share on other sites More sharing options...
leonucadomi Posted June 28, 2022 Author Share Posted June 28, 2022 sorry I didn't remember well you're right it's exactly what i need thanks Quote Link to comment Share on other sites More sharing options...
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.