LINK SCALE IN TITLE BLOCK
LINK SCALE IN TITLE BLOCK
(OP)
Hi everyone,
You will have to excuse my ignorance on CATIA macro writing. I am trying to link my title block macro so that my scale size text is linked to the drawing front view scale in the properties dialog box. The rest of the title block info is pulled from the properties of the model. TitleBlock_Text_Scale_1 is the name of the text for the scale size. Any help with this would be great.
You will have to excuse my ignorance on CATIA macro writing. I am trying to link my title block macro so that my scale size text is linked to the drawing front view scale in the properties dialog box. The rest of the title block info is pulled from the properties of the model. TitleBlock_Text_Scale_1 is the name of the text for the scale size. Any help with this would be great.





RE: LINK SCALE IN TITLE BLOCK
Look at my response on this thread: http://www.eng-tips.com/viewthread.cfm?qid=384304
After you create the text box for the scale, right-click in the text box and select attribute link and select the top level of the drawing. Select "scale" in the list of parameters.
Drew Mumaw
www.textsketcher.com
www.drewmumaw.com
RE: LINK SCALE IN TITLE BLOCK
I AM WANTING IT TO AUTOMATICALLY PULL IN THE SCALE WHEN THE MACRO IS RAN,AS IT DOES THE REST OF THE INFO, THAT CREATES THE TITLE BLOCK.
RE: LINK SCALE IN TITLE BLOCK
CODE --> catvba
Sub CATMain() Dim drawingDocument1 As DrawingDocument Set drawingDocument1 = CATIA.ActiveDocument Dim drawingSheets1 As DrawingSheets Set drawingSheets1 = drawingDocument1.Sheets Dim drawingSheet1 As DrawingSheet Set drawingSheet1 = drawingSheets1.Item("Sheet.1") Dim drawingViews1 As DrawingViews Set drawingViews1 = drawingSheet1.Views Dim drawingView1 As DrawingView Set drawingView1 = drawingViews1.Item("Main View") Dim drawingTexts1 As DrawingTexts Set drawingTexts1 = drawingView1.Texts Dim drawingText1 As DrawingText Set drawingText1 = drawingTexts1.GetItem("TitleBlock_Text_Scale_1") drawingText1.Text = drawingSheet1.Scale2 End SubDrew Mumaw
www.textsketcher.com
www.drewmumaw.com
RE: LINK SCALE IN TITLE BLOCK