Programmatically access layer info

Programmatically access layer info

Anonymous
Not applicable
433 Views
1 Reply
Message 1 of 2

Programmatically access layer info

Anonymous
Not applicable

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.

0 Likes
434 Views
1 Reply
Reply (1)
Message 2 of 2

Alfred.NESWADBA
Consultant
Consultant

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
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes