Hello
After searching for a long time in vain, I decided to post my problem, I hope you can help me.
I made a macro that saves my drawings in e-drawing. So far no problem, the problem is that when there are several sheets to save Solidworks displays a popup window asking me which sheets I want to save. I have a large amount of plan to export so, I would like it to happen in batch without the need for intervention.
Is there a way to delete this window a bit like an "Application.DisplayAlerts=False" like in excel?
Thank you in advance for your help.
PS: I don't want to go through the task scheduler because my macro does a small operation before exporting to edrawing
Hello
If you disable alerts, your code will no longer work since it does not manage sheets.
To do this, you need to use the "SaveAs" method: http://help.solidworks.com/2015/english/api/sldworksapi/SOLIDWORKS.Interop.sldworks~SOLIDWORKS.Interop.sldworks.IModelDocExtension~SaveAs.html
Then in the "Options" settings, indicate "swSaveAsOptions_UpdateInactiveViews"
As shown here: http://help.solidworks.com/2015/english/api/swconst/SOLIDWORKS.Interop.swconst~SOLIDWORKS.Interop.swconst.swSaveAsOptions_e.html
See you
Hello remrem,
What you offer only activates all the sheets when I save, but the window still shows up
http://help.solidworks.com/2012/English/api/swconst/SO_Messages.htm
Hello .PL,
Unfortunately no, I've already looked in this direction.
Thank you for responding.
I'm starting to despair, I have the impression that there is no solution :-s
In fact this should work:
https://forum.solidworks.com/thread/9127
See also:
http://www.forum-cao-3d.fr/api-questions/cotes-pilotees-sans-validation-t8961.html
And:
http://www.forum-cao-3d.fr/api-questions/cotes-pilotees-sans-validation-t8961.html
Yeeesss it works thank you very much, what a time saver!
So I used the following function:
Part.SaveAs "NewName.EDRW", swSaveAsVersion_e.swSaveAsCurrentVersion, swSaveAsOptions_SaveReferenced+swSaveAsOptions_Silent, Nothing, nErrors, nWarnings
it works without a hitch Thank you.PL