Create pipe in Revit from two points problem

Did you maybe figure out how to active the fitting for the pipes?
Here is the example for what I want to do:

I have done some research and found out that I need to active the fitting action with this line of code:
I added -
from Autodesk.Revit import UI

UI.RevitCommandId.LookupPostableCommandId(UI.PostableCommand.PipeFitting)

Link to source: ApiDocs.co

Python doesn’t show up any error nor solution. I wonder what do I need to do to make this work. As shown is the video, I just click and release the pipe and it triggers the fitting.

I have also seen this from another thread:

He tried to figure it out but with no success. Is there a way for help with this?