Atmoz Posted June 7, 2011 Share Posted June 7, 2011 Hello everyone, In my drawing I have an object. I know it's handle (5e5a5e3) Is it possible to get some information about the object via this handle? Let's say I want to know it's height. How do I achieve this? Thanks in advance, Atmoz Quote Link to comment Share on other sites More sharing options...
Ahankhah Posted June 10, 2011 Share Posted June 10, 2011 Handles are changed in each session, so you can not lean handles to retrieve certain objects. If you know the handle in this session, it means that you issued LIST command and selected the object, so you can use instead the below code to get infos about desired object: (setq obj (entsel "\nSelect object: "))(setq objlist (entget(car obj))) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 12, 2011 Share Posted June 12, 2011 You need to look at help for "ASSOC" and dxf codes once you have an object ( setq object (entget (car obj))) you can pull all its values out eg 0 = what is it, 8 is layer, a line 10 & 11 are start and end points and so on. Thickness height ? will be there also. (setq whatisit (assoc 0 object)) Just (princ object) or !object to see the values. 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.