Page 1 of 1

Turn on and off ESNAP from .Net

Posted: Mon Jun 22, 2020 12:41 am
by geza.szabo
Is it possible to turn on and off entity snapping using the .net api? Can not find the documentation on this.
Kind regards
Geza

Re: Turn on and off ESNAP from .Net

Posted: Mon Jun 22, 2020 1:39 am
by QuanNguyen
Hi Geza,

To turn on or off the running osnap, simply set the SNAPMODE system variable to 1 or 0.

Refer:

Code: Select all

// Turn-off running osnap
Application.SetSystemVariable("SNAPMODE", 0); 

// Turn-on running osnap
Application.SetSystemVariable("SNAPMODE", 1);