Sheet properties could be modified using Sheet.GetProperties and DrawingDoc.SetupSheet6. This allows reach such properties as: (Name, PaperSize, TemplateIn, Scale1, Scale2, FirstAngle, TemplateName, Width, Height, PropertyViewName, RemoveModifiedNotes, ZoneLeftMargin, ZoneRightMargin, ZoneTopMargin, ZoneBottomMargin, ZoneRow, ZoneCol)
Unfortunately, there are no accessors to "Next view label" via API.
Also API allows to modify document specific properties (SetUserPreferenceString ). But need for you properties are not present there as well. 2012 SOLIDWORKS API Help - System Options and Document Properties
boolstatus = swModel.Extension.SetUserPreferenceString (swUserPreferenceStringValue_e.swDetailingNextDatumFeatureLabel, swUserPreferenceOption_e.swDetailingNoOptionSpecified, "D")
for next datum label.
Could not find for 'Next View Label' though.
If you want to open dialogue box then try
swModel.Extension.RunCommand swCommands_e.swCommands_Sheet_Tab_Popup_Properties, ""
Thank you all for your suggestions.
The final result here is to problematically rename all the views in the drawing, then set the "Next View Label" correctly. If I leave the next label unchanged, the user either needs to update it manually, or remember to re-run the macro.
I tried the swModel.Extension.RunCommand swCommands_e.swCommands_Sheet_Tab_Popup_Properties, "" command, but it opens the "Sheet Properties" modally. The macro stops till the "Sheet Properties" dialog is closed.
All thoughts are appreciated...