IntelliCAD 11.1 Object Library | |
SelectAtPoint Method | |
See Also |
- Point
A Point object specifying the point to use for selection.
- FilterType
- Optional DXF code specifying a filter for selection.
- FilterData
Value of the filter (used if FilterType is specified).
SelectionSet Collection : SelectAtPoint Method |
Description
Selects objects passing through a point, and adds them to the SelectionSet.
Syntax
Visual Basic |
---|
Public Sub SelectAtPoint( _ ByVal Point As Point, _ Optional ByVal FilterType As Variant, _ Optional ByVal FilterData As Variant _ ) |
Parameters
- Point
A Point object specifying the point to use for selection.
- FilterType
- Optional DXF code specifying a filter for selection.
- FilterData
Value of the filter (used if FilterType is specified).
Remarks
This method is the same as the Nentsel (nested entity selection) functions of LISP and SDS.
Example
Sub main()
Dim myPt As IntelliCAD.Point
Set myPt = Application.Library.CreatePoint
ActiveDocument.SetVariable "OSMODE", 512
Set myPt = ActiveDocument.Utility.GetPoint()
Dim mySS As IntelliCAD.SelectionSet
Set mySS = ActiveDocument.SelectionSets.Add("MySs") mySS.SelectAtPoint myPt
' after call:
' myPt contains point snapped to.
' mySS contains entity (or in some cases sub-entity) found
End Sub