Hey guys,
My Background:
1 year drafting cert, no real programming knowledge.
CAD Lead for 50 people (about 10 months now).
You guys have been such a fantastic help in helping me learn lisp.
Unfortunately, I am stuck again.
My Work Situation:
I am running a fair sized group in a much larger company.
The company doesn't provide perfer tools, nor do they handle stuff at the client level.
That's my job.
My Tech Situation:
- AutoCAD 2008 (vanilla)
- Corporate addon with menus and dialogue boxes
- Client addon with toolbar.
Seems like both the Corporate and Client addons show up in the CUI Manager as partial CUIs.
My Problem:
What i have been trying to build is an Enterprise CUI.
I want it to load the Corporate and Client addons, then run my lisp.
I have my entire lisp within a s::startup command.
Code:;---------- Load Applications ---------- ; (defun s::startup() (load "annoallvisibleoff") (load "viewportlock") ;(load "xreflock") ; ; ;------ GENERAL SYSTEM VARIABLES ---------- ; (setvar "annoautoscale" -1) (setvar "demandload" 3) ;loads external applications to manipulate 3rd party objects. ex. excel tables. (setvar "dimassoc" 2) (setvar "dragmode" 2) (setvar "expert" 1) ;Suppresses “About to regen, proceed?” and “Really want to turn the current layer off?” (-LAYER) (setvar "fieldeval" 31) ;fields update on open, save, plot, etransmit, regeneration (setvar "fontalt" "simplex.shx") (setvar "grips" 1) (setvar "isavepercent" 0) (setvar "maxactvp" 64) (setvar "maxsort" 1000) (setvar "mirrtext" 0) (setvar "mtexted" "internal") (setvar "mtextfixed" 2) (setvar "osnapnodelegacy" 0) (setvar "osoptions" 3) (setvar "peditaccept" 1) (setvar "proxynotice" 0) (setvar "publishcollate" 0) (setvar "regenmode" 1) (setvar "visretain" 1) (setvar "savetime" 10) (setvar "selectionannodisplay" 1) (setvar "selectionpreview" 3) (setvar "setbylayermode" 127) (setvar "snapmode" 1) (command "snap" "5") (setvar "ucsicon" 3) (setvar "visretain" 1) (setvar "vplayeroverridesmode" 1) (setvar "xloadctl" 2) (setvar "xrefnotify" 2) (setvar "xreftype" 1) ; ; ;------ LINETYPE SYSTEM VARIABLES ---------- ; (setvar "celtscale" 1) (setvar "ltscale" 0.5) (setvar "msltscale" 1) (setvar "psltscale" 1) ; ; ;------ MAKE THE DRAWING EASY TO WORK WITH ---------- ; (setvar "cecolor" "bylayer") (setvar "clayer" "0") (setvar "celtype" "bylayer") (setvar "celweight" -1) (setvar "layereval" 1) (setvar "layernotify" 0) (setvar "textstyle" "standard") (command "-dimstyle" "restore" "standard") ;must use "command" because dimstyle system variable is read only. (command "-color" "bylayer") (command "imageframe" "2") (command "-units" "2" "3" "" "" "" "") ;decimal, 3 places, as found, as found, as found, as found. (command "zoom" "e") ; (setq timode(getvar "tilemode")) (if(equal timode 0)(command "pspace")) ; ; ;------ CLEAN THE DRAWING ---------- ; (setvar "clayer" "0") (command "-scalelistedit" "r" "y" "e") (command "audit" "y") (command "-purge" "regapps" "*" "no") (command "-purge" "all" "*" "no") ; ; (princ) ) ;---------- END ----------
Is there I can make my enterprise CUI prioritize after the other Partial CUIs?
thanks for the help!![]()


Reply With Quote

