codestack icon indicating copy to clipboard operation
codestack copied to clipboard

Solidworks - Change Sketch Text Font size via VBA

Open cadthinker01 opened this issue 4 years ago • 2 comments

Is there a way to change the font size of sketch text in a Solidworks part model using vba code. I was hoping to just select the sketch in the tree containing the sketch text then run the code to change the font size and font name. I need to do this for over 1000 models to meet my company's new font parameters. Can anyone help?

cadthinker01 avatar Jan 27 '21 09:01 cadthinker01

The following examples/discussions might help you:

https://help.solidworks.com/2017/English/api/sldworksapi/Replace_Sketch_Text_Example_VB.htm

Search the SolidWorks (3DExperience) forums for "VBA: Need Help editing/formatting SketchText inside a Selection Set"

Loebotomy avatar Jan 11 '22 15:01 Loebotomy

Loebotomy - Thanks for your help, the example you referenced was what I needed. 

-----Original Message----- From: Loebotomy @.> To: xarial/codestack @.> Cc: cadthinker01 @.>; Author @.> Sent: Tue, Jan 11, 2022 10:17 am Subject: Re: [xarial/codestack] Solidworks - Change Sketch Text Font size via VBA (#36)

The following examples/discussions might help you:https://help.solidworks.com/2017/English/api/sldworksapi/Replace_Sketch_Text_Example_VB.htmSearch the SolidWorks (3DExperience) forums for "VBA: Need Help editing/formatting SketchText inside a Selection Set"— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

cadthinker01 avatar Jan 27 '22 07:01 cadthinker01