public void Read(DxfReader r) { if (r.CurrentGroup.Code != 0) { throw new Exception("Unexpected group code " + (object)r.CurrentGroup.Code + "."); } if (r.CurrentGroup.Value as string != "ACDSRECORD") { throw new Exception("Unexpected group value " + r.CurrentGroup.Value + "."); } r.method_85(); while (r.CurrentGroup.Code != 0 && (r.CurrentGroup.Code != 101 && r.CurrentGroup != Struct18.struct18_0)) { switch (r.CurrentGroup.Code) { case 2: Class496 class496 = new Class496(); class496.Read(r); this.list_0.Add(class496); continue; case 90: this.uint_0 = (uint)(int)r.CurrentGroup.Value; r.method_85(); continue; default: r.method_85(); continue; } } }
public void Write(Class741 dataStore, DxfWriter w) { this.class741_0 = dataStore; w.Write(0, (object)"SECTION"); w.Write(2, (object)"ACDSDATA"); w.Write(70, (object)(short)2); w.Write(71, (object)(short)2); foreach (Class48 schema in dataStore.Schemas) { schema.Write(w); } foreach (KeyValuePair <ulong, List <Stream> > keyValuePair in (Dictionary <ulong, List <Stream> >)dataStore.method_0(Enum53.const_2)) { foreach (Stream stream in keyValuePair.Value) { Class1027 class1027 = new Class1027(); Class496 class496_1 = new Class496(); class496_1.Name = "AcDbDs::ID"; class496_1.DataType = Enum26.const_9; Class496 class496_2 = class496_1; class496_2.Data = new Struct18(320, (object)keyValuePair.Key); class1027.Columns.Add(class496_2); Class496 class496_3 = new Class496(); class496_3.Name = "ASM_Data"; class496_3.DataType = Enum26.const_14; Class496 class496_4 = class496_3; class496_4.Data = new Struct18(310, (object)stream); class1027.Columns.Add(class496_4); class1027.Write(w); } } w.Write(0, (object)"ENDSEC"); }
public void Read(out Class741 dataStore, DxfReader r) { dataStore = new Class741(false); this.class741_0 = dataStore; while (r.CurrentGroup != Class824.struct18_1 && r.CurrentGroup != Struct18.struct18_0) { if (r.CurrentGroup.Code == 0) { switch ((string)r.CurrentGroup.Value) { case "ACDSSCHEMA": Class48 class48 = new Class48(); class48.Read(r); dataStore.Schemas.Add(class48); continue; case "ACDSRECORD": Class1027 class1027 = new Class1027(); class1027.Read(r); if (class1027.Columns.Count == 2 && class1027.Columns[0].Name == "AcDbDs::ID" && class1027.Columns[1].Name == "ASM_Data") { Class496 column1 = class1027.Columns[0]; Class496 column2 = class1027.Columns[1]; ulong handle = (ulong)column1.Data.Value; Stream data = (Stream)column2.Data.Value; dataStore.Add(Enum53.const_2, handle, data); continue; } continue; default: r.method_85(); continue; } } else { r.method_85(); } } }
private void method_2() { Class48 class48 = new Class48() { Name = "AcDb3DSolid_ASM_Data", Index = 0 }; class48.Indexes.Add(0UL); class48.Indexes.Add(1UL); this.list_0.Add(class48); Class986 class986 = new Class986() { Flags = Enum52.flag_0, NameIndex = 0, Name = "AcDbDs::ID", Type = 10 }; List <byte[]> propertyValues1 = class986.PropertyValues; byte[] numArray1 = new byte[8]; numArray1[0] = (byte)2; byte[] numArray2 = numArray1; propertyValues1.Add(numArray2); List <byte[]> propertyValues2 = class986.PropertyValues; byte[] numArray3 = new byte[8]; numArray3[0] = (byte)3; byte[] numArray4 = numArray3; propertyValues2.Add(numArray4); class48.Properties.Add(class986); class48.Properties.Add(new Class986() { Flags = Enum52.flag_0, NameIndex = 1U, Name = "ASM_Data", Type = 15U }); Class496 class496_1 = new Class496(); class496_1.Name = "AcDbDs::TreatedAsObjectData"; class496_1.DataType = Enum26.const_0; Class496 class496_2 = class496_1; class496_2.Data = new Struct18(291, (object)true); class48.PropertyDescriptors.Add(new Class360() { Id = 0, Index = 1, Item = class496_2 }); Class496 class496_3 = new Class496(); class496_3.Name = "AcDbDs::Legacy"; class496_3.DataType = Enum26.const_0; Class496 class496_4 = class496_3; class496_4.Data = new Struct18(291, (object)true); class48.PropertyDescriptors.Add(new Class360() { Id = 0, Index = 2, Item = class496_4 }); Class496 class496_5 = new Class496(); class496_5.Name = "AcDs:Indexable"; class496_5.DataType = Enum26.const_0; Class496 class496_6 = class496_5; class496_6.Data = new Struct18(291, (object)true); class48.PropertyDescriptors.Add(new Class360() { IdName = "AcDbDs::ID", Index = 3, Item = class496_6 }); Class496 class496_7 = new Class496(); class496_7.Name = "AcDbDs::HandleAttribute"; class496_7.DataType = Enum26.const_6; Class496 class496_8 = class496_7; class496_8.Data = new Struct18(282, (object)(byte)1); class48.PropertyDescriptors.Add(new Class360() { IdName = "AcDbDs::ID", Index = 4, Item = class496_8 }); }