- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I need to connect branch pipe to main pipe with Tee Fitting by API, like in the picture. Branch pipe must have angle 45 degrees to main pipe. When I try to do it, I have exception about too small or too large angle. So I have to make several steps:
- Create branch pipe perpendicular to main pipe
public static Pipe Create(
Document document,
ElementId systemTypeId,
ElementId pipeTypeId,
ElementId levelId,
XYZ firstPoint,
XYZ secondPoint
)
- Create Tee Fitting
public FamilyInstance NewTeeFitting( Connector connector1, Connector connector2, Connectorconnector3)
- Disconnect branch pipe from this fitting
public void DisconnectFrom( Connectorconnector)
- Rotate the branch pipe
public bool Rotate( Line axis, doubleangle)
- Connect again
public void ConnectTo( Connectorconnector)
- Change symbol of the fitting 2 times to see effect at the draw
public FamilySymbol Symbol { get; set; }
Question: Is it possible to do it easier?
Thanks.
Solved! Go to Solution.