×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

LINK SCALE IN TITLE BLOCK

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.

RE: LINK SCALE IN TITLE BLOCK

(OP)
THANKS DREW,
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 Sub 

Drew Mumaw
www.textsketcher.com
www.drewmumaw.com

RE: LINK SCALE IN TITLE BLOCK

(OP)
thanks, now I just have to figure out how to integrate it in to the title block macro so that it pulls this in instead of the default 1:1

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources