i need to return some parameter from a macro. It works fine when i place the end _reValue in the masterscript of the macro, but this keeps the macros other scripts (2D,..) from executing. Does anyone know how to solve this?
Hey Peter thanks for the answer. The macro is called from the master script of my Library object. When i place the “end _reValue” statement not in the master script of the macro but for instance in the 2D Script nothing is returned for some reason. My macro 2D Script ends with and “end” statement followed by some subroutines. Replacing the pure end statement with “end _reValue” did not work.
Ok it worked when i called the macro from the GDL object 2D script not the master script and used the end statement in the macro 2D script. I think i still have troubles understanding the “scopes” of the single scripts and in which order the are executed.
It should work with the macro called from master script. You will only get the returned_parameters in the 2D context. If you need it in other contexts, also return them form the macro 3d, etc. scripts.
Péter Baksa
Library Platform, Software Engineer GRAPHISOFT SE
Author
Posts
Viewing 4 reply threads
The forum ‘Object design’ is closed to new topics and replies.