How to modify the size of the autosnap marker?

<?xml encoding=”UTF-8″>By Gopinath Taget

You might wonder if there is a more straightforward way to control the Autosnap marker size without having to use DDOSNAP or OSNAP commands?

The size of the AutoSnap Marker is controlled by the AutoSnapSize variable. This variable is stored outside of AutoCAD, and can be accessed by using GETENV and SETENV. It’s important to note that the case of the letters is important, therefore capitalize the name as shown. The following two LISP commands will retrieve the value of AutoSnapSize and then set it to 10 pixels.

(getenv "AutoSnapSize")<br>(setenv "AutoSnapSize" "10")

Comments

4 responses to “How to modify the size of the autosnap marker?”

  1. Gopinath, I’m curious why System and Environment variables are treated differently when it comes to casing. System variables appear to not be case sensitive, while Environment Variables appear to require strict adherence to CamelCasing. I’ve always enjoyed LISP’s relaxed approach to casing. ;-)

  2. Hi Emmanuel,
    By definition environment variables are “A setting stored in the operating system that controls the operation of a program”. So they are not governed by AutoLisp semantics.
    Cheers
    Gopinath

  3. It is a time saver and I always work with it in AutoCAD.

  4. It helps in deciding the points of the objects.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading