satishrajdev Posted March 23, 2015 Share Posted March 23, 2015 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 Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 23, 2015 Share Posted March 23, 2015 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? Quote Link to comment Share on other sites More sharing options...
satishrajdev Posted March 23, 2015 Author Share Posted March 23, 2015 Actually I am looking for the attribute tags... Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 23, 2015 Share Posted March 23, 2015 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. Quote Link to comment Share on other sites More sharing options...
satishrajdev Posted March 23, 2015 Author Share Posted March 23, 2015 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. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted March 23, 2015 Share Posted March 23, 2015 Please post the code you have tried. What are you referring to when you say 'custom properties of a block'? What custom properties? 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.