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 SelectByRay( _
ByVal DoubleInfoIn As System.Object, _
ByVal TypeWanted As System.Integer _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim DoubleInfoIn As System.Object
Dim TypeWanted As System.Integer
Dim value As System.Boolean
value = instance.SelectByRay(DoubleInfoIn, TypeWanted) |
Parameters
- DoubleInfoIn
- Array of 7 doubles: 3 for the start point of the ray, 3 for the direction of the ray, and 1 for the radius
- TypeWanted
Type of objects to select as defined in swSelectType_e
Return Value
True if a selection is made, false if not
Example
Remarks
See Also
Availability
SolidWorks 2001Plus FCS, Revision Number 10.0