Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Tammik committed Dec 16, 2015
1 parent 34095fa commit cdbabec
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions BuildingCoder/BuildingCoder/CmdWallOpenings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ namespace BuildingCoder
/// </summary>
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 ) + ")";
}
Expand Down Expand Up @@ -118,7 +120,8 @@ List<WallOpening2D> GetWallOpenings(
wallOrigin.Y - offsetOut.V, elevation + _offset );

ReferenceIntersector intersector
= new ReferenceIntersector( view );
= new ReferenceIntersector( wall.Id,
FindReferenceTarget.Face, view );

IList<ReferenceWithContext> refs
= intersector.Find( rayStart, wallDirection );
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cdbabec

Please sign in to comment.