几何尺寸与公差论坛

 找回密码
 注册
查看: 747|回复: 0

【转帖】error warning messages in solidworks

[复制链接]
发表于 2009-4-13 10:43:25 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 01:33 , Processed in 0.034063 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表