I would like to provide some context to my issue.
I am currently importing connections from Revit 2023 and I need to convert Revit objects into our own objects (including cross-sections).
In my case, I have a haunched beam-to-column connection where the haunch profile (family symbol) is the same than the parent beam. That cross-section/profile is an sloped flange shape.

I would expect to get from Revit API the same information (cross-section) for both elements, the beam and the haunch.
For the beam, I get the StructuralSectionGeneralI that includes the flange thickness location. But, for the haunch, it would be extremely useful to be able to process the family symbol as well as the beam, but as far as I can understand, that is not possible and I need to use the ProfileTypeI that comes from ASProfiles ... which is not nice for me as a Revit API user.
My concern is, why I can get full geometry information for the beam's cross-section but not for it's haunch (that theoretically comes from the same cross-section/family symbol)
The distance I am talking about depends on the Standard/Country, for example:

I have no control on how AS creates the ProfileTypeI from the Revit family.
Without that position, it is not possible to construct a cross-section with sloped flanges.
And it becomes worst for my importation when the haunch cross-section (family symbol) is not loaded in the current document.
Hope I have explained my self properly.
Fully appreciate your help !
Edit:
If I break the connection, this is what I get:

which is wrong because it is not an I-parallel flanges
And I am wondering why Family name (AS_EXT_BEAM_I) is not the same than the rafter's family name (M_S Shapes) 😞