In normal AutoCAD we have a load of scripts that run, then end with a *cancel* or *escape*, you type (command) on the last line of the script and it escapes you from whatever command was running.
We have found this useful for bringing blocks, layers, dimension styles etc into our current drawings, if you type Insert, select a drawing where these types of items are found, get to the point where you are just about to drop the drawing into your current drawing but instead of dropping it, press escape... no geometry is dropped into your drawing but all of the layers, dim styles blocks etc are now availiable in your current drawing
below is an example of one of these scripts
-insert
"h:/design department/cad/cad standards/autocad blocks/gm quick tools/gm ga blocks.dwg"
(command)
Solved! Go to Solution.
Solved by bgingerich. Go to Solution.
Is this a question if it can be done in LT ('cause it can't... "(command)" is a lisp function that is not available in LT)? Or something else?
(if ("mysolution"=answer) then (click "Accept As Solution"))
thanks for the reply... we have a load of customization on AutoCAD that we were hoping to port over to AutoCAD LT, (command) does not work in an LT script, I knew LT didnt support lisp which is why we went the script route when we were customizing AutoCAD... lets see what else needs fixing...
I know that if you put this in a button macro (instead of a separate .scr file) that "^C" can be substituted for "(command)" to cancel. It does the same thing. Wonder if it works in a script...?
Just some reading to get you started. Diesel is pretty powerful if you know how to use it. This post is a little more advanced in LT customization.
(if ("mysolution"=answer) then (click "Accept As Solution"))