Environment.FindClosestVertices (Point, Double, Type) Method

Looks for the model vertices whose 2D screen projections are closer to the mouse cursor skipping entities different from entType.
Public Function FindClosestVertices( _ 
ByVal mousePos As Point, _ 
ByVal maxDistance As Double, _ 
ByVal entType As Type
) As List(Of HitVertex)
This language is not supported or no code example is available.
public List<HitVertex> FindClosestVertices( 
Point mousePos
double maxDistance
Type entType 
)
This language is not supported or no code example is available.

Parameters

mousePos
Point

Mouse position (zero on top)

maxDistance
double

Limit the search to points at this distance in pixels from mouse cursor position

entType
Type

The type of entities to process

Return Value

List<HitVertex>

The list of vertices nearer than maxDistance and belonging to entities of type entType.

Remarks
 
The returned points are in the coordinate space of the EntityList.CurrentBlockReference so, if there is a current BlockReference, to get the 3D world coordinates of the points you need to transform them by the EntityList.CurrentTransformation.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition