The fitting is a family instance.
Afaik, the main way to place a family instance it by using one of the NewFamilyInstance overloads :
https://www.revitapidocs.com/2020/451ee414-cea0-e9bd-227b-c73bc93507dd.htm
Another way that probably works better with the optimised Revit workflow and best practices is to let the pipe routing settings determine and place the appropriate fitting automatically:
https://www.google.com/search?q=routing+preferences&as_sitesearch=thebuildingcoder.typepad.com
In any case, you should research the optimal workflow and best practices to address your task at hand manually through the user interface first.
To do so, please discuss and analyse it with an experienced application engineer, product usage expert, or product support.
Once you have got that part sorted out, it is time to step up into the programming environment, cf. How to research to find a Revit API solution:
I hope this clarifies.
Thank you jeremy, your always generously helping people here is very nice.
It is solved thank to googling and other's help.
I solved this via using NewTransitionFitting method in Document Class to solved this.
Hope this hint help other one.
Thank you all!