From 302fb71ec73a5dc518422009f7ef2990cdedab18 Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Fri, 25 Feb 2022 09:33:17 +0100 Subject: [PATCH] implemented RetrieveRectangularFabricationPartTags --- BuildingCoder/CmdChangeElementColor.cs | 4 ++-- BuildingCoder/CmdCreateSlopedSlab.cs | 2 +- BuildingCoder/CmdCropToRoom.cs | 10 ++++++---- BuildingCoder/Util.cs | 2 -- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/BuildingCoder/CmdChangeElementColor.cs b/BuildingCoder/CmdChangeElementColor.cs index da1628c..538df45 100644 --- a/BuildingCoder/CmdChangeElementColor.cs +++ b/BuildingCoder/CmdChangeElementColor.cs @@ -1,4 +1,4 @@ -#region Header +#region Header // // CmdChangeElementColor.cs - Change element colour using OverrideGraphicSettings for active view @@ -35,7 +35,7 @@ public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements) - { + { var uiapp = commandData.Application; var uidoc = uiapp.ActiveUIDocument; var doc = uidoc.Document; diff --git a/BuildingCoder/CmdCreateSlopedSlab.cs b/BuildingCoder/CmdCreateSlopedSlab.cs index 21306fa..4ba9f78 100644 --- a/BuildingCoder/CmdCreateSlopedSlab.cs +++ b/BuildingCoder/CmdCreateSlopedSlab.cs @@ -30,7 +30,7 @@ namespace BuildingCoder /// [Transaction(TransactionMode.Manual)] public class CmdCreateSlopedSlab : IExternalCommand - { + { public Result Execute( ExternalCommandData revit, ref string message, diff --git a/BuildingCoder/CmdCropToRoom.cs b/BuildingCoder/CmdCropToRoom.cs index 7dfcfac..ed8e937 100644 --- a/BuildingCoder/CmdCropToRoom.cs +++ b/BuildingCoder/CmdCropToRoom.cs @@ -13,27 +13,29 @@ #region Namespaces +using System; using System.Collections.Generic; using System.Linq; +using System.Reflection; using Autodesk.Revit.Attributes; using Autodesk.Revit.DB; using Autodesk.Revit.DB.Architecture; -using Autodesk.Revit.UI; - +using Autodesk.Revit.UI; + #endregion // Namespaces namespace BuildingCoder { [Transaction(TransactionMode.Manual)] internal class CmdCropToRoom : IExternalCommand - { + { private static int _i = -1; public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements) - { + { var app = commandData.Application; var doc = app.ActiveUIDocument.Document; diff --git a/BuildingCoder/Util.cs b/BuildingCoder/Util.cs index 38d45c0..c7c4549 100644 --- a/BuildingCoder/Util.cs +++ b/BuildingCoder/Util.cs @@ -177,7 +177,6 @@ public static int Compare(Line a, Line b) d = Compare(qa.GetLength(), qb.GetLength()); } } - return d; } @@ -194,7 +193,6 @@ public static int Compare(Plane a, Plane b) d = Compare(a.XVec.AngleOnPlaneTo( b.XVec, b.Normal), 0); } - return d; }