Jump to content

move entity knowing internal name...help


leonucadomi

Recommended Posts

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

Link to comment
Share on other sites

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)
) 

 

 

Link to comment
Share on other sites

what I am looking for is to learn how to move the object without having to select it

 

knowing its internal hexadecimal name

Link to comment
Share on other sites

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

 

 

 

 

 

 

image.png

Link to comment
Share on other sites

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...