Jump to content

Custom property of block


satishrajdev

Recommended Posts

Hi all,

 

I want to get custom property of a block to get attributes. Block is in the drawing but not present in the modelspace. I can see block from "BE" Command.

SSGET is completely useless in this manner.

 

I want to get attributes of that block and verify it according to my need.

 

Please help

 

Regards

Link to comment
Share on other sites

Since there are presumably no references of the block in the drawing, I assume that you would be looking to check the default values of the Attribute Definitions residing within the Block Definition?

Link to comment
Share on other sites

Actually I am looking for the attribute tags...

 

You should iterate over the components of the block definition until you encounter the ATTDEF entity (AcDbAttributeDefinition); this can be achieved by either using entnext on the entity returned by the tblobjname function, or by using vlax-for to iterate over the collection of components for the block definition defined in the ActiveX Blocks Collection of your drawing.

Link to comment
Share on other sites

I tried with tblobjname but it doesn't give custom properties of a block as its not present in drawing. I am not so familiar with vlax-for so don't have any idea about it.

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