Get the object (SketchLine) of newly created offset line

Hi guys

Good day.

I want to get SketchLine object of newly created line which is a result of Offset function [ModelDoc2.SketchOffsetEntities2(double, bool, bool)]

or Convert Entity function ModelDoc2.SketchUseEdge2(false).

Note: I prefer not to use ModelDoc2.SelectByID and then get the object using SelectionMgr.GetSelectedObject(int). I don’t want to use the sketchline name to get the object because in this case I have no idea what will be the name of the newly created sketchline.

Any help would be appreciated.

Regards,

Raymund

SolidworksApi macros