Exemple #1
0
        private void method_3()
        {
            Class48 class48 = new Class48()
            {
                Index = 1, Name = "AcDbDs::TreatedAsObjectDataSchema"
            };
            Class986 class986 = new Class986()
            {
                Flags = Enum52.flag_0, NameIndex = 2, Name = "AcDbDs::TreatedAsObjectData", Type = 1
            };

            class48.Properties.Add(class986);
            this.list_0.Add(class48);
        }
Exemple #2
0
        private void method_6()
        {
            Class48 class48 = new Class48()
            {
                Index = 4, Name = "AcDbDs::HandleAttributeSchema"
            };
            Class986 class986 = new Class986()
            {
                Flags = Enum52.flag_3, NameIndex = 5, Name = "AcDbDs::HandleAttribute", Type = 7, Unknown2 = 1
            };

            class986.PropertyValues.Add(new byte[1]);
            class48.Properties.Add(class986);
            this.list_0.Add(class48);
        }
Exemple #3
0
        public void Read(Class889 r)
        {
            ushort num1 = r.vmethod_6();

            this.list_0.Capacity = (int)num1;
            for (int index = 0; index < (int)num1; ++index)
            {
                this.list_0.Add(r.vmethod_14());
            }
            ushort num2 = r.vmethod_6();

            this.list_2.Capacity = (int)num2;
            for (int index = 0; index < (int)num2; ++index)
            {
                Class986 class986 = new Class986();
                class986.Read(r);
                this.list_2.Add(class986);
            }
        }
Exemple #4
0
        public void Read(DxfReader r)
        {
            if (r.CurrentGroup.Code != 0 || r.CurrentGroup.Value as string != "ACDSSCHEMA")
            {
                throw new Exception("Unexpected group.");
            }
            r.method_85();
            while (r.CurrentGroup.Code != 0 && (r.CurrentGroup.Code != 2 && r.CurrentGroup != Struct18.struct18_0))
            {
                switch (r.CurrentGroup.Code)
                {
                case 1:
                    this.Name = (string)r.CurrentGroup.Value;
                    r.method_85();
                    continue;

                case 2:
                    Class986 class986 = new Class986();
                    class986.Read(r);
                    this.list_2.Add(class986);
                    continue;

                case 90:
                    this.uint_0 = (uint)(int)r.CurrentGroup.Value;
                    r.method_85();
                    continue;

                case 101:
                    Class360 class360 = new Class360();
                    class360.Read(r);
                    this.list_1.Add(class360);
                    continue;

                default:
                    r.method_85();
                    continue;
                }
            }
        }
Exemple #5
0
        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
            });
        }