IGetTrimCurveSize2 & GetTrimCurves2 problems

Hi,

I'm working on a translator from SolidWorks to a CAD/CAM program.

We've managed to export almost all curves and surfaces, but I've found some problems with some cilindrical trimmed surfaces.

I'm attaching a sample SLDPRT file, where the problematic surface is the one in red.

Our code uses GetTrimCurves2 in order to obtain the trimming curves of a surface (because we treat all as trimmed surfaces), but in some situation (as the one I'm attaching) we're unable to obtain the trimming curves because IGetTrimCurveSize2 returns 0 and GetTrimCurves2 returns NULL.

I've been able to obtain some other information, like SurfaceParameterizationData or BSurfParamData. But I need the trimming curves in order to construct our exporting surface.

Is there any other way to achieve this via the Solidworks API? Or perhaps I'm missing something in this case scenario?

Thanks in advance,

Ignasi

SolidworksApi macros