Skip to content

Reset Visual Properties

KaiUR edited this page May 21, 2026 · 3 revisions

Reset Visual Properties

File: Any_Document_Scripts/Reset_Visual_Properties.py
Version: 1.0
Document Type: Part, Product, or Process


Description

Resets the colour, line weight, line type and opacity of selected elements to CATIA wireframe defaults in a single batch operation. Useful for cleaning up elements that have inherited messy or inconsistent properties, for example after importing geometry.

Defaults applied:

Property Reset Value
Colour White (255, 255, 255)
Line weight Index 1 (0.13 mm)
Line type Index 1 (Solid)
Opacity 255 (100% — fully opaque)

Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
Open document Part, Product, or Process

Usage

  1. Open a Part, Product, or Process document
  2. Run the script
  3. A CATIA selection prompt appears — select all elements to reset, then click OK
  4. All selected elements are reset to defaults in one operation

Notes

  • All elements are added to the selection at once and updated in a single batch — no per-element loop
  • If a boundary reference (Selection_) is selected instead of the hybrid shape directly, the script resets the parent object

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