From cdbabec4968a142cd278b57fa45dcb238f0fada8 Mon Sep 17 00:00:00 2001 From: Jeremy Tammik Date: Wed, 16 Dec 2015 17:25:45 +0100 Subject: [PATCH] more cleanup --- BuildingCoder/BuildingCoder/CmdWallOpenings.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/BuildingCoder/BuildingCoder/CmdWallOpenings.cs b/BuildingCoder/BuildingCoder/CmdWallOpenings.cs index 9f79c251..2c6d5fe1 100644 --- a/BuildingCoder/BuildingCoder/CmdWallOpenings.cs +++ b/BuildingCoder/BuildingCoder/CmdWallOpenings.cs @@ -24,11 +24,13 @@ namespace BuildingCoder /// class WallOpening2D { + //public ElementId Id { get; set; } public XYZ Start { get; set; } public XYZ End { get; set; } override public string ToString() { return "(" + //+ Id.ToString() + "@" + Util.PointString( Start ) + "-" + Util.PointString( End ) + ")"; } @@ -118,7 +120,8 @@ List GetWallOpenings( wallOrigin.Y - offsetOut.V, elevation + _offset ); ReferenceIntersector intersector - = new ReferenceIntersector( view ); + = new ReferenceIntersector( wall.Id, + FindReferenceTarget.Face, view ); IList refs = intersector.Find( rayStart, wallDirection ); @@ -236,14 +239,6 @@ public Result Execute( Util.InfoMsg2( msg, string.Join( "\r\n", openings ) ); - //TaskDialog dlg = new TaskDialog( "Wall Openings" ); - //dlg.MainInstruction = - // string.Format( "{0} opening{1} found{2}", - // n, Util.PluralSuffix( n ), - // Util.DotOrColon( n ) ); - //dlg.MainContent = string.Join( "\r\n", openings ); - //dlg.Show(); - return Result.Succeeded; } }