

The spacing values are divisors of the ISO A series paper size standard. The CATFrameStandard Sub procedure defines the length between two horizontal/vertical marks Cst_, computes the number of centring marks Nb_CM_, and computes the maximum Ruler lenght. Sub CATFrame()ĭim Cst_1 As Double 'Length (in cm) between 2 horinzontal marksĭim Cst_2 As Double 'Length (in cm) between 2 vertical marksĭim Nb_CM_H As Integer 'Number/2 of horizontal centring marksĭim Nb_CM_V As Integer 'Number/2 of vertical centring marksĭim Ruler As Integer 'Ruler length (in cm)ĬATFrameStandard Nb_CM_H, Nb_CM_V, Ruler, Cst_1, Cst_2ĬATFrameCentringMark Nb_CM_H, Nb_CM_V, Ruler, Cst_1, Cst_2ĬATFrameText Nb_CM_H, Nb_CM_V, Ruler, Cst_1, Cst_2 The frame -which is composed of a border, some centring marks, letters and a ruler- will enclose the drafts that we create from our products and assemblies. Set Text = Texts.Add("", GetWidth() - GetOffset(), GetOffset()) If Sheet.PaperSize = CatPaperA0 Or Sheet.PaperSize = CatPaperA1 Or ( Sheet.PaperSize = CatPaperUser And (GetWidth() > 594.

GetMacroID = "Drawing_Titleblock_theansweris27_EN"
CATIA V5 MACRO UPDATE
The reference text will also be used to check if the macro can make some actions like delete, update or resize on the existing Title Block. The reference point will tell other title block macros that there’s already a title block created. The default offset value is of 10 mm, while for sheets bigger than a DIN A2, this values grows to 20 mm. The next step is to create the frame’s overall dimensions and reference point. Set GeomElems = DrwView.GeometricElements 'How to init the dialog and create main objects A simplified version of this function can be a Sub procedure with just the following: Sub CATinit() This function will initialize the dialog and create main objects. When creating the Title Block, the first thing to do is activate the sheet and the view calling the CATInit() function.
