Hello,
I have taken an existing SW macro from somewhere online and tweaked it a little to suit my needs. When you run the macro a window pops up that asks you to navigate to a folder. Once selected, every drawing file in the folder is opened one by one. A sheet format (specified in the macro) is then applied to every sheet in the drawing. The drawing is then saved and closed.
The only problem with this is that the scale of the drawing elements seems to revert to 1:1 every time, which I imagine is because of the highlighted text:
swDraw.SetupSheet4 vSheetName(0), swDwgPaperA3size, 12, 1, 1, False, sTemplatePath & "FPHC_A3.slddrt", 0#, 0#, "Default"
Would anyone be able to tell me if it's possible to keep the original sheet scale on each sheet? (And how to do it, obviously )
Macro file is attached!
Many thanks
SolidworksApi macros