Hi Tim,
The basic of what I am trying to do is:
- Run a set of commands and set drawing saved variables on a corperate level
- Run a set of user defined commands and user variables
I was looking to accomplish this with the acad.lsp and the acaddoc.lsp, then have a startup.scr file for the user to use if he/she wishes to have anything automatically set everytime a drawing is opened.
I am still pretty green to the lisp world, so I may be approaching this in the not-so ideal way. Using the acad.lsp and acaddoc.lsp seemed to be what is suggested after spending a lot of time researching this on the web. I feel I had things working well at one point, but as I stated I was not previously using teh S::STARTUP function, which I have recently read is needed if running a command in the acaddoc.lsp.
Specifically as you may see in my original post containing my acaddoc.lsp, I am looking to do the following:
- Autoload (3) lisp files to be used in our standard toolpalette
- Set variables to save proxy images so we do not have errors when submitting to clients and to turn off layer evaluation so we do not keep getting the layer reconciliation warnings.
- load a lisp to disable the navcube in 2D view displays
- Command specific items include:
*running a lisp to disable the navcube in 2D view displays
*purge all regapps
*reset the scale list to rid us of the XREF scale issue
*convert all VBA pipe networks and structures from older projects done in 2008 to .NET so we do not have to use the VBA object enabler which was giving us issues.
*If the user has defined a setup.scr file in the specified location on their C drive ((getvar "ROAMABLEROOTPREFIX") "SUPPORT\\"), I want their script to run
I'd rather keep the user fiel a .scr rather than a .lsp because most of them will prefer the simpler sintax of the script:
circle
0,0,0
10
I am running all these in the acaddoc because the above either sets drawing specific variables, or it's a maintenance item I want run on every drawing so the user doesn't have to do it.