public void TcDDX2() { this.double_0 = CAD.GetScale(); this.point3d_0 = CAD.GetPoint("选择插入点: "); Point3d point3d; if (!(this.point3d_0 == point3d)) { ObjectId[] array = new ObjectId[7]; Database workingDatabase = HostApplicationServices.WorkingDatabase; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; PromptResult promptResult = editor.Drag(this); if (promptResult.Status == 5100) { array[0] = CAD.AddEnt(this.entity_0[0]).ObjectId; array[1] = CAD.AddEnt(this.entity_0[1]).ObjectId; array[2] = CAD.AddEnt(this.entity_0[2]).ObjectId; array[3] = CAD.AddEnt(this.entity_0[3]).ObjectId; array[4] = CAD.AddEnt(this.entity_0[4]).ObjectId; array[5] = CAD.AddEnt(this.entity_0[5]).ObjectId; array[6] = CAD.AddEnt(this.entity_0[6]).ObjectId; Class36.smethod_55(array); } } }
public void TcGJHJ_LM1() { int num; int num9; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; bool flag; ObjectId[] array; short num5; short num6; checked { this.long_0 = (long)Math.Round(Conversion.Val(Interaction.InputBox("输入钢筋桁架高度:", "田草CAD工具箱-绘制钢筋桁架", "100", -1, -1))); IL_32: num2 = 3; if (this.long_0 != 0L) { goto IL_4C; } IL_47: goto IL_24E; IL_4C: num2 = 6; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_5E: num2 = 7; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_74; } IL_6F: goto IL_24E; IL_74: num2 = 10; CAD.CreateLayer("钢筋桁架_LM", 14, "continuous", -1, false, true); IL_8C: num2 = 11; flag = false; IL_91: num2 = 12; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_9A: num2 = 13; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_AD: num2 = 14; PromptResult promptResult = editor.Drag(this); IL_B9: num2 = 15; if (promptResult.Status != 5100) { goto IL_16B; } IL_CF: num2 = 16; short num3 = (short)(this.entity_0.Length - 1); IL_DF: num2 = 17; if (num3 != 0) { goto IL_FC; } IL_E9: num2 = 18; CAD.AddEnt(this.entity_0[0]); goto IL_16B; IL_FC: num2 = 20; IL_FF: num2 = 21; array = new ObjectId[(int)(num3 + 1)]; IL_10D: num2 = 22; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_122: num2 = 23; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_146: num2 = 24; num6 += 1; } IL_15A: num2 = 25; if (!flag) { goto IL_16B; } IL_160: num2 = 26; Class36.smethod_55(array); IL_16B: goto IL_24E; IL_170: goto IL_243; IL_175: num9 = num2; if (num <= -2) { goto IL_190; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); goto IL_21D; IL_190: int num10 = num9 + 1; num9 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10); IL_21D :; } catch when(endfilter(obj is Exception & num != 0 & num9 == 0)) { Exception ex = (Exception)obj2; goto IL_175; } IL_243: throw ProjectData.CreateProjectError(-2146828237); IL_24E: if (num9 != 0) { ProjectData.ClearProjectError(); } }
public void TcYunXian1() { int num; int num10; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; double scale = CAD.GetScale(); IL_12: num2 = 3; bool flag; ObjectId[] array; short num5; short num6; checked { this.short_0 = (short)Math.Round(unchecked (50.0 * scale)); IL_2C: num2 = 4; this.long_0 = (long)Math.Round(unchecked (500.0 * scale)); IL_46: num2 = 5; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_58: num2 = 6; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_6E; } IL_69: goto IL_21A; IL_6E: num2 = 9; flag = false; IL_74: num2 = 10; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_7D: num2 = 11; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_90: num2 = 12; PromptResult promptResult = editor.Drag(this); IL_9C: num2 = 13; if (promptResult.Status != 5100) { goto IL_14C; } IL_B2: num2 = 14; short num3 = (short)(this.entity_0.Length - 1); IL_C2: num2 = 15; if (num3 != 0) { goto IL_DF; } IL_CC: num2 = 16; CAD.AddEnt(this.entity_0[0]); goto IL_14C; IL_DF: num2 = 18; IL_E2: num2 = 19; array = new ObjectId[(int)(num3 + 1)]; IL_EF: num2 = 20; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_104: num2 = 21; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_127: num2 = 22; num6 += 1; } IL_13B: num2 = 23; if (!flag) { goto IL_14C; } IL_142: num2 = 24; Class36.smethod_55(array); IL_14C: goto IL_21A; IL_151: int num9 = num10 + 1; num10 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9); IL_1D1: goto IL_20F; IL_1D3: num10 = num2; if (num <= -2) { goto IL_151; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_1EC :; } catch when(endfilter(obj is Exception & num != 0 & num10 == 0)) { Exception ex = (Exception)obj2; goto IL_1D3; } IL_20F: throw ProjectData.CreateProjectError(-2146828237); IL_21A: if (num10 != 0) { ProjectData.ClearProjectError(); } }
public void TcDDYZ1() { int num; int num10; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; CAD.CreateLayer("Y_引注", 4, "continuous", -3, false, true); IL_20: num2 = 3; CAD.CreateLayer("Y_引线", 5, "continuous", 13, false, true); IL_37: num2 = 4; this.double_0 = CAD.GetScale(); IL_44: num2 = 5; DBText dbtext = new DBText(); IL_4D: num2 = 6; dbtext.Height = 300.0 * this.double_0; IL_66: num2 = 7; dbtext.WidthFactor = 0.7; IL_78: num2 = 8; this.string_0 = Clipboard.GetText(); IL_85: num2 = 9; if (Operators.CompareString(this.string_0, "", false) != 0) { goto IL_AC; } IL_9E: num2 = 10; this.string_0 = "%%1328@200"; IL_AC: num2 = 12; if (this.string_0.Length <= 50) { goto IL_E1; } IL_C0: num2 = 13; this.string_0 = this.string_0.Substring(0, 40) + "……"; IL_E1: num2 = 15; dbtext.TextString = this.string_0; IL_F1: num2 = 16; this.double_1 = dbtext.GeometricExtents.MaxPoint.X - dbtext.GeometricExtents.MinPoint.X; IL_12D: num2 = 17; bool flag = false; IL_133: num2 = 18; this.entity_0 = new Entity[3]; IL_142: num2 = 21; Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument; IL_151: num2 = 22; PromptPointOptions promptPointOptions = new PromptPointOptions("插入点:"); IL_160: num2 = 23; PromptPointResult point = mdiActiveDocument.Editor.GetPoint(promptPointOptions); IL_173: num2 = 24; if (point.Status != 5100) { goto IL_255; } IL_189: num2 = 25; this.point3d_2 = point.Value; IL_199: num2 = 26; PromptResult promptResult = mdiActiveDocument.Editor.Drag(this); IL_1AB: num2 = 27; if (promptResult.Status != 5100) { goto IL_255; } IL_1C1: num2 = 28; ObjectId[] array; short num5; short num6; checked { short num3 = (short)(this.entity_0.Length - 1); IL_1D1: num2 = 29; if (num3 != 0) { goto IL_1EE; } IL_1DB: num2 = 30; CAD.AddEnt(this.entity_0[0]); goto IL_255; IL_1EE: num2 = 32; IL_1F1: num2 = 33; array = new ObjectId[(int)(num3 + 1)]; IL_1FE: num2 = 34; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_212: num2 = 35; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_233: num2 = 36; num6 += 1; } IL_244: num2 = 37; if (!flag) { goto IL_255; } IL_24B: num2 = 38; Class36.smethod_55(array); IL_255: goto IL_35F; IL_25A: int num9 = num10 + 1; num10 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9); IL_316: goto IL_354; IL_318: num10 = num2; if (num <= -2) { goto IL_25A; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_331 :; } catch when(endfilter(obj is Exception & num != 0 & num10 == 0)) { Exception ex = (Exception)obj2; goto IL_318; } IL_354: throw ProjectData.CreateProjectError(-2146828237); IL_35F: if (num10 != 0) { ProjectData.ClearProjectError(); } }
public void TcLXYZ2() { int num; int num14; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; CAD.CreateLayer("Y_引注", 4, "continuous", -3, false, true); IL_20: num2 = 3; CAD.CreateLayer("Y_引线", 5, "continuous", 13, false, true); IL_37: num2 = 4; this.double_0 = CAD.GetScale(); IL_44: num2 = 5; bool flag = false; IL_48: num2 = 6; Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument; IL_55: num2 = 7; Database database = mdiActiveDocument.Database; IL_5F: num2 = 8; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_72: num2 = 9; using (Transaction transaction = database.TransactionManager.StartTransaction()) { PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection(); if (selection.Status == 5100) { SelectionSet value = selection.Value; Entity entity = (Entity)transaction.GetObject(value[0].ObjectId, 0); short num4; short num5; checked { this.short_0 = (short)(value.Count - 1); this.point3d_2 = new Point3d[(int)(this.short_0 + 1)]; this.entity_0 = new Entity[(int)(this.short_0 + 2 + 1)]; short num3 = 0; num4 = this.short_0; num5 = num3; } for (;;) { short num6 = num5; short num7 = num4; if (num6 > num7) { break; } Entity e = (Entity)transaction.GetObject(value[(int)num5].ObjectId, 0); Point3d entCenter = CAD.GetEntCenter(e); this.point3d_2[(int)num5] = entCenter; num5 += 1; } this.double_2 = this.point3d_2[0].Y; this.double_1 = this.point3d_2[0].Y; transaction.Commit(); PromptResult promptResult = editor.Drag(this); if (promptResult.Status == 5100) { short num8 = checked ((short)(this.entity_0.Length - 1)); if (num8 == 0) { CAD.AddEnt(this.entity_0[0]); } else { ObjectId[] array; short num10; short num11; checked { array = new ObjectId[(int)(num8 + 1)]; short num9 = 0; num10 = (short)(this.entity_0.Length - 1); num11 = num9; } for (;;) { short num12 = num11; short num7 = num10; if (num12 > num7) { break; } array[(int)num11] = CAD.AddEnt(this.entity_0[(int)num11]).ObjectId; num11 += 1; } if (flag) { Class36.smethod_55(array); } } } } } IL_238: goto IL_2B8; IL_23A: int num13 = num14 + 1; num14 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num13); IL_272: goto IL_2AD; IL_274: num14 = num2; if (num <= -2) { goto IL_23A; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_28A :; } catch when(endfilter(obj is Exception & num != 0 & num14 == 0)) { Exception ex = (Exception)obj2; goto IL_274; } IL_2AD: throw ProjectData.CreateProjectError(-2146828237); IL_2B8: if (num14 != 0) { ProjectData.ClearProjectError(); } }
public void TcYunXian() { int num; int num10; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; CAD.CreateLayer("注释", 1, "continuous", 30, false, false); IL_20: num2 = 3; double scale = CAD.GetScale(); IL_29: num2 = 4; bool flag; ObjectId[] array; short num5; short num6; checked { this.short_0 = (short)Math.Round(unchecked (50.0 * scale)); IL_43: num2 = 5; this.long_0 = (long)Math.Round(unchecked (500.0 * scale)); IL_5D: num2 = 6; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_6F: num2 = 7; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_84; } IL_7F: goto IL_233; IL_84: num2 = 10; flag = false; IL_8A: num2 = 11; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_93: num2 = 12; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_A7: num2 = 13; PromptResult promptResult = editor.Drag(this); IL_B4: num2 = 14; if (promptResult.Status != 5100) { goto IL_161; } IL_CA: num2 = 15; short num3 = (short)(this.entity_0.Length - 1); IL_DA: num2 = 16; if (num3 != 0) { goto IL_F7; } IL_E4: num2 = 17; CAD.AddEnt(this.entity_0[0]); goto IL_161; IL_F7: num2 = 19; IL_FA: num2 = 20; array = new ObjectId[(int)(num3 + 1)]; IL_108: num2 = 21; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_11C: num2 = 22; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_13E: num2 = 23; num6 += 1; } IL_14F: num2 = 24; if (!flag) { goto IL_161; } IL_156: num2 = 25; Class36.smethod_55(array); IL_161: goto IL_233; IL_166: int num9 = num10 + 1; num10 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9); IL_1EA: goto IL_228; IL_1EC: num10 = num2; if (num <= -2) { goto IL_166; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_205 :; } catch when(endfilter(obj is Exception & num != 0 & num10 == 0)) { Exception ex = (Exception)obj2; goto IL_1EC; } IL_228: throw ProjectData.CreateProjectError(-2146828237); IL_233: if (num10 != 0) { ProjectData.ClearProjectError(); } }
public void TcGJHJ_PM1() { int num; int num9; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; bool flag; ObjectId[] array; short num5; short num6; checked { this.long_0 = (long)Math.Round(Conversion.Val(Interaction.InputBox(" 输入钢筋桁架的宽度:", Class33.Class31_0.Info.ProductName, "100", -1, -1))); IL_3C: num2 = 3; if (this.long_0 != 0L) { goto IL_56; } IL_51: goto IL_265; IL_56: num2 = 6; this.double_0 = CAD.GetScale(); IL_63: num2 = 7; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_75: num2 = 8; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_8B; } IL_86: goto IL_265; IL_8B: num2 = 11; CAD.CreateLayer("钢筋桁架_PM", 14, "continuous", -1, false, true); IL_A3: num2 = 12; flag = false; IL_A9: num2 = 13; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_B2: num2 = 14; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_C6: num2 = 15; PromptResult promptResult = editor.Drag(this); IL_D2: num2 = 16; if (promptResult.Status != 5100) { goto IL_17E; } IL_E7: num2 = 17; short num3 = (short)(this.entity_0.Length - 1); IL_F7: num2 = 18; if (num3 != 0) { goto IL_114; } IL_101: num2 = 19; CAD.AddEnt(this.entity_0[0]); goto IL_17E; IL_114: num2 = 21; IL_117: num2 = 22; array = new ObjectId[(int)(num3 + 1)]; IL_125: num2 = 23; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_139: num2 = 24; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_15B: num2 = 25; num6 += 1; } IL_16C: num2 = 26; if (!flag) { goto IL_17E; } IL_173: num2 = 27; Class36.smethod_55(array); IL_17E: goto IL_265; IL_183: goto IL_25A; IL_188: num9 = num2; if (num <= -2) { goto IL_1A3; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); goto IL_234; IL_1A3: int num10 = num9 + 1; num9 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10); IL_234 :; } catch when(endfilter(obj is Exception & num != 0 & num9 == 0)) { Exception ex = (Exception)obj2; goto IL_188; } IL_25A: throw ProjectData.CreateProjectError(-2146828237); IL_265: if (num9 != 0) { ProjectData.ClearProjectError(); } }
private void Button1_Click(object sender, EventArgs e) { int num2; int num11; object obj; try { IL_01: int num = 1; Class36.SetFocus(Application.DocumentManager.MdiActiveDocument.Window.Handle); IL_1D: num = 2; DocumentLock documentLock = Application.DocumentManager.MdiActiveDocument.LockDocument(); IL_30: ProjectData.ClearProjectError(); num2 = -2; IL_39: num = 4; double scale = CAD.GetScale(); IL_42: num = 5; if (!this.RadioButton1.Checked) { goto IL_433; } IL_54: num = 6; string text = this.TextBox1.Text; IL_63: num = 7; text = Strings.Replace(text, "\r\n", "&", 1, -1, CompareMethod.Binary); IL_7B: num = 8; string[] array = new string[1]; IL_85: num = 9; string s = text; string text2 = "&"; NF.Str2Arr(s, ref array, ref text2); IL_9A: num = 10; ObjectId[] array2; Point3d point3d; short num5; short num6; checked { short num3 = (short)Information.UBound(array, 1); IL_A8: num = 11; array2 = new ObjectId[(int)(num3 + 1 + 1)]; IL_B8: num = 12; point3d..ctor(0.0, 0.0, 0.0); IL_DD: num = 13; array2[0] = Class36.smethod_81(point3d, (int)this.short_0, scale).ObjectId; IL_101: num = 14; short num4 = 0; num5 = num3; num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_118: num = 15; if (Operators.CompareString(array[(int)num6], "0.00", false) == 0 | Operators.CompareString(array[(int)num6], "0.000", false) == 0) { IL_144: num = 16; array[(int)num6] = "%%p0.000"; } IL_151: num = 18; if (num6 >= 1) { IL_15E: num = 19; array[(int)num6] = "(" + array[(int)num6] + ")"; } IL_17A: num = 21; if (this.short_0 == 1) { IL_18B: num = 22; Point3d pointXY = CAD.GetPointXY(point3d, 300.0 * scale, 300.0 * scale); IL_1AF: num = 23; array2[(int)(checked (num6 + 1))] = Class36.smethod_57(array[(int)num6], CAD.GetPointXY(pointXY, 800.0 * scale, (double)(checked (400 * num6 + 100)) * scale), 300.0 * scale, 2, 0, "STANDARD", 0.0); } else { IL_20F: num = 25; if (this.short_0 == 2) { IL_220: num = 26; Point3d pointXY = CAD.GetPointXY(point3d, -300.0 * scale, 300.0 * scale); IL_244: num = 27; array2[(int)(checked (num6 + 1))] = Class36.smethod_57(array[(int)num6], CAD.GetPointXY(pointXY, -800.0 * scale, (double)(checked (400 * num6 + 100)) * scale), 300.0 * scale, 0, 0, "STANDARD", 0.0); } else { IL_2A4: num = 29; if (this.short_0 == 3) { IL_2B5: num = 30; Point3d pointXY = CAD.GetPointXY(point3d, -300.0 * scale, -300.0 * scale); IL_2D9: num = 31; array2[(int)(checked (num6 + 1))] = Class36.smethod_57(array[(int)num6], CAD.GetPointXY(pointXY, -800.0 * scale, (double)(checked (0 - (400 * num6 + 100 + 300))) * scale), 300.0 * scale, 0, 0, "STANDARD", 0.0); } else { IL_341: num = 33; if (this.short_0 == 4) { IL_352: num = 34; Point3d pointXY = CAD.GetPointXY(point3d, 300.0 * scale, -300.0 * scale); IL_376: num = 35; array2[(int)(checked (num6 + 1))] = Class36.smethod_57(array[(int)num6], CAD.GetPointXY(pointXY, 800.0 * scale, (double)(checked (0 - (400 * num6 + 100 + 300))) * scale), 300.0 * scale, 2, 0, "STANDARD", 0.0); } } } } IL_3D9: num = 37; num6 += 1; } IL_3E8: num = 38; JigEntIDs jigEntIDs = new JigEntIDs(); IL_3F2: num = 39; JigEntIDs jigEntIDs2 = jigEntIDs; ObjectId[] entIDs = array2; Point3d basePoint; basePoint..ctor(0.0, 0.0, 0.0); jigEntIDs2.method_0(entIDs, basePoint); IL_423: num = 40; Class36.smethod_55(array2); goto IL_77A; IL_433: num = 42; IL_436: num = 43; string text3 = this.TextBox1.Text; IL_446: num = 44; double num9 = Conversion.Val(text3); IL_452: num = 45; ObjectId[] array3 = new ObjectId[2]; IL_45C: num = 46; Point3d point = CAD.GetPoint("选择插入点: "); IL_46B: num = 47; Point3d point3d2; if (!(point != point3d2)) { goto IL_7B0; } IL_47C: num = 48; bool flag = true; for (;;) { IL_75E: num = 53; bool flag2; Point3d point3d_; if (flag2) { IL_743: num = 54; flag = (Class36.smethod_29(point3d_, ref point, "选择下一点: ") != 0); } else { IL_487: num = 56; if (!flag2) { IL_491: num = 57; point3d_ = point; } } IL_498: num = 59; if (!flag) { break; } IL_4A2: num = 60; array3[0] = Class36.smethod_81(point, (int)this.short_0, scale).ObjectId; IL_4C5: num = 61; num9 += (point.Y - point3d_.Y) / 1000.0; IL_4E6: num = 62; string string_; if (num9 == 0.0) { IL_4F8: num = 63; string_ = "%%p0.000"; } else { IL_503: num = 65; IL_506: num = 66; string_ = string.Format("{0:0.000}", num9); } IL_51B: num = 68; if (this.short_0 == 1) { IL_529: num = 69; Point3d pointXY2 = CAD.GetPointXY(point, 300.0 * scale, 300.0 * scale); IL_54C: num = 70; array3[1] = Class36.smethod_57(string_, CAD.GetPointXY(pointXY2, 800.0 * scale, 100.0 * scale), 300.0 * scale, 2, 0, "STANDARD", 0.0); } else { IL_5A0: num = 72; if (this.short_0 == 2) { IL_5AE: num = 73; Point3d pointXY2 = CAD.GetPointXY(point, -300.0 * scale, 300.0 * scale); IL_5D1: num = 74; array3[1] = Class36.smethod_57(string_, CAD.GetPointXY(pointXY2, -800.0 * scale, 100.0 * scale), 300.0 * scale, 0, 0, "STANDARD", 0.0); } else { IL_625: num = 76; if (this.short_0 == 3) { IL_633: num = 77; Point3d pointXY2 = CAD.GetPointXY(point, -300.0 * scale, -300.0 * scale); IL_656: num = 78; array3[1] = Class36.smethod_57(string_, CAD.GetPointXY(pointXY2, -800.0 * scale, -400.0 * scale), 300.0 * scale, 0, 0, "STANDARD", 0.0); } else { IL_6AA: num = 80; if (this.short_0 == 4) { IL_6B8: num = 81; Point3d pointXY2 = CAD.GetPointXY(point, 300.0 * scale, -300.0 * scale); IL_6DB: num = 82; array3[1] = Class36.smethod_57(string_, CAD.GetPointXY(pointXY2, 800.0 * scale, -400.0 * scale), 300.0 * scale, 2, 0, "STANDARD", 0.0); } } } } IL_72A: num = 84; Class36.smethod_55(array3); IL_734: num = 85; point3d_ = point; IL_73B: num = 86; flag2 = true; } IL_76A: num = 89; IL_76D: num = 90; Information.Err().Clear(); goto IL_77A; IL_7B0: num = 50; IL_7B3: goto IL_99C; IL_77A: num = 94; if (Information.Err().Number <= 0) { goto IL_7A1; } IL_78C: num = 95; Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null); IL_7A1: num = 97; documentLock.Dispose(); IL_7AB: goto IL_99C; IL_7B8: int num10 = num11 + 1; num11 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10); IL_950: goto IL_991; IL_952: num11 = num; if (num2 <= -2) { goto IL_7B8; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num2); IL_96D :; } catch when(endfilter(obj is Exception & num2 != 0 & num11 == 0)) { Exception ex = (Exception)obj2; goto IL_952; } IL_991: throw ProjectData.CreateProjectError(-2146828237); IL_99C: if (num11 != 0) { ProjectData.ClearProjectError(); } }
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(); } }
public void TcDDYZ4() { int num; int num9; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; CAD.CreateLayer("Y_引注", 4, "continuous", -3, false, true); IL_21: num2 = 3; CAD.CreateLayer("Y_引线", 5, "continuous", 13, false, true); IL_39: num2 = 4; this.double_0 = CAD.GetScale(); IL_47: num2 = 5; DBText dbtext = new DBText(); IL_51: num2 = 6; dbtext.Height = 300.0 * this.double_0; IL_6B: num2 = 7; dbtext.Rotation = 1.5707963267948966; IL_7E: num2 = 8; dbtext.WidthFactor = 0.7; IL_91: num2 = 9; this.string_0 = Clipboard.GetText(); IL_A0: num2 = 10; if (Operators.CompareString(this.string_0, "", false) != 0) { goto IL_C9; } IL_BA: num2 = 11; this.string_0 = "%%1328@200"; IL_C9: num2 = 13; if (this.string_0.Length <= 50) { goto IL_100; } IL_DE: num2 = 14; this.string_0 = this.string_0.Substring(0, 40) + "……"; IL_100: num2 = 16; dbtext.TextString = this.string_0; IL_111: num2 = 17; this.double_1 = dbtext.GeometricExtents.MaxPoint.Y - dbtext.GeometricExtents.MinPoint.Y; IL_14E: num2 = 18; bool flag = false; IL_155: num2 = 19; this.entity_0 = new Entity[2]; IL_165: num2 = 22; Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument; IL_175: num2 = 23; PromptPointOptions promptPointOptions = new PromptPointOptions("插入点:"); IL_185: num2 = 24; PromptPointResult point = mdiActiveDocument.Editor.GetPoint(promptPointOptions); IL_199: num2 = 25; if (point.Status != 5100) { goto IL_288; } IL_1B0: num2 = 26; this.point3d_2 = point.Value; IL_1C1: num2 = 27; PromptResult promptResult = mdiActiveDocument.Editor.Drag(this); IL_1D4: num2 = 28; if (promptResult.Status != 5100) { goto IL_288; } IL_1EB: num2 = 29; ObjectId[] array; short num5; short num6; checked { short num3 = (short)(this.entity_0.Length - 1); IL_1FC: num2 = 30; if (num3 != 0) { goto IL_21B; } IL_207: num2 = 31; CAD.AddEnt(this.entity_0[0]); goto IL_288; IL_21B: num2 = 33; IL_21F: num2 = 34; array = new ObjectId[(int)(num3 + 1)]; IL_22E: num2 = 35; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_242: num2 = 36; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_265: num2 = 37; num6 += 1; } IL_274: num2 = 38; if (!flag) { goto IL_288; } IL_27C: num2 = 39; Class36.smethod_55(array); IL_288: goto IL_399; IL_28D: goto IL_3A4; IL_292: num9 = num2; if (num <= -2) { goto IL_2AE; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); goto IL_373; IL_2AE: int num10 = num9 + 1; num9 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10); IL_373: goto IL_3A4; } catch when(endfilter(obj is Exception & num != 0 & num9 == 0)) { Exception ex = (Exception)obj2; goto IL_292; } IL_399: if (num9 != 0) { ProjectData.ClearProjectError(); } return; IL_3A4: throw ProjectData.CreateProjectError(-2146828237); }
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(); } }
public void TcHuaBian() { int num; int num9; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; CAD.CreateLayer("注释", 1, "continuous", 30, false, false); IL_20: num2 = 3; double scale = CAD.GetScale(); IL_29: num2 = 4; bool flag; ObjectId[] array; short num5; short num6; checked { this.short_0 = (short)Math.Round(unchecked (50.0 * scale)); IL_43: num2 = 5; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_55: num2 = 6; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_6B; } IL_66: goto IL_21A; IL_6B: num2 = 9; flag = false; IL_71: num2 = 10; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_7A: num2 = 11; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_8D: num2 = 12; PromptResult promptResult = editor.Drag(this); IL_98: num2 = 13; if (promptResult.Status != 5100) { goto IL_14A; } IL_AD: num2 = 14; short num3 = (short)(this.entity_0.Length - 1); IL_BD: num2 = 15; if (num3 != 0) { goto IL_DA; } IL_C7: num2 = 16; CAD.AddEnt(this.entity_0[0]); goto IL_14A; IL_DA: num2 = 18; IL_DD: num2 = 19; array = new ObjectId[(int)(num3 + 1)]; IL_EB: num2 = 20; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_100: num2 = 21; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_124: num2 = 22; num6 += 1; } IL_138: num2 = 23; if (!flag) { goto IL_14A; } IL_13F: num2 = 24; Class36.smethod_55(array); IL_14A: goto IL_21A; IL_14F: goto IL_225; IL_154: num9 = num2; if (num <= -2) { goto IL_16F; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); goto IL_1F4; IL_16F: int num10 = num9 + 1; num9 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10); IL_1F4: goto IL_225; } catch when(endfilter(obj is Exception & num != 0 & num9 == 0)) { Exception ex = (Exception)obj2; goto IL_154; } IL_21A: if (num9 != 0) { ProjectData.ClearProjectError(); } return; IL_225: throw ProjectData.CreateProjectError(-2146828237); }
public void FuJiaGuJin() { int num; int num10; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; Point3d point = CAD.GetPoint("选择插入点: "); IL_17: num2 = 3; Point3d point3d; if (!(point == point3d)) { goto IL_29; } IL_24: goto IL_1F7; IL_29: num2 = 6; bool flag = false; IL_2E: num2 = 7; IL_30: num2 = 8; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_38: num2 = 9; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_4C: num2 = 10; PromptResult promptResult = editor.Drag(this); IL_59: num2 = 11; ObjectId[] array = new ObjectId[6]; IL_64: num2 = 12; if (promptResult.Status != 5100) { goto IL_10A; } IL_7A: num2 = 13; short num5; short num6; checked { short num3 = (short)(this.entity_0.Length - 1); IL_89: num2 = 14; if (num3 != 0) { goto IL_A5; } IL_92: num2 = 15; CAD.AddEnt(this.entity_0[0]); goto IL_10A; IL_A5: num2 = 17; IL_A8: num2 = 18; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_BD: num2 = 19; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_E1: num2 = 20; num6 += 1; } IL_F5: num2 = 21; if (!flag) { goto IL_107; } IL_FC: num2 = 22; Class36.smethod_55(array); IL_107: num2 = 24; IL_10A: num2 = 27; JigEntIDs jigEntIDs = new JigEntIDs(); IL_113: num2 = 28; jigEntIDs.method_0(array, this.point3d_1); IL_125: goto IL_1F7; IL_12A: int num9 = num10 + 1; num10 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9); IL_1AE: goto IL_1EC; IL_1B0: num10 = num2; if (num <= -2) { goto IL_12A; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_1C9 :; } catch when(endfilter(obj is Exception & num != 0 & num10 == 0)) { Exception ex = (Exception)obj2; goto IL_1B0; } IL_1EC: throw ProjectData.CreateProjectError(-2146828237); IL_1F7: if (num10 != 0) { ProjectData.ClearProjectError(); } }
public void TcDDYZ6() { int num; int num9; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; CAD.CreateLayer("Y_引注", 4, "continuous", -3, false, true); IL_20: num2 = 3; CAD.CreateLayer("Y_引线", 5, "continuous", 13, false, true); IL_37: num2 = 4; this.double_0 = CAD.GetScale(); IL_44: num2 = 5; DBText dbtext = new DBText(); IL_4D: num2 = 6; dbtext.Height = 300.0; IL_5F: num2 = 7; dbtext.WidthFactor = 0.7; IL_71: num2 = 8; this.string_0 = Clipboard.GetText(); IL_7E: num2 = 9; if (Operators.CompareString(this.string_0, "", false) != 0) { goto IL_C4; } IL_97: num2 = 10; this.entity_0 = new Entity[3]; IL_A6: num2 = 13; this.double_1 = 300.0 * this.double_0; goto IL_15E; IL_C4: num2 = 15; IL_C7: num2 = 16; this.entity_0 = new Entity[4]; IL_D6: num2 = 19; if (this.string_0.Length <= 50) { goto IL_10B; } IL_EA: num2 = 20; this.string_0 = this.string_0.Substring(0, 40) + "……"; IL_10B: num2 = 22; dbtext.TextString = this.string_0; IL_11B: num2 = 23; this.double_1 = (dbtext.GeometricExtents.MaxPoint.X - dbtext.GeometricExtents.MinPoint.X) * this.double_0; IL_15E: num2 = 25; bool flag = false; IL_164: num2 = 26; Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument; IL_172: num2 = 27; PromptPointOptions promptPointOptions = new PromptPointOptions("插入点:"); IL_180: num2 = 28; PromptPointResult point = mdiActiveDocument.Editor.GetPoint(promptPointOptions); IL_191: num2 = 29; if (point.Status != 5100) { goto IL_27B; } IL_1A7: num2 = 30; this.point3d_2 = point.Value; IL_1B7: num2 = 31; PromptResult promptResult = mdiActiveDocument.Editor.Drag(this); IL_1C8: num2 = 32; if (promptResult.Status != 5100) { goto IL_27B; } IL_1DE: num2 = 33; ObjectId[] array; short num5; short num6; checked { short num3 = (short)(this.entity_0.Length - 1); IL_1EE: num2 = 34; if (num3 != 0) { goto IL_20B; } IL_1F8: num2 = 35; CAD.AddEnt(this.entity_0[0]); goto IL_27B; IL_20B: num2 = 37; IL_20E: num2 = 38; array = new ObjectId[(int)(num3 + 1)]; IL_21C: num2 = 39; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_231: num2 = 40; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_255: num2 = 41; num6 += 1; } IL_269: num2 = 42; if (!flag) { goto IL_27B; } IL_270: num2 = 43; Class36.smethod_55(array); IL_27B: goto IL_39B; IL_280: goto IL_3A6; IL_285: num9 = num2; if (num <= -2) { goto IL_2A0; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); goto IL_375; IL_2A0: int num10 = num9 + 1; num9 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10); IL_375: goto IL_3A6; } catch when(endfilter(obj is Exception & num != 0 & num9 == 0)) { Exception ex = (Exception)obj2; goto IL_285; } IL_39B: if (num9 != 0) { ProjectData.ClearProjectError(); } return; IL_3A6: throw ProjectData.CreateProjectError(-2146828237); }
public void TcGuJin() { int num; int num10; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; this.double_0 = CAD.GetScale(); IL_16: num2 = 3; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_28: num2 = 4; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_3E; } IL_39: goto IL_1F8; IL_3E: num2 = 7; CAD.CreateLayer("钢筋", 10, "continuous", -1, false, true); IL_55: num2 = 8; bool flag = false; IL_5A: num2 = 9; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_63: num2 = 10; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_77: num2 = 11; PromptResult promptResult = editor.Drag(this); IL_84: num2 = 12; if (promptResult.Status != 5100) { goto IL_12E; } IL_9A: num2 = 13; ObjectId[] array; short num5; short num6; checked { short num3 = (short)(this.entity_0.Length - 1); IL_A9: num2 = 14; if (num3 != 0) { goto IL_C5; } IL_B2: num2 = 15; CAD.AddEnt(this.entity_0[0]); goto IL_12E; IL_C5: num2 = 17; IL_C8: num2 = 18; array = new ObjectId[(int)(num3 + 1)]; IL_D5: 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_E9: num2 = 20; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_10B: num2 = 21; num6 += 1; } IL_11C: num2 = 22; if (!flag) { goto IL_12E; } IL_123: num2 = 23; Class36.smethod_55(array); IL_12E: goto IL_1F8; IL_133: int num9 = num10 + 1; num10 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9); IL_1AF: goto IL_1ED; IL_1B1: num10 = num2; if (num <= -2) { goto IL_133; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_1CA :; } catch when(endfilter(obj is Exception & num != 0 & num10 == 0)) { Exception ex = (Exception)obj2; goto IL_1B1; } IL_1ED: throw ProjectData.CreateProjectError(-2146828237); IL_1F8: if (num10 != 0) { ProjectData.ClearProjectError(); } }
public void TcGJHJ_LM() { int num; int num10; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; bool flag; ObjectId[] array; short num5; short num6; checked { this.long_0 = (long)Math.Round(Conversion.Val(Interaction.InputBox("输入钢筋桁架高度:", "田草CAD工具箱-绘制钢筋桁架", "100", -1, -1))); IL_32: num2 = 3; if (this.long_0 != 0L) { goto IL_4C; } IL_47: goto IL_253; IL_4C: num2 = 6; this.double_0 = CAD.GetScale(); IL_59: num2 = 7; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_6B: num2 = 8; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_80; } IL_7B: goto IL_253; IL_80: num2 = 11; CAD.CreateLayer("钢筋桁架", 14, "continuous", -1, false, true); IL_98: num2 = 12; flag = false; IL_9E: num2 = 13; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_A7: num2 = 14; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_BA: num2 = 15; PromptResult promptResult = editor.Drag(this); IL_C6: num2 = 16; if (promptResult.Status != 5100) { goto IL_179; } IL_DC: num2 = 17; short num3 = (short)(this.entity_0.Length - 1); IL_EC: num2 = 18; if (num3 != 0) { goto IL_109; } IL_F6: num2 = 19; CAD.AddEnt(this.entity_0[0]); goto IL_179; IL_109: num2 = 21; IL_10C: num2 = 22; array = new ObjectId[(int)(num3 + 1)]; IL_11A: num2 = 23; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_12F: num2 = 24; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_153: num2 = 25; num6 += 1; } IL_167: num2 = 26; if (!flag) { goto IL_179; } IL_16E: num2 = 27; Class36.smethod_55(array); IL_179: goto IL_253; IL_17E: int num9 = num10 + 1; num10 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9); IL_20A: goto IL_248; IL_20C: num10 = num2; if (num <= -2) { goto IL_17E; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_225 :; } catch when(endfilter(obj is Exception & num != 0 & num10 == 0)) { Exception ex = (Exception)obj2; goto IL_20C; } IL_248: throw ProjectData.CreateProjectError(-2146828237); IL_253: if (num10 != 0) { ProjectData.ClearProjectError(); } }
public void XieGou() { int num; int num10; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; this.double_0 = CAD.GetScale(); IL_16: num2 = 3; this.point3d_0 = CAD.GetPoint("选择插入点: "); IL_28: num2 = 4; Point3d point3d; if (!(this.point3d_0 == point3d)) { goto IL_3E; } IL_39: goto IL_1E0; IL_3E: num2 = 7; bool flag = false; IL_42: num2 = 8; Database workingDatabase = HostApplicationServices.WorkingDatabase; IL_4A: num2 = 9; Editor editor = Application.DocumentManager.MdiActiveDocument.Editor; IL_5E: num2 = 10; PromptResult promptResult = editor.Drag(this); IL_6B: num2 = 11; if (promptResult.Status != 5100) { goto IL_11A; } IL_81: num2 = 12; ObjectId[] array; short num5; short num6; checked { short num3 = (short)(this.entity_0.Length - 1); IL_91: num2 = 13; if (num3 != 0) { goto IL_AE; } IL_9B: num2 = 14; CAD.AddEnt(this.entity_0[0]); goto IL_11A; IL_AE: num2 = 16; IL_B1: num2 = 17; array = new ObjectId[(int)(num3 + 1)]; IL_BE: num2 = 18; short num4 = 0; num5 = (short)(this.entity_0.Length - 1); num6 = num4; } for (;;) { short num7 = num6; short num8 = num5; if (num7 > num8) { break; } IL_D3: num2 = 19; array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId; IL_F6: num2 = 20; num6 += 1; } IL_10A: num2 = 21; if (!flag) { goto IL_11A; } IL_110: num2 = 22; Class36.smethod_55(array); IL_11A: goto IL_1E0; IL_11F: int num9 = num10 + 1; num10 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9); IL_197: goto IL_1D5; IL_199: num10 = num2; if (num <= -2) { goto IL_11F; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_1B2 :; } catch when(endfilter(obj is Exception & num != 0 & num10 == 0)) { Exception ex = (Exception)obj2; goto IL_199; } IL_1D5: throw ProjectData.CreateProjectError(-2146828237); IL_1E0: if (num10 != 0) { ProjectData.ClearProjectError(); } }