cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

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

bschwb
Enthusiast

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 (partially free) Add-Ons at www.bschwb.com/add-ons

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

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!