BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
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
Anonymous
Not applicable
Thanks for your help, Ralph! it worked!
Learn and get certified!

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!