cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Call macro from MASTER_GDL and return values

Is it possible to call a macro from a MASTER_GDL.gdl text file?

I’d like to return a string variable from a macro into a MASTER_GDL script. The string variable sets a database key.

I had previously used the plan name request, but that is not possible in 22 & 23.

From what I have tested, a macro call can be included in the MASTER_GDL code without raising an error, but the macro will not be run. Has anyone had any success with it?

*PS Making the project info parameters accessible as GDL Globals would be a great GDL feature.
3 Replies 3
Anonymous
Not applicable
Can anyone from Graphisoft comment on calling a macro from a MASTER_GDL file?

It looks like the MASTER_GDL cannot call a 'macro' in the loaded library, because the MASTER_GDL parts are run before the other library parts are 'loaded'/'made accessible' by the 'list' functionality.
Barry Kelly
Moderator
Nick wrote:
Can anyone from Graphisoft comment on calling a macro from a MASTER_GDL file?
You could try asking over on the GDL Center forum.
GS seems to respond to GDL problems more there than here.

http://gdl.graphisoft.com/forums

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
Anonymous
Not applicable
Thanks Barry

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!