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

Streamline your workflows and master BIM coordination! Program starts April 28!

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

[SLVD] Proper way of adding penbackground color to attribute

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
Not applicable
And another question - is it possible to detect if the archicad version is international or german in the add-on?
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
Central Innovation
Not applicable
Thanks for your help, Ralph! it worked!

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!