We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2020-10-01 12:14 PM - last edited on 2021-09-15 09:44 AM by Noemi Balogh
call "macro", parameters all alpha = alphaWhy do I need "alpha = alpha", when the name of the variable is the same in the caller object and in the macro?
2020-10-01 02:09 PM
alpha = alphaIn this situation the first "alpha" is a variable and the second "alpha" is the name of the parameter in the called macro.
!parameter list: !alpha = 90 !masterscript: alpha = 270 !2d-script: call "macroname" parameters all ! <= alpha in macro = 90 call "macroname" parameters all alpha = alpha ! <= alpha in macro = 270HTH Dominic
2020-10-02 01:51 AM
2020-10-06 04:02 PM
2020-10-06 04:14 PM
That's not the case, both calls will give alpha = 270 to the macro.!parameter list: !alpha = 90 !masterscript: alpha = 270 !2d-script: call "macroname" parameters all ! <= alpha in macro = 90 call "macroname" parameters all alpha = alpha ! <= alpha in macro = 270