.NET

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

Programmatically access layer info

137 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: 9,420
Registered: ‎06-29-2007
Message 2 of 2 (130 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
-------------------------------------------------------------------------
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!