Selects the first object of the specified type that is intersected by a ray from point (x,y,z in meters) in direction vector (x,y,z) within a distance radius.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function ISelectByRay( _
ByRef PointIn As System.Double, _
ByRef VectorIn As System.Double, _
ByVal RadiusIn As System.Double, _
ByVal TypeWanted As System.Integer _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim PointIn As System.Double
Dim VectorIn As System.Double
Dim RadiusIn As System.Double
Dim TypeWanted As System.Integer
Dim value As System.Boolean
value = instance.ISelectByRay(PointIn, VectorIn, RadiusIn, TypeWanted) |
Parameters
- PointIn
- Array containing 3 doubles that define the start point of the ray
- VectorIn
- Array containing 3 doubles that define the direction of the ray
- RadiusIn
Radius of the ray in meters
- TypeWanted
Type of objects to select as defined in swSelectType_e
Return Value
True if an object was selected, false if not
Remarks
See Also
Availability
SolidWorks 2001Plus FCS, Revision Number 10.0