→Graphisoftホームページ→ArchiCAD教育版ダウンロード →ArchiCAD体験版ダウンロード →ArchiCAD仲間

Author:

MartaTron

Creation Date:

2006-01-24

ArchiCADバージョン:

• ArchiCAD 9
• ArchiCAD 8.1
• ArchiCAD 7.0

Platform:

• Mac OS X
• Windows

Audience:

• 上級ユーザー

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.


カテゴリGDL

技術情報/Tip on Macro Scripts (最終更新日時 2008-09-01 12:59:08 更新者 localhost)