[/(vl-load-com)
(vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profile\\" (getvar "cprofile") "\\Dialogs\\PSETUPNavDlg") "FileNameMRU0" "C:\\Autodesk\\Publish_Template.dwt")
(vl-registry-write (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\Profile\\" (getvar "cprofile") "\\Dialogs\\PSETUPNavDlg") "InitialDirectory" "C:\\Autodesk")code]
..I updated my post above to include some code.
Hi RonJon, yes, I am already importing them,
I just saw a new trick that I feel I can expand upon and wanting to understand why the code is not working and hoping to find a new path of information by asking.
(defun PageSetup_AutoLoad (/)
;=====================================================================================================
; Load Plot Page Setup from Template file
;=====================================================================================================
(setq *path* "S:\\VDC Library\\AutoCAD\\User Interface\\Plotters\\Publish\\"
*file* "Publish_Template.dwg"
*pathfile* (strcat *path* *file*)
)
(if
(findfile *pathfile*)
(progn
(command "._psetupin" *pathfile* "*")
(while (wcmatch (getvar "cmdnames") "*PSETUPIN*") (command "_y"))
)
)
(princ)
)(PageSetup_AutoLoad)
Take a gander over here
https://www.theswamp.org/index.php?topic=40962.0 (https://www.theswamp.org/index.php?topic=40962.0)
I have my secure loaded turned off (setvar "SecureLoad" 0) and my autoload loads all my other macros but this one, so it's not that. I also believe, because you said that, you have clued me into another issue I am having, so thanksAre you an admin on your computer? Perhaps you don't have write access to the registry.
...
Anyway this is all off topic, I am interested in learning about the registry environment and why the code I supplied does not work.
I have my secure loaded turned off (setvar "SecureLoad" 0) and my autoload loads all my other macros but this one, so it's not that. I also believe, because you said that, you have clued me into another issue I am having, so thanksAre you an admin on your computer? Perhaps you don't have write access to the registry.
...
Anyway this is all off topic, I am interested in learning about the registry environment and why the code I supplied does not work.
..To be honest I don't really remember. I think it was just a bunch of searching the registry for keys that changed & wrote the lisp to modify the same keys. :oops:
RonJon, when you wrote that macro, where did you get the info to tell you what each registry name meant and how to use it? example: "InitialDirectory" "(Default)" "FileNameMRU0"
..
..In 2017, the key to modify is this:
I have only experimented with PSETUPNavDlg so the code may not even be correct for the specific one.