xarial / codestack

Library of SOLIDWORKS API, SOLIDWORKS PDM API, VBA and Desktop code examples, applications macros and tutorials.
https://www.codestack.net
MIT License
195 stars 71 forks source link

Solidworks - Change Sketch Text Font size via VBA #36

Open cadthinker01 opened 3 years ago

cadthinker01 commented 3 years ago

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?

Loebotomy commented 2 years ago

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"

cadthinker01 commented 2 years ago

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: @.***>