I've gone through multiple references, and they all make this seem so easy...
I am re-doing my acaddoc.lsp because I just found out it has not been running correctly because I did not include the S::STARTUP function
It appears that lines 2-7 work OK, but I can not tell if the items in the S::STARTUP are working. The AutoCAD output seem to throw all the commands into one line, and the startup.scr that should be run in line 14 is not running.
Below is the acaddoc.lsp so far:
;;acaddoc.lsp to run with every file opened in AutoCAD Civil 3D
(autoload "LaunchGrading.lsp" '
("LaunchGrading")) ;;load lisp for toolpalette (autoload "LaunchUtility.lsp" '
("LaunchUtility")) ;;load lisp for toolpalette (autoload "LaunchDS.lsp" '
("LaunchDS")) ;;load lisp for toolpalette (load "disablenavcube.lsp" "disablenavcube FAILED to load") ;;loads lisp to disable viewcube in 2D display styles (setvar "layereval" 0) ;;turns off evaluation for unreconciled layers (setvar "proxygraphics" 1) ;;saves proxy image with drawing (defun-q BAstartupLD
( / userpref userpref1
) (command "._purge" "r" "*" "_n") ;;purge regapps (command "-scalelistedit" "_r" "_y" "_e");;reset scale list (command "._AeccConvertVBARulesToDotNet" "_y") ;;converts VBA pipe networks and structures to .NET (c:disablenavcube) ;;runs lisp to disable viewcube in 2D display styles
(setq userpref
(strcat (getvar "ROAMABLEROOTPREFIX") "SUPPORT\\")) ;;defines userpref variable for use in next line )
;;;acaddoc.lsp end
Below is the simple script I have as startup.scr just to see if it works (it should just draw a circle, which it is not):
_.circle 0,0,0 5
Below is the output I get in AutoCAD when opening a new file, which is concerning:
Regenerating model.
AutoCAD menu utilities loaded.
AutoCAD menu utilities loaded.._purge r * _n -scalelistedit _r _y _e
._AeccConvertVBARulesToDotNet _y _.script
C:\Users\dwahl\AppData\Roaming\Autodesk\C3D 2011\enu\SUPPORT\Startup.scr
When the script is run manually it runs fine. As shown above, it appears to be loading the script OK, but it doesn't actually produce the circle.
Any suggestions??
Thank you!