Skip to content

Add Border And Title Block With Values

KaiUR edited this page Jun 3, 2026 · 2 revisions

Add Border And Title Block With Values

File: Drawing_Document_Scripts/Add_Border_And_Title_Block_With_Values.py
Version: 1.1
Document Type: CATDrawing (must be active)


Description

Draws an ISO 5457 border and an ISO 7200-inspired title block onto the background view of the active sheet in the currently open CATDrawing document. A dialog lets the user enter values for all title block fields before drawing begins. Entered values are written directly into the named text items. The paper size is read from the existing sheet — no new document is created.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython 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
  3. A dialog shows the current sheet name and size — enter values for the title block fields
  4. Click OK — the border and title block are drawn with the entered values
  5. The script returns to the main view when complete

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 dialog title shows the active sheet name and size as a reminder
  • The script operates on the first sheet in the drawing
  • The drawing is left unsaved — save manually after reviewing
  • The console reports how many of the 10 fields were populated
  • To create a brand-new drawing with values instead, see Create Drawing 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