GDL
About building parametric objects with GDL.

Is there a list of all call "extensions"

Mats_Knutsson
Advisor

Hi,

I was trying to figure out how to use some of the global macros and checked an old relic object from 2003 that is using one of the macros I'm interested in. Call script below. What I don't understand is the stuff after "all"... MSType and unID. Is there a list with all possible thing to place after the parameters?

/Mats

 

call "fa_minimalspace" parameters all MSType = 4, unID = 3000

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.
7 REPLIES 7
Barry Kelly
Moderator

Parameters all - just means to pass on the current parameter values of all parameters in the parent object to the called object.

But in the case you show, it is using specific values for the MSType and unID parameters, rather than those values in the parameter list of the parent object.

 

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
Rubia Torres
Graphisoft
Graphisoft

Hi @Mats_Knutsson,

If you'd like to know which parameters the called object has, that can be checked by opening the object in another GDL editor and reading the parameter list.

Here is a lesson about macro calls: https://gdl.graphisoft.com/gdl-basics/subroutines-macros

 

Cheers,

Rubia Torres

Community Specialist | GRAPHISOFT SE
Need help refining your Archicad skills?
Check our Modeling knowledge base for the best workflow + tips&tricks!

Mats_Knutsson
Advisor

I know the calling routines but what I didn't get is MSType and unID... Are they overriding "all"?

 

EDIT: Found it is additional parameters. The names were looking very "official" so I thought it was something clever but it wasn't. I'll create a cleaner macro...it's a "minimal space" macro for 2D... I wonder what would be the best way to get the 3D minimal space volume? There is no way to put element in different layers with gdl so I don't really know how this would be done. In a perfect world I'd like a simple volume object for the minimal space that I could turn on/off via MVO. Then new headroom function for stairs does this...but I guess it's GDL level is Einsteinan...

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

@Mats_Knutsson wrote:

In a perfect world I'd like a simple volume object for the minimal space that I could turn on/off via MVO.


Well, you can actually do that! You can create your own MVO pane in GDL!

It is a very sensible thing to do, especially because you can always extend it later to your office's needs and incorporate more things.

 

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

I know how to do the MVO-panel but I don't know how to program an object in which I can hide certain geometry in 3D .

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.

Happy new year, Mats!

 

Not quite sure what the issue is. You have your own MVO and that dictates what gets shown and what gets hidden. The object queries the MVO. Thats about that.

This part of the "perfect world" is acutally easy to achieve. 🤔

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Yes. I get it. Will try :).

AC 25 SWE Full

HP Zbook Fury 15,6 G8. 32 GB RAM. Nvidia RTX A3000.