Using VBA

progeCAD can be customized using Visual Basic for Applications (VBA) through an integrated interface, available from the progeCAD Tools menu. progeCAD features a broad range of objects, giving you the power to write your own custom applications that can run within progeCAD.

To load a VBA project

Advanced experience level

   1   Do one of the following:

    On the ribbon, choose Tools > Load VBA Project (in Applications).

    On the menu, choose Tools > Visual Basic > Load VBA Project.

    Type vbiload and then press Enter.

   2   Locate and select the Visual Basic project file (.vbi file) to load, then click Open.

To run a VBA macro        

Advanced experience level

   1   Do one of the following:

    On the ribbon, choose Tools > Macros (in Applications).

    On the menu, choose Tools > Visual Basic > Macros.

    Type vbarun and then press Enter.

   2   In the Run progeCAD VBA Macro dialog box, enter the name of an existing VBA macro, and then click Run.

You can also create, delete, and edit VBA macros from this dialog box.

To edit a VBA macro    

Advanced experience level

   1   Do one of the following:

    On the ribbon, choose Tools > Visual Basic Editor (in Applications).

    On the menu, choose Tools > Visual Basic > Visual Basic Editor.

    Type vba and then press Enter.

    2    Use the Visual Basic Editor to write or debug VBA macros.

For more information

    Read the online documentation for VBA, available from the editor Help menu and from the progeCAD Help menu.

    Many publications are available that explain how to program in VBA.