Greetings!
I have an older macro called DocPropPainter which came from aSWVAR. Among other things, it will copy the Annotation Fontsina source part template, and set the corresponding fonts in atargetpart file. However, SW 2007 seems to have added twonewAnnotation Fonts: Detail View Label, and Section viewLabel. By examining the existing code, and referring to SW2007 APIHelp, I have unsuccessfully tried the following code forDetailView Label (and similarly for Section View Label, exceptwith"Section" in place of "Detail") :
Dim vDetailingDetailLabelTextFormat As Object
Set vDetailingDetailLabelTextFormat=swModelsource.GetUserPreferenceTextFormat(swDetailingDetailLabelTextFormat)
CallswModelTarget.SetUserPreferenceTextFormat(swDetailingDetailLabelTextFormat,vDetailingDetailLabelTextFormat)
Do I have the calls correct? And is there somethingelse thatI am missing? Thanks.
DaveSolidworksApi macros






I have an older macro called DocPropPainter which came from aSWVAR. Among other things, it will copy the Annotation Fontsina source part template, and set the corresponding fonts in atargetpart file. However, SW 2007 seems to have added twonewAnnotation Fonts: Detail View Label, and Section viewLabel. By examining the existing code, and referring to SW2007 APIHelp, I have unsuccessfully tried the following code forDetailView Label (and similarly for Section View Label, exceptwith"Section" in place of "Detail") :
Dim vDetailingDetailLabelTextFormat As Object
Set vDetailingDetailLabelTextFormat=swModelsource.GetUserPreferenceTextFormat(swDetailingDetailLabelTextFormat)
CallswModelTarget.SetUserPreferenceTextFormat(swDetailingDetailLabelTextFormat,vDetailingDetailLabelTextFormat)
Do I have the calls correct? And is there somethingelse thatI am missing? Thanks.
DaveSolidworksApi macros