Skip to content

Update Title Block From Properties

KaiUR edited this page May 21, 2026 · 6 revisions

Update Title Block From Properties

File: Drawing_Document_Scripts/Update_Title_Block_From_Properties.py
Version: 1.1
Document Type: Drawing (CATDrawing) with an associated Part or Product


Description

Reads the value text fields from the active drawing sheet's background view and regular views, reads document properties from the first open CATPart or CATProduct in the session, and presents a mapping dialog. Each title block value field can be mapped to any available property, or filled with custom text typed directly into the field. On confirmation the values are written into the corresponding text elements. Heading labels (e.g. DRAWN BY:, TITLE:) are excluded from the dialog and are never modified.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Required
Open document CATDrawing + at least one open CATPart or CATProduct

Usage

  1. Open a CATDrawing in CATIA
  2. Ensure the associated CATPart or CATProduct is also open
  3. Run the script
  4. The dialog appears showing all value fields and their current content
  5. Select a property from the dropdown, or type any custom text directly into the field
  6. Click OK — the text fields are updated immediately

Dialog

The dialog shows a three-column list:

  • Field name — the CATIA object name of the text element
  • Current value — the text currently in that field
  • New value — editable combo box: pick a model property from the dropdown, or type any custom text

Rows left as (leave unchanged) or left blank are skipped.


Notes

  • Only value fields are shown — heading labels ending with : are excluded and never modified
  • Use Update Title Block Headings to edit heading labels
  • Only the active sheet is processed — other sheets are not modified
  • Properties are read from the first open CATPart or CATProduct found in the session; if none is open the script exits with an error
  • The drawing is not saved automatically after updating

Changelog

Version Date Change
1.1 21.05.26 Replaced property dropdown with editable ComboBox to allow custom text input. Heading labels excluded from dialog.
1.0 21.05.26 Initial release

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