remove dialog boxs

I want to remove these dialog boxs while my application is running.I want it will be automatically click "OK" and "Yes" button on these dialog boxs and it does not show to the user while my application is running.How can i resolve it in API programming by C#.net language.

SolidworksApi macros
Answers 1
ST
ST 2013-10-04 Best Answer

Presumably you are using OpenDoc6 to open those files?

If so, just use swOpenDocOptions_e.swOpenDocOptions_Silent

For saving, there is also: ModelDoc2.Save3(swSaveAsOptions_e.swSaveAsOptions_Silent,errors,warnings)