Skip to content

Commit

Permalink
create rolling offset pipe and connected elbow fittings using NewElb…
Browse files Browse the repository at this point in the history
…owFitting
  • Loading branch information
Jeremy Tammik committed Jan 15, 2014
1 parent 84991cc commit 21f7e60
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions BuildingCoder/BuildingCoder/CmdRollingOffset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ PipeType pipe_type_standard
//uidoc.ActiveView.SketchPlane = sp;
//uidoc.ActiveView.ShowActiveWorkPlane();

FamilySymbol symbol
FamilySymbol symbol
= new FilteredElementCollector( doc )
.OfClass( typeof( FamilySymbol ) )
.OfCategory( BuiltInCategory.OST_PipeFitting )
Expand All @@ -368,7 +368,7 @@ FamilySymbol symbol
// Set up first 45 degree elbow fitting

FamilyInstance fitting0 = doc.Create
.NewFamilyInstance( q0, symbol,
.NewFamilyInstance( q0, symbol,
StructuralType.NonStructural );

fitting0.get_Parameter( "Angle" ).Set(
Expand Down Expand Up @@ -410,10 +410,10 @@ FamilySymbol symbol
fitting1.get_Parameter( "Nominal Radius" )
.Set( 0.5 * diameter );

axis = Line.CreateBound(
axis = Line.CreateBound(
q1, q1 + XYZ.BasisZ );

ElementTransformUtils.RotateElement(
ElementTransformUtils.RotateElement(
doc, fitting1.Id, axis, Math.PI );

axis = Line.CreateBound( q1, p1 );
Expand All @@ -429,10 +429,10 @@ FamilySymbol symbol

Util.Connect( con1.Origin, fitting1, pipes[1] );

con0 = Util.GetConnectorClosestTo(
con0 = Util.GetConnectorClosestTo(
fitting0, pm );

con1 = Util.GetConnectorClosestTo(
con1 = Util.GetConnectorClosestTo(
fitting1, pm );

// Connecting one fitting to the other does
Expand All @@ -444,7 +444,7 @@ FamilySymbol symbol

// Create rolling offset pipe segment

pipe = doc.Create.NewPipe( con0.Origin,
pipe = doc.Create.NewPipe( con0.Origin,
con1.Origin, pipe_type_standard );

pipe.get_Parameter( bipDiameter )
Expand Down Expand Up @@ -507,7 +507,7 @@ FamilySymbol symbol

doc.Create.NewElbowFitting( con0, con );

Connector con1 = Util.GetConnectorClosestTo(
Connector con1 = Util.GetConnectorClosestTo(
pipes[1], q1 );

con = Util.GetConnectorClosestTo(
Expand Down

0 comments on commit 21f7e60

Please sign in to comment.