private void Button5_Click(object sender, EventArgs e) { DocumentLock documentLock = Application.DocumentManager.MdiActiveDocument.LockDocument(); this.Hide(); Point3d point = CAD.GetPoint("选择插入点: "); checked { Point3d point3d; if (!(point == point3d)) { Point3d pointXY = CAD.GetPointXY(point, 50.0, -50.0); string text = this.TextBox1.Text; text = Strings.Replace(text, "\r\n", "&", 1, -1, CompareMethod.Binary); int num = (int)this.inStr_n(text, "&"); string[] array_ = new string[1]; Class36.smethod_44(text, ref array_, "&"); Class36.smethod_20(CAD.GetPointAngle(pointXY, 100.0, 0.0), array_, 300.0, 1.2, ""); pointXY = CAD.GetPointXY(point, 3550.0, -50.0); text = this.TextBox2.Text; text = Strings.Replace(text, "\r\n", "&", 1, -1, CompareMethod.Binary); num = (int)Math.Max(unchecked ((long)num), this.inStr_n(text, "&")); array_ = new string[1]; Class36.smethod_44(text, ref array_, "&"); Class36.smethod_20(CAD.GetPointAngle(pointXY, 100.0, 0.0), array_, 300.0, 1.2, ""); pointXY = CAD.GetPointXY(point, 13050.0, -50.0); text = this.TextBox3.Text; text = Strings.Replace(text, "\r\n", "&", 1, -1, CompareMethod.Binary); num = (int)Math.Max(unchecked ((long)num), this.inStr_n(text, "&")); array_ = new string[1]; Class36.smethod_44(text, ref array_, "&"); Class36.smethod_20(CAD.GetPointAngle(pointXY, 100.0, 0.0), array_, 300.0, 1.2, ""); if (num < 1) { num = 1; } num++; CAD.AddPlinePxy(point, 20000.0, (double)((0 - num) * 500), 0.0, ""); pointXY = CAD.GetPointXY(point, 3500.0, 0.0); Point3d pointXY2 = CAD.GetPointXY(point, 3500.0, (double)((0 - num) * 500)); CAD.AddLine(pointXY, pointXY2, "0"); pointXY = CAD.GetPointXY(point, 13000.0, 0.0); pointXY2 = CAD.GetPointXY(point, 13000.0, (double)((0 - num) * 500)); CAD.AddLine(pointXY, pointXY2, "0"); documentLock.Dispose(); this.Show(); } } }
private void Button2_Click(object sender, EventArgs e) { DocumentLock documentLock = Application.DocumentManager.MdiActiveDocument.LockDocument(); this.Hide(); Point3d point = CAD.GetPoint("选择插入点: "); Point3d point3d; if (!(point == point3d)) { string[] array_ = new string[1]; string text = this.TextBox2.Text; text = Strings.Replace(text, "\r\n", "&", 1, -1, CompareMethod.Binary); Class36.smethod_44(text, ref array_, "&"); Class36.smethod_20(this.method_0(point, 100, 0), array_, 300.0, 1.2, ""); documentLock.Dispose(); } }