2022-12-29 10:59 AM
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
2022-12-29 11:08 AM
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.
2022-12-29 06:17 PM
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,
Community Specialist | GRAPHISOFT SE
Need help refining your Archicad skills?
Check our Modeling knowledge base for the best workflow + tips&tricks!
2022-12-30 11:32 AM - edited 2022-12-30 12:16 PM
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...
2022-12-30 04:19 PM
@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.
2022-12-31 11:54 AM
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 .
2023-01-01 05:28 PM
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. 🤔
2023-01-10 03:01 PM
Yes. I get it. Will try :).