Jump to content

Recommended Posts

Posted

Hello

Happy new year everybody

 

quick question.

I don't want to run entsel funct. Entity name is known,I simply want to save as setq) , and then

 

(setq TblObj	(vlax-ename->vla-object x)

 

how?

Thank you

Posted

The Entity Name is just a pointer to the entity information in the drawing database, this name will change between drawing sessions.

 

Better to store the Entity Handle (this won't change), and use the handent function to convert it back to an Entity Name.

Posted
(vl-load-com)
(if (setq eName (car (entsel)))
 (setq vlaObj (vlax-ename->vla-object eName))
 )

Posted

Unfortunately no, that can't work. You need either the Handle and then use the handent function, or you need the ObjectId and then use the Document object's ObjectIdToObject method.

Posted

Thank you guys

RenderMan do I have to type entire code?

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