Pipe Fitting Rotation Around Pipe

I have been struggling to figure out how I could rotate a pipe fitting, at specified degrees, around the axis of pipe. The OOTB box FamilyInstance.SetRotation node does not allow you to specify an axis, and I have been unable to successfully figure out how to properly use any of the other available rotation nodes. I appreciate any help and advice anyone could offer. Thank you.

Hi @jmmiller

Rotating families aling axis has been discussed many times on forum. You could search on forum search bar. Here is one of the topic Rotate family after insert along curve to the tangent


Thank for the reply Kulkul. You are correct many discussions on this topic are on this forum. I have been trying to review them. However, I think most of them are tying to do something far more complex than I am, so they are difficult to follow. At least for a Dynamo novice such as myself. I just simply want to be able to rotate a pipe fitting around an axis of the center of a pipe. See attached image for an example of what I am wanting to accomplish. The goal being to eliminate the need to cut a section view and enter the traditional rotate command to rotate a pipe fitting say 45 degrees such as in the attached image.

I am trying to develop a Dynamo file that will give me the rotation I am looking for in the image of the above post. I am currently utilizing the Rotate Family node form Archi-lab, but I can not seem to produce any type of rotation at all. If anyone could point me in the right direction it would be greatly appreciated.


This would be very useful.

1 Like

Are you looking to rotate only your pipe fitting?



Initially I want to be able to just rotate the fitting, with the hopes of eventually being able to rotate the fitting and a length of pipe coming out of the tee. The goal is to be able to model rolled fittings for piping offsets within floor plan views. It is very time consuming to have to cut a section then enter the traditional rotate command to rotate the fitting to the desired angle.

I notice you are using a Python script in your demo. Can the demonstrated rotate not have been accomplished with any of the available nodes? I am still relatively new to Dynamo and trying to learn what is possible with nodes and what requires Python scripting to accomplish.

Looks perfect! Would it be possible to see the Python code? Thanks



could you share it ?

1 Like

@jmmiller @c.barribaud @Ben_Veasey Sorry i didn’t receive your messages for some reason. If you need to reply me anything please add “@” in front of name like this “@Kulkul”.

Here is the DYN file Rotate PipeFitting.dyn (3.7 KB)

@jmmiller Ok, Let me see if i can do this for you.


@c.barribaud, @Ben_Veasey, @jmmiller
Wouldn’t it also be interesting to understand how it works and what has to be done in order to achieve this?


Thank you for providing the DYN file. I have tried to recreate the same demonstration you provided in an earlier post but did not get the desired results. After running the dynamo file you provided, my fitting was deleted, the pipe was copied and moved dramatically. the Pipe also increased in length dramatically as well. Please see images. Must I perform some sort of prep work before attempting to rotate the fitting? Thank you for any further assistance you are willing to provide.

@jmmiller You should select only fitting. Show image of your graph.

1 Like


This is my graph. It is essentially the same one you provided.

It is a great starting point. It would be better if we could pick the axis of rotation (2 points).

@jmmiller It is working fine from my side. I don’t understand why it doesn’t work for you.


See attached for the test file I am using as well as the graph I was using. As far as I can tell we are trying to do exactly the same thing. If it helps I am running Dynamo version and Revit build version 2017.1.

Rotate Fitting Test.rvt (1.8 MB)
Rotate PipeFitting_JMM.dyn (3.7 KB)

I had the same problem as jmmiller.

@jmmiller i saw your rvt file. You have imperial units. Script works only for metric at the moment. I will update soon for imperial.

1 Like