Toolkit API Functions to Enable Export From Workspace
Windchill Workgroup Manager Toolkit Toolkit API function enables you to programmatically (automatically) export objects from workspace to the local file system.
Prerequisites
You must set the following environment variables:
For the authoring application:
WWGMTK_APP_NAME — Application name, such as Solidworks.
WWGMTK_APP_VERSION — Application version, such as 21 for SolidWorks 2013.
* 
For the exported documents folder:
WWGMTK_EXPORT_LOCATION — Location (local path) for the exported objects such as D:\exportFolder.
For exported documents:
WWGMTK_EXPORT_MODEL_NAMES — Model names separated by “!” or “;”. For example, <cadName1!cadName2;...>.
For models export flags:
WWGMTK_DEP_LEVEL — Calculate dependencies flag; set to none or all.
WWGMTK_REUSE_CONTENT — Reuse Content flag (overwrite); set to yes or no.
WWGMTK_EXPORT_SECONDARY_CONTENT — Export Secondary Content flag; set to yes or no.
* 
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.
* 
Close the Windchill Workgroup Manager client application when you update the customizationTK.xml file.
Ensure that you are logged in and there are no out-of date objects in your workspace.
Exporting Objects from Workspace to the Local File System
To export objects from workspace to the local file system, perform the following action:
In Windchill Workgroup Manager, click Toolkit Demo > App. Registration > Export Documents. The objects are exported to the directory path which is specified in the WWGMTK_EXPORT_LOCATION environment variable.
* 
When you point to Export Documents, a message appears, which shows all the environment variables.
도움이 되셨나요?