If I understand correctly, you want to create legit types and families from an ifc file?
You don’t have to use dynamo for this, just use the link ifc, and open the automatically generated rvt file. This linking method uses the newer directshape api, while the opening method uses an older one. Directshape objects behaves more similarly to generic revit objects.
I’ve written about working on ifc files with revit here: https://infeeeee.github.io/revit/import-ifc.html
Ifc has different schemas for ifcPipe and ifcPipeFittings, and revit should import them to the correct category, so maybe it would be easier to set this up in the original program, before exporting to ifc?