Skip to content

Check Operation Parameters Against Limits

KaiUR edited this page May 13, 2026 · 6 revisions

Check Operation Parameters Against Limits

File: Process_Document_Scripts/Check_Operation_Parameters_Against_Limits.py
Version: 1.4
Document Type: CATProcess


Description

Reads the same machining parameters as Export Process Table Parameters but instead of writing them to Excel, checks each value against configurable min and max limits. A dialog box lets the user review and adjust the limits before each run. Any parameter outside its limit is flagged in a scrollable result dialog. Useful as a quick sanity check before sign-off.

Settings are saved between sessions so limits only need to be set once.

Tested operation types: Sweep, Pencil, Contour Driven.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.9.5
wxPython Required
Open document CATProcess

Usage

  1. Open a CATProcess document in CATIA
  2. Run the script — the Parameter Limit Checker dialog opens
  3. Review and adjust the min / max limits as needed
  4. Click OK — the script checks all operations and shows the result

Limits Dialog

A dialog appears before each run showing all configurable limits:

Column Description
Parameter The machining parameter name
Min (mm) Minimum allowed value — leave blank to skip
Max (mm) Maximum allowed value — leave blank to skip

Dialog Buttons

Button Action
OK Saves the current limits and runs the check
Cancel Exits without running the check
Reset Defaults Restores factory default values (fields flash green)
Clear Saved Deletes the saved JSON settings file and resets the UI
Help Opens the in-script help window

Parameters and Default Limits

Parameter Default Min Default Max Notes
Maximum distance 0.0 mm 5.0 mm Stepover — max distance between passes
Machining tolerance 0.0 mm 0.1 mm Max allowable surface tolerance
Maximum depth of cut 0.0 mm 3.0 mm Maximum axial depth per pass
Offset on part -1.0 mm 1.0 mm Surface offset on the machined part
Offset on check -1.0 mm 1.0 mm Surface offset on check surfaces
Depth of cut by level for Multi-Pass 0.0 mm 3.0 mm Depth per level for multi-pass operations

Settings Persistence

Limits are saved automatically to:

%APPDATA%\pycatia_scripts\Check_Operation_Parameters_Against_Limits\user_settings.json

The saved values are pre-filled the next time the script runs. Use Clear Saved to return to factory defaults.


Output

No violations:
A message dialog confirms all parameters are within limits and shows the operation count.

Violations found:
A scrollable dialog lists each violation:

5 operation(s) checked, 2 violation(s) found.
------------------------------------------------------------

*** VIOLATION ***
  Part Op:   Part Operation.1
  Program:   Program.3
  Operation: Sweeping.5
  Parameter: Machining tolerance
  Value:     0.15mm - above maximum (0.1mm)

Notes

  • Uses the same known parameter index list as Export Process Table Parameters — see that page for instructions on adding support for new operation types
  • Requires pycatia >= 0.9.5

Home


Getting Started


Contributing


Any Document Scripts


Drawing Document Scripts


Part Document Scripts


Shape Generation Scripts


Process Document Scripts


Product Document Scripts


Utility Scripts


Legal

Clone this wiki locally