public void SetSegmentedSheetName(SegmentedSheetName newSegmentedFileName) { segmentedFileName = newSegmentedFileName; SetExportName(); NotifyPropertyChanged(nameof(SheetNumber)); NotifyPropertyChanged(nameof(FullExportName)); }
private void Init( ViewSheet viewSheet, Document document, SegmentedSheetName sheetName, Manager scx) { doc = document; sheet = viewSheet; segmentedFileName = sheetName; verified = false; validPrintSettingIsAssigned = false; ExportDirectory = scx.ExportDirectory; sheetNumber = viewSheet.get_Parameter( BuiltInParameter.SHEET_NUMBER).AsString(); sheetDescription = viewSheet.get_Parameter( BuiltInParameter.SHEET_NAME).AsString(); projectNumber = document.ProjectInformation.Number; width = 841; height = 594; scale = string.Empty; scaleBarScale = string.Empty; NorthPointVisible = null; pageSize = string.Empty; id = viewSheet.Id; ForceDate = scx.ForceRevisionToDateString; forceRasterPrint = UseRasterPrinting(Manager.ForceRasterPrintParameterName); useDateForEmptyRevisions = scx.UseDateForEmptyRevisions; UpdateRevision(false); SetExportName(); }
public ExportSheet( ViewSheet sheet, Document doc, SegmentedSheetName fileNameTemplate, bool verifyOnCreation, Manager scx) { Init(sheet, doc, fileNameTemplate, scx); if (verifyOnCreation) { UpdateSheetInfo(); } }
public Manager(UIDocument uidoc) { Doc = uidoc.Document; UIDoc = uidoc; fileNameScheme = null; exportDirectory = Constants.DefaultExportDirectory; ConfirmOverwrite = true; activeDoc = null; allViewSheetSets = GetAllViewSheetSets(Doc); allSheets = new ObservableCollection <ExportSheet>(); fileNameTypes = new List <SegmentedSheetName>(); postExportHooks = new Dictionary <string, PostExportHookCommand>(); exportFlags = ExportOptions.None; LoadSettings(); SetDefaultFlags(); PopulateSheets(allSheets); FixAcrotrayHang(); }