public void TcQLJ() { int num; int num4; object obj; try { IL_01: ProjectData.ClearProjectError(); num = -2; IL_09: int num2 = 2; Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument; IL_16: num2 = 3; Database database = mdiActiveDocument.Database; IL_1F: num2 = 4; using (Transaction transaction = database.TransactionManager.StartTransaction()) { TypedValue[] array = new TypedValue[1]; Array array2 = array; TypedValue typedValue; typedValue..ctor(0, "LWPOLYLINE"); array2.SetValue(typedValue, 0); SelectionFilter selectionFilter = new SelectionFilter(array); PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection(selectionFilter); if (selection.Status == 5100) { SelectionSet value = selection.Value; if (value.Count == 1) { goto IL_285; } Entity e = null; Entity e2 = null; if (value.Count > 2) { e = (Entity)transaction.GetObject(value[0].ObjectId, 0); e2 = (Entity)transaction.GetObject(value[checked (value.Count - 1)].ObjectId, 0); } else if (value.Count == 2) { e = (Entity)transaction.GetObject(value[0].ObjectId, 0); e2 = (Entity)transaction.GetObject(value[1].ObjectId, 0); } Point3d point3d = CAD.GetEntCenter(e); Point3d point3d2 = CAD.GetEntCenter(e2); if (point3d.X > point3d2.X) { Point3d point3d3 = point3d; point3d = point3d2; point3d2 = point3d3; } else if (point3d.X == point3d2.X & point3d.Y > point3d2.Y) { Point3d point3d4 = point3d; point3d = point3d2; point3d2 = point3d4; } if (Class36.double_0 == 0.0) { Class36.double_0 = 4.0; } Class36.smethod_13(point3d, point3d2, Class36.double_0 / 2.0); } transaction.Commit(); } IL_1E4: num2 = 6; if (Information.Err().Number <= 0) { goto IL_209; } IL_1F5: num2 = 7; Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null); IL_209: goto IL_285; IL_20B: int num3 = num4 + 1; num4 = 0; @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3); IL_23F: goto IL_27A; IL_241: num4 = num2; if (num <= -2) { goto IL_20B; } @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num); IL_257 :; } catch when(endfilter(obj is Exception & num != 0 & num4 == 0)) { Exception ex = (Exception)obj2; goto IL_241; } IL_27A: throw ProjectData.CreateProjectError(-2146828237); IL_285: if (num4 != 0) { ProjectData.ClearProjectError(); } }