Can't change Document Property
Posted: Mon Aug 21, 2023 12:57 pm
Under Options->Document Properties->Drawing Sheets->Sheet format for new sheets,
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
The first two SET command work properly, but the last two won't complile. I get the "Method or data member not found" for "swDrawingSheetUseDifferentSheetFormat"
Thank you for your help.
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.