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

API: How to check if an attribute is used in the project

Sam Karli
Enthusiast

Using the Attribute manager the user sees whether an attribute, like a texture, is used in the project or not (first column checkboxes).

 

I've been looking for the same in the C++ API and I swear I haven't seen anything similar neither among the functions nor among Attribute structures.

 

Any idea how to achieve this is greatly appreciated.

GDL/Python/C++ dev
2 REPLIES 2

Hi!

I think there's no such functionality directly available.
The only way I can come up with is to iterate through all the elements and store their used attributes. That's unfortunately quite some implementation work.


Best regards,

Bernd

Bernd Schwarzenbacher - Archicad Add-On Developer - Get Add-Ons & Archicad Tips on my Website: bschwb.com

Needless to say how much time is it to run. (I'm about to purge too heavy teamwork projects).

Thanks for Your answer.

GDL/Python/C++ dev