Skip to content

Navigation Menu

Sign in
Sign up

Check Operation Parameters Against Limits

KaiUR edited this page May 6, 2026 · 6 revisions

Check Operation Parameters Against Limits

File: Process_Document_Scripts/Check_Operation_Parameters_Against_Limits.py
Version: 1.1
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 predefined min and max limits. Any parameter outside its limit is flagged in a scrollable result dialog. Useful as a quick sanity check before sign-off.

Tested operation types: Sweep, Pencil, Contour Driven.


Requirements

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

Setting Limits

Edit the PARAMETER_LIMITS dictionary near the top of the script to match your process requirements. Set min or max to None to skip that check:

PARAMETER_LIMITS = {
 "Maximum distance": {"min": 0.0, "max": 5.0, "unit": "mm"},
 "Machining tolerance": {"min": 0.0, "max": 0.1, "unit": "mm"},
 "Maximum depth of cut": {"min": 0.0, "max": 3.0, "unit": "mm"},
 "Offset on part": {"min": -1.0,"max": 1.0, "unit": "mm"},
 "Offset on check": {"min": -1.0,"max": 1.0, "unit": "mm"},
 "Depth of cut by level": {"min": 0.0, "max": 3.0, "unit": "mm"},
}

Usage

  1. Open a CATProcess document in CATIA/DELMIA
  2. Edit PARAMETER_LIMITS in the script if needed
  3. Run the script — no user input is required
  4. A result dialog shows all violations or confirms everything is within limits

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

AltStyle によって変換されたページ (->オリジナル) /