与其他应用程序集成 > Windchill Workgroup Manager 文档 > Windchill Workgroup Manager 工具包 > Working with Toolkit Resources > Additional Windchill Workgroup Manager Toolkit Demo Examples > Toolkit API Function to Register or Unregister Authoring Applications and List Registered Authoring Applications
Toolkit API Function to Register or Unregister Authoring Applications and List Registered Authoring Applications
Windchill Workgroup Manager Toolkit API function enables you to programmatically (automatically) list registered authoring applications.
An API function registers and unregisters authoring applications, so that users can correctly configure their clients. The API also enables you to list all registered authoring applications.
Prerequisites
You must set the following environment variables:
WWGMTK_APP_NAME – Application name, such as Solidworks.
WWGMTK_APP_VERSION – Application version, such as 21 for SolidWorks 2013.
The following table lists some of the supported application names and version numbers:
Supported application names and version numbers
Application
Application Name
Application Version
CADDS5
WWGMTK_AUTHORING_APP_NAME_CADDS5 "CADDS5"
WWGMTK_AUTHORING_APP_VER_CADDS5_15 “15”
WWGMTK_AUTHORING_APP_VER_CADDS5_16 “16”
PROE (Creo Parametric)
WWGMTK_AUTHORING_APP_NAME_PROE “PROE”
WWGMTK_AUTHORING_APP_VER_PROE_L01 “28”
Creo Elements/Direct Modeling
WWGMTK_AUTHORING_APP_NAME_CCM "COCRMOD"
WWGMTK_AUTHORING_APP_VER_CCM_17 "1700"
Creo Elements/Direct Drafting
WWGMTK_AUTHORING_APP_NAME_CCD "COCRDRAFT"
WWGMTK_AUTHORING_APP_VER_CCD_17 "1700"
* 
For a list of application names and versions supported by Windchill Workgroup Manager Toolkit, see wwgmtkauthoringappnames.h. The wwgmtkauthoringappnames.h file is included in the Windchill Workgroup Manager Toolkit package.
For information on how to create environment variables, see Create or Update User Environment Variables.
In the customizationTK.xml file, specify the customization path to the wwgmtkbasictest.dll file. For more information about the customizationTK.xml file, see How to Initialize and Launch the Toolkit.
Copy the customizationTK.xml file to <WGM install directory>/PTC_WGM_ROOT/.Settings.
Registering, Unregistering, and Listing Registered Applications
You can perform the following actions:
To register an application, click Toolkit Demo > App. Registration > Register Application. The registered application is displayed in the Client Message area.
To unregister an application, click Toolkit Demo > App. Registration > Unregister Application. The unregistered application is displayed in the Client Message area.
To list all registered applications, click Toolkit Demo > App. Registration > Get registered applications. The registered applications are displayed in the Client Message area.
这对您有帮助吗?