Qonfire Posted January 10, 2012 Posted January 10, 2012 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 Quote
Lee Mac Posted January 10, 2012 Posted January 10, 2012 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. Quote
BlackBox Posted January 10, 2012 Posted January 10, 2012 (vl-load-com) (if (setq eName (car (entsel))) (setq vlaObj (vlax-ename->vla-object eName)) ) Quote
irneb Posted January 10, 2012 Posted January 10, 2012 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. Quote
Qonfire Posted January 10, 2012 Author Posted January 10, 2012 Thank you guys RenderMan do I have to type entire code? 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.