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.

[SOLVED] Trying to use C++ variables into GDL scripts

Anonymous
Not applicable
Hello,
I'm trying to use C++ variables into GDL scripts in order to use them in objects.
Does anyone have an idea ?
Regards.
3 REPLIES 3
Mihaly Palenik
Graphisoft
Graphisoft
Hello,

C++ and GDL are two different languages.
Can you describe it more precisely why would you like to use C++ variables in GDL script?

Best,
Mihály
Anonymous
Not applicable
Cedric wrote:
Hello,
I'm trying to use C++ variables into GDL scripts in order to use them in objects.
Does anyone have an idea ?
Regards.

If talking about simple C ++ variables (those that have analogs defined in GDL, but not different structures and classes) then I see 2 ways.
1 first through the development of the extension GDL, which will intercept the commands GDL OPEN (required), INPUT (working) and return through INPUT variables from C ++ directly into the script
2 Develop a common extension that will find your elements and change the required library element parameters to the variables you need from C ++. (APIAny_ ChangeAParameterID)

From the company's point of view, if GDL can read C++ variables, wouldn't it be possible to completely SOFTWAEW LOCK GDL?

If I knew how to make a GDL that can only be used by running ADDON, I have a desire to make it. ^^

AC27 on window 11
Learn and get certified!