Copying Macros from V5 Macro Libraries

You can copy macros from V5 macro libraries (that are file-based) into current libraries (stored in the database).

  1. From the Tools section of the action bar, click Macros...
  2. In the Macros dialog box, click Macro libraries....
  3. In the Macro libraries dialog box, click Create new library from files... to create a PLM macro library.

    Before you can select a file-based macro library that will initialize the PLM macro library being created, a warning appears:

    File-based macro libraries are usually well designed for V5 execution but not for V6 execution. 
    Some non-executable comments will be added at the beginning of the imported macros in order to prevent problems during their execution.
    Check the compatibility of the macro scripts with V6 then remove the comments.

  4. When prompted, select a file-based macro library (VBA or Directory) to be copied into the PLM macro library.

    Note: The copied macros in the current library will have the same name as the original macros copied from the V5 macro library.

  5. In the Title field, enter the title of the PLM macro library and click OK.
  6. In the Available macros list, select an imported macro and edit it.

    Macros imported from V5 are certainly not runnable as is. To prevent problems, a comment is added at the beginning of each copied macro:

    +++ WARNING, this macro has been designed to be used in CATIA V5.
    +++ This macro may not work in a CATIA version higher than V5.

  7. To be able to run the macro, remove the comment at the beginning of the macro.
  8. Check the macro for compatibility and modify the instructions, if required.