AnsweredAssumed Answered

Problem with wireframe model display (SW 2015 & 2017)

Question asked by Jedrzej Kurkiewicz on Sep 25, 2017
Latest reply on Sep 26, 2017 by Amen Allah Jlili

Hello All;

 

I have used a macro to apply the same color as part to wireframe (SW 2015 & 2017).

The macro worked correctly up to a couple of days ago.

I use below code to change the setting in a document options and right after using the macro the model display is ok, but when I reopen the part it loose "colored" wireframe appearance.

 

Macro code (copied from this thread):

Dim swApp As Object

Sub main()

Dim swApp As SldWorks.SldWorks

    Dim swModel As SldWorks.ModelDoc2

    Dim bstatus As Boolean

    Set swApp = Application.SldWorks

    Set swModel = swApp.ActiveDoc

   

   

    bstatus = swModel.Extension.SetUserPreferenceToggle( _

        swUserPreferenceToggle_e.swColorsWireframeHLRShadedSame, _

        swUserPreferenceOption_e.swDetailingNoOptionSpecified, True)

       

Set swApp = Application.SldWorks

End Sub

 

When I do the same task manually, it works fine.

 

 

Can someone check if the problem also occurs on Your installation of SolidWorks or maybe anyone has an idea where could lies the problem?

 

 

 

Outcomes