Author Topic: Getting the AUTOSNAPMARKERCOLOR in Acad2008  (Read 1762 times)

0 Members and 1 Guest are viewing this topic.

BazzaCAD

  • Guest
Getting the AUTOSNAPMARKERCOLOR in Acad2008
« on: January 16, 2008, 05:59:59 PM »
In past versions of Acad you could do:
(VLA-GET-AUTOSNAPMARKERCOLOR (VLA-GET-DRAFTING (VLA-GET-PREFERENCES (VLAX-GET-ACAD-OBJECT))))
But now in 2008 (maybe also in 2007) these colors are separated per layout and other spaces. I.E. 2D ModelSpace, Layouts, 3D Parallel, etc....
So when I change my AUTOSNAPMARKERCOLOR for 2D Model Space to something other then the default and run the above code, I still get 31.
Does anyone know where the AUTOSNAPMARKERCOLOR is stored for 2D Model Space?

CADmium

  • Newt
  • Posts: 33
Re: Getting the AUTOSNAPMARKERCOLOR in Acad2008
« Reply #1 on: January 17, 2008, 03:55:41 AM »
IMHO the variables are directly stored in the Registry, use
Code: [Select]
(mapcar
  '(lambda(X)
    (list X
    (vl-registry-read
      (strcat "HKEY_CURRENT_USER\\"
                (vlax-product-key)
                "\\FIXEDPROFILE\\EDITOR CONFIGURATION"
      )
      X
    )
    )
  )
'("Model Autosnap Color" "Layout Autosnap Color")
)

to get the values
"Bei 99% aller Probleme ist die umfassende Beschreibung des Problems bereits mehr als die Hälfte der Lösung desselben."

BazzaCAD

  • Guest
Re: Getting the AUTOSNAPMARKERCOLOR in Acad2008
« Reply #2 on: January 17, 2008, 12:52:16 PM »
that's strange, thx.