We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2021-07-14 03:47 PM - last edited on 2021-09-14 08:59 AM by Noemi Balogh
CALL 'childObject' PARAMETERS RETURNED_PARAMETERS param1Then if I try, say
PRINT param1it gives an error: "Unitialised variable"
2021-07-28 04:03 PM
dushyant wrote:
I had managed it, by returning params from the Parameter script of the macro, and retrieving them in the caller's Parameter script and setting callers params, when I used in the 3D.
2021-07-28 04:35 PM
Peter wrote:Okay, I see. So then the parameter (of macro) would be available directly in the caller in all the scripts?
That could be also done by setting the parameter in the macro directly, not using returned_parameters.
Depends on whether you can use a fixed parameter name, or need to set different parameters conditonally.
2021-07-29 02:08 PM
2021-07-29 02:55 PM
Peter wrote:Okay, thanks!
You have to add it to the parameter list of the macro and the object too. But it's enough to set in the macro, the object will see the changed value too.