|
error & warning messages in solidworks
i am developing a batch utility to check the feature or mate errors in models and drawings. while opening the models there are few occasions wherein an error message getting displayed with 'yes' or 'no' buttons. due to this the program stops there for the user to click the 'yes or 'no'. i tried opening the model in silent mode. but still the messages are getting displayed.
is there a way to avoid displaying those error/warning messages in through api?
edited: 07/25/2008 at 02:27 pm by chandrasekaran subramanian
there are certain errors that do not get suppressed that i have problems with too such as printing and other minor things. i think with the warning being so multi-contextual and multi-threaded it is very hard for sw to capture and deal with them all correctly. i have found no other solutions for these warnings either.
i think we can use windows api function called postquitmessage() to quit the message. i have not tried that in my project. but i beleive we can do that.
yes you can, but its actually determining that there is a message coming from solidworks that is out-of-thread, and then gettings its handle in code. thats where the problem lies. not a simple little task as such |
|