Getting the SketchLine of a Structural Member body

Hey,

I have a structural member feature that based on a 3 lines sketch.

As you know, every line in the sketch gets is own body.

I am trying to find the SketchLine object that defined the body.

I know I can find the SketchSegment using IStructuralMemberFeatureData::Groups and the IStructuralMemberGroup::Segments, but I don't find a way to get the body from the SketchSegment.

It's better for me to find the SketchLine from the IBody2 object but if you have a way to get the Body object associated with the SketchSegment in the IStructuralMemberFeatureData is good also!

Thanks!

Bnaya Livne

SolidworksApi macros