SketchTrim & SelectById

Hello guys,

I am facing a wierd issue with the SketchTrim. Each time I try to trim the select lines in the sketch, most the time the lines are not selected through SelectById method. However I observed that whenever the screen is zoomed in/out the selection sometimes works. Sometime on reopening the session the script works fine. Does anyone have any idea what am i missing in the code.

Thanks & Regards,

Rejo

SolidworksApi macros