Integrazione con altre applicazioni > Documentazione di Windchill Workgroup Manager > Windchill Workgroup Manager Toolkit > Creating and Modifying Toolkit Applications for CATIA V5 > Create the CATIA V5 Macro to Invoke PDM Actions
  
Create the CATIA V5 Macro to Invoke PDM Actions
If you are using CATIA V5, you can create a macro to invoke Windchill PDM actions.
This macro must reside on the same machine as the Windchill Workgroup Manager client and the Windchill Workgroup Manager Toolkit.
In order to programmatically call Windchill PDM actions from your Windchill Workgroup Manager Toolkit application, create a simple CATIA macro using CATIA.StartCommand("<Windchill PDM action name>"). Then use the Windchill Workgroup Manager Toolkit function, executeCadCustomCommand to invoke the macro.
As the single argument, the label of existing PDM actions in the Windchill Workgroup Manager client ribbon menu is required. For example, you can call the “Save To Workspace” action with this macro using the following command:
Sub CATMain()
CATIA.StartCommand("Save To Workspace")
End Sub
The list of Windchill PDM action command names are found under Tools > Customize > Commands > Element in CATIA V5. The argument for CATIA.StartCommand requires the text string for the Windchill PDM action in Windchill Workgroup Manager. These label names (or text strings) are found when you hover over the icon for the Windchill PDM action in Windchill Workgroup Manager.
Calling multiple actions in a macro is not guaranteed. All Windchill PDM actions are invoked without using parameters.
* 
Currently, parameters cannot exist in a macro.