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.
GDL
About building parametric objects with GDL.
SOLVED!

Global Modification

Lingwisyer
Guru
Hi all,

Is there someway to write back to Globals?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Lingwisyer
Guru
WIDO_SILL is apparently a global parameter instead of a standard parameter like A / B / ZZYZX.

I found a modifiable version of it in ac_wido_sill which writes back to WIDO_SILL. Though this is from wall face rather than core...



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660

View solution in original post

5 REPLIES 5
Barry Kelly
Moderator
Lingwisyer wrote:
Is there someway to write back to Globals?

Not with GDL that I know of.
What GLOBAL are you trying to alter?

I am sure you could control them with an add-on or of course they are just standard Archicad settings which you can change.


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Solution
Lingwisyer
Guru
WIDO_SILL is apparently a global parameter instead of a standard parameter like A / B / ZZYZX.

I found a modifiable version of it in ac_wido_sill which writes back to WIDO_SILL. Though this is from wall face rather than core...



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Peter Baksa
Graphisoft
Graphisoft
Hi Lingwisyer,

no, globals are one-way communication from Archicad to GDL. Technically it's allowed to change them, so your code and called macros see the changed value, but AC doesn't read it back.
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest
Lingwisyer
Guru
Peter wrote:
globals are one-way communication

Any reason WIDO_SILL is a Global rather than a standard parameter? Or is there some other parameter that I am missing that is Reveal to Wall Core?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
Peter Baksa
Graphisoft
Graphisoft
Historic reasons and keeping backwards compatibility.
You can use ac_wido_sill. The distance from wall face to core can be calculated using WALL_SKINS_PARAMS.
Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest