.NET

Reply
Active Member
toyter
Posts: 9
Registered: ‎03-20-2006
Message 1 of 2 (133 Views)

Programmatically access layer info

133 Views, 1 Replies
06-01-2012 12:20 PM

i'm stuck and in case my last question wasn't clear i've attached an image.  i can access the General layer properties thru the api (circled in green on image).  how can i programmatically access the Attributes (circled in red).  is this possible? thanks.

*Expert Elite*
Alfred.NESWADBA
Posts: 8,982
Registered: ‎06-29-2007
Message 2 of 2 (126 Views)

Re: Programmatically access layer info

06-01-2012 12:29 PM in reply to: toyter

Hi,

 

>> how can i programmatically access the Attributes

If you have the BlockReference already at your hand, you can access the .AttributeCollection which gives you a list of ObjectIDs, every one pointing to each single AttributeReference attached to the BlockReference.

 

HTH, - alfred -

-------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at
-------------------------------------------------------------------------
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.