We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

How to find relation between API_AttrTypeID and API_Element?

Newbie
Participant

I am looking for a way to get linked between API_AttrTypeID and API_Element . Is there anyone know which field can be use to link each other?. My target is to find which attribute is used by which element.

 

1 REPLY 1

The elements typically have API_AttributeIndex fields which indicate which attributes they are using. Every element has in their header the attribute index of the layer it's on.

 

And for example a wall has a lot of different attribute indices. For example:

 

API_AttributeIndex                  buildingMaterial;
API_AttributeIndex                  composite;

 

But there are a lot more. Some are hidden in override types (API_OverridenAttribute) and pen indices often just have datatype short.

Hope that helps!

Bernd

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!