As a general rule, most of the settings in the 'Options' dialog can be found in properties derived from the VLA Preferences Object and VLA Database Preferences Object; those which are drawing dependent will be stored in properties derived from the Database Preferences Object accessed from the Document Object, whereas persistent settings will be stored in properties derived from the Preferences Object accessed from the Application Object. The settings stored by the Preferences Object are also found in the registry (as environmental variables), but the Preferences Object provides a safer, user-friendly interface for retrieving and changing these settings, rather than 'blindly' changing registry values, since the functions have restricted parameters.
Thanks Lee!
VLA Preferences Object - Application Object:Interface toggles & environment settings
VLA Database Preferences Object - Document ObjectDrawing settings & objects/entities contained within
I agree running reg files is horrible and I never liked relying completely on shortcuts running /p "X:\Folder\Settings\profile.arg" alone. The problem is that is the only means of controlling things like Tool Palettes.
Tharwat gave me the easiest route to maintain a predictable environment for troubleshooting over the phone and project standardization.
The vl code with dcl gives me an environment with tools I like to use:
TextPad and every once in awhile the vlide for debugging.
I was reading through this stuff Lee wrote here:
http://www.cadtutor.net/forum/archive/index.php/t-44234.html(defun NewLay (lay)
(vl-load-com)
(setq *adoc* (cond (*adoc*) ((vla-get-ActiveDocument
(vlax-get-acad-object)))))
(if (vl-catch-all-error-p
(setq lay (vl-catch-all-apply (function vla-add)
(list (vla-get-layouts *adoc*) lay))))
(vl-catch-all-error-message lay) lay))
;; lay = New Layout Name (Will be Created if non-existent)
;; (CopytoLayout "New Layout)
(defun CopytoLayout (lay / ss NewLay ObjLst)
(vl-load-com)
; Lee Mac ~ 27.01.10
(setq *acad* (cond (*acad*) ((vlax-get-acad-object)))
*adoc* (cond (*adoc*) ((vla-get-ActiveDocument *acad*))))
(cond ( (not (snvalid lay)))
( (ssget)
(vlax-for obj (setq ss (vla-get-ActiveSelectionSet *adoc*))
(setq ObjLst (cons Obj ObjLst)))
(vla-delete ss)
(if (vl-catch-all-error-p
(setq NewLay (vl-catch-all-apply
(function vla-item)
(list (vla-get-Layouts *adoc*) lay))))
(setq NewLay (vla-Add (vla-get-Layouts *adoc*) lay)))
(vla-CopyObjects *adoc*
(vlax-make-variant
(vlax-safearray-fill
(vlax-make-safearray vlax-vbObject
(cons 0 (1- (length ObjLst))))
(reverse ObjLst)))
(vla-get-Block NewLay)))))
nopasaran
I'm going to read through some Vlisp books this weekend so I can actually write in the pseudo code to identify things in those routines to make sure I am actually fishing instead of asking for fish

This group helped me out for years, I just don't want to treat it like a crutch.
What I got assembled is a mutt right now:
(command "Layout" "New" "SHTX-1")
;;; Ed Jobe
;;; Sets a Layout to a PlotConfiguration object by
;;; passing a string representing the name of
;;; the Page Setup.
;;; Usage: (SetPlotConfig "PlotConfig_name")
(vl-load-com)
(defun SetPlotConfig (pcname / PlCfg ThisDwg AcadApp)
(setq AcadApp (vlax-get-acad-object)
ThisDwg (vla-get-activedocument AcadApp)
ThisLayout (vla-get-activelayout ThisDwg)
;; Get a valid PlotConfiguration object if it exists
PlCfg (vl-catch-all-apply
'vla-item
(list
(vla-get-PlotConfigurations
ThisDwg
)
pcname
)
)
)
(if (not (vl-catch-all-error-p plcfg))
(vla-copyfrom ThisLayout PlCfg)
)
)
;============================New Approach============================
((= shtsz "11x17")
(setq mySht "11x17-")
(setq mySuffix (getstring "\nEnter new layout description: (Example: 11x17-YourTitle) : 11x17-"))
(setq shtnm (strcat mySht mySuffix))
(command "expert" "2")
(command "Layout" "ReName" "SHTX-1" shtnm)
(command "Layout" "Set" shtnm)
(command "psetupin" "11x17-AMEP.dwt" "PDF 11x17")
(SetPlotConfig "PDF 11x17")
(command "regen")
(command "Zoom" "Extents")
(command "expert" "0")
(getNewBorder)
(oneWindow)
(command "TILEMODE" "1")
(delOldSetups)
)
;================================Old Approach==============================
((= shtsz "12x18")
(setq mySht "12x18-")
(setq mySuffix (getstring "\nEnter new layout description: (Example: 12x18-YourTitle) : 12x18-"))
(setq shtnm (strcat mySht mySuffix))
(command "expert" "2")
(command "layout" "t" "12x18-AMEP.dwt")
(command "12x18")
(command "layout" "rename" "12x18" shtnm)
(command "layout" "s" shtnm)
(command "psetupin" "12x18-AMEP.dwt" "PDF 12x18")
(command "expert" "0")
(getNewBorder)
(oneWindow)
(command "TILEMODE" "1")
(delOldSetups)
)
;================================================
I don't see this as clean or predictable yet.