Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to format the texts belonging to the titleblock

Status
Not open for further replies.

JeniaL

Mechanical
Jun 3, 2014
547
IL
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.
 
 http://files.engineering.com/getfile.aspx?folder=aaee1f19-b8a5-48a2-a877-5f86d2fbaebb&file=A4_FRAME.zip
Replies continue below

Recommended for you

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top