Inspired by this, here's a quick excerpt from an old Civil 3D Acad.lsp file you can cull:
Code:
(vl-load-com)
;;;--------------------------------------------------------------------;
(defun c:AcadLsp (/ *error*)
(defun *error* (msg)
(and cmdecho (setvar 'cmdecho cmdecho))
(cond ((not msg)) ; Normal exit
((member msg '("Function cancelled" "quit / exit abort"))) ; <esc> or (quit)
((princ (strcat "\n** Error: " msg " ** "))) ; Fatal error, display it
)
(princ)
)
((lambda
(user cmdecho arxList arxFiles netFiles / oFiles acadLoc)
(setvar 'cmdecho 0)
(terpri)
;; Load arx utilities
(foreach x arxFiles
(if (and (findfile x)
(not (vl-position (vl-filename-base x) arxList))
)
(vl-catch-all-apply 'arxload (list x))
)
)
;; Load net utilities
(foreach dll netFiles
(if (findfile dll)
(progn
(terpri)
(command "netload" dll)
)
)
)
;; Profile information
(setq oFiles (vla-get-files
(vla-get-preferences (vlax-get-acad-object))
)
)
(setq acadloc
(vl-registry-read
(strcat "HKEY_LOCAL_MACHINE\\"
(if vlax-user-product-key ; If 2013+
(vlax-user-product-key) ; Use 2013+ function
(vlax-product-key) ; Use legacy function
)
)
"ACADLOCATION"
)
)
(vla-put-SupportPath
oFiles
(vl-string-right-trim
";"
(apply
'strcat
(mapcar
'(lambda (x) (strcat x ";"))
(list
;;<-- set custom enterprise path(s) here
;;<-- set custom user path(s) here
(strcat (getvar 'roamablerootprefix) "support;")
(strcat acadloc "\\civil")
(strcat acadloc "\\express")
(strcat acadloc "\\fdo\\bin")
(strcat acadloc "\\fonts")
(strcat acadloc "\\help")
(strcat acadloc "\\support")
(strcat acadloc "\\support\\color")
;;<-- set additional default path(s) here
)
)
)
)
)
(*error* nil)
)
(getvar 'loginname) ; User
(getvar 'cmdecho)
(arx) ; arxList
'( ; arxFiles
;;<-- your .arx assemblies here
)
'( ; netFiles
;;<-- your .net assemblies here
)
)
)
;;;--------------------------------------------------------------------;
(c:AcadLsp)
(prompt "\n... Acad.lsp for Civil 3D 20XX loaded. ")
(princ)
HTH