public void PlotSettingsPlotViewName() { // ensure invalid values aren't allowed Assert.Throws <InvalidOperationException>(() => new DxfPlotSettings(null)); Assert.Throws <InvalidOperationException>(() => new DxfPlotSettings("")); // ensure valid values are allowed _ = new DxfPlotSettings("some value"); }
public Class1030(DxfModel model) { DxfVersion acadVersion = model.Header.AcadVersion; if (acadVersion < DxfVersion.Dxf15) { this.short_4 = DxfHatch.smethod_2(model.Classes).ClassNumber; this.short_3 = DxfLwPolyline.smethod_2(model.Classes).ClassNumber; this.short_9 = DxfClass.smethod_19(model.Classes).ClassNumber; } if (acadVersion < DxfVersion.Dxf18) { this.short_8 = DxfClass.smethod_15(model.Classes).ClassNumber; this.short_7 = DxfClass.smethod_16(model.Classes).ClassNumber; } this.dxfClass_0 = DxfClass.smethod_0(model.Classes); this.dxfClass_1 = DxfDataTable.smethod_2(model.Classes); this.dxfClass_5 = DxfClass.smethod_1(model.Classes); this.short_0 = DxfClass.smethod_20(model.Classes).ClassNumber; this.short_1 = DxfClass.smethod_21(model.Classes).ClassNumber; this.dxfClass_6 = DxfClass.smethod_5(model.Classes); this.dxfClass_14 = DxfClass.smethod_2(model.Classes); this.dxfClass_10 = DxfClass.smethod_6(model.Classes); this.dxfClass_22 = DxfVisualStyle.smethod_2(model.Classes); this.dxfClass_23 = DxfWipeoutVariables.smethod_2(model.Classes); this.dxfClass_11 = DxfClass.smethod_7(model.Classes); this.short_6 = this.dxfClass_11.ClassNumber; this.short_2 = this.dxfClass_6.ClassNumber; this.dxfClass_7 = DxfMLeader.smethod_2(model.Classes); this.dxfClass_8 = DxfMLeaderStyle.smethod_3(model.Classes); this.dxfClass_9 = DxfMLeaderObjectContextData.smethod_16(model.Classes); this.short_5 = this.dxfClass_10.ClassNumber; this.dxfClass_12 = DxfClass.smethod_3(model.Classes); this.dxfClass_16 = DxfClass.smethod_10(model.Classes); this.dxfClass_17 = DxfClass.smethod_11(model.Classes); this.dxfClass_18 = DxfClass.smethod_14(model.Classes); this.dxfClass_15 = DxfClass.smethod_12(model.Classes); this.dxfClass_19 = DxfClass.smethod_17(model.Classes); this.dxfClass_20 = DxfClass.smethod_18(model.Classes); this.dxfClass_21 = DxfTableContent.smethod_2(model.Classes); this.dxfClass_2 = DxfField.smethod_2(model.Classes); this.dxfClass_3 = DxfFieldList.smethod_2(model.Classes); this.dxfClass_4 = DxfGeoData.smethod_2(model.Classes); this.dxfClass_13 = DxfPlotSettings.smethod_2(model.Classes); this.class1032_0 = new Class1030.Class1032(model); this.class1031_0 = new Class1030.Class1031(model); }
public void NullPlotSettingsName() { // artificially create a plot settings object without a plot view name var file = new DxfFile(); file.Clear(); var plotSettings = new DxfPlotSettings(); // ensure it doesn't end up as a view file.Objects.Add(plotSettings); Assert.Equal(0, file.Views.Count); file.Normalize(); Assert.Equal(0, file.Views.Count); // ensure that it ends up as a view when it has a valid name plotSettings.PlotViewName = "plot view name"; file.Normalize(); Assert.Equal(plotSettings.PlotViewName, file.Views.Single().Name); }
public void Visit(DxfPlotSettings plotSettings) { }
public void Visit(DxfPlotSettings plotSettings) { this.bool_0 = true; }