Hello everyone, I have a piece of code that can run in SolidWorks 2017 and 2025. Why does it have no effect when I test it in 2023?
Sub Main()
Set swApp = Application.SldWorks
Set swDocument = swApp.ActiveDoc
Set swModelView = swDocument.ActiveView
swModelView.FrameState = swWindowState_e.swWindowMaximized
swDocument.SetUserPreferenceToggle swUserPreferenceToggle_e.swDisplayBendLines, False
end sub
