... I had a user this morning have want for the ability to turn on / off double click editing; this is what I wrote for him.
(defun c:DblClkOn ( )
(if
(zerop
(vl-registry-read
(strcat
"HKEY_CURRENT_USER\\"
(vlax-product-key)
"\\profiles\\"
(vla-get-activeprofile
(vla-get-profiles
(vla-get-preferences
(vlax-get-acad-object)
)
)
)
"\\General"
)
"DoubleClickEdit"
)
)
(command ".dblclkedit" "_on")
)
(if (zerop (getvar "pickfirst"))
(setvar "pickfirst" 1)
)
(princ)
)
(defun c:DblClkOff ( )
(if
(eq 1
(vl-registry-read
(strcat
"HKEY_CURRENT_USER\\"
(vlax-product-key)
"\\profiles\\"
(vla-get-activeprofile
(vla-get-profiles
(vla-get-preferences
(vlax-get-acad-object)
)
)
)
"\\General"
)
"DoubleClickEdit"
)
)
(command ".dblclkedit" "_off")
)
(princ)
)
Cheers.