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

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

[SLVD] Proper way of adding penbackground color to attribute

Anonymous
Not applicable
Hello again,

The add-on which I am developing needs to work on international and german version of Archicad 20. The add-on creates an buildingmaterial attribute, and then sets cutFillBackgroundPen, cutFillPen through indexes and in the international version of Archicad everything seems fine, but when I create an attribute in the german version those indexes correspond to different colors, because in the german version the attribute is attarched to different penTable.

So whats the sollution here? Should I create a new penTable with my colours, and somehow assign it to the attribute?

Looking forward to your suggestions !
Julian
3 REPLIES 3
Anonymous
Not applicable
And another question - is it possible to detect if the archicad version is international or german in the add-on?
Ralph Wessel
Mentor
jcimentarov wrote:
And another question - is it possible to detect if the archicad version is international or german in the add-on?
You can determine ARCHICAD's language version from the language member of the API_ServerApplicationInfo struct, populated by a call to ACAPI_Environment with the APIEnv_ApplicationID ID.
Ralph Wessel BArch
Software Engineer Speckle Systems
Anonymous
Not applicable
Thanks for your help, Ralph! it worked!