You are here: HomeSupportArchiCAD

Tip on Macro Scripts

TechTip of the Month Contest Winner of August 2004:

László Nagy's tip on Macro scripts
September 30, 2004

"(...)
I dont't know how well this is known, but I just found it now:

  1. If you have a DEL TOP command in a Macro, when it is executed it will delete all coordinate transformations in the calling script as well. [...]
  2. I was always trying to find out how to stop a script in debug mode when it is in a macro called by the script I am debugging."
Indeed, be careful with the DEL TOP command:
  1. The DEL TOP command will delete all coordinate transformations in the calling script. Mr. Nagy suggests to delete only the number of done coordinate transformations in a macro.
  2. Place a BREAKPOINT command in the Macro the result of which evaluated to true (like BREAKPOINT DDDDD=0), then the debugger will stop in the Macro, and you can check the values of variables there. It can come handy when looking for the reason your script does not work the way you want it.
Hint: You can get fast and effective help to your GDL problems on ArchiCAD-Talk. Just be sure to read the manual, the earlier tips and ArchiGuide on the subject prior to asking for help.

Page last updated: Thursday, September 30, 2004

Copyright © 2008 - Graphisoft R&D Zrt. All rights reserved worldwide. Terms of Use | Privacy Policy