OpenSTAAD V8i

STAAD.Pro VBA Editor window

The contents of the macro can be programmed in this editor.  Use the functions listed in Sections 2 and 3 to create a customized macro.  The STAAD VBA Editor is designed to not only compile a macro, but help debug it as well.

For additional help using the STAAD.Pro VBA Editor, right click anywhere on the toolbar and select Help > Editor Help from the pop-up menu.

Tools found in the STAAD.Pro VBA editor.
Icon Function
New

Displays the new item drop-down menu, containing the following menu items:

  • New Macro
  • New Code Module
  • New Object Module
  • New Class Module
Open  
Save  
Print  
Browse Object  

Run

Runs or plays a macro.  Once the macro has been properly created, it can be executed by clicking on this icon.  Alternatively, a macro may be run from the Macro dialog.

Pause  
End  

Toggle Breakpoint

Used to set a breakpoint within a macro.  This can be used to debug a macro when the contents of individual variables are required during runtime.  The macro will stop at a line of code containing a breakpoint. 

Watch

Place your mouse over any variable or constant in the macro.  Click on the Watch tool to add the variable to the Watch list so its contents can be observed throughout the macro.

Evaluate Expression  

Step Into

This function allows you to step into a function or subroutine within a macro for further investigation.  Place a breakpoint at the line where you want to Step Into. It can also be used to step line by line through the macro.

Step Over

When you do not want to investigate a certain function or routine but instead wants to continue debugging the next line(s), the Step Over function can be used.

Step Out

Used to step out of the current function or subroutine and back into the main part of the code.

Edit User Dialog

Opens the User Dialog Editor window, which is used to create a new dialog box at the present point in the code or to edit an existing dialog box.

Edit Module Properties