Working with user-defined review scripts (Reviewer)
|
If you run a script that has errors, those errors can cause Modeler to crash and corrupt Modeler model data.
|
To write scripts you require a good working knowledge of the VBScript language, the Modeler Meta Model and the Modeler Automation Interface.
The user-defined Review scripts are Visual Basic scripts that work with the Modeler items and diagrams through the Modeler Automation Interface.
For information about the Modeler Meta Model and the Modeler Automation Interface, see the Automation Interface and TellMe Utility section of the Modeler Help.
Examples of user-defined review scripts are located at C:\Program Files (x86)\Windchill Modeler\Modeler\Reviewer\UserDefined.
For information about training courses related to creating user-defined Reviews, contact Customer Support.
To view a user defined review script example
1. On the Reviewer toolbar, click
Manage User Defined.
2. Select the user-defined Review you want to view.
3. Click the
Properties button.
The review script is displayed on the Review Script tab.
To copy user-defined review scripts to another computer
The user-defined review scripts have the .rev extension and are located in the C:\ProgramData\PTC Integrity Modeler\ModelerATFiles\Reviewer\UserDefined folder. You can manually copy the script files from the source computer and paste them in to the same folder in the target computer. You must restart Reviewer for the newly copied user-defined scripts to be visible.