60001939 Entity in locked layer returns NEAREST OSnap

Article 60001939
Type General
Product Engine
Date Added 4/4/2013 12:00:00 AM
Fixed (4/15/2013 12:00:00 AM)
Submitted by Eric Guilhaurre

Summary

Entity in locked layer (LockLayerMethod=DisableALL) returns NEAREST OSnap, when in 3D mode, and EntitySelectMode = EyeNearest

Solution

When EntitySelectMode has the value EyeNearest or the value Auto (in 3D modes, like Hide, ShadeOn etc) then LockLayer method is ignored by Osnap Nearest. All visible (drawn) entities on screen (even those on locked layers), display their nearest OSnap.

This is done because the nearest OSnap is calculated by the OpenGL backbuffer for greater speed.

So you need to use the DrawOrder value of EntitySelectMode property in case you don’t need the Nearest Osnap in such cases, but this will be slower.

Send comments on this topic.