Ejemplo n.º 1
0
        private void RadioButton2_Click(object sender, EventArgs e)
        {
            TypedValue[] array  = new TypedValue[1];
            Array        array2 = array;
            TypedValue   typedValue;

            typedValue..ctor(0, "TEXT");
            array2.SetValue(typedValue, 0);
            SelectionFilter selectionFilter = new SelectionFilter(array);

            this.RadioButton2.Checked = true;
            this.Hide();
            Class36.SetFocus(Application.DocumentManager.MdiActiveDocument.Window.Handle);
            PromptSelectionResult selection = this.document_0.Editor.GetSelection(selectionFilter);

            if (selection.Status == 5100)
            {
                this.selectionSet_0 = selection.Value;
                this.long_0         = (long)this.selectionSet_0.Count;
                if (this.long_0 == 0L)
                {
                    Class36.smethod_60("没有选择任何文字对象\r\n");
                }
                else
                {
                    Class36.smethod_60("当前选择集体" + this.long_0.ToString() + "个文字对象\r\n");
                }
                this.Show();
            }
            this.Button1.Enabled = true;
            this.Button2.Enabled = true;
            this.Button3.Enabled = true;
            this.Label3.Text     = "";
        }
Ejemplo n.º 2
0
        public void YuanGou()
        {
            int    num;
            int    num10;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2      = 2;
                this.double_0 = CAD.GetScale();
IL_17:
                num2           = 3;
                this.point3d_0 = CAD.GetPoint("选择插入点: ");
IL_2A:
                num2 = 4;
                Point3d point3d;
                if (!(this.point3d_0 == point3d))
                {
                    goto IL_41;
                }
IL_3C:
                goto IL_1FF;
IL_41:
                num2 = 7;
                bool flag = false;
IL_47:
                num2 = 8;
                Database workingDatabase = HostApplicationServices.WorkingDatabase;
IL_50:
                num2 = 9;
                Editor editor = Application.DocumentManager.MdiActiveDocument.Editor;
IL_65:
                num2 = 10;
                Class36.smethod_60("按下shift建,可切换方向:");
IL_74:
                num2 = 11;
                PromptResult promptResult = editor.Drag(this);
IL_82:
                num2 = 12;
                if (promptResult.Status != 5100)
                {
                    goto IL_138;
                }
IL_99:
                num2 = 13;
                ObjectId[] array;
                short      num5;
                short      num6;
                checked
                {
                    short num3 = (short)(this.entity_0.Length - 1);
IL_AA:
                    num2 = 14;
                    if (num3 != 0)
                    {
                        goto IL_C9;
                    }
IL_B5:
                    num2 = 15;
                    CAD.AddEnt(this.entity_0[0]);
                    goto IL_138;
IL_C9:
                    num2 = 17;
IL_CD:
                    num2  = 18;
                    array = new ObjectId[(int)(num3 + 1)];
IL_DC:
                    num2 = 19;
                    short num4 = 0;
                    num5 = (short)(this.entity_0.Length - 1);
                    num6 = num4;
                }
                for (;;)
                {
                    short num7 = num6;
                    short num8 = num5;
                    if (num7 > num8)
                    {
                        break;
                    }
IL_F0:
                    num2             = 20;
                    array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId;
IL_113:
                    num2  = 21;
                    num6 += 1;
                }
IL_124:
                num2 = 22;
                if (!flag)
                {
                    goto IL_138;
                }
IL_12C:
                num2 = 23;
                Class36.smethod_55(array);
IL_138:
                goto IL_1FF;
IL_13D:
                int num9 = num10 + 1;
                num10    = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9);
IL_1B7:
                goto IL_1F4;
IL_1B9:
                num10 = num2;
                if (num <= -2)
                {
                    goto IL_13D;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_1D2 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num10 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_1B9;
            }
IL_1F4:
            throw ProjectData.CreateProjectError(-2146828237);
IL_1FF:
            if (num10 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Ejemplo n.º 3
0
        private void Button1_Click(object sender, EventArgs e)
        {
            int    num;
            int    num13;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                this.document_0.SendStringToExecute("\u0003\u0003", false, false, false);
IL_1E:
                num2 = 3;
                if (Operators.CompareString(this.TextBox1.Text, "", false) != 0)
                {
                    goto IL_4E;
                }
IL_3B:
                num2 = 4;
                this.TextBox1.Focus();
IL_49:
                goto IL_6EB;
IL_4E:
                num2 = 7;
                DocumentLock documentLock = Application.DocumentManager.MdiActiveDocument.LockDocument();
IL_60:
                num2 = 8;
                long     num3 = (long)this.int_0;
                string   textString;
                long     num7;
                Point3d  maxPoint;
                Point3d  minPoint;
                Polyline polyline;
                Polyline polyline2;
                int      num8;
                checked
                {
                    long num4 = this.long_0 - 1L;
                    this.long_1 = num3;
                    DBText dbtext;
                    for (;;)
                    {
                        long num5 = this.long_1;
                        long num6 = num4;
                        if (num5 <= num6)
                        {
IL_90:
                            num2 = 9;
                            using (Transaction transaction = this.database_0.TransactionManager.StartTransaction())
                            {
                                dbtext     = (DBText)transaction.GetObject(this.selectionSet_0[(int)this.long_1].ObjectId, 1);
                                textString = dbtext.TextString;
                                goto IL_118;
                            }
IL_E8:
                            num2 = 12;
                            if (num7 <= 0L)
                            {
IL_FA:
                                num2         = 44;
                                this.long_1 += 1L;
                                continue;
                            }
                            break;
IL_118:
                            num2 = 11;
                            num7 = unchecked ((long)Strings.InStr(textString, this.TextBox1.Text, CompareMethod.Binary));
                            goto IL_E8;
                        }
                        goto IL_4F2;
                    }
IL_133:
                    num2     = 13;
                    maxPoint = dbtext.GeometricExtents.MaxPoint;
IL_148:
                    num2     = 14;
                    minPoint = dbtext.GeometricExtents.MinPoint;
IL_15D:
                    num2 = 15;
                    Class36.smethod_64(this.entity_0.ObjectId);
IL_171:
                    num2     = 16;
                    polyline = new Polyline();
IL_17B:
                    num2 = 17;
                    polyline.SetDatabaseDefaults();
IL_185:
                    num2      = 18;
                    polyline2 = polyline;
                    num8      = 0;
                }
                Point2d point2d;
                point2d..ctor(minPoint.X - 100.0, minPoint.Y - 100.0);
                polyline2.AddVertexAt(num8, point2d, 0.0, 20.0, 20.0);
IL_1D6:
                num2 = 19;
                Polyline polyline3 = polyline;
                int      num9      = 1;
                point2d..ctor(minPoint.X - 100.0, maxPoint.Y + 100.0);
                polyline3.AddVertexAt(num9, point2d, 0.0, 20.0, 20.0);
IL_227:
                num2 = 20;
                Polyline polyline4 = polyline;
                int      num10     = 2;
                point2d..ctor(maxPoint.X + 100.0, maxPoint.Y + 100.0);
                polyline4.AddVertexAt(num10, point2d, 0.0, 20.0, 20.0);
IL_278:
                num2 = 21;
                Polyline polyline5 = polyline;
                int      num11     = 3;
                point2d..ctor(maxPoint.X + 100.0, minPoint.Y - 100.0);
                polyline5.AddVertexAt(num11, point2d, 0.0, 20.0, 20.0);
IL_2C9:
                num2            = 22;
                polyline.Closed = true;
IL_2D4:
                num2 = 23;
                polyline.ColorIndex = 10;
IL_2E0:
                num2          = 24;
                this.entity_0 = CAD.AddEnt(polyline);
IL_2F0:
                num2 = 25;
                object  systemVariable = Application.GetSystemVariable("TARGET");
                Point3d point3d2;
                Point3d point3d = (systemVariable != null) ? ((Point3d)systemVariable) : point3d2;
IL_311:
                num2 = 26;
                maxPoint..ctor(maxPoint.X - point3d.X, maxPoint.Y - point3d.Y, maxPoint.Z - point3d.Z);
IL_348:
                num2 = 27;
                minPoint..ctor(minPoint.X - point3d.X, minPoint.Y - point3d.Y, minPoint.Z - point3d.Z);
IL_37F:
                num2 = 28;
                long                    val;
                long                    val2;
                ViewTableRecord         currentView;
                AbstractViewTableRecord abstractViewTableRecord;
                checked
                {
                    val = (long)Math.Round(unchecked (maxPoint.get_Coordinate(1) - minPoint.get_Coordinate(1)));
IL_39B:
                    num2 = 29;
                    val2 = (long)Math.Round(unchecked (maxPoint.get_Coordinate(0) - minPoint.get_Coordinate(0)));
IL_3B7:
                    num2        = 30;
                    currentView = this.editor_0.GetCurrentView();
IL_3C7:
                    num2 = 31;
                    abstractViewTableRecord = currentView;
                }
                point2d..ctor((maxPoint.get_Coordinate(0) + minPoint.get_Coordinate(0)) / 2.0, (minPoint.get_Coordinate(1) + maxPoint.get_Coordinate(1)) / 2.0);
                abstractViewTableRecord.CenterPoint = point2d;
IL_410:
                num2 = 32;
                object left = Math.Max(val2, val);
IL_423:
                num2 = 33;
                currentView.Height = Conversions.ToDouble(Operators.MultiplyObject(left, 2));
IL_43F:
                num2 = 34;
                currentView.Width = Conversions.ToDouble(Operators.MultiplyObject(left, 2));
IL_45B:
                num2 = 35;
                this.editor_0.SetCurrentView(currentView);
IL_46B:
                num2 = 36;
                Class36.smethod_60(Conversion.Str(num7));
IL_480:
                num2 = 37;
                this.TextBox3.Text = textString;
IL_490:
                num2 = 38;
                checked
                {
                    this.TextBox3.SelectionStart = (int)(num7 - 1L);
IL_4AB:
                    num2 = 39;
                    this.TextBox3.SelectionLength = Strings.Len(this.TextBox1.Text);
IL_4C9:
                    num2 = 40;
                    this.TextBox3.Focus();
IL_4D8:
                    num2       = 41;
                    this.int_0 = (int)(this.long_1 + 1L);
IL_4F2:
                    num2 = 45;
                    if (!(this.long_0 == 0L | this.long_1 >= this.long_0 - 1L))
                    {
                        goto IL_57D;
                    }
IL_524:
                    num2 = 46;
                    this.Button1.Enabled = false;
IL_533:
                    num2 = 47;
                    this.TextBox3.Text = "查无内容。";
IL_546:
                    num2 = 48;
                    this.Button1.Enabled = false;
IL_555:
                    num2 = 49;
                    this.Button2.Enabled = false;
IL_564:
                    num2 = 50;
                    this.Button3.Enabled = false;
IL_573:
                    num2       = 51;
                    this.int_0 = 0;
IL_57D:
                    num2 = 53;
                    documentLock.Dispose();
IL_586:
                    num2 = 54;
                    if (Information.Err().Number <= 0)
                    {
                        goto IL_5AD;
                    }
IL_598:
                    num2 = 55;
                    Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_5AD:
                    goto IL_6EB;
                    IL_5B2 :;
                }
                int num12 = num13 + 1;
                num13 = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num12);
IL_6A2:
                goto IL_6E0;
IL_6A4:
                num13 = num2;
                if (num <= -2)
                {
                    goto IL_5B2;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_6BD :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num13 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_6A4;
            }
IL_6E0:
            throw ProjectData.CreateProjectError(-2146828237);
IL_6EB:
            if (num13 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Ejemplo n.º 4
0
        private void TcFind_Frm_Load(object sender, EventArgs e)
        {
            int    num;
            int    num3;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                TypedValue[] array = new TypedValue[1];
IL_12:
                num2 = 3;
                Array      array2 = array;
                TypedValue typedValue;
                typedValue..ctor(0, "TEXT");
                array2.SetValue(typedValue, 0);
IL_2F:
                num2 = 4;
                SelectionFilter selectionFilter = new SelectionFilter(array);
IL_39:
                num2 = 5;
                PromptSelectionResult promptSelectionResult = this.document_0.Editor.SelectAll(selectionFilter);
IL_4F:
                num2 = 6;
                if (promptSelectionResult.Status != 5100)
                {
                    goto IL_D0;
                }
IL_61:
                num2 = 7;
                this.selectionSet_0 = promptSelectionResult.Value;
IL_70:
                num2        = 8;
                this.long_0 = (long)this.selectionSet_0.Count;
IL_84:
                num2 = 9;
                if (this.long_0 != 0L)
                {
                    goto IL_AA;
                }
IL_9A:
                num2 = 10;
                Class36.smethod_60("文档中没有任何文字对象");
                goto IL_D0;
IL_AA:
                num2 = 12;
IL_AD:
                num2 = 13;
                Class36.smethod_60("文档中总共有" + this.long_0.ToString() + "个文字对象");
IL_D0:
                num2 = 16;
                this.Focus();
IL_DA:
                num2 = 17;
                this.TextBox1.Text = Interaction.GetSetting(Class33.Class31_0.Info.ProductName, "_FindFrm", "Text_1", "");
IL_10B:
                num2 = 18;
                this.TextBox2.Text = Interaction.GetSetting(Class33.Class31_0.Info.ProductName, "_FindFrm", "Text_2", "");
IL_13C:
                goto IL_1DE;
IL_141:
                goto IL_1E8;
IL_146:
                num3 = num2;
                if (num <= -2)
                {
                    goto IL_15D;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                goto IL_1B9;
IL_15D:
                int num4 = num3 + 1;
                num3     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num4);
IL_1B9:
                goto IL_1E8;
            }
            catch when(endfilter(obj is Exception & num != 0 & num3 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_146;
            }
IL_1DE:
            if (num3 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return;

IL_1E8:
            throw ProjectData.CreateProjectError(-2146828237);
        }
Ejemplo n.º 5
0
        private static string smethod_0(Database database_0, Transaction transaction_0)
        {
            int num = 0;
            ObjectIdCollection objectIdCollection = new ObjectIdCollection();

            checked
            {
                try
                {
                    objectIdCollection.Clear();
                    foreach (ObjectId objectId in ((SymbolTable)transaction_0.GetObject(database_0.LayerTableId, 0, false)))
                    {
                        if (objectId.IsValid)
                        {
                            objectIdCollection.Add(objectId);
                        }
                    }
                    database_0.Purge(objectIdCollection);
                    int num2 = 0;
                    try
                    {
                        foreach (object obj in objectIdCollection)
                        {
                            ObjectId objectId3;
                            ObjectId objectId2 = (obj != null) ? ((ObjectId)obj) : objectId3;
                            DBObject @object   = transaction_0.GetObject(objectId2, 1);
                            if (!((LayerTableRecord)@object).IsDependent)
                            {
                                @object.Erase();
                                num++;
                            }
                            num2++;
                            string string_ = string.Format("{0} out of {1} {2} remaining...Deleting entity: {3}", new object[]
                            {
                                num2,
                                objectIdCollection.Count,
                                objectIdCollection.Count - num2,
                                objectId2.ObjectClass.DxfName
                            });
                            Class36.smethod_60(string_);
                        }
                    }
                    finally
                    {
                        IEnumerator enumerator2;
                        if (enumerator2 is IDisposable)
                        {
                            (enumerator2 as IDisposable).Dispose();
                        }
                    }
                }
                catch (Exception ex)
                {
                    return(ex.Message);
                }
                finally
                {
                }
                return(num.ToString());
            }
        }
Ejemplo n.º 6
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();
            }
        }
Ejemplo n.º 7
0
        public void TcWuMian()
        {
            int    num;
            int    num18;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                long[] array = null;
IL_0D:
                num2 = 3;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_1A:
                num2 = 4;
                Database database = mdiActiveDocument.Database;
IL_24:
                num2 = 5;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    TypedValue[] array2 = new TypedValue[1];
                    Array        array3 = array2;
                    TypedValue   typedValue;
                    typedValue..ctor(0, "TEXT");
                    array3.SetValue(typedValue, 0);
                    SelectionFilter selectionFilter = new SelectionFilter(array2);
                    Class36.smethod_60("请按照顺序选择>");
                    PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection(selectionFilter);
                    short     num3;
                    double    num9;
                    Point3d[] array4;
                    short     num15;
                    checked
                    {
                        short num6;
                        if (selection.Status == 5100)
                        {
                            SelectionSet value = selection.Value;
                            num3  = (short)(value.Count - 1);
                            array = new long[(int)(num3 + 1)];
                            short num4 = 0;
                            short num5 = num3;
                            num6 = num4;
                            for (;;)
                            {
                                short num7 = num6;
                                short num8 = num5;
                                if (num7 > num8)
                                {
                                    break;
                                }
                                DBText dbtext = (DBText)transaction.GetObject(value[(int)num6].ObjectId, 1);
                                array[(int)num6] = (long)Math.Round(Conversion.Val(dbtext.TextString));
                                unchecked
                                {
                                    num6 += 1;
                                }
                            }
                        }
                        num9      = Class36.smethod_30("请输入跨度(默认6000):", 6000.0);
                        array4    = new Point3d[(int)(num3 + 1)];
                        array4[0] = CAD.GetPoint("选择插入点: ");
                        Point3d point3d;
                        if (array4[0] == point3d)
                        {
                            goto IL_5A1;
                        }
                        short num10 = 0;
                        short num11 = (short)(Information.UBound(array, 1) - 1);
                        num6 = num10;
                        Point3d pointAngle;
                        for (;;)
                        {
                            short num12 = num6;
                            short num8  = num11;
                            if (num12 > num8)
                            {
                                break;
                            }
                            pointAngle = CAD.GetPointAngle(array4[(int)num6], num9, 0.0);
                            CAD.AddLine(array4[(int)num6], pointAngle, "0");
                            array4[(int)(num6 + 1)] = CAD.GetPointAngle(array4[(int)num6], (double)array[(int)num6], 270.0);
                            unchecked
                            {
                                num6 += 1;
                            }
                        }
                        pointAngle = CAD.GetPointAngle(array4[(int)num6], num9, 0.0);
                        CAD.AddLine(array4[(int)num6], pointAngle, "0");
                        Point3d[] array5 = new Point3d[4];
                        Point3d[] array6 = new Point3d[4];
                        pointAngle = CAD.GetPointAngle(array4[0], num9, 0.0);
                        array5[0]  = CAD.GetPointAngle(array4[0], 200.0, 45.0);
                        array5[1]  = CAD.GetPointAngle(array4[0], 200.0, 315.0);
                        array6[0]  = CAD.GetPointAngle(pointAngle, 200.0, 135.0);
                        array6[1]  = CAD.GetPointAngle(pointAngle, 200.0, 225.0);
                        pointAngle = CAD.GetPointAngle(array4[1], num9, 0.0);
                        Point3d p = Class36.smethod_46(array4[1], pointAngle);
                        array5[2] = CAD.GetPointAngle(p, 200.0, 135.0);
                        array5[3] = CAD.GetPointAngle(p, 200.0, 225.0);
                        array6[2] = CAD.GetPointAngle(p, 200.0, 45.0);
                        array6[3] = CAD.GetPointAngle(p, 200.0, 315.0);
                        Point3d pointAngle2 = CAD.GetPointAngle(p, 141.0, 90.0);
                        Point3d pointAngle3 = CAD.GetPointAngle(p, (double)(array[0] + 141L), 270.0);
                        CAD.AddPline(array5, 0.0, false, "");
                        CAD.AddPline(array6, 0.0, false, "");
                        CAD.AddLine(pointAngle2, pointAngle3, "0");
                        short num13 = (short)Math.Round(unchecked ((double)Information.UBound(array, 1) / 2.0 - 1.0));
                        short num14 = 1;
                        num15 = num13 - 1;
                        num3  = num14;
                    }
                    for (;;)
                    {
                        short num16 = num3;
                        short num8  = num15;
                        if (num16 > num8)
                        {
                            break;
                        }
                        Point3d pointAngle  = CAD.GetPointAngle(array4[(int)num3], num9 / 2.0 + Math.Pow(-1.0, (double)num3) * 70.0, 0.0);
                        Point3d pointAngle4 = CAD.GetPointAngle(pointAngle, (double)array[(int)num3], 270.0);
                        CAD.AddLine(pointAngle, pointAngle4, "0");
                        num3 += 1;
                    }
                    transaction.Commit();
                }
IL_4FC:
                num2 = 7;
                if (Information.Err().Number <= 0)
                {
                    goto IL_521;
                }
IL_50D:
                num2 = 8;
                Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_521:
                goto IL_5A1;
IL_523:
                int num17 = num18 + 1;
                num18     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num17);
IL_55B:
                goto IL_596;
IL_55D:
                num18 = num2;
                if (num <= -2)
                {
                    goto IL_523;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_573 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num18 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_55D;
            }
IL_596:
            throw ProjectData.CreateProjectError(-2146828237);
IL_5A1:
            if (num18 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }