Professional Documents
Culture Documents
OS. To Test Your Macro
OS. To Test Your Macro
If the program contains errors, the line where the program stops will be marked in red. Stop the program and then review your input to debug.
1. Click in the dark gray margin of the code editor just to the le of line number 57 (or the line containing cdrx = 0). A red dot appears to indicate this is a break point. The code will pause the execu on at this point when executed.
4. Click OK. The code runs to the break point, which is now highlighted in yellow. The Immediate tab now shows the debug print statements. These should reflect any changed input you provided.
5. Click the Run tool in the Execute group again to con nue to the next break point or to the end of the code.
6. Save your changes.
7. Select the File ribbon tab and then select Exit in the backstage view.
Note: Tes ng the macro s ll runs within STAAD.Pro through OpenSTAAD, so you will have a frame generated if you tested it. You will need to start with a new, empty file to run the macro correctly.