what I want to check and would be even better if I could auto correct things like the fractional display or what layer things like centerlines are on, things define by the drafting standard that we have modified slightly so our drafting standard is ANSI-MODIFIED. another thing I would like to include in this automation is reloading the sheet format since we have modified it from our original and if we update/revise a drawing we want this update to be reflected by this new format. any ideas of how we can do this?
thank you
SolidworksDesign Checker
Create your modified standard and then using a macro you can update it for all older drawings along with sheet format. All with a macro
that's pretty much what I thought and feared. is there an existing macro like that out there already by chance? none of us here are familiar enough with VBA to create a macro.
There are two different macros for each work (updated standard and replace sheet format) and can be combined into one macro.
I would get them ready tomorrow for a test.
BTW are the drawing single sheet or multiple? Also are they different sizes too, like A, B, C, etc.??
that would be great, we have both single and multiple sheets that are all size B or 11x17. thank you very much.
This means that sheet format is of one type only (makes the job easier)
OK try this macro. Please back up your data before use.
But before running the macro you need to change 3 things as listed below.
Open SolidWorks and go to Tools > Macro > Edit and open the attached .SWP file.
Now change follwoing three locations listed in bold. Make sure you've them in quotes as shown.
Const sStandardPath As String = "D:\SolidWorks\Standard\ANSI-MODIFIED.sldstd"
Const sTemplatePath As String = "D:\SolidWorks\sheet formats\" (make sure there is \ at the end as shown)
Const sTemplateName As String = "XYZ-B.slddrt"
I'm almost there I think. when I check active document it is asking me to browse for folder, what folder is it wanting?
ok I think I got it, I browsed to the folder with the macro in it (I thought by including the path in the check it would know this). but when I did that it didn't do anything.
Tom a quick question before I answer your one:
Did you updated the macro as I stated above? If yes then you simply need to run the macro with no file open. Then macro will ask to select a folder. The folder should contain drawings for which you're looking to update standard and sheet format. After that macro will open every drawing in the folder and update the standard and sheet format. So basically this is a batch updating of drawings.
If you need only for current active drawing, I can get the macro ready to do so.
oh well that explains it. yeah what we really need is for it to only update the currently opened drawing. this helps us to alert the shop whether the whole drawing has been updated to the current drawing standard or not.
Can you try this one. Make sure to update the path for drafting standard and sheet format location plus name of the sheet format.
I'm getting the "There is no active Part/Assembly document" error msg. I tried it both from the design checker and also just running the macro but both times I got this msg.
by the way, I tried the batch macro on a few I had set aside that needed this done and the macro worked perfectly for those as far as correcting the standard but it didn't swap the sheet format with the new one.
Sorry for a wrong line in the macro. Can you please try the fixed one.
Also Can you attach the sheet format, one drawing and your updated macro to test/check.
oops, it attached to the wrong msg, the latest version did update the standard but did not update the sheet format.
Tom I've made some changes, can you try the attached macro.
Deepak, that worked perfectly. I thank you very much for getting this figured out for us.