Macros

The Macros options let you customize the macro development environment for automation purposes.

This page discusses:

Default Editors

Change Editors

The Default Editors section lets you select the default editor for CATScript and MS VBScript.

The default editors list is as follows:

  • CATScript Editor: default internal editor
  • MS VBScript Editor: default internal editor
  • MS VBA: Visual Basic Editor
  • VSTA VB.NET: Visual Studio Tools for Applications IDE
  • VSTA C#: Visual Studio Tools for Applications IDE

Only the CATScript and MS VBScript editors can be customized.

To change the Editor, click for CATScript or MS VBScript and select the editor you want to use in the dialog box.

The path field will be updated.

Reset Editor

Lets you restore the default internal editor if you had an external editor for CATScript and MS VBScript previously (field will be emptied).

External references

External references are only used when your macro script is used to control external applications. You have to identify and select the corresponding typelibs.

Manage external references

To add or remove external references and typelibs, click Manage external references.

Display all references

Displays the current references dialog box containing by default a list of all the Version 5 typelibs that are installed automatically in addition to your external references.

Default macro libraries

Lets you select the macro libraries that will be displayed by default when opening Macros pop-up through the Tools > Macros command from the Action Bar.

These libraries will not be removable from the available macros as long as they are referenced by this setting.

To add a default macro library:

  1. Click Manage default libraries.
  2. Select the type of library (PLM Directories, PLM VBA projects, PLM VSTA projects).
  3. Click Add macro library.

    A pop-up with the following message appears:

    Search an object or press ESC to exit.

  4. Enter search criteria for your library in the Search box of the top bar and launch the search.
  5. Select your library among the results.

    Your library is added.

  6. Click Close.

To remove a default macro library, select a library in the list and click Remove macro library.