×
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

How to format the texts belonging to the titleblock

How to format the texts belonging to the titleblock

How to format the texts belonging to the titleblock

(OP)
i'm trying to force a macro to set up desired font for a titleblock but seems like it doesn't work.
here's the code (changing font setting doesn't work in this macro)

Sub CATFormatTBText(textName As String, anchorPosition As String, fontSize)
'-------------------------------------------------------------------------------
'How to format the texts belonging to the titleblock
'----------------------------------------------------------------?--------------
Text.Name = textName
Text.SetFontName 0, 0, "Century Gothic (TrueType)"
Text.SetFontName 0, 0, "Century Gothic (TrueType)"
call Text.SetFontName ( 0, 0, "Century Gothic (TrueType)")
Text.AnchorPosition = anchorPosition
Text.SetFontSize 0, 0, fontSize '* A4TextFmt

End Sub

this works with another macros but with attached macro this code doesn't work.
what's the problem? two different titleblocks created from the same master macro but in one case i can control font settings through the
macro in other case i cant.

RE: How to format the texts belonging to the titleblock

(OP)
already replaced but i want to force output desired font for a titleblock thru the macro. as for now no matter what font defined
in macro when i run titleblock it takes font setting from standard.

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