Skip to content

Commit

Permalink
fixed erroneous format string and added calls to Element.GetCurve ext…
Browse files Browse the repository at this point in the history
…ension method
  • Loading branch information
Jeremy Tammik committed Oct 31, 2014
1 parent d63adbf commit 7702a5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BuildingCoder/BuildingCoder/CmdRollingOffset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static double GetWallThickness( Pipe pipe )
/// <summary>
/// Allow selection of pipe elements only.
/// </summary>
class PipeElementSelectionFilter : ISelectionFilter
public class PipeElementSelectionFilter : ISelectionFilter
{
public bool AllowElement( Element e )
{
Expand Down Expand Up @@ -214,12 +214,12 @@ ICollection<ElementId> ids

double wall_thickness = GetWallThickness( pipes[0] );

Debug.Print( "{0} has wall thickness {1}, so can label it '{2}'",
Debug.Print( "{0} has wall thickness {1}",
Util.ElementDescription( pipes[0] ),
Util.RealString( wall_thickness ) );

Curve c0 = ( pipes[0].Location as LocationCurve ).Curve;
Curve c1 = ( pipes[1].Location as LocationCurve ).Curve;
Curve c0 = pipes[0].GetCurve();
Curve c1 = pipes[1].GetCurve();

if( !( c0 is Line ) || !( c1 is Line ) )
{
Expand Down

0 comments on commit 7702a5f

Please sign in to comment.