Интеграция с другими приложениями > Документация Windchill Workgroup Manager > Windchill Workgroup Manager Toolkit > Creating and Modifying Toolkit Applications > Create or Update User Environment Variables
  
Create or Update User Environment Variables
Create or update user environment variables to test the Windchill server, or client-side authoring application updates after creating an API.
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 can 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. An example for the WWGMTK_MODEL_NAME user environment variable is provided for your reference.
User Environment Variable
WWGMTK_APP_NAME
WWGMTK_APP_VERSION
WWGMTK_CONTENT_CATEGORY
WWGMTK_CONTENT_PATH
WWGMTK_CUSTOM_LOG_NAME
WWGMTK_DEP_LEVEL
WWGMTK_DOC_NUMBER
WWGMTK_FOLDER_PATH
WWGMTK_IMPORT_FILES
WWGMTK_LOAD_URL
WWGMTK_MODEL_ID
WWGMTK_MODEL_ITERATION
WWGMTK_MODEL_NAME
WWGMTK_MODEL_REVISION
WWGMTK_MODEL_NAME_TO_OPEN
WWGMTK_PARAM_NAME
WWGMTK_PARAM_TYPE
WWGMTK_PARAM_VALUE
WWGMTK_REG_SERVER_CONTEXT_NAME
WWGMTK_REG_SERVER_CONTEXT_TYPE
WWGMTK_REG_SERVER_NAME
WWGMTK_REG_SERVER_URL
WWGMTK_REG_SERVER_WS_NAME
WWGMTK_RENAME_FILE
WWGMTK_UPLOAD_FOLDER
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 the variable 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.