Revit MEP cable tray creation add-in.
Sample code submitted by Gavin_WS in the Revit API discussion forum thread on Get "Failed to insert elbow" when calling NewElbowFitting for cabletray.
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.