Create or Update User Environment Variables for CATIA V5
User environment variables must reside on the same machine as the Windchill Workgroup Manager client.
Once the initial user environment variable 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 for WWGMTK_CATIAV5_DLL user environment variable should be built using the sample files and scripts provided with the Windchill Workgroup Manager Toolkit.
The following table contains a list of common user environment variables you can use to specify input data and parameters for Windchill Workgroup Manager Toolkit sample commands. Examples for the WWGMTK_CATIAV5_DLL and WWGMTK_CATIAV5_MACRO user environment variables are provided for your reference.
User Environment Variable
Where Used
Filepath to Sample
WWGMTK_CATIAV5_MACRO
Run CATIA Macro
%WWGMTK_INSTALL_DIR%\examples\wwgmtk_catia_demos\macros\SaveToWS.catvba
* 
Macro full filename is required.
WWGMTK_CATIAV5_MODULE
%WWGMTK_INSTALL_DIR%\examples\wwgmtk_catia_demos\macros\SaveToWS.catvba
* 
Use STW_Module. Module name is required for CATVba macros only.
WWGMTK_CATIAV5_COMMAND
%WWGMTK_INSTALL_DIR%\examples\wwgmtk_catia_demos\macros\SaveToWS.catvba
and
%WWGMTK_INSTALL_DIR%\examples\wwgmtk_catia_demos\macros\SaveToWS.catvbs
* 
Use CATMain.
WWGMTK_CATIAV5_DLL
Execute method from DLL
%WWGMTK_INSTALL_DIR%\examples\wwgmtk_catia_demos\PTCWGMTKFW
* 
Contains the CATIA V5 sample files (CAA framework) to build the PTCWGMTK.dll used by Execute method Dll in the Windchill Workgroup Manager client. Use the full path to the custom CAA DLL to be loaded in CATIA. For example, <cmdname>PTCWGMTK.dll</cmdname.
WWGMTK_CATIAV5_METHOD
%WWGMTK_INSTALL_DIR%\examples\wwgmtk_catia_demos\PTCWGMTKFW\PTCWGMTK.m\src
Use the provided CAA DLL sample, sampleCAACommand.
* 
This creates the method exposed from the DLL being called.
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. Enter the user environment name in the Variable name field.
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 value for an existing 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, 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.
¿Fue esto útil?