### 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. To access this editor, select View | Basic Script Editor or follow the procedure below to make changes to an existing IPR script.

Basic Script Editor containing sample code for IP 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 | Preferences | Inspection Plan Defaults menu option.

2. If password protection is enabled for PC-DMIS settings, an IPD Password dialog box appears, and you must type the correct password to proceed. The password is case-sensitive. See where the Password button is discussed in the "Setup Options: General Tab" topic in the "Setting Your Preferences" chapter for more information on password protection.

3. The Modify Default Parameters dialog box appears.

Modify Default Parameters – Rules Scripts Section

4. Select the Use Rules Script check box.

5. 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

Note: The default path and file name that will be used for your IPR file is stored in the Rules File option the Inspection Plan section of the Settings Editor.

6. 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.

7. Edit your IPR script using the Basic Script Editor.

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

9. Click Close to exit the Basic Script Editor.

Setting the Default IPR Script

1. Select the Edit | Preferences | Inspection Plan Defaults 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.