I am trying to change the settings using the methods documented here: https://help.solidworks.com/2021/englis ... Sheets.htm
I have done this for other settings successfully, but just can't get it to work for these settings. Here's an example
Code: Select all
Set ModelDocExtension = swModel.Extension
BoolStatus = ModelDocExtension.SetUserPreferenceDouble(swUserPreferenceDoubleValue_e.swDetailingDimBreakGap, swUserPreferenceOption_e.swDetailingNoOptionSpecified, 0)
BoolStatus = ModelDocExtension.SetUserPreferenceToggle(swUserPreferenceToggle_e.swDetailingDimBreakAroundArrow, swUserPreferenceOption_e.swDetailingNoOptionSpecified, 0)
BoolStatus = ModelDocExtension.SetUserPreferenceToggle(swUserPreferenceToggle_e.swDrawingSheetUseDifferentSheetFormat, swUserPreferenceOption_e.swDetailingNoOptionSpecified, True)
BoolStatus = ModelDocExtension.SetUserPreferenceToggle(swUserPreferenceStringValue_e.swFileLocationsNewSheetFormat, swUserPreferenceOption_e.swDetailingNoOptionSpecified, SheetFormatP2)
Thank you for your help.