コード例 #1
0
        public void TcLXBZ()
        {
            int    num;
            int    num11;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Class36.smethod_78("Dim80", 80, 1.0, true);
IL_22:
                num2           = 3;
                this.point3d_0 = new Point3d[2];
IL_30:
                num2 = 6;
                ObjectId[] array = new ObjectId[2];
IL_3A:
                num2 = 7;
                ObjectId[] array2 = null;
IL_3F:
                num2 = 8;
                this.point3d_0[0] = CAD.GetPoint("选择插入点: ");
IL_5C:
                num2 = 9;
                Point3d point3d;
                if (!(this.point3d_0[0] == point3d))
                {
                    goto IL_7E;
                }
IL_79:
                goto IL_425;
IL_7E:
                num2 = 12;
IL_81:
                num2           = 13;
                this.point3d_2 = this.point3d_0[0];
IL_9B:
                num2         = 15;
                this.short_0 = 1;
IL_A5:
                num2 = 16;
                if (this.LineDimJig() != 1)
                {
                    goto IL_2CB;
                }
IL_B6:
                num2         = 17;
                this.short_0 = 2;
IL_C0:
                num2 = 18;
                this.LineDimJig();
                checked
                {
                    for (;;)
                    {
IL_2A4:
                        num2 = 23;
                        short num3 = (short)Information.UBound(this.point3d_0, 1);
IL_CF:
                        num2 = 24;
                        Class36.smethod_60(Conversions.ToString((int)num3));
IL_DF:
                        num2 = 25;
                        if (num3 == 0)
                        {
IL_E9:
                            num2 = 26;
                            num3 = 1;
                        }
IL_EF:
                        num2  = 28;
                        array = new ObjectId[(int)(num3 - 1 + 1)];
IL_FF:
                        num2 = 31;
                        int num4 = 0;
                        int num5 = (int)(num3 - 1);
                        int num6 = num4;
                        for (;;)
                        {
                            int num7 = num6;
                            int num8 = num5;
                            if (num7 > num8)
                            {
                                break;
                            }
IL_10D:
                            num2        = 32;
                            array[num6] = CAD.AddLineDim(this.point3d_0[num6], this.point3d_0[num6 + 1], this.point3d_1);
IL_14F:
                            num2 = 33;
                            num6++;
                        }
IL_162:
                        num2 = 34;
                        if (array2 != null)
                        {
IL_16F:
                            num2 = 35;
                            ObjectId[] array3 = array2;
                            int        i      = 0;
                            while (i < array3.Length)
                            {
                                ObjectId objectId = array3[i];
IL_192:
                                num2 = 36;
                                ObjectId objectId2;
                                if (objectId != objectId2)
                                {
IL_19E:
                                    num2 = 37;
                                    Class36.smethod_64(objectId);
                                }
                                i++;
IL_1AE:
                                num2 = 39;
                            }
                        }
IL_1B3:
                        num2   = 41;
                        array2 = array;
IL_1BA:
                        num2 = 42;
                        int num9 = Information.UBound(this.point3d_0, 1);
IL_1CB:
                        num2           = 43;
                        this.point3d_0 = (Point3d[])Utils.CopyArray((Array)this.point3d_0, new Point3d[num9 + 1 + 1]);
IL_1F4:
                        num2 = 46;
                        int num10 = (int)Class36.smethod_29(this.point3d_0[num9], ref this.point3d_0[num9 + 1], "选择下一点: ");
IL_224:
                        num2 = 47;
                        this.point3d_0[num9 + 1] = Class36.smethod_62(this.point3d_0[num9 + 1], this.point3d_0[0], this.point3d_0[1]);
IL_276:
                        num2 = 48;
                        Class36.smethod_47(ref this.point3d_0);
IL_285:
                        num2 = 49;
                        if (Information.Err().Number > 0)
                        {
                            break;
                        }
IL_297:
                        num2 = 52;
                        if (num10 == 0)
                        {
                            break;
                        }
IL_2A1:
                        num2 = 55;
                    }
IL_2BB:
                    num2 = 58;
                    Class36.smethod_55(array);
IL_2C6:
                    goto IL_425;
IL_2CB:
                    num2 = 20;
IL_2CE:
                    goto IL_425;
IL_2D3:
                    goto IL_41A;
IL_2D8:
                    num11 = num2;
                    if (num <= -2)
                    {
                        goto IL_2F3;
                    }
                    @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                    goto IL_3F4;
                    IL_2F3 :;
                }
                int num12 = num11 + 1;
                num11 = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num12);
                IL_3F4 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num11 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_2D8;
            }
IL_41A:
            throw ProjectData.CreateProjectError(-2146828237);
IL_425:
            if (num11 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }