Pipe Accessory cannot be rotated when family is not "Always vertical" and family instance is not vertical
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Revit API Community,
Pipe accessories Families which do not have the parameter "Always vertical" activated, if their instances are not vertical, then those cannot be rotated using the RotateElement method giving the error message below.
Pipe fitting can be rotated (rotation is achieved without errors):
Pipe fitting cannot be rotated (the above error shows up):
To reproduce:
Please use the "Gland Cocks Valve - 8-40 mm - Joined" family which comes with the out of the Box Revit Family Library, edit the family, untick the "Always vertical" family parameter and load back in the project. Create an instance of this family, select it and click once at the following grips to rotate this 90 degrees. Then use the rotate Revit command to rotate across the Z Axis.
I also noticed that the CanRotate family instance parameter returns true when the Pipe fitting cannot be rotated. This parameter should at least return false.
I am wondering if there is any reason for the above limitations?
Regards