public void JMTX() { int num2; int num3; object obj; try { IL_01: int num = 1; this.Hide(); IL_09: ProjectData.ClearProjectError(); num2 = -2; IL_11: num = 3; Entity entity = Class36.smethod_72("选择一个面域:"); IL_1E: num = 4; if (entity is Region) { goto IL_33; } IL_2E: goto IL_1D3; IL_33: num = 7; IL_35: num = 8; Region region = (Region)entity; IL_3F: num = 10; Point3d point3d; Vector3d vector3d; Vector3d vector3d2; RegionAreaProperties regionAreaProperties = region.AreaProperties(ref point3d, ref vector3d, ref vector3d2); IL_51: num = 11; Plane plane = new Plane(point3d, vector3d, vector3d2); IL_61: num = 12; Point3d position = plane.EvaluatePoint(regionAreaProperties.Centroid); IL_74: num = 13; DBPoint dbpoint = new DBPoint(); IL_7E: num = 14; dbpoint.Position = position; IL_8A: num = 15; dbpoint.Color = Color.FromColorIndex(192, 0); IL_9F: num = 16; Point3d maxPoint = region.GeometricExtents.MaxPoint; IL_B4: num = 17; Point3d minPoint = region.GeometricExtents.MinPoint; IL_C9: num = 18; Math.Sqrt(Math.Pow(minPoint.get_Coordinate(0) - maxPoint.get_Coordinate(0), 2.0) + Math.Pow(minPoint.get_Coordinate(1) - maxPoint.get_Coordinate(1), 2.0) + Math.Pow(minPoint.get_Coordinate(2) - maxPoint.get_Coordinate(2), 2.0)); IL_131: goto IL_1D3; IL_136: goto IL_1DD; IL_13B: num3 = num; if (num2 <= -2) { goto IL_152; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num2); goto IL_1AE; IL_152: int num4 = num3 + 1; num3 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num4); IL_1AE: goto IL_1DD; } catch when(endfilter(obj is Exception & num2 != 0 & num3 == 0)) { Exception ex = (Exception)obj2; goto IL_13B; } IL_1D3: if (num3 != 0) { ProjectData.ClearProjectError(); } return; IL_1DD: throw ProjectData.CreateProjectError(-2146828237); }
public void TcJianTuDuiBi() { int num; int num5; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; Polyline polyline = (Polyline)Class36.smethod_72("选择原配筋简图边框:"); IL_1C: num2 = 3; Class36.smethod_73(polyline.ObjectId); IL_2A: num2 = 4; Polyline polyline2 = (Polyline)Class36.smethod_72("选择新配筋简图边框:"); IL_3D: num2 = 5; Class36.smethod_73(polyline2.ObjectId); IL_4B: num2 = 6; Point3d minPoint = polyline.GeometricExtents.MinPoint; Vector3d vectorTo = minPoint.GetVectorTo(polyline2.GeometricExtents.MinPoint); IL_78: num2 = 7; Point3dCollection point3dCollection = new Point3dCollection(); IL_81: num2 = 8; Point3d minPoint2 = polyline.GeometricExtents.MinPoint; IL_95: num2 = 9; Point3d maxPoint = polyline.GeometricExtents.MaxPoint; IL_AA: num2 = 10; point3dCollection.Add(minPoint2); IL_B7: num2 = 11; Point3dCollection point3dCollection2 = point3dCollection; minPoint..ctor(minPoint2.X, maxPoint.Y, minPoint2.Z); point3dCollection2.Add(minPoint); IL_E0: num2 = 12; point3dCollection.Add(maxPoint); IL_ED: num2 = 13; Point3dCollection point3dCollection3 = point3dCollection; minPoint..ctor(maxPoint.X, minPoint2.Y, minPoint2.Z); point3dCollection3.Add(minPoint); IL_116: num2 = 14; TypedValue[] array = new TypedValue[1]; IL_120: num2 = 15; Array array2 = array; TypedValue typedValue; typedValue..ctor(0, "TEXT"); array2.SetValue(typedValue, 0); IL_13D: num2 = 16; DBObjectCollection dbobjectCollection = 结构分析.WindowPolygon(point3dCollection, array); IL_14A: num2 = 17; IEnumerator enumerator = dbobjectCollection.GetEnumerator(); while (enumerator.MoveNext()) { DBText dbtext = (DBText)enumerator.Current; IL_170: num2 = 18; Application.DoEvents(); IL_178: num2 = 19; TypedValue[] array3 = new TypedValue[2]; IL_183: num2 = 20; Array array4 = array3; typedValue..ctor(0, "TEXT"); array4.SetValue(typedValue, 0); IL_1A1: num2 = 21; Array array5 = array3; typedValue..ctor(8, dbtext.Layer); array5.SetValue(typedValue, 1); IL_1C1: num2 = 22; Point3d entCenter = CAD.GetEntCenter(dbtext); IL_1CD: num2 = 23; entCenter..ctor(entCenter.X + vectorTo.X, entCenter.Y + vectorTo.Y, entCenter.Z + vectorTo.Z); IL_204: num2 = 24; Point3dCollection point3dCollection4 = new Point3dCollection(); IL_20E: num2 = 25; double num3 = dbtext.Height / 3.0; IL_224: num2 = 26; Point3dCollection point3dCollection5 = point3dCollection4; minPoint..ctor(entCenter.X - num3, entCenter.Y - num3, entCenter.Z); point3dCollection5.Add(minPoint); IL_253: num2 = 27; Point3dCollection point3dCollection6 = point3dCollection4; minPoint..ctor(entCenter.X - num3, entCenter.Y + num3, entCenter.Z); point3dCollection6.Add(minPoint); IL_282: num2 = 28; Point3dCollection point3dCollection7 = point3dCollection4; minPoint..ctor(entCenter.X + num3, entCenter.Y + num3, entCenter.Z); point3dCollection7.Add(minPoint); IL_2B1: num2 = 29; Point3dCollection point3dCollection8 = point3dCollection4; minPoint..ctor(entCenter.X + num3, entCenter.Y - num3, entCenter.Z); point3dCollection8.Add(minPoint); IL_2E0: num2 = 30; DBObjectCollection dbobjectCollection2 = 结构分析.CrossingPolygon(point3dCollection4, array3); IL_2EE: num2 = 31; ObjectId objectId = dbobjectCollection2[0].ObjectId; IL_300: num2 = 32; string textString = dbtext.TextString; IL_30C: num2 = 33; string txt = this.GetTxt(objectId); IL_319: num2 = 34; if (Operators.CompareString(textString, txt, false) == 0) { IL_32B: num2 = 35; Class36.smethod_64(objectId); } else { IL_338: num2 = 37; IL_33B: num2 = 38; bool flag = this.StrBiJiao(textString, txt); IL_34A: num2 = 39; if (!flag) { IL_354: num2 = 40; this.method_1(objectId); } else { IL_362: num2 = 42; IL_365: num2 = 43; this.method_0(objectId); } } IL_371: num2 = 46; } if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } IL_394: num2 = 47; Class36.smethod_74(polyline.ObjectId); IL_3A3: num2 = 48; Class36.smethod_74(polyline2.ObjectId); IL_3B2: num2 = 49; Interaction.MsgBox("简图对比完毕!", MsgBoxStyle.OkOnly, null); IL_3C2: goto IL_4E8; IL_3C7: int num4 = num5 + 1; num5 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num4); IL_49F: goto IL_4DD; IL_4A1: num5 = num2; if (num <= -2) { goto IL_3C7; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_4BA :; } catch when(endfilter(obj is Exception & num != 0 & num5 == 0)) { Exception ex = (Exception)obj2; goto IL_4A1; } IL_4DD: throw ProjectData.CreateProjectError(-2146828237); IL_4E8: if (num5 != 0) { ProjectData.ClearProjectError(); } }