PropertyManagerPageSelectionbox deselect or line filter

Hi everyone,

   I have a problem with the selection control on a custom property manager page, I am writing a macro (vba) that requires a line (not arc, spline etc). The only filter I was able to find for the selection box was for sketch segments but could not find a way to specify just a line. Is there a way to do this?

   The only option I was able to figure out to accomplish this is comparing the selection using the OnSelectionboxListChanged event and SketchSegment.GetType, this would be a possible solution but the problem I am having with this approach is how to clear the selection box? I am sure I am missing something easy just can't figure it out.

Thanks!

Andy

SolidworksApi macros