Hi Aignatovich,
Thank you for your reply.
You are correct: Revit didn't create a tee fitting, but the horizontal cable tray and the vertical cable tray do connect well even there is no tee fitting. I don't know why.
I have read your code, and I know it works well when the two cable tray are both horizontal.
But I want to know how to connect a horizontalcable tray with a verticalcable tray by API.
Best Regards,
Zhangzg