コード例 #1
0
 internal Class703()
 {
     this.class597_0  = new Class597();
     this.class1057_0 = new Class1057();
     this.class929_0  = new Class929();
     this.class868_0  = new Class868();
     this.class653_0  = new Class653();
     this.ushort_0    = 0xa5ec;
     this.nfibEnum_0  = NFibEnum.Word2003;
     this.ushort_11   = 0xa4;
     this.ushort_1    = 0x6021;
     this.short_0     = 0x409;
     this.bool_2      = true;
     this.bool_8      = true;
     this.ushort_2    = 0xbf;
     this.bool_16     = true;
     this.ushort_5    = 14;
     this.ushort_6    = 0x5741;
     this.ushort_7    = 0x4e;
     this.ushort_8    = BookmarkStart.b("Գܵᘷ༹਻ွ瀿汁瑃", 14)[0] | (BookmarkStart.b("Գܵᘷ༹਻ွ瀿汁瑃", 14)[2] << 8);
     this.ushort_9    = BookmarkStart.b("Գܵᘷ༹਻ွ瀿汁瑃", 14)[4] | (BookmarkStart.b("Գܵᘷ༹਻ွ瀿汁瑃", 14)[6] << 8);
     this.short_2     = 0x409;
     this.ushort_10   = 0x16;
     this.int_28      = 0xfffff;
     this.int_25      = 0xfffff;
     this.int_22      = 0xfffff;
     this.int_12      = 0xc73e;
     this.int_13      = 0xc73e;
 }
コード例 #2
0
 internal Class703(BinaryReader A_0)
 {
     this.class597_0  = new Class597();
     this.class1057_0 = new Class1057();
     this.class929_0  = new Class929();
     this.class868_0  = new Class868();
     this.class653_0  = new Class653();
     this.method_2(A_0);
 }
コード例 #3
0
        public void Write(bool validate)
        {
            Class809.smethod_0(Enum15.const_3);
            DxfMessage[] messages;
            if (validate && !this.dxfModel_0.Validate(out messages))
            {
                throw new DxfException("Cannot write invalid model", messages);
            }
            if (this.dxfModel_0.Header.AcadVersion < DxfVersion.Dxf13 || this.dxfModel_0.Header.AcadVersion > DxfVersion.Dxf27)
            {
                throw new NotSupportedException("Currently DwgWriter only supports writing versions 13, 14, 15, 18, 21, 24 and 27.");
            }
            this.dxfModel_0.method_28(new Class1070(this.dxfModel_0, FileFormat.Dwg, this.dxfVersion_0));
            DxfScale currentAnnotationScale = this.dxfModel_0.Header.CurrentAnnotationScale;

            this.dxfModel_0.Header.CurrentAnnotationScale = (DxfScale)null;
            switch (this.dxfVersion_0)
            {
            case DxfVersion.Dxf13:
                Class745.Write(this.stream_0, this.dxfModel_0);
                break;

            case DxfVersion.Dxf14:
                Class722.Write(this.stream_0, this.dxfModel_0);
                break;

            case DxfVersion.Dxf15:
                Class653.Write(this.stream_0, this.dxfModel_0);
                break;

            case DxfVersion.Dxf18:
                new Class499(this.stream_0, this.dxfModel_0).Write();
                break;

            case DxfVersion.Dxf21:
                Class921.Write(this.stream_0, this.dxfModel_0);
                break;

            case DxfVersion.Dxf24:
                new Class499(this.stream_0, this.dxfModel_0).Write();
                break;

            case DxfVersion.Dxf27:
                new Class500(this.stream_0, this.dxfModel_0).Write();
                break;
            }
            this.dxfModel_0.Header.CurrentAnnotationScale = currentAnnotationScale;
            if (!this.bool_0)
            {
                return;
            }
            this.stream_0.Close();
        }