Prod.: Engine, ver.: 6017, ID: 60001063, Wish : Support closest to cursor or eye nearest for signle entity select method

Wish : Support closest to cursor or eye nearest for signle entity select method

Article60001063
TypeWish
ProductEngine
Version6017
Date Added1/15/2010
FixedYes [1/15/2010]
Submitted bymeimaroglou Stavros
Keywords

Subject

Support closest to cursor or eye nearest for signle entity select method

Summary

Support closest to cursor or eye nearest for signle entity select method

Solution

Currently GetEntityFromPoint of vdLayout returns the first entity that passes throw pick rect, searching from the last to the first item in entities list.

In version  6018 a new global property EntitySelectMode was added in vdDocument in order to support closest or eye nearest select method .

The EntitySelectMode is a type of VectorDraw.Render.PickEntityMode enum which contains the following values:

DrawOrder   : Is the default operation .The entity picking operation returns the first entity that passes throw pick rect, searching from the last to the first item in entities list.

Closest         :The entity picking operation returns the closest entity to the picking point.

EyeNearest  :The entity picking operation returns the entity that is nearest to the picking point in the Current View Z-order.