Example—Create or Update the WWGMTK_CATIAV5_MACRO User Environment Variable
If you are using CATIA V5, create the WWGMTK_CATIAV5_MACRO user environment variable in order to have access to the Run CATIA Macro application in the Windchill Workgroup Manager client Toolkit Demo menu.
This variable must reside on the same machine as the Windchill Workgroup Manager client and the Windchill Workgroup Manager Toolkit.
Once the initial user environment variable WWGMTK_CATIAV5_MACRO is created, it can be modified with a different value in the Variable value field.
The user environment variable should contain the full path to the DLL. The DLL can be built using the sample files and scripts provided with the Windchill Workgroup Manager Toolkit.
Creating a User Environment Variable
Perform the following steps to create a user environment variable:
1. Close the authoring application, if it is connected to Windchill.
2. Close Windchill Workgroup Manager, if it is running.
3. From the System Properties window of your computer, select the Advanced tab and click Environment Variables.
4. In the user variables section, click New to add a new user environment variable.
5. In the New User Variable window:
a. In the Variable name field, enter the full path and filename of the CATIA macro. For example, enter %WWGMTK_INSTALL_DIR%\examples\wwgmtk_catia_demos\macros\SaveToWS.catvba.
|
The full module name is required for CATVba macros.
|
b. Enter the variable value in the Variable value field.
c. Click OK.
6. Launch the Windchill Workgroup Manager client.
7. If applicable, start the authoring application.
8. Test the application.
9. Check the results.
Changing the User Environment Variable Value
Perform the following steps to update the value for an existing user environment variable:
2. Close Windchill Workgroup Manager, if it is running.
3. From the System Properties window of your computer, select the Advanced tab and click Environment Variables.
4. In the user variables section, select the user environment variable and click Edit.
5. In the Edit User Variable window:
a. Enter the variable value in the Variable value field.
b. Click OK.
6. Launch the Windchill Workgroup Manager client.
7. If applicable, start the authoring application.
8. Test the application.
9. Check the results.