Each component of an assembly is also a feature of that assembly. Therefore, to visit the components, visit the features using
ProSolidFeatVisit() and find those features whose type is
PRO_FEAT_COMPONENT using the function
ProFeatureTypeGet(). You can convert the
ProFeature object for each component to the
ProAsmcomp object by casting.