Exemplo n.º 1
0
 public void SetSegmentedSheetName(SegmentedSheetName newSegmentedFileName)
 {
     segmentedFileName = newSegmentedFileName;
     SetExportName();
     NotifyPropertyChanged(nameof(SheetNumber));
     NotifyPropertyChanged(nameof(FullExportName));
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public ExportSheet(
     ViewSheet sheet,
     Document doc,
     SegmentedSheetName fileNameTemplate,
     bool verifyOnCreation,
     Manager scx)
 {
     Init(sheet, doc, fileNameTemplate, scx);
     if (verifyOnCreation)
     {
         UpdateSheetInfo();
     }
 }
Exemplo n.º 4
0
 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();
 }