Skip to content

Create Drawing Border And Title Block With Values

KaiUR edited this page Jun 3, 2026 · 2 revisions

Create Drawing Border And Title Block With Values

File: Drawing_Document_Scripts/Create_Drawing_Border_And_Title_Block_With_Values.py
Version: 1.1
Document Type: None required (creates a new CATDrawing)


Description

Creates a new CATDrawing document and populates its background view with a standard ISO 5457 border and an ISO 7200-inspired title block. Two dialogs are shown in sequence: the first to select the paper size, the second to enter values for all title block fields. Entered values are written directly into the named text items so the drawing is ready to use immediately.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Required
Open document None required

Usage

  1. Run the script from any open CATIA session
  2. Dialog 1 — select the paper size
  3. Dialog 2 — enter values for each title block field (leave blank to skip)
  4. Click OK — a new CATDrawing is created with the border, title block, and populated values

Paper Sizes

Option Width (mm) Height (mm)
A0 Landscape 1189 841
A1 Landscape 841 594
A2 Landscape 594 420
A3 Landscape 420 297
A4 Landscape 297 210
A4 Portrait 210 297

Title Block Fields

Field Internal name
Company Name Company
Title Title
Part Number Part_Number
Material Material
Scale Scale
Sheet Sheet
Revision Revision
Drawn By Drawn_By
Date Date
Approved Approved

Fields left blank in the dialog remain empty. They can be updated later using Update Title Block From Properties.


Notes

  • The new drawing is left unsaved — save it manually after reviewing
  • The console reports how many of the 10 fields were populated
  • To add a border to an existing drawing instead of creating a new one, see Add Border And Title Block With Values

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