I ask a question about documentVisible. I wrote standalone dwg conventer. If I add DocumentVisible command, ExportToDwg command will not work. If I delete 1. and 3. row(delete DocumentVisible command, ExportToDwg command will work. Now, program works very well(Actually I have been using since 2014). I want to hide Solidworks(swApp.Visible = false) while my program is working. How can I solve this problem?
1 swApp.DocumentVisible(False, swDocumentTypes_e.swDocPART)
2 swModel = swApp.OpenDoc6(filename, swDocumentTypes_e.swDocPART,1, configurationName, lngError, lngWarning)
3 swApp.DocumentVisible(True, swDocumentTypes_e.swDocPART)
Have a good day.