Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

vladimir_michl
en respuesta a: Anonymous

Its is controlled through a registry variable (value). You can preset it with a LISP code:

 

 

;enable Uni
(defun c:InsUniform ( / profile)
 (vl-load-com)
 (setq profile (vla-get-ActiveProfile (vla-get-Profiles (vla-get-preferences (vlax-get-acad-object)))))
 (vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" profile "\\Dialogs\\insert_dialog") "ScaleUniformly" 1)
)
;disable Uni
(defun c:InsNonUni ( / profile)
 (vl-load-com)
 (setq profile (vla-get-ActiveProfile (vla-get-Profiles (vla-get-preferences (vlax-get-acad-object)))))
 (vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profiles\\" profile "\\Dialogs\\Layerinsert_dialogDialog") "ScaleUniformly" 0)
)

Vladimir Michl, www.cadstudio.cz  www.cadforum.cz