#### PC-DMIS Planner Rules (.ipr) script

.ipr scripts are basic scripts that determine how features are measured within your part program. This script is applied as your Inspection Plan is imported into your part program.

The PC-DMIS Basic Script Editor can be used to create .ipr scripts.

Basic Script Editor containing sample code for Planner rules

The example in the above figure shows rules that will change the number of hits that are taken depending on the diameter of the circle.

To make changes to the PC-DMIS Planner Rules (.ipr) script, follow this procedure:

1. Select the Edit | Setup | Modify Default Parameters menu option. The Modify Default Parameters dialog box appears.

The Modify Default Parameters dialog box is password protected if password protection has been enabled for other settings in PC-DMIS. See the "Setup Options: General Tab" topic in the core PC-DMIS documentation for more information.

Modify Default Parameters – Rules Scripts Section

2. Select the Use Rules Script check box.

3. From the Rules Script File Name drop-down select or browse to the file you want to modify. Click Browse… to open a select file dialog box if the .ipr file is not already listed.

File Name list box - .ipr

4. Click Open to modify an existing .ipr file or click Create to open the default .ipr script. This will open the selected file in the Basic Script Editor. When using Create a new script will be populated with a default .ipr script inside of the Basic Script Editor.

5. Edit your .ipr script using the Basic Script Editor.

6. Click the Save Icon to save your finished script.

7. Click Close to exit the Basic Script Editor.

Setting the Default .ipr Script

1. Select the Edit | Setup | Modify Default Parameters menu option. The Modify Default Parameters dialog box appears.

2. From the Rules Script File Name drop-down select or browse to the needed file.

3. Click Set as Default to make the file listed in the Rules Script File Name box the default file.

4. Click Exit when finished.