Skip to content

Add Border And Title Block

KaiUR edited this page Jun 3, 2026 · 3 revisions

Add Border And Title Block

File: Drawing_Document_Scripts/Add_Border_And_Title_Block.py
Version: 1.2
Document Type: CATDrawing (must be active)


Description

Draws an ISO 5457 border and an ISO 7200-inspired title block directly onto the background view of the active sheet in the currently open CATDrawing document. No new document is created. The paper size and orientation are read from the existing sheet.

Each data field is created as a named, empty text item so that Update Title Block From Properties can populate values from linked model properties.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Not required
Open document CATDrawing must be active

Usage

  1. Open the CATDrawing you want to add the border to and make it the active document
  2. Run the script — the border and title block are drawn immediately with no dialog
  3. The script returns to the main view when complete

Border

ISO 5457 margins applied to the existing sheet size:

Edge Margin
Left (binding) 20 mm
Top 10 mm
Right 10 mm
Bottom 10 mm

Title Block Layout

180 mm wide × 55 mm tall, placed at the lower-right corner of the border.

Row Height Columns Named fields
Drawn By / Date / Approved 10 mm 60 / 60 / 60 mm Drawn_By, Date, Approved
Scale / Sheet / Revision 10 mm 60 / 60 / 60 mm Scale, Sheet, Revision
Part Number / Material 10 mm 120 / 60 mm Part_Number, Material
Title 15 mm Full width Title
Company Name 10 mm Full width (centred) Company

Notes

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