Jump to content

Recommended Posts

Posted

I tested the code below by selecting one type of block, but instead of returning the name it returned *U36

 

 

(cdr (assoc 2 (entget (car (entsel "\nSelect a buble: ")))))

Posted

That because the selected block is dynamic .

 

Read about the function vla-get-effectivename

Posted

Is there a way to get the block name using autolisp and not vlisp?

Posted

Yes there is one written by Lee , visit his site and you should find it there.

Posted

Tharwat I googled vla-get-effectivename which lead me to Lee's website where he has his Effective Block Name.

 

Thank you Tharwat & thank you Lee!

 

Lee it works GREAT!! :D

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