BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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
Learn and get certified!