SelectByPolygon Method (ISelectionManager)

SelectByPolygon Method (ISelectionManager) | Send Feedback
See Also

Result[out]
  True if the specified entities are selected, false if not

CoordinateDblArray
  Array of x, y, and z coordinates of the points that define the polygon

Crossing

  If set to... | Then entities...
  True | whose outlines intersect the polygon are within polygon are selected.
  False | whose outlines are within the polygon are selected.

Selects only the entities within a polygon or selects the entities within and that intersect the polygon.

# Syntax

Visual Basic |
--- | ---
    Function SelectByPolygon( _
       ByVal CoordinateDblArray As System.Object, _
       ByVal Crossing As System.Boolean _
    ) As System.Boolean

C# |
--- | ---
    System.bool SelectByPolygon(
       System.object CoordinateDblArray,
       System.bool Crossing
    )

JavaScript |
--- | ---
    SelectByPolygon(
       CoordinateDblArray : Array,
       Crossing : Boolean
    ) : Boolean

COM native C++ |
--- | ---
    HRESULT SelectByPolygon(
       VARIANT CoordinateDblArray,
       VARIANT_BOOL Crossing,
       VARIANT_BOOL* Result
    )

C++ |
--- | ---
    DSRESULT SelectByPolygon(
       const dsDoubleArray& CoordinateDblArray,
       bool Crossing,
       bool* Result
    )

#### Parameters

CoordinateDblArray
  Array of x, y, and z coordinates of the points that define the polygon
Crossing

  If set to... | Then entities...
  True | whose outlines intersect the polygon are within polygon are selected.
  False | whose outlines are within the polygon are selected.

Result[out] or Return Value
  True if the specified entities are selected, false if not

# See Also

####

ISelectionManager Interface
ISelectionManager Members
ISelectionManager::GetSelectedObject Method ()
ISelectionManager::GetSelectedObjects Method ()
ISelectionManager::GetSelectedObjectCount Method ()
ISelectionManager::ClearSelections Method ()
ISelectionManager::SelectByCrossline Method ()
ISelectionManager::SelectByPoint Method ()
ISelectionManager::SelectByWindow Method ()

# Availability

DraftSight V1R4.0