Sub main()
Dim Now As Boolean
Dim StdFont As Object
Set swApp = Application.SldWorks ' Attach to SolidWorks
Set Document = swApp.ActiveDoc ' Get active document
If Not Document Is Nothing Then ' A Document is open
FileTyp = Document.GetType ' Get document type
If FileTyp = swDocDRAWING Then ' If it is a drawing continue else skip ahead
SheetNames = Document.GetSheetNames
'*********** Set new defaults for Font settings on all annotation types **************************
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingDetailTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingDetailTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingBalloonTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingBalloonTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingDimensionTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingDimensionTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingNoteTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingNoteTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingGeneralTableTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingGeneralTableTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingSectionTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingSectionTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingSurfaceFinishTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingSurfaceFinishTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingWeldSymbolTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingWeldSymbolTextFormat, StdFont)
Set StdFont = Document.GetUserPreferenceTextFormat(swDetailingViewArrowTextFormat)
StdFont.TypeFaceName = "Helvetica"
StdFont.CharHeightInPts = "10"
Now = Document.SetUserPreferenceTextFormat(swDetailingViewArrowTextFormat, StdFont)
End Sub
[code]