how to check whether a point (or line) is inside or outside of a selected bodies in a Assembly document?

I want to create a macro which will check whether a point is inside or outside of a selected bodies of a Assembly document? Please can anyone help me.

SolidworksApi macros