→Graphisoft Home →Download ArchiCAD Educational →Download ArchiCAD Trial →ArchiCAD Forum →ArchiCAD Tutorials

Author:

MartaTron

Creation Date:

2006-01-24

ArchiCAD versions:

• ArchiCAD 9
• ArchiCAD 8.1
• ArchiCAD 7.0

Platform:

• Mac OS X
• Windows

Audience:

• power users

TechTip of the Month Contest Winner of August 2004:

László Nagy's tip on Macro scripts

"(...) 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.


CategoryGdl

TechNotes/Tip on Macro Scripts (last edited 2008-08-27 15:11:17 by localhost)