|
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 |
|