2 Replies Latest reply on Feb 1, 2018 9:28 AM by Teyfik Eren Erez

    Using DocumentVisible problem with ExportToDWG

    Teyfik Eren Erez

      Hi everyone,

      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?


      My code:

      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)

      4    ....

      5    ....

      6    swModel.ExportToDWG(...)

      Have a good day.