7 Replies Latest reply on Jun 18, 2015 2:05 PM by Adam Hoffman

    swOpenDocOptions_Silent doesn't work with suppressed components

    Mike Campbell

      The snippet below works as expected with unsuppressed components but suppressed components are visible when opened. I'm looking for any explanation/solution.

       

      If InStr(1, sFileNameAndPath, ".sldasm") = 0 And InStr(1, sFileNameAndPath, ".SLDASM") = 0 Then

          Set swIndividualItem = swApp.OpenDoc6(sFileNameAndPath, swDocPART, swOpenDocOptions_Silent, strRefCfg, swFileError, swFileWarning)

      Else

          Set swIndividualItem = swApp.OpenDoc6(sFileNameAndPath, swDocASSEMBLY, swOpenDocOptions_Silent, strRefCfg, swFileError, swFileWarning)

      End If