public void DrawCengGaoBiao() { Class36.SetFocus(Application.DocumentManager.MdiActiveDocument.Window.Handle); DocumentLock documentLock = Application.DocumentManager.MdiActiveDocument.LockDocument(); Point3d point3d = CAD.GetPoint("选择插入点: "); checked { Point3d point3d2; if (!(point3d == point3d2)) { Class36.smethod_23(CAD.GetPointXY(point3d, 500.0, 150.0), "层号", 350.0, 0, ""); Class36.smethod_23(CAD.GetPointXY(point3d, 1800.0, 150.0), "层高(m)", 350.0, 0, ""); Class36.smethod_23(CAD.GetPointXY(point3d, 3300.0, 150.0), "标高(m)", 350.0, 0, ""); if (this.CheckBox1.Checked) { Class36.smethod_23(CAD.GetPointXY(point3d, 4800.0, 150.0), "墙柱砼", 350.0, 0, ""); } if (this.CheckBox1.Checked) { Class36.smethod_23(CAD.GetPointXY(point3d, 6300.0, 150.0), "梁板砼", 350.0, 0, ""); } short num = (short)this.DataGridView1.Rows.Count; CAD.AddLine(CAD.GetPointXY(point3d, 1500.0, 0.0), CAD.GetPointXY(point3d, 1500.0, (double)((num + 1) * 600)), "0"); CAD.AddLine(CAD.GetPointXY(point3d, 3000.0, 0.0), CAD.GetPointXY(point3d, 3000.0, (double)((num + 1) * 600)), "0"); if (this.CheckBox1.Checked) { CAD.AddLine(CAD.GetPointXY(point3d, 4500.0, 0.0), CAD.GetPointXY(point3d, 4500.0, (double)((num + 1) * 600)), "0"); } if (this.CheckBox1.Checked) { CAD.AddLine(CAD.GetPointXY(point3d, 6000.0, 0.0), CAD.GetPointXY(point3d, 6000.0, (double)((num + 1) * 600)), "0"); } long num2 = 5000L; if (this.CheckBox1.Checked) { num2 = 7500L; } CAD.AddLine(CAD.GetPointXY(point3d, 0.0, (double)(num * 600)), CAD.GetPointXY(point3d, (double)num2, (double)(num * 600)), "0"); CAD.AddLine(CAD.GetPointXY(point3d, 0.0, (double)((num - 1) * 600)), CAD.GetPointXY(point3d, (double)num2, (double)((num - 1) * 600)), "0"); num -= 2; string[] array = new string[(int)(num + 1)]; string[] array2 = new string[(int)(num + 1)]; string[] array3 = new string[(int)(num + 1 + 1)]; string[] array4 = new string[(int)(num + 1)]; string[] array5 = new string[(int)(num + 1 + 1)]; array5[0] = "-"; short num3 = 0; short num4 = num; short num5 = num3; for (;;) { short num6 = num5; short num7 = num4; if (num6 > num7) { break; } CAD.AddLine(CAD.GetPointXY(point3d, 0.0, (double)(num5 * 600)), CAD.GetPointXY(point3d, (double)num2, (double)(num5 * 600)), "0"); array[(int)num5] = Conversions.ToString(this.DataGridView1.Rows[(int)num5].Cells[0].Value); double num8 = Conversions.ToDouble(Operators.DivideObject(this.DataGridView1.Rows[(int)num5].Cells[1].Value, 1000)); array2[(int)num5] = Strings.Format(num8, "0.000"); if (Operators.ConditionalCompareObjectEqual(this.DataGridView1.Rows[(int)num5].Cells[2].Value, "0.000", false)) { array3[(int)num5] = Conversions.ToString(this.DataGridView1.Rows[(int)num5].Cells[2].Value); } else { array3[(int)num5] = Conversions.ToString(this.DataGridView1.Rows[(int)num5].Cells[2].Value); } if (this.CheckBox1.Checked) { array4[(int)num5] = Conversions.ToString(this.DataGridView1.Rows[(int)num5].Cells[3].Value); if (!array4[(int)num5].ToUpper().Contains("C")) { array4[(int)num5] = "C" + array4[(int)num5].ToUpper(); } else { array4[(int)num5] = array4[(int)num5].ToUpper(); } } if (this.CheckBox1.Checked) { array5[(int)(num5 + 1)] = Conversions.ToString(this.DataGridView1.Rows[(int)num5].Cells[4].Value); if (!array5[(int)(num5 + 1)].ToUpper().Contains("C")) { array5[(int)(num5 + 1)] = "C" + array5[(int)(num5 + 1)].ToUpper(); } else { array5[(int)(num5 + 1)] = array5[(int)(num5 + 1)].ToUpper(); } } unchecked { num5 += 1; } } double num9 = Conversions.ToDouble(Operators.AddObject(this.DataGridView1.Rows[(int)num].Cells[2].Value, Operators.DivideObject(this.DataGridView1.Rows[(int)num].Cells[1].Value, 1000))); array3[(int)(num + 1)] = Strings.Format(num9, "0.000"); Class36.smethod_21(CAD.GetPointXY(point3d, 1000.0, 150.0), array, 300.0, -2.0); Class36.smethod_20(CAD.GetPointXY(point3d, 1800.0, 150.0), array2, 300.0, -2.0, ""); Class36.smethod_21(CAD.GetPointXY(point3d, 4200.0, 150.0), array3, 300.0, -2.0); if (this.CheckBox1.Checked) { Class36.smethod_20(CAD.GetPointXY(point3d, 4800.0, 150.0), array4, 300.0, -2.0, ""); } if (this.CheckBox1.Checked) { Class36.smethod_20(CAD.GetPointXY(point3d, 6300.0, 150.0), array5, 300.0, -2.0, ""); } if (this.CheckBox1.Checked) { num2 = 3750L; } else { num2 = 2500L; } point3d = CAD.GetPointXY(point3d, (double)num2, -1500.0); Class36.smethod_24(point3d, "结构层高表", 500.0, 0, ""); point3d = CAD.GetPointXY(point3d, 0.0, -750.0); Class36.smethod_24(point3d, "注:标高均为楼面结构标高", 350.0, 0, ""); Point3d[] array6 = new Point3d[] { CAD.GetPointXY(point3d, -1500.0, 600.0), CAD.GetPointXY(point3d, 1500.0, 600.0) }; CAD.AddPline(array6, 75.0, false, ""); CAD.AddLine(CAD.GetPointAngle(array6[0], 125.0, -90.0), CAD.GetPointAngle(array6[1], 125.0, -90.0), "0"); documentLock.Dispose(); } } }
public void TcDZK() { CAD.CreateLayer("打砖块-墙", 1, "continuous", 30, false, false); CAD.CreateLayer("打砖块-砖2", 2, "continuous", 30, false, false); CAD.CreateLayer("打砖块-砖6", 6, "continuous", 30, false, false); CAD.CreateLayer("打砖块-球1", 3, "continuous", 30, false, false); CAD.CreateLayer("打砖块-球2", 4, "continuous", 30, false, false); CAD.CreateLayer("打砖块-球3", 5, "continuous", 30, false, false); CAD.CreateLayer("打砖块-球0", 8, "continuous", 30, false, false); this.document_0.LockDocument(); this.double_0 = this.editor_0.GetCurrentView().Height; this.double_0 *= 0.9; this.double_1 = this.editor_0.GetCurrentView().Width; this.double_1 *= 0.9; this.point3d_0..ctor(this.editor_0.GetCurrentView().CenterPoint.X, this.editor_0.GetCurrentView().CenterPoint.Y, 0.0); this.point3d_1..ctor(this.point3d_0.X + this.double_1 / 2.0, this.point3d_0.Y + this.double_0 / 2.0, 0.0); this.point3d_2..ctor(this.point3d_0.X - this.double_1 / 2.0, this.point3d_0.Y + this.double_0 / 2.0, 0.0); this.point3d_3..ctor(this.point3d_0.X - this.double_1 / 2.0, this.point3d_0.Y - this.double_0 / 2.0, 0.0); this.point3d_4..ctor(this.point3d_0.X + this.double_1 / 2.0, this.point3d_0.Y - this.double_0 / 2.0, 0.0); this.jipAtgRsh = CAD.AddPlinePxy(this.point3d_3, this.double_1, this.double_0, 0.0, ""); this.double_2 = this.double_1 / 80.0; double num = this.double_1 / 20.0; double num2 = num / 3.0; this.dbobjectCollection_0 = new DBObjectCollection(); long num3 = 0L; Point3d pointXY; do { pointXY..ctor(this.point3d_2.X + (double)num3 * num, this.point3d_2.Y - num2, this.point3d_2.Z); this.dbobjectCollection_0.Add(CAD.AddPlinePxy(pointXY, num, num2, 0.0, "打砖块-砖2")); checked { num3 += 1L; } }while (num3 <= 19L); long num4 = 0L; do { pointXY..ctor(this.point3d_2.X + (double)num4 * num + num / 2.0, this.point3d_2.Y - 2.0 * num2, this.point3d_2.Z); this.dbobjectCollection_0.Add(CAD.AddPlinePxy(pointXY, num, num2, 0.0, "打砖块-砖6")); checked { num4 += 1L; } }while (num4 <= 18L); long num5 = 0L; do { pointXY..ctor(this.point3d_2.X + (double)num5 * num, this.point3d_2.Y - 3.0 * num2, this.point3d_2.Z); this.dbobjectCollection_0.Add(CAD.AddPlinePxy(pointXY, num, num2, 0.0, "打砖块-砖2")); checked { num5 += 1L; } }while (num5 <= 19L); long num6 = 0L; do { pointXY..ctor(this.point3d_2.X + (double)num6 * num + num / 2.0, this.point3d_2.Y - 4.0 * num2, this.point3d_2.Z); this.dbobjectCollection_0.Add(CAD.AddPlinePxy(pointXY, num, num2, 0.0, "打砖块-砖6")); checked { num6 += 1L; } }while (num6 <= 18L); long num7 = 0L; do { pointXY..ctor(this.point3d_2.X + (double)num7 * num, this.point3d_2.Y - 5.0 * num2, this.point3d_2.Z); this.dbobjectCollection_0.Add(CAD.AddPlinePxy(pointXY, num, num2, 0.0, "打砖块-砖2")); checked { num7 += 1L; } }while (num7 <= 19L); Point3d point3d; point3d..ctor(0.0, 0.0, 0.0); this.polyline_0 = CAD.AddPlinePxy(this.point3d_3, this.double_2 * 10.0, 2.0 * this.double_2, 0.0, "打砖块-墙"); pointXY = CAD.GetPointXY(this.point3d_2, -this.double_2 * 1.1, -2.0 * this.double_2); CAD.AddCircle(pointXY, this.double_2, "打砖块-球0"); this.circle_0 = CAD.AddCircle(pointXY, this.double_2, "打砖块-球1"); this.objectId_0 = Class36.smethod_57("1", pointXY, this.double_2, 4, 2, "STANDARD", 0.0); pointXY = CAD.GetPointXY(this.point3d_2, -this.double_2 * 1.1, -4.0 * this.double_2); CAD.AddCircle(pointXY, this.double_2, "打砖块-球0"); this.circle_1 = CAD.AddCircle(pointXY, this.double_2, "打砖块-球2"); this.objectId_1 = Class36.smethod_57("2", pointXY, this.double_2, 4, 2, "STANDARD", 0.0); pointXY = CAD.GetPointXY(this.point3d_2, -this.double_2 * 1.1, -6.0 * this.double_2); CAD.AddCircle(pointXY, this.double_2, "打砖块-球0"); this.circle_2 = CAD.AddCircle(pointXY, this.double_2, "打砖块-球3"); this.objectId_2 = Class36.smethod_57("3", pointXY, this.double_2, 4, 2, "STANDARD", 0.0); pointXY = CAD.GetPointXY(this.point3d_2, this.double_2, 2.0 * this.double_2); this.objectId_3 = Class36.smethod_23(pointXY, "0", 1.5 * this.double_2, 0, "打砖块-墙"); pointXY = CAD.GetPointXY(this.point3d_1, -3.0 * this.double_2, 2.0 * this.double_2); this.objectId_4 = Class36.smethod_23(pointXY, "0", 1.5 * this.double_2, 0, "打砖块-墙"); Random random = new Random(); this.double_3 = 0.52359877559829882 + 2.0943951023931953 * random.NextDouble(); this.timer_0.Interval = 50; this.timer_1.Interval = 1; this.timer_0.Tick += this.timer1_Tick; this.timer_1.Tick += this.timer2_Tick; this.editor_0.PointMonitor += new PointMonitorEventHandler(this.GetMousePoint); this.timer_0.Start(); this.timer_1.Start(); }