几何尺寸与公差论坛

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

【转帖】another sw api bug

[复制链接]
发表于 2009-4-13 08:52:21 | 显示全部楼层 |阅读模式
another sw api bug
found yet another bug in sw. when opening a document and passing in the silent option, a drawing document with an embedded activex excel sheet starts running the updating activex object command.
the problem is, if you run any api code to open this file, do something and then close it before the update is completed, it completely crashes solidworks. on top of this i can find no options to check the opened drawing or any document to see whether such an update is taking place.
i think we really need a place to report all of these bugs, or find someone with a direct line to sw. maybe a new section on my forum purely for bugs?
luke,
do you know if the updating activex object fires a regennotify event? if it does then you can use monitor the regenpostnotify event and save after it has been regenerated.
wayne matus
texas engineering systems
i haven't checked as i don't handle event notifications no need to as of yet for this project. i will add event handling later and let you know. thanks for the idea!
luke,
i did some testing and regennotify event is not a solution. it is not fired when you open a drawing with activex that needs updating. i also looked at fileopenpostnotify and it is fired before the activex is updated. not sure if there is a solution for this problem.
wayne matus
texas engineering systems
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 23:46 , Processed in 0.034236 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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