Hi all
Any VBA guru's out there?
I would like to be able to programatically set specific properties in a drawing document using VBA. Specific Document Properties such as Text size and font of Dimensions, Notes, Arrow size, leader length, etc.
I've been scouring over the Solidworks Object Model, for weeks (in my spare time), but not been able to find a reference to the document property pages.
for instance - From the menu: Tools - Options - Document Properties
- Units
- Dimensions - bent leader length
- Arrows - size
- Annotations Font - Note
- Annotations Font - Dimension
- Annotations Font - Tables
The idea is to open a series of existing drawings to update and revise arrow size and font etc. of notes baloons and dimensions all by automation. Thus to bring a batch of old drawings to a common standard.
I have been succesfull at removing then recreating custom properties and repopulating them with prefferred information. Also have been able to replace the drawing sheet with a revised one containing revisions to the title block.
Accessing the docment properties has me stumped and thinking that they are not exposed to automation.
Any help is greatly appreciated.
BW