Toolkit API Functions to Rename Object in Workspace
Windchill Workgroup Manager Toolkit Toolkit API enables you to programmatically (automatically) change the values of the Number, Name, and Model Name attributes of an object in the workspace.
Windchill Workgroup Manager Toolkit allows you to rename an object in the workspace, if the object has never been checkedin to Windchill.
For more information, see the
Windchill Workgroup Manager Toolkit Demo for the Rename API function.
Prerequisites
You must set the following actions:
• Set the following environment variables for the target object in the workspace and for the naming and numbering attributes.
◦ WWGMTK_MODEL_NAME– Current CAD document name
◦ WWGMTK_MODEL_NEW_CAD_NAME– New CAD document name
◦ WWGMTK_MODEL_NEW_NAME– New document name
◦ WWGMTK_MODEL_NEW_NUMBER– New document number
• 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.
Renaming Object in the Workspace
To rename object in the workspace, restart Windchill Workgroup Manager and click > > . The object is renamed in the workspace as specified by the environment variables. You must refresh the workspace to view the updated object.