Jump to content

Get object height via it's handle


Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

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