查看单个帖子
旧 2009-04-13, 10:43 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】error warning messages in solidworks

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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)