ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
BHBjorn Hulman15/09/2017

Hi all,

I'm trying to create 1 drawing template that formats itself depending on the process of manufacture, client (logos and unique identifier fields) and sheet size (A3, A2, A1)

I have this working by replacing sheet formats and drafting standards depending on requirements. The template has a rev table, which is set to use document font settings. However, when the sheet size changes, the text size does something interesting which I can fix manually by selecting the table, unselecting use document font, then reselecting it. However I can't VBA code to do this.

Mainly I've been trying 2017 SOLIDWORKS API Help - SetTextFormat Method (ITableAnnotation)

But my novice level of VBA just can't get it to work.

Ideally I'd have this as a sub which I can call when the sheet size has changed.

Your help is greatly appreciated.