License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
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

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!