<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LISP QUESTION in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774506#M163579</link>
    <description>The error you quote occurs when you call any function not valid while a dialog&lt;BR /&gt;
is active, e.g. (command ..), (entmake ...) etc.   Yet it appears the only&lt;BR /&gt;
function that is called while the dialog is active is (main) which does not make&lt;BR /&gt;
any calls to (command ..) or other functions not allowed during dialog activity&lt;BR /&gt;
(see the customization guide).&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
However, just persuing your code I found the following:&lt;BR /&gt;
&lt;BR /&gt;
In (main) you have used the symbol name 'eg' as a variable, redefining a&lt;BR /&gt;
standard function.  Any subsequent call to the eq function will result in the&lt;BR /&gt;
calling function bombing, be it your code, someone else's code, or an AutoLISP&lt;BR /&gt;
behind the scenes call.  I find you reference all other variables defined as&lt;BR /&gt;
globals in (main) from (layers), but not 'eq'.  Is this a typo?&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
General stuff I noticed ---&lt;BR /&gt;
&lt;BR /&gt;
In (layers) you are using the progn function superfluously as the parent nest of&lt;BR /&gt;
a cond statement.&lt;BR /&gt;
&lt;BR /&gt;
You have:&lt;BR /&gt;
&lt;BR /&gt;
(progn&lt;BR /&gt;
  (cond&lt;BR /&gt;
    ( (= FP "1")&lt;BR /&gt;
      ...&lt;BR /&gt;
    )&lt;BR /&gt;
    ...&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
All that's needed is:&lt;BR /&gt;
&lt;BR /&gt;
(cond&lt;BR /&gt;
  ( (= FP "1")&lt;BR /&gt;
    ...&lt;BR /&gt;
  )&lt;BR /&gt;
  ...&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
In (layers) you assume layer "t_title" exists, and if it's off, turn on a bunch&lt;BR /&gt;
of layers ---&lt;BR /&gt;
&lt;BR /&gt;
Your code:&lt;BR /&gt;
&lt;BR /&gt;
(setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
(setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
(setq ONOFF (cdr ONOFF))&lt;BR /&gt;
(if (&amp;lt; ONOFF 0)&lt;BR /&gt;
  (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
A suggestion ---&lt;BR /&gt;
&lt;BR /&gt;
(command "._layer")&lt;BR /&gt;
(foreach x '("t_cutline" "t_misc" "t_text" "t_title")&lt;BR /&gt;
  (if (setq check (tblsearch "layer" x))&lt;BR /&gt;
    (if (minusp (cdr (assoc 62 check)))&lt;BR /&gt;
      (command "_on" x)&lt;BR /&gt;
    )&lt;BR /&gt;
    (command "_new" x)&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
(command "")&lt;BR /&gt;
&lt;BR /&gt;
This way the layer is turned on if it exists and is off, otherwise it is&lt;BR /&gt;
created (if it doesn't exist).  I'm guessing by your code you need&lt;BR /&gt;
these layers.  If not, the (command ".new" x) is not required.&lt;BR /&gt;
Since there is only one call to command it will also be faster than&lt;BR /&gt;
individual calls like (command "._layer" "_on" x ""), a technique&lt;BR /&gt;
much of your subsequent code could benefit from.&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt; I actually use entmake/entmod, but I think I'll not suggest that here &amp;gt;.&lt;BR /&gt;
If you want details I'll provide them in another post.&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
You have many calls to (command ...).  Some of these calls require object&lt;BR /&gt;
selection ---&lt;BR /&gt;
&lt;BR /&gt;
Your code:&lt;BR /&gt;
&lt;BR /&gt;
(command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
&lt;BR /&gt;
If det_mview_ss is not set to a valid selection set, the command may not&lt;BR /&gt;
terminate correctly.  Anytime (command ...) does not teminate correctly, there&lt;BR /&gt;
is the chance the next call to (command ...), or a call to terminate a command&lt;BR /&gt;
=&amp;gt; (command "") &amp;lt;= in fact recalls the last thing that was called via command&lt;BR /&gt;
prior to execution of this program (c:ls2), be it by the user or another lisp&lt;BR /&gt;
program.  Said previous command could be 'mspace'.&lt;BR /&gt;
&lt;BR /&gt;
The method you are using to make a selection set of viewports, is not fullproof,&lt;BR /&gt;
nor do you test the variable before using it:&lt;BR /&gt;
&lt;BR /&gt;
Your code:&lt;BR /&gt;
&lt;BR /&gt;
(setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
&lt;BR /&gt;
All this does is grab all the objects on the noted layer.  How can you be sure&lt;BR /&gt;
only viewports are grabbed, and that any viewports were actually found?&lt;BR /&gt;
&lt;BR /&gt;
A suggestion is to be more explicit in your selection set creation, and test it&lt;BR /&gt;
before you use it:&lt;BR /&gt;
&lt;BR /&gt;
(setq&lt;BR /&gt;
  det_mview_ss&lt;BR /&gt;
  (ssget "x"&lt;BR /&gt;
   '( (8 . "det_mview")&lt;BR /&gt;
      ; only grab viewports&lt;BR /&gt;
      (0 . "viewport")&lt;BR /&gt;
      ; don't grab paperspace viewport&lt;BR /&gt;
      ; which is always vport 1&lt;BR /&gt;
      (-4 . "&lt;NOT&gt;")&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Later in your code test the variable before using:&lt;BR /&gt;
&lt;BR /&gt;
(if det_mview_ss (command "._mview" "_on" det_mview_ss ""))&lt;BR /&gt;
&lt;BR /&gt;
I generally create selection sets right where I'm going to use them, as part of&lt;BR /&gt;
the test:&lt;BR /&gt;
&lt;BR /&gt;
(if&lt;BR /&gt;
  (setq&lt;BR /&gt;
    det_mview_ss&lt;BR /&gt;
    (ssget "x"&lt;BR /&gt;
      '((8 . "det_mview")(0 . "viewport")(-4 . "&lt;NOT&gt;"))&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
  (command "._mview" "_on" det_mview_ss "")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
More stuff ---&lt;BR /&gt;
&lt;BR /&gt;
Question --- Why do you jump back and forth between (command "layer" ...) and&lt;BR /&gt;
(command "-layer" ...) ?&lt;BR /&gt;
&lt;BR /&gt;
Question --- Why turn off, and then back on, some of the same layer wildcard&lt;BR /&gt;
specs?  Aren't you finding your screen flashing a lot as a result of this code?&lt;BR /&gt;
Perhaps some logical regrouping, and then a reduction in calls to the layer&lt;BR /&gt;
command can reduce the flashing and speed up the routine.  See the following.&lt;BR /&gt;
&lt;BR /&gt;
Suggestion --- The use of foreach could significantly reduce the amount of code&lt;BR /&gt;
you have for all the turning on and off of layers, and make management of your&lt;BR /&gt;
code easier, and if set up correctly, will be much faster, particularly if you&lt;BR /&gt;
limit yourself to one call to (command "._layer ...).  An example was provided&lt;BR /&gt;
near the beginning of this message.&lt;BR /&gt;
&lt;BR /&gt;
(Entmod ...) may also be an alternative in the future.&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
All in all, this does not solve your problem, but it does offer other details&lt;BR /&gt;
you may be interested in at some point.&lt;BR /&gt;
&lt;BR /&gt;
Well that just about exhausts my welcome, and oh look, time to crash.&lt;BR /&gt;
&lt;BR /&gt;
Cheers.&lt;BR /&gt;
&lt;BR /&gt;
________________________________&lt;BR /&gt;
&lt;BR /&gt;
puckettm@cadvision.com&lt;BR /&gt;
&amp;gt; Not &amp;lt; a Member of the AutoDESK&lt;BR /&gt;
Discussion Forum Moderator Program&lt;BR /&gt;
Imagination makes all things possible.&lt;BR /&gt;
________________________________&lt;BR /&gt;
&lt;BR /&gt;
Eric Nagel &lt;ENAGEL&gt; wrote in message news:380CDE80.889BA16B@eli.net...&lt;BR /&gt;
Greetings All !&lt;BR /&gt;
I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
not have an "mspace" command anywhere in my code.  Any pointers would be&lt;BR /&gt;
thanked...&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Eric&lt;BR /&gt;
&lt;BR /&gt;
Here is the error message that I am getting:&lt;BR /&gt;
&lt;BR /&gt;
Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
(COMMAND ".mspace")&lt;BR /&gt;
(MAIN)&lt;BR /&gt;
((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG)) (&lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
#33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "") (&lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
#33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
(APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
(DONE_DIALOG)))&lt;BR /&gt;
(QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
(START_DIALOG)&lt;BR /&gt;
(PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
"cancel"&lt;BR /&gt;
"(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
(IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
(done_dialog)") (ACTION_TILE "cancel" "(done_dialog)") (START_DIALOG)&lt;BR /&gt;
(UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
(C:LS2)&lt;BR /&gt;
&lt;BR /&gt;
Here is my .lsp file:&lt;BR /&gt;
&lt;BR /&gt;
(defun c:LS2 (/)&lt;BR /&gt;
(setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
  (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
      (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
      (start_dialog)&lt;BR /&gt;
      (unload_dialog dcl_id)&lt;BR /&gt;
      (LAYER)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(defun MAIN ()&lt;BR /&gt;
&lt;BR /&gt;
(setq FP (get_tile "key_FP"))&lt;BR /&gt;
(setq CP (get_tile "key_CP"))&lt;BR /&gt;
(setq EL (get_tile "key_EL"))&lt;BR /&gt;
(setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
(setq FM (get_tile "key_FM"))&lt;BR /&gt;
(setq GP (get_tile "key_GP"))&lt;BR /&gt;
(setq DET (get_tile "key_details"))&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
(setvar "CMDECHO" 0)&lt;BR /&gt;
(setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
(setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
 (progn&lt;BR /&gt;
  (cond&lt;BR /&gt;
    ;; FLOOR PLAN ***************&lt;BR /&gt;
    ((= FP "1")&lt;BR /&gt;
     (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
     (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
     (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
     (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
       (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
     )&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; CABLE PLAN ***************&lt;BR /&gt;
    (( = CP "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
    (( = EL "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
    (( = FM "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; GROUNDING PLAN ***************&lt;BR /&gt;
    (( = GP "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; DETAILS SHEET *****************&lt;BR /&gt;
    (( = DET "1")&lt;BR /&gt;
     (setvar "CMDECHO" 0)&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
     (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "-layer" "on" "D_*" "")&lt;BR /&gt;
     (princ)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
(setvar "CMDECHO" 1)&lt;BR /&gt;
)&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
And finally, my .dcl file:&lt;BR /&gt;
&lt;BR /&gt;
ls2 : dialog {&lt;BR /&gt;
    label = "Layer Management v2.0";&lt;BR /&gt;
    : text {&lt;BR /&gt;
      label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
    }&lt;BR /&gt;
    : text {&lt;BR /&gt;
      label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
    }&lt;BR /&gt;
    : boxed_row {&lt;BR /&gt;
      label = "LAYERSET";&lt;BR /&gt;
      : radio_column {&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
           key = "key_FP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Cable Rack Plan";&lt;BR /&gt;
           key = "key_CP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Electrical Plan";&lt;BR /&gt;
           key = "key_EL";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Fiber Management";&lt;BR /&gt;
           key = "key_FM";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Grounding Plan";&lt;BR /&gt;
           key = "key_GP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Details";&lt;BR /&gt;
           key = "key_details";&lt;BR /&gt;
         }&lt;BR /&gt;
      }&lt;BR /&gt;
    }&lt;BR /&gt;
    ok_cancel;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Eric Nagel&lt;BR /&gt;
Electric Lightwave, Inc.&lt;BR /&gt;
eric_nagel@eli.net&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/ENAGEL&gt;&lt;/NOT&gt;&lt;/NOT&gt;</description>
    <pubDate>Wed, 20 Oct 1999 06:20:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>1999-10-20T06:20:17Z</dc:date>
    <item>
      <title>LISP QUESTION</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774501#M163574</link>
      <description>Greetings All !&lt;BR /&gt;
I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
not have an "mspace" command anywhere in my code.  Any pointers would be&lt;BR /&gt;
thanked...&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Eric&lt;BR /&gt;
&lt;BR /&gt;
Here is the error message that I am getting:&lt;BR /&gt;
&lt;BR /&gt;
Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
(COMMAND ".mspace")&lt;BR /&gt;
(MAIN)&lt;BR /&gt;
((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG)) (&lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
#33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "") (&lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
#33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
(APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
(DONE_DIALOG)))&lt;BR /&gt;
(QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
(START_DIALOG)&lt;BR /&gt;
(PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
"cancel"&lt;BR /&gt;
"(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
(IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
(done_dialog)") (ACTION_TILE "cancel" "(done_dialog)") (START_DIALOG)&lt;BR /&gt;
(UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
(C:LS2)&lt;BR /&gt;
&lt;BR /&gt;
Here is my .lsp file:&lt;BR /&gt;
&lt;BR /&gt;
(defun c:LS2 (/)&lt;BR /&gt;
(setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
  (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
      (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
      (start_dialog)&lt;BR /&gt;
      (unload_dialog dcl_id)&lt;BR /&gt;
      (LAYER)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(defun MAIN ()&lt;BR /&gt;
&lt;BR /&gt;
(setq FP (get_tile "key_FP"))&lt;BR /&gt;
(setq CP (get_tile "key_CP"))&lt;BR /&gt;
(setq EL (get_tile "key_EL"))&lt;BR /&gt;
(setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
(setq FM (get_tile "key_FM"))&lt;BR /&gt;
(setq GP (get_tile "key_GP"))&lt;BR /&gt;
(setq DET (get_tile "key_details"))&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
(setvar "CMDECHO" 0)&lt;BR /&gt;
(setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
(setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
 (progn&lt;BR /&gt;
  (cond&lt;BR /&gt;
    ;; FLOOR PLAN ***************&lt;BR /&gt;
    ((= FP "1")&lt;BR /&gt;
     (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
     (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
     (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
     (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
       (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
     )&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; CABLE PLAN ***************&lt;BR /&gt;
    (( = CP "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
    (( = EL "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
    (( = FM "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; GROUNDING PLAN ***************&lt;BR /&gt;
    (( = GP "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; DETAILS SHEET *****************&lt;BR /&gt;
    (( = DET "1")&lt;BR /&gt;
     (setvar "CMDECHO" 0)&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
     (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "-layer" "on" "D_*" "")&lt;BR /&gt;
     (princ)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
(setvar "CMDECHO" 1)&lt;BR /&gt;
)&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
And finally, my .dcl file:&lt;BR /&gt;
&lt;BR /&gt;
ls2 : dialog {&lt;BR /&gt;
    label = "Layer Management v2.0";&lt;BR /&gt;
    : text {&lt;BR /&gt;
      label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
    }&lt;BR /&gt;
    : text {&lt;BR /&gt;
      label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
    }&lt;BR /&gt;
    : boxed_row {&lt;BR /&gt;
      label = "LAYERSET";&lt;BR /&gt;
      : radio_column {&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
           key = "key_FP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Cable Rack Plan";&lt;BR /&gt;
           key = "key_CP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Electrical Plan";&lt;BR /&gt;
           key = "key_EL";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Fiber Management";&lt;BR /&gt;
           key = "key_FM";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Grounding Plan";&lt;BR /&gt;
           key = "key_GP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Details";&lt;BR /&gt;
           key = "key_details";&lt;BR /&gt;
         }&lt;BR /&gt;
      }&lt;BR /&gt;
    }&lt;BR /&gt;
    ok_cancel;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Eric Nagel&lt;BR /&gt;
Electric Lightwave, Inc.&lt;BR /&gt;
eric_nagel@eli.net&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Tue, 19 Oct 1999 21:11:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774501#M163574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-19T21:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: LISP QUESTION</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774502#M163575</link>
      <description>I forgot to mention that that I am loading this routine thru my&lt;BR /&gt;
'acadr14.lsp' file.  When I appload the file, it works just fine...I'm&lt;BR /&gt;
stumped...&lt;BR /&gt;
&lt;BR /&gt;
Eric Nagel wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Greetings All !&lt;BR /&gt;
&amp;gt; I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
&amp;gt; hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
&amp;gt; not have an "mspace" command anywhere in my code.  Any pointers would be&lt;BR /&gt;
&amp;gt; thanked...&lt;BR /&gt;
&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; Eric&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt; (MAIN)&lt;BR /&gt;
&amp;gt; ((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG)) (&lt;&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; #33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "") (&lt;&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; #33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
&amp;gt; (APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
&amp;gt; (DONE_DIALOG)))&lt;BR /&gt;
&amp;gt; (QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
&amp;gt; (START_DIALOG)&lt;BR /&gt;
&amp;gt; (PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
&amp;gt; "cancel"&lt;BR /&gt;
&amp;gt; "(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
&amp;gt; (IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
&amp;gt; (done_dialog)") (ACTION_TILE "cancel" "(done_dialog)") (START_DIALOG)&lt;BR /&gt;
&amp;gt; (UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
&amp;gt; (C:LS2)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is my .lsp file:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun c:LS2 (/)&lt;BR /&gt;
&amp;gt; (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
&amp;gt;   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
&amp;gt;     (progn&lt;BR /&gt;
&amp;gt;       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
&amp;gt;       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
&amp;gt;       (start_dialog)&lt;BR /&gt;
&amp;gt;       (unload_dialog dcl_id)&lt;BR /&gt;
&amp;gt;       (LAYER)&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt; (princ)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun MAIN ()&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (setq FP (get_tile "key_FP"))&lt;BR /&gt;
&amp;gt; (setq CP (get_tile "key_CP"))&lt;BR /&gt;
&amp;gt; (setq EL (get_tile "key_EL"))&lt;BR /&gt;
&amp;gt; (setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
&amp;gt; (setq FM (get_tile "key_FM"))&lt;BR /&gt;
&amp;gt; (setq GP (get_tile "key_GP"))&lt;BR /&gt;
&amp;gt; (setq DET (get_tile "key_details"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (princ)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
&amp;gt; (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; (setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
&amp;gt; (setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
&amp;gt;  (progn&lt;BR /&gt;
&amp;gt;   (cond&lt;BR /&gt;
&amp;gt;     ;; FLOOR PLAN ***************&lt;BR /&gt;
&amp;gt;     ((= FP "1")&lt;BR /&gt;
&amp;gt;      (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
&amp;gt;      (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
&amp;gt;      (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
&amp;gt;      (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
&amp;gt;        (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
&amp;gt;      )&lt;BR /&gt;
&amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;     ;; CABLE PLAN ***************&lt;BR /&gt;
&amp;gt;     (( = CP "1")&lt;BR /&gt;
&amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;     ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
&amp;gt;     (( = EL "1")&lt;BR /&gt;
&amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;     ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
&amp;gt;     (( = FM "1")&lt;BR /&gt;
&amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;     ;; GROUNDING PLAN ***************&lt;BR /&gt;
&amp;gt;     (( = GP "1")&lt;BR /&gt;
&amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;     ;; DETAILS SHEET *****************&lt;BR /&gt;
&amp;gt;     (( = DET "1")&lt;BR /&gt;
&amp;gt;      (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;      (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
&amp;gt;      (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt;      (command "-layer" "on" "D_*" "")&lt;BR /&gt;
&amp;gt;      (princ)&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt; (setvar "CMDECHO" 1)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; (princ)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; And finally, my .dcl file:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; ls2 : dialog {&lt;BR /&gt;
&amp;gt;     label = "Layer Management v2.0";&lt;BR /&gt;
&amp;gt;     : text {&lt;BR /&gt;
&amp;gt;       label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
&amp;gt;     }&lt;BR /&gt;
&amp;gt;     : text {&lt;BR /&gt;
&amp;gt;       label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
&amp;gt;     }&lt;BR /&gt;
&amp;gt;     : boxed_row {&lt;BR /&gt;
&amp;gt;       label = "LAYERSET";&lt;BR /&gt;
&amp;gt;       : radio_column {&lt;BR /&gt;
&amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt;            label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
&amp;gt;            key = "key_FP";&lt;BR /&gt;
&amp;gt;          }&lt;BR /&gt;
&amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt;            label = "Cable Rack Plan";&lt;BR /&gt;
&amp;gt;            key = "key_CP";&lt;BR /&gt;
&amp;gt;          }&lt;BR /&gt;
&amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt;            label = "Electrical Plan";&lt;BR /&gt;
&amp;gt;            key = "key_EL";&lt;BR /&gt;
&amp;gt;          }&lt;BR /&gt;
&amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt;            label = "Fiber Management";&lt;BR /&gt;
&amp;gt;            key = "key_FM";&lt;BR /&gt;
&amp;gt;          }&lt;BR /&gt;
&amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt;            label = "Grounding Plan";&lt;BR /&gt;
&amp;gt;            key = "key_GP";&lt;BR /&gt;
&amp;gt;          }&lt;BR /&gt;
&amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt;            label = "Details";&lt;BR /&gt;
&amp;gt;            key = "key_details";&lt;BR /&gt;
&amp;gt;          }&lt;BR /&gt;
&amp;gt;       }&lt;BR /&gt;
&amp;gt;     }&lt;BR /&gt;
&amp;gt;     ok_cancel;&lt;BR /&gt;
&amp;gt; }&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Eric Nagel&lt;BR /&gt;
Electric Lightwave, Inc.&lt;BR /&gt;
eric_nagel@eli.net&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;</description>
      <pubDate>Tue, 19 Oct 1999 21:26:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774502#M163575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-19T21:26:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774503#M163576</link>
      <description>Eric,&lt;BR /&gt;
&lt;BR /&gt;
I'm thinking that AutoCAD is not ready to evaluate any "command" statements&lt;BR /&gt;
when 'acadr14' is being loaded, or even when 'acad.lsp' is loaded unless it&lt;BR /&gt;
is in the S::Startup section.&lt;BR /&gt;
&lt;BR /&gt;
Actually, 'acadr14' is for Autodesk use and you should put nothing in it. &lt;BR /&gt;
Any external AutoLISP programs should have a stub loader, or an autoloading&lt;BR /&gt;
statement, in your 'acad.lsp'.  That way the program isn't actually loaded&lt;BR /&gt;
and evaluated until you are ready to use it.  There are also other means of&lt;BR /&gt;
loading external programs as well.&lt;BR /&gt;
&lt;BR /&gt;
If you would like more information on loading methods, please indicate such&lt;BR /&gt;
and someone will respond.&lt;BR /&gt;
--&lt;BR /&gt;
Dave D&lt;BR /&gt;
&lt;BR /&gt;
Eric Nagel &lt;ENAGEL&gt; wrote in article &amp;lt;380CE20A.37162685@eli.net&amp;gt;...&lt;BR /&gt;
&amp;gt; I forgot to mention that that I am loading this routine thru my&lt;BR /&gt;
&amp;gt; 'acadr14.lsp' file.  When I appload the file, it works just fine...I'm&lt;BR /&gt;
&amp;gt; stumped...&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Eric Nagel wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &amp;gt; Greetings All !&lt;BR /&gt;
&amp;gt; &amp;gt; I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
&amp;gt; &amp;gt; hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
&amp;gt; &amp;gt; not have an "mspace" command anywhere in my code.  Any pointers would&lt;BR /&gt;
be&lt;BR /&gt;
&amp;gt; &amp;gt; thanked...&lt;BR /&gt;
&amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; Eric&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt; &amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt; &amp;gt; (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; ((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG))&lt;BR /&gt;
(&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; #33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "")&lt;BR /&gt;
(&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; #33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
&amp;gt; &amp;gt; (APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; (DONE_DIALOG)))&lt;BR /&gt;
&amp;gt; &amp;gt; (QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
&amp;gt; &amp;gt; (START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; (PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
&amp;gt; &amp;gt; "cancel"&lt;BR /&gt;
&amp;gt; &amp;gt; "(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
&amp;gt; &amp;gt; (IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; (done_dialog)") (ACTION_TILE "cancel" "(done_dialog)") (START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; (UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
&amp;gt; &amp;gt; (C:LS2)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Here is my .lsp file:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun c:LS2 (/)&lt;BR /&gt;
&amp;gt; &amp;gt; (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
&amp;gt; &amp;gt;   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt;     (progn&lt;BR /&gt;
&amp;gt; &amp;gt;       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt;       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt;       (start_dialog)&lt;BR /&gt;
&amp;gt; &amp;gt;       (unload_dialog dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt;       (LAYER)&lt;BR /&gt;
&amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun MAIN ()&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (setq FP (get_tile "key_FP"))&lt;BR /&gt;
&amp;gt; &amp;gt; (setq CP (get_tile "key_CP"))&lt;BR /&gt;
&amp;gt; &amp;gt; (setq EL (get_tile "key_EL"))&lt;BR /&gt;
&amp;gt; &amp;gt; (setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
&amp;gt; &amp;gt; (setq FM (get_tile "key_FM"))&lt;BR /&gt;
&amp;gt; &amp;gt; (setq GP (get_tile "key_GP"))&lt;BR /&gt;
&amp;gt; &amp;gt; (setq DET (get_tile "key_details"))&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; (defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
&amp;gt; &amp;gt; (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt; (setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt; (setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt;  (progn&lt;BR /&gt;
&amp;gt; &amp;gt;   (cond&lt;BR /&gt;
&amp;gt; &amp;gt;     ;; FLOOR PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt;     ((= FP "1")&lt;BR /&gt;
&amp;gt; &amp;gt;      (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
&amp;gt; &amp;gt;      (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
&amp;gt; &amp;gt;      (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
&amp;gt; &amp;gt;      (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
&amp;gt; &amp;gt;        (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      )&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
"")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt;     ;; CABLE PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt;     (( = CP "1")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
"")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt;     ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt;     (( = EL "1")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
"")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt;     ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt;     (( = FM "1")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
"")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt;     ;; GROUNDING PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt;     (( = GP "1")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
"")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt;     ;; DETAILS SHEET *****************&lt;BR /&gt;
&amp;gt; &amp;gt;     (( = DET "1")&lt;BR /&gt;
&amp;gt; &amp;gt;      (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
"")&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (command "-layer" "on" "D_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt;      (princ)&lt;BR /&gt;
&amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; (setvar "CMDECHO" 1)&lt;BR /&gt;
&amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; And finally, my .dcl file:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; ls2 : dialog {&lt;BR /&gt;
&amp;gt; &amp;gt;     label = "Layer Management v2.0";&lt;BR /&gt;
&amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt;       label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
&amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt;       label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
&amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt;     : boxed_row {&lt;BR /&gt;
&amp;gt; &amp;gt;       label = "LAYERSET";&lt;BR /&gt;
&amp;gt; &amp;gt;       : radio_column {&lt;BR /&gt;
&amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt;            label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
&amp;gt; &amp;gt;            key = "key_FP";&lt;BR /&gt;
&amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt;            label = "Cable Rack Plan";&lt;BR /&gt;
&amp;gt; &amp;gt;            key = "key_CP";&lt;BR /&gt;
&amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt;            label = "Electrical Plan";&lt;BR /&gt;
&amp;gt; &amp;gt;            key = "key_EL";&lt;BR /&gt;
&amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt;            label = "Fiber Management";&lt;BR /&gt;
&amp;gt; &amp;gt;            key = "key_FM";&lt;BR /&gt;
&amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt;            label = "Grounding Plan";&lt;BR /&gt;
&amp;gt; &amp;gt;            key = "key_GP";&lt;BR /&gt;
&amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt;            label = "Details";&lt;BR /&gt;
&amp;gt; &amp;gt;            key = "key_details";&lt;BR /&gt;
&amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt;       }&lt;BR /&gt;
&amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt;     ok_cancel;&lt;BR /&gt;
&amp;gt; &amp;gt; }&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/ENAGEL&gt;</description>
      <pubDate>Tue, 19 Oct 1999 22:20:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774503#M163576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-19T22:20:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774504#M163577</link>
      <description>David,&lt;BR /&gt;
I cut my load statements out of my acadr14.lsp file and pasted them into my&lt;BR /&gt;
acad.lsp file and restarted my AutoCAD, tried running my routine again, which I&lt;BR /&gt;
have a button for, and the same error message came up again.  I guess I would&lt;BR /&gt;
like to look at some different options for loading AutoLISP routine...This has&lt;BR /&gt;
really got me confused...it was working last Friday, and now...nothing...???&lt;BR /&gt;
Eric&lt;BR /&gt;
&lt;BR /&gt;
David Doane wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Eric,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I'm thinking that AutoCAD is not ready to evaluate any "command" statements&lt;BR /&gt;
&amp;gt; when 'acadr14' is being loaded, or even when 'acad.lsp' is loaded unless it&lt;BR /&gt;
&amp;gt; is in the S::Startup section.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Actually, 'acadr14' is for Autodesk use and you should put nothing in it.&lt;BR /&gt;
&amp;gt; Any external AutoLISP programs should have a stub loader, or an autoloading&lt;BR /&gt;
&amp;gt; statement, in your 'acad.lsp'.  That way the program isn't actually loaded&lt;BR /&gt;
&amp;gt; and evaluated until you are ready to use it.  There are also other means of&lt;BR /&gt;
&amp;gt; loading external programs as well.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If you would like more information on loading methods, please indicate such&lt;BR /&gt;
&amp;gt; and someone will respond.&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Dave D&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Eric Nagel &lt;ENAGEL&gt; wrote in article &amp;lt;380CE20A.37162685@eli.net&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt; I forgot to mention that that I am loading this routine thru my&lt;BR /&gt;
&amp;gt; &amp;gt; 'acadr14.lsp' file.  When I appload the file, it works just fine...I'm&lt;BR /&gt;
&amp;gt; &amp;gt; stumped...&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Eric Nagel wrote:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Greetings All !&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; not have an "mspace" command anywhere in my code.  Any pointers would&lt;BR /&gt;
&amp;gt; be&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; thanked...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Eric&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; ((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG))&lt;BR /&gt;
&amp;gt; (&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; #33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "")&lt;BR /&gt;
&amp;gt; (&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; #33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (DONE_DIALOG)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "cancel"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (done_dialog)") (ACTION_TILE "cancel" "(done_dialog)") (START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (C:LS2)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Here is my .lsp file:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (defun c:LS2 (/)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     (progn&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       (start_dialog)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       (unload_dialog dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       (LAYER)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (defun MAIN ()&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq FP (get_tile "key_FP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq CP (get_tile "key_CP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq EL (get_tile "key_EL"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq FM (get_tile "key_FM"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq GP (get_tile "key_GP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq DET (get_tile "key_details"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;  (progn&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   (cond&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ;; FLOOR PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ((= FP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;        (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ;; CABLE PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     (( = CP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     (( = EL "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     (( = FM "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ;; GROUNDING PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     (( = GP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ;; DETAILS SHEET *****************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     (( = DET "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "D_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;      (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (setvar "CMDECHO" 1)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; And finally, my .dcl file:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; ls2 : dialog {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     label = "Layer Management v2.0";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     : boxed_row {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       label = "LAYERSET";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       : radio_column {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            key = "key_FP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            label = "Cable Rack Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            key = "key_CP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            label = "Electrical Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            key = "key_EL";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            label = "Fiber Management";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            key = "key_FM";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            label = "Grounding Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            key = "key_GP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            label = "Details";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;            key = "key_details";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;       }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;     ok_cancel;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Eric Nagel&lt;BR /&gt;
Electric Lightwave, Inc.&lt;BR /&gt;
eric_nagel@eli.net&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/ENAGEL&gt;</description>
      <pubDate>Tue, 19 Oct 1999 22:56:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774504#M163577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-19T22:56:05Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774505#M163578</link>
      <description>Eric,&lt;BR /&gt;
&lt;BR /&gt;
In part, perhaps I misunderstood how you were loading the program as I&lt;BR /&gt;
thought you were pasting the whole program in 'acadr14' and not just a&lt;BR /&gt;
loader.  However, by advice still stands as far as placing anything in&lt;BR /&gt;
'acadr14'.&lt;BR /&gt;
&lt;BR /&gt;
I would have to see the load statement in your 'acad.lsp' to evaluate it. &lt;BR /&gt;
If it's a case of (load "LS2") in the main body, it should be in the&lt;BR /&gt;
S::Startup section.  However, I would still suggest loading on an as need&lt;BR /&gt;
basis.&lt;BR /&gt;
&lt;BR /&gt;
Also, as I am not versed in the DCL language, I cannot help you much there,&lt;BR /&gt;
but there are others that surely can.  While you do not use the command&lt;BR /&gt;
'mspace' in your program, nor do you use 'lambda', and since the error&lt;BR /&gt;
message points out six subroutines in succession, you might look at&lt;BR /&gt;
something you are doing in a multiple of six.  Just an idea.  Also, I am&lt;BR /&gt;
not familiar with 'command list data' either, but that is the key.&lt;BR /&gt;
&lt;BR /&gt;
I have other thoughts, but they depend on whether you are pasting the whole&lt;BR /&gt;
program in 'acad.lsp' or just a loader.  However, at this point take a look&lt;BR /&gt;
at the stub and autoloading information that I will paste below.  If  you&lt;BR /&gt;
are familiar with it all, we'll both have a good laugh on me.  &lt;G&gt;  When&lt;BR /&gt;
you get this working, I would like to make some other suggestions&lt;BR /&gt;
concerning the use of multiple instances of 'command' and 'setq', but one&lt;BR /&gt;
thing at a time.&lt;BR /&gt;
&lt;BR /&gt;
Here is the info written in general terms for R14 and A2K.  Let us know if&lt;BR /&gt;
it helps.&lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------------------------------------------&lt;BR /&gt;
-------&lt;BR /&gt;
&lt;BR /&gt;
The most efficient way is with (autoload file cmdlist), which can be placed&lt;BR /&gt;
in any one of several files.  Since I use a partial menu to override a&lt;BR /&gt;
portion the ACAD.mnu, which I never alter, I use an accompanying .mnl file&lt;BR /&gt;
for the overwrite instructions, and to hold my autoloader extension. &lt;BR /&gt;
However, it will work great if just placed in Acad.lsp for R14, or&lt;BR /&gt;
AcadDOC.lsp for AutoCAD 2000.&lt;BR /&gt;
&lt;BR /&gt;
In AutoCAD 2000, Acad.lsp is just loaded when entering AutoCAD (unless&lt;BR /&gt;
'lispasdoc' is set to 1), and AcadDOC.lsp is loaded with each drawing.&lt;BR /&gt;
&lt;BR /&gt;
If you don't have an Acad.lsp or an AcadDOC.lsp, create a simple text file&lt;BR /&gt;
with the extension .lsp and place it anywhere in the AutoCAD support path. &lt;BR /&gt;
Your entry will look like this:&lt;BR /&gt;
&lt;BR /&gt;
(autoload "filename" '("commandname"))&lt;BR /&gt;
&lt;BR /&gt;
filename being without the .lsp extension, and commandname being the defun&lt;BR /&gt;
name, as C:ENTLIST, as in the example:&lt;BR /&gt;
&lt;BR /&gt;
(autoload "entlist" '("entlist"))&lt;BR /&gt;
(autoload "nentlist" '("nentlist"))&lt;BR /&gt;
(autoload "multilist" '("multilist"))&lt;BR /&gt;
&lt;BR /&gt;
When you have multiple programs in one file, you would use:&lt;BR /&gt;
&lt;BR /&gt;
(autoload "entlist" '("entlist" "nentlist" "multilist"))&lt;BR /&gt;
(autoload "pie" '("apple" "peach" "pear" "pumpkin" "potato"))&lt;BR /&gt;
&lt;BR /&gt;
Which in this case has three &amp;amp; five commands (programs) within each file.&lt;BR /&gt;
&lt;BR /&gt;
This way the program files are not loaded until you need them, and the&lt;BR /&gt;
loading is completely automatic.  If you are using a menu, or at the&lt;BR /&gt;
command prompt, the entry is simply the command, such as:  entlist&lt;BR /&gt;
&lt;BR /&gt;
If you wonder how it works, the autoloader engine has already been fired up&lt;BR /&gt;
by AutoCAD, and you are just extending its capabilities.&lt;BR /&gt;
&lt;BR /&gt;
Another way is to place a stub loader in your Acad.lsp or AcadDOC.lsp as:&lt;BR /&gt;
&lt;BR /&gt;
(defun C:ENTLIST ()&lt;BR /&gt;
  (load "C:/alisp/entlist") (c:entlist)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
The first time you invoke the command, the stub loader loads it and runs&lt;BR /&gt;
the program.  Afterward, the program just runs because the stub had been&lt;BR /&gt;
superseded by the program.&lt;BR /&gt;
&lt;BR /&gt;
I hope the heck all this makes sense.  &lt;G&gt;&lt;BR /&gt;
-- &lt;BR /&gt;
Dave D&lt;BR /&gt;
------------------------------------------------------&lt;BR /&gt;
Eric Nagel &lt;ENAGEL&gt; wrote in article &amp;lt;380CF704.9B50C958@eli.net&amp;gt;...&lt;BR /&gt;
&amp;gt; David,&lt;BR /&gt;
&amp;gt; I cut my load statements out of my acadr14.lsp file and pasted them into&lt;BR /&gt;
my&lt;BR /&gt;
&amp;gt; acad.lsp file and restarted my AutoCAD, tried running my routine again,&lt;BR /&gt;
which I&lt;BR /&gt;
&amp;gt; have a button for, and the same error message came up again.  I guess I&lt;BR /&gt;
would&lt;BR /&gt;
&amp;gt; like to look at some different options for loading AutoLISP&lt;BR /&gt;
routine...This has&lt;BR /&gt;
&amp;gt; really got me confused...it was working last Friday, and&lt;BR /&gt;
now...nothing...???&lt;BR /&gt;
&amp;gt; Eric&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; David Doane wrote:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &amp;gt; Eric,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; I'm thinking that AutoCAD is not ready to evaluate any "command"&lt;BR /&gt;
statements&lt;BR /&gt;
&amp;gt; &amp;gt; when 'acadr14' is being loaded, or even when 'acad.lsp' is loaded&lt;BR /&gt;
unless it&lt;BR /&gt;
&amp;gt; &amp;gt; is in the S::Startup section.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Actually, 'acadr14' is for Autodesk use and you should put nothing in&lt;BR /&gt;
it.&lt;BR /&gt;
&amp;gt; &amp;gt; Any external AutoLISP programs should have a stub loader, or an&lt;BR /&gt;
autoloading&lt;BR /&gt;
&amp;gt; &amp;gt; statement, in your 'acad.lsp'.  That way the program isn't actually&lt;BR /&gt;
loaded&lt;BR /&gt;
&amp;gt; &amp;gt; and evaluated until you are ready to use it.  There are also other&lt;BR /&gt;
means of&lt;BR /&gt;
&amp;gt; &amp;gt; loading external programs as well.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If you would like more information on loading methods, please indicate&lt;BR /&gt;
such&lt;BR /&gt;
&amp;gt; &amp;gt; and someone will respond.&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Dave D&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Eric Nagel &lt;ENAGEL&gt; wrote in article&lt;BR /&gt;
&amp;lt;380CE20A.37162685@eli.net&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I forgot to mention that that I am loading this routine thru my&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; 'acadr14.lsp' file.  When I appload the file, it works just&lt;BR /&gt;
fine...I'm&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; stumped...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Eric Nagel wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Greetings All !&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; hoping someone will be able to help me out with this...Notice that&lt;BR /&gt;
I do&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; not have an "mspace" command anywhere in my code.  Any pointers&lt;BR /&gt;
would&lt;BR /&gt;
&amp;gt; &amp;gt; be&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; thanked...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Eric&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG))&lt;BR /&gt;
&amp;gt; &amp;gt; (&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; #33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; (&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; #33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (DONE_DIALOG)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; "cancel"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; "(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (done_dialog)") (ACTION_TILE "cancel" "(done_dialog)")&lt;BR /&gt;
(START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (C:LS2)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Here is my .lsp file:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (defun c:LS2 (/)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     (progn&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       (start_dialog)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       (unload_dialog dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       (LAYER)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (defun MAIN ()&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq FP (get_tile "key_FP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq CP (get_tile "key_CP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq EL (get_tile "key_EL"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq FM (get_tile "key_FM"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq GP (get_tile "key_GP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq DET (get_tile "key_details"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;  (progn&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   (cond&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; FLOOR PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ((= FP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;        (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
"A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; CABLE PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = CP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
"A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = EL "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
"A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = FM "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
"A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; GROUNDING PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = GP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
"A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; DETAILS SHEET *****************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = DET "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
"A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "D_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (setvar "CMDECHO" 1)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; And finally, my .dcl file:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ls2 : dialog {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     label = "Layer Management v2.0";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     : boxed_row {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       label = "LAYERSET";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       : radio_column {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_FP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Cable Rack Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_CP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Electrical Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_EL";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Fiber Management";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_FM";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Grounding Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_GP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Details";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_details";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;       }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     ok_cancel;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/ENAGEL&gt;&lt;/ENAGEL&gt;&lt;/G&gt;&lt;/G&gt;</description>
      <pubDate>Wed, 20 Oct 1999 01:41:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774505#M163578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-20T01:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: LISP QUESTION</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774506#M163579</link>
      <description>The error you quote occurs when you call any function not valid while a dialog&lt;BR /&gt;
is active, e.g. (command ..), (entmake ...) etc.   Yet it appears the only&lt;BR /&gt;
function that is called while the dialog is active is (main) which does not make&lt;BR /&gt;
any calls to (command ..) or other functions not allowed during dialog activity&lt;BR /&gt;
(see the customization guide).&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
However, just persuing your code I found the following:&lt;BR /&gt;
&lt;BR /&gt;
In (main) you have used the symbol name 'eg' as a variable, redefining a&lt;BR /&gt;
standard function.  Any subsequent call to the eq function will result in the&lt;BR /&gt;
calling function bombing, be it your code, someone else's code, or an AutoLISP&lt;BR /&gt;
behind the scenes call.  I find you reference all other variables defined as&lt;BR /&gt;
globals in (main) from (layers), but not 'eq'.  Is this a typo?&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
General stuff I noticed ---&lt;BR /&gt;
&lt;BR /&gt;
In (layers) you are using the progn function superfluously as the parent nest of&lt;BR /&gt;
a cond statement.&lt;BR /&gt;
&lt;BR /&gt;
You have:&lt;BR /&gt;
&lt;BR /&gt;
(progn&lt;BR /&gt;
  (cond&lt;BR /&gt;
    ( (= FP "1")&lt;BR /&gt;
      ...&lt;BR /&gt;
    )&lt;BR /&gt;
    ...&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
All that's needed is:&lt;BR /&gt;
&lt;BR /&gt;
(cond&lt;BR /&gt;
  ( (= FP "1")&lt;BR /&gt;
    ...&lt;BR /&gt;
  )&lt;BR /&gt;
  ...&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
In (layers) you assume layer "t_title" exists, and if it's off, turn on a bunch&lt;BR /&gt;
of layers ---&lt;BR /&gt;
&lt;BR /&gt;
Your code:&lt;BR /&gt;
&lt;BR /&gt;
(setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
(setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
(setq ONOFF (cdr ONOFF))&lt;BR /&gt;
(if (&amp;lt; ONOFF 0)&lt;BR /&gt;
  (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
A suggestion ---&lt;BR /&gt;
&lt;BR /&gt;
(command "._layer")&lt;BR /&gt;
(foreach x '("t_cutline" "t_misc" "t_text" "t_title")&lt;BR /&gt;
  (if (setq check (tblsearch "layer" x))&lt;BR /&gt;
    (if (minusp (cdr (assoc 62 check)))&lt;BR /&gt;
      (command "_on" x)&lt;BR /&gt;
    )&lt;BR /&gt;
    (command "_new" x)&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
(command "")&lt;BR /&gt;
&lt;BR /&gt;
This way the layer is turned on if it exists and is off, otherwise it is&lt;BR /&gt;
created (if it doesn't exist).  I'm guessing by your code you need&lt;BR /&gt;
these layers.  If not, the (command ".new" x) is not required.&lt;BR /&gt;
Since there is only one call to command it will also be faster than&lt;BR /&gt;
individual calls like (command "._layer" "_on" x ""), a technique&lt;BR /&gt;
much of your subsequent code could benefit from.&lt;BR /&gt;
&lt;BR /&gt;
&amp;lt; I actually use entmake/entmod, but I think I'll not suggest that here &amp;gt;.&lt;BR /&gt;
If you want details I'll provide them in another post.&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
You have many calls to (command ...).  Some of these calls require object&lt;BR /&gt;
selection ---&lt;BR /&gt;
&lt;BR /&gt;
Your code:&lt;BR /&gt;
&lt;BR /&gt;
(command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
&lt;BR /&gt;
If det_mview_ss is not set to a valid selection set, the command may not&lt;BR /&gt;
terminate correctly.  Anytime (command ...) does not teminate correctly, there&lt;BR /&gt;
is the chance the next call to (command ...), or a call to terminate a command&lt;BR /&gt;
=&amp;gt; (command "") &amp;lt;= in fact recalls the last thing that was called via command&lt;BR /&gt;
prior to execution of this program (c:ls2), be it by the user or another lisp&lt;BR /&gt;
program.  Said previous command could be 'mspace'.&lt;BR /&gt;
&lt;BR /&gt;
The method you are using to make a selection set of viewports, is not fullproof,&lt;BR /&gt;
nor do you test the variable before using it:&lt;BR /&gt;
&lt;BR /&gt;
Your code:&lt;BR /&gt;
&lt;BR /&gt;
(setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
&lt;BR /&gt;
All this does is grab all the objects on the noted layer.  How can you be sure&lt;BR /&gt;
only viewports are grabbed, and that any viewports were actually found?&lt;BR /&gt;
&lt;BR /&gt;
A suggestion is to be more explicit in your selection set creation, and test it&lt;BR /&gt;
before you use it:&lt;BR /&gt;
&lt;BR /&gt;
(setq&lt;BR /&gt;
  det_mview_ss&lt;BR /&gt;
  (ssget "x"&lt;BR /&gt;
   '( (8 . "det_mview")&lt;BR /&gt;
      ; only grab viewports&lt;BR /&gt;
      (0 . "viewport")&lt;BR /&gt;
      ; don't grab paperspace viewport&lt;BR /&gt;
      ; which is always vport 1&lt;BR /&gt;
      (-4 . "&lt;NOT&gt;")&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
Later in your code test the variable before using:&lt;BR /&gt;
&lt;BR /&gt;
(if det_mview_ss (command "._mview" "_on" det_mview_ss ""))&lt;BR /&gt;
&lt;BR /&gt;
I generally create selection sets right where I'm going to use them, as part of&lt;BR /&gt;
the test:&lt;BR /&gt;
&lt;BR /&gt;
(if&lt;BR /&gt;
  (setq&lt;BR /&gt;
    det_mview_ss&lt;BR /&gt;
    (ssget "x"&lt;BR /&gt;
      '((8 . "det_mview")(0 . "viewport")(-4 . "&lt;NOT&gt;"))&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
  (command "._mview" "_on" det_mview_ss "")&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
More stuff ---&lt;BR /&gt;
&lt;BR /&gt;
Question --- Why do you jump back and forth between (command "layer" ...) and&lt;BR /&gt;
(command "-layer" ...) ?&lt;BR /&gt;
&lt;BR /&gt;
Question --- Why turn off, and then back on, some of the same layer wildcard&lt;BR /&gt;
specs?  Aren't you finding your screen flashing a lot as a result of this code?&lt;BR /&gt;
Perhaps some logical regrouping, and then a reduction in calls to the layer&lt;BR /&gt;
command can reduce the flashing and speed up the routine.  See the following.&lt;BR /&gt;
&lt;BR /&gt;
Suggestion --- The use of foreach could significantly reduce the amount of code&lt;BR /&gt;
you have for all the turning on and off of layers, and make management of your&lt;BR /&gt;
code easier, and if set up correctly, will be much faster, particularly if you&lt;BR /&gt;
limit yourself to one call to (command "._layer ...).  An example was provided&lt;BR /&gt;
near the beginning of this message.&lt;BR /&gt;
&lt;BR /&gt;
(Entmod ...) may also be an alternative in the future.&lt;BR /&gt;
&lt;BR /&gt;
_________&lt;BR /&gt;
&lt;BR /&gt;
All in all, this does not solve your problem, but it does offer other details&lt;BR /&gt;
you may be interested in at some point.&lt;BR /&gt;
&lt;BR /&gt;
Well that just about exhausts my welcome, and oh look, time to crash.&lt;BR /&gt;
&lt;BR /&gt;
Cheers.&lt;BR /&gt;
&lt;BR /&gt;
________________________________&lt;BR /&gt;
&lt;BR /&gt;
puckettm@cadvision.com&lt;BR /&gt;
&amp;gt; Not &amp;lt; a Member of the AutoDESK&lt;BR /&gt;
Discussion Forum Moderator Program&lt;BR /&gt;
Imagination makes all things possible.&lt;BR /&gt;
________________________________&lt;BR /&gt;
&lt;BR /&gt;
Eric Nagel &lt;ENAGEL&gt; wrote in message news:380CDE80.889BA16B@eli.net...&lt;BR /&gt;
Greetings All !&lt;BR /&gt;
I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
not have an "mspace" command anywhere in my code.  Any pointers would be&lt;BR /&gt;
thanked...&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Eric&lt;BR /&gt;
&lt;BR /&gt;
Here is the error message that I am getting:&lt;BR /&gt;
&lt;BR /&gt;
Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
(COMMAND ".mspace")&lt;BR /&gt;
(MAIN)&lt;BR /&gt;
((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG)) (&lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
#33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "") (&lt;&gt;&lt;BR /&gt;
&lt;BR /&gt;
#33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
(APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
(DONE_DIALOG)))&lt;BR /&gt;
(QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
(START_DIALOG)&lt;BR /&gt;
(PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
"cancel"&lt;BR /&gt;
"(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
(IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
(done_dialog)") (ACTION_TILE "cancel" "(done_dialog)") (START_DIALOG)&lt;BR /&gt;
(UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
(C:LS2)&lt;BR /&gt;
&lt;BR /&gt;
Here is my .lsp file:&lt;BR /&gt;
&lt;BR /&gt;
(defun c:LS2 (/)&lt;BR /&gt;
(setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
  (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
    (progn&lt;BR /&gt;
      (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
      (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
      (start_dialog)&lt;BR /&gt;
      (unload_dialog dcl_id)&lt;BR /&gt;
      (LAYER)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(defun MAIN ()&lt;BR /&gt;
&lt;BR /&gt;
(setq FP (get_tile "key_FP"))&lt;BR /&gt;
(setq CP (get_tile "key_CP"))&lt;BR /&gt;
(setq EL (get_tile "key_EL"))&lt;BR /&gt;
(setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
(setq FM (get_tile "key_FM"))&lt;BR /&gt;
(setq GP (get_tile "key_GP"))&lt;BR /&gt;
(setq DET (get_tile "key_details"))&lt;BR /&gt;
&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
(defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
(setvar "CMDECHO" 0)&lt;BR /&gt;
(setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
(setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
 (progn&lt;BR /&gt;
  (cond&lt;BR /&gt;
    ;; FLOOR PLAN ***************&lt;BR /&gt;
    ((= FP "1")&lt;BR /&gt;
     (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
     (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
     (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
     (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
       (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
     )&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; CABLE PLAN ***************&lt;BR /&gt;
    (( = CP "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
    (( = EL "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
    (( = FM "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; GROUNDING PLAN ***************&lt;BR /&gt;
    (( = GP "1")&lt;BR /&gt;
     (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
     (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
    )&lt;BR /&gt;
    ;; DETAILS SHEET *****************&lt;BR /&gt;
    (( = DET "1")&lt;BR /&gt;
     (setvar "CMDECHO" 0)&lt;BR /&gt;
     (command "LAYER" "SET" "0" "")&lt;BR /&gt;
     (command "LAYER" "OFF" "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER" "")&lt;BR /&gt;
&lt;BR /&gt;
     (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
     (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
     (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
     (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
     (command "-layer" "on" "D_*" "")&lt;BR /&gt;
     (princ)&lt;BR /&gt;
    )&lt;BR /&gt;
  )&lt;BR /&gt;
(setvar "CMDECHO" 1)&lt;BR /&gt;
)&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
And finally, my .dcl file:&lt;BR /&gt;
&lt;BR /&gt;
ls2 : dialog {&lt;BR /&gt;
    label = "Layer Management v2.0";&lt;BR /&gt;
    : text {&lt;BR /&gt;
      label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
    }&lt;BR /&gt;
    : text {&lt;BR /&gt;
      label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
    }&lt;BR /&gt;
    : boxed_row {&lt;BR /&gt;
      label = "LAYERSET";&lt;BR /&gt;
      : radio_column {&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
           key = "key_FP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Cable Rack Plan";&lt;BR /&gt;
           key = "key_CP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Electrical Plan";&lt;BR /&gt;
           key = "key_EL";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Fiber Management";&lt;BR /&gt;
           key = "key_FM";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Grounding Plan";&lt;BR /&gt;
           key = "key_GP";&lt;BR /&gt;
         }&lt;BR /&gt;
         : radio_button {&lt;BR /&gt;
           label = "Details";&lt;BR /&gt;
           key = "key_details";&lt;BR /&gt;
         }&lt;BR /&gt;
      }&lt;BR /&gt;
    }&lt;BR /&gt;
    ok_cancel;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Eric Nagel&lt;BR /&gt;
Electric Lightwave, Inc.&lt;BR /&gt;
eric_nagel@eli.net&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/ENAGEL&gt;&lt;/NOT&gt;&lt;/NOT&gt;</description>
      <pubDate>Wed, 20 Oct 1999 06:20:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774506#M163579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-20T06:20:17Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774507#M163580</link>
      <description>Question:&lt;BR /&gt;
  Your not in mspace when trying to mview, are you?&lt;BR /&gt;
&lt;BR /&gt;
Rick&lt;BR /&gt;
&lt;BR /&gt;
David Doane &lt;LECTRO-MECH&gt; wrote in message&lt;BR /&gt;
news:01bf1a9c$54aff020$3b876ace@lms-1...&lt;BR /&gt;
&amp;gt; Eric,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In part, perhaps I misunderstood how you were loading the program as I&lt;BR /&gt;
&amp;gt; thought you were pasting the whole program in 'acadr14' and not just a&lt;BR /&gt;
&amp;gt; loader.  However, by advice still stands as far as placing anything in&lt;BR /&gt;
&amp;gt; 'acadr14'.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I would have to see the load statement in your 'acad.lsp' to evaluate it.&lt;BR /&gt;
&amp;gt; If it's a case of (load "LS2") in the main body, it should be in the&lt;BR /&gt;
&amp;gt; S::Startup section.  However, I would still suggest loading on an as need&lt;BR /&gt;
&amp;gt; basis.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Also, as I am not versed in the DCL language, I cannot help you much&lt;BR /&gt;
there,&lt;BR /&gt;
&amp;gt; but there are others that surely can.  While you do not use the command&lt;BR /&gt;
&amp;gt; 'mspace' in your program, nor do you use 'lambda', and since the error&lt;BR /&gt;
&amp;gt; message points out six subroutines in succession, you might look at&lt;BR /&gt;
&amp;gt; something you are doing in a multiple of six.  Just an idea.  Also, I am&lt;BR /&gt;
&amp;gt; not familiar with 'command list data' either, but that is the key.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have other thoughts, but they depend on whether you are pasting the&lt;BR /&gt;
whole&lt;BR /&gt;
&amp;gt; program in 'acad.lsp' or just a loader.  However, at this point take a&lt;BR /&gt;
look&lt;BR /&gt;
&amp;gt; at the stub and autoloading information that I will paste below.  If  you&lt;BR /&gt;
&amp;gt; are familiar with it all, we'll both have a good laugh on me.  &lt;G&gt;  When&lt;BR /&gt;
&amp;gt; you get this working, I would like to make some other suggestions&lt;BR /&gt;
&amp;gt; concerning the use of multiple instances of 'command' and 'setq', but one&lt;BR /&gt;
&amp;gt; thing at a time.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Here is the info written in general terms for R14 and A2K.  Let us know if&lt;BR /&gt;
&amp;gt; it helps.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --------------------------------------------------------------------------&lt;BR /&gt;
--&lt;BR /&gt;
&amp;gt; -------&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The most efficient way is with (autoload file cmdlist), which can be&lt;BR /&gt;
placed&lt;BR /&gt;
&amp;gt; in any one of several files.  Since I use a partial menu to override a&lt;BR /&gt;
&amp;gt; portion the ACAD.mnu, which I never alter, I use an accompanying .mnl file&lt;BR /&gt;
&amp;gt; for the overwrite instructions, and to hold my autoloader extension.&lt;BR /&gt;
&amp;gt; However, it will work great if just placed in Acad.lsp for R14, or&lt;BR /&gt;
&amp;gt; AcadDOC.lsp for AutoCAD 2000.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; In AutoCAD 2000, Acad.lsp is just loaded when entering AutoCAD (unless&lt;BR /&gt;
&amp;gt; 'lispasdoc' is set to 1), and AcadDOC.lsp is loaded with each drawing.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If you don't have an Acad.lsp or an AcadDOC.lsp, create a simple text file&lt;BR /&gt;
&amp;gt; with the extension .lsp and place it anywhere in the AutoCAD support path.&lt;BR /&gt;
&amp;gt; Your entry will look like this:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (autoload "filename" '("commandname"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; filename being without the .lsp extension, and commandname being the defun&lt;BR /&gt;
&amp;gt; name, as C:ENTLIST, as in the example:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (autoload "entlist" '("entlist"))&lt;BR /&gt;
&amp;gt; (autoload "nentlist" '("nentlist"))&lt;BR /&gt;
&amp;gt; (autoload "multilist" '("multilist"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; When you have multiple programs in one file, you would use:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (autoload "entlist" '("entlist" "nentlist" "multilist"))&lt;BR /&gt;
&amp;gt; (autoload "pie" '("apple" "peach" "pear" "pumpkin" "potato"))&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Which in this case has three &amp;amp; five commands (programs) within each file.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; This way the program files are not loaded until you need them, and the&lt;BR /&gt;
&amp;gt; loading is completely automatic.  If you are using a menu, or at the&lt;BR /&gt;
&amp;gt; command prompt, the entry is simply the command, such as:  entlist&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If you wonder how it works, the autoloader engine has already been fired&lt;BR /&gt;
up&lt;BR /&gt;
&amp;gt; by AutoCAD, and you are just extending its capabilities.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Another way is to place a stub loader in your Acad.lsp or AcadDOC.lsp as:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; (defun C:ENTLIST ()&lt;BR /&gt;
&amp;gt;   (load "C:/alisp/entlist") (c:entlist)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; The first time you invoke the command, the stub loader loads it and runs&lt;BR /&gt;
&amp;gt; the program.  Afterward, the program just runs because the stub had been&lt;BR /&gt;
&amp;gt; superseded by the program.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I hope the heck all this makes sense.  &lt;G&gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Dave D&lt;BR /&gt;
&amp;gt; ------------------------------------------------------&lt;BR /&gt;
&amp;gt; Eric Nagel &lt;ENAGEL&gt; wrote in article&lt;BR /&gt;
&amp;lt;380CF704.9B50C958@eli.net&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt; David,&lt;BR /&gt;
&amp;gt; &amp;gt; I cut my load statements out of my acadr14.lsp file and pasted them into&lt;BR /&gt;
&amp;gt; my&lt;BR /&gt;
&amp;gt; &amp;gt; acad.lsp file and restarted my AutoCAD, tried running my routine again,&lt;BR /&gt;
&amp;gt; which I&lt;BR /&gt;
&amp;gt; &amp;gt; have a button for, and the same error message came up again.  I guess I&lt;BR /&gt;
&amp;gt; would&lt;BR /&gt;
&amp;gt; &amp;gt; like to look at some different options for loading AutoLISP&lt;BR /&gt;
&amp;gt; routine...This has&lt;BR /&gt;
&amp;gt; &amp;gt; really got me confused...it was working last Friday, and&lt;BR /&gt;
&amp;gt; now...nothing...???&lt;BR /&gt;
&amp;gt; &amp;gt; Eric&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; David Doane wrote:&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Eric,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; I'm thinking that AutoCAD is not ready to evaluate any "command"&lt;BR /&gt;
&amp;gt; statements&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; when 'acadr14' is being loaded, or even when 'acad.lsp' is loaded&lt;BR /&gt;
&amp;gt; unless it&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; is in the S::Startup section.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Actually, 'acadr14' is for Autodesk use and you should put nothing in&lt;BR /&gt;
&amp;gt; it.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Any external AutoLISP programs should have a stub loader, or an&lt;BR /&gt;
&amp;gt; autoloading&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; statement, in your 'acad.lsp'.  That way the program isn't actually&lt;BR /&gt;
&amp;gt; loaded&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; and evaluated until you are ready to use it.  There are also other&lt;BR /&gt;
&amp;gt; means of&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; loading external programs as well.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; If you would like more information on loading methods, please indicate&lt;BR /&gt;
&amp;gt; such&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; and someone will respond.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Dave D&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Eric Nagel &lt;ENAGEL&gt; wrote in article&lt;BR /&gt;
&amp;gt; &amp;lt;380CE20A.37162685@eli.net&amp;gt;...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; I forgot to mention that that I am loading this routine thru my&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; 'acadr14.lsp' file.  When I appload the file, it works just&lt;BR /&gt;
&amp;gt; fine...I'm&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; stumped...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Eric Nagel wrote:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Greetings All !&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; hoping someone will be able to help me out with this...Notice that&lt;BR /&gt;
&amp;gt; I do&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; not have an "mspace" command anywhere in my code.  Any pointers&lt;BR /&gt;
&amp;gt; would&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; be&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; thanked...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Thanks,&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Eric&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; ((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; #33e116c&amp;gt; "1") (&lt;&gt; "accept") (&lt;&gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; (&lt;&gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; #33e116c&amp;gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (DONE_DIALOG)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; "cancel"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; "(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG DCL_ID) (LAYER))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (done_dialog)") (ACTION_TILE "cancel" "(done_dialog)")&lt;BR /&gt;
&amp;gt; (START_DIALOG)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (C:LS2)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Here is my .lsp file:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (defun c:LS2 (/)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     (progn&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       (start_dialog)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       (unload_dialog dcl_id)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       (LAYER)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (defun MAIN ()&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq FP (get_tile "key_FP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq CP (get_tile "key_CP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq EL (get_tile "key_EL"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq FM (get_tile "key_FM"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq GP (get_tile "key_GP"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq DET (get_tile "key_details"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (defun LAYER (/ DET_MVIEW_SS FLR_MVIEW_SS)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq DET_MVIEW_SS (ssget "X" (list (cons 8 "DET_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setq FLR_MVIEW_SS (ssget "X" (list (cons 8 "FLR_MVIEW"))))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;  (progn&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;   (cond&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; FLOOR PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ((= FP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setq CHECK (tblsearch "LAYER" "T_TITLE"))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setq ONOFF (assoc 62 CHECK))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setq ONOFF (cdr ONOFF))&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (if (&amp;lt; ONOFF 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;        (command "LAYER" "ON" "T_cutline,T_misc,T_text,T_title" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
&amp;gt; "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; CABLE PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = CP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
&amp;gt; "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "C_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; ELECTRICAL PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = EL "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
&amp;gt; "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "E_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; FIBER MANAGEMENT PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = FM "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
&amp;gt; "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "FM_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_dim" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; GROUNDING PLAN ***************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = GP "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
&amp;gt; "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "A_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "EQ_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "ON" "G_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_DIM" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "EQ_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_TEXT" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF" "A_STRUCT_GRID" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ;; DETAILS SHEET *****************&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     (( = DET "1")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (setvar "CMDECHO" 0)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "SET" "0" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "LAYER" "OFF"&lt;BR /&gt;
&amp;gt; "A_*,C_*,D_*,E_*,EQ_*,FM_*,G_*,URLLAYER"&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-LAYER" "OFF" "T_MISC" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "on" DET_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "DET_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "mview" "off" FLR_MVIEW_SS "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "off" "FLR_MVIEW" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (command "-layer" "on" "D_*" "")&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;      (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;   )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (setvar "CMDECHO" 1)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; (princ)&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; )&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; And finally, my .dcl file:&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; ls2 : dialog {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     label = "Layer Management v2.0";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       label = "- Developed for Electric Lightwave, Inc.";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     : text {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       label = "- Created by Eric Nagel (rev. 09/15/99)";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     : boxed_row {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       label = "LAYERSET";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       : radio_column {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Floor Plan / Equipment Layout";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_FP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Cable Rack Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_CP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Electrical Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_EL";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Fiber Management";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_FM";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Grounding Plan";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_GP";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          : radio_button {&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            label = "Details";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;            key = "key_details";&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;          }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;       }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;     ok_cancel;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; }&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Eric Nagel&lt;BR /&gt;
&amp;gt; &amp;gt; Electric Lightwave, Inc.&lt;BR /&gt;
&amp;gt; &amp;gt; eric_nagel@eli.net&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/ENAGEL&gt;&lt;/ENAGEL&gt;&lt;/G&gt;&lt;/G&gt;&lt;/LECTRO-MECH&gt;</description>
      <pubDate>Wed, 20 Oct 1999 11:38:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774507#M163580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-20T11:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: LISP QUESTION</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774508#M163581</link>
      <description>&lt;SNIP&gt; &lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt; (MAIN)&lt;BR /&gt;
&lt;BR /&gt;
  ^^^^^^  Here the problem is &lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; ((LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN) (DONE_DIALOG)) (&lt;&gt; "1") (&lt;&gt; "accept") (&lt;&gt;&lt;BR /&gt;
#33e116c&amp;gt; "") &amp;gt; (&lt;&gt; 1) (&lt;&gt; 16) (&lt;&gt; 7))&lt;BR /&gt;
&lt;BR /&gt;
  leads me to an action_tile ^^^^^^^^^^^^^^&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; (APPLY (QUOTE (LAMBDA ($VALUE $KEY $DATA $REASON $X $Y) (MAIN)(DONE_DIALOG))) (QUOTE ("1" "accept" "" 1 16 7)))&lt;BR /&gt;
&amp;gt; (START_DIALOG)&lt;BR /&gt;
&amp;gt; (PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE "cancel" "(done_dialog)") (START_DIALOG) (UNLOAD_DIALOG&lt;BR /&gt;
DCL_ID)(LAYER))&lt;BR /&gt;
&amp;gt; (IF (NEW_DIALOG "ls2" DCL_ID) (PROGN (ACTION_TILE "accept" "(MAIN) (done_dialog)") (ACTION_TILE "cancel" "(done_dialog)")&lt;BR /&gt;
(START_DIALOG)(UNLOAD_DIALOG DCL_ID) (LAYER)))&lt;BR /&gt;
&amp;gt; (C:LS2)&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Here is my .lsp file:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun c:LS2 (/)&lt;BR /&gt;
&amp;gt; (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
&amp;gt;   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
&amp;gt;     (progn&lt;BR /&gt;
&amp;gt;       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
&lt;BR /&gt;
  therefor take a look at this ^^^^^^ and ..&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
&amp;gt;       (start_dialog)&lt;BR /&gt;
&amp;gt;       (unload_dialog dcl_id)&lt;BR /&gt;
&amp;gt;       (LAYER)&lt;BR /&gt;
&amp;gt;     )&lt;BR /&gt;
&amp;gt;   )&lt;BR /&gt;
&amp;gt; (princ)&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (defun MAIN ()&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (setq FP (get_tile "key_FP"))&lt;BR /&gt;
&amp;gt; (setq CP (get_tile "key_CP"))&lt;BR /&gt;
&amp;gt; (setq EL (get_tile "key_EL"))&lt;BR /&gt;
&amp;gt; (setq EQ (get_tile "key_EQ"))&lt;BR /&gt;
&amp;gt; (setq FM (get_tile "key_FM"))&lt;BR /&gt;
&amp;gt; (setq GP (get_tile "key_GP"))&lt;BR /&gt;
&amp;gt; (setq DET (get_tile "key_details"))&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; (princ)&lt;BR /&gt;
&lt;BR /&gt;
  ^^^^^^^  ..this !!  While a dialog is active, you cannot execute an PRINC  !!&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; )&lt;BR /&gt;
&lt;BR /&gt;
&lt;SNIP&gt; &lt;BR /&gt;
&lt;BR /&gt;
  I'm not realy sure but I think so.  Achim Dabrunz&lt;/SNIP&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/&gt;&lt;/SNIP&gt;</description>
      <pubDate>Wed, 20 Oct 1999 13:26:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774508#M163581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-20T13:26:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774509#M163582</link>
      <description>forget it - the posting is as more a product of my headache as of a flash of genius. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
sorry for wasting your time&lt;BR /&gt;
&lt;BR /&gt;
bodum - termin 03607726331 hedges ist nicht</description>
      <pubDate>Wed, 20 Oct 1999 14:02:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774509#M163582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-20T14:02:37Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774510#M163583</link>
      <description>Eric -- if your file is sometimes working, and&lt;BR /&gt;
sometimes doesn't, if it works OK right after&lt;BR /&gt;
you appload it, ---- it's obvious that you have&lt;BR /&gt;
some other file defining another MAIN function,&lt;BR /&gt;
which *does* have an mspace command in it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
You can try and put all your dependent functions&lt;BR /&gt;
inside the main one, like&lt;BR /&gt;
&lt;BR /&gt;
 (defun c:LS2 (/ main layer)&lt;BR /&gt;
 &lt;BR /&gt;
  (defun layer() ..... )&lt;BR /&gt;
  (defun main () ..... )&lt;BR /&gt;
&lt;BR /&gt;
  (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
     (progn&lt;BR /&gt;
       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
       (start_dialog)&lt;BR /&gt;
       (unload_dialog dcl_id)&lt;BR /&gt;
       (LAYER)&lt;BR /&gt;
     )&lt;BR /&gt;
   )&lt;BR /&gt;
  (princ)&lt;BR /&gt;
  )&lt;BR /&gt;
&lt;BR /&gt;
so that these functions are always defined properly&lt;BR /&gt;
when your command is called.&lt;BR /&gt;
&lt;BR /&gt;
See if this helps. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
On Tue, 19 Oct 1999 14:26:34 -0700, Eric Nagel &lt;ENAGEL&gt; wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;I forgot to mention that that I am loading this routine thru my&lt;BR /&gt;
&amp;gt;'acadr14.lsp' file.  When I appload the file, it works just fine...I'm&lt;BR /&gt;
&amp;gt;stumped...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Eric Nagel wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Greetings All !&lt;BR /&gt;
&amp;gt;&amp;gt; I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
&amp;gt;&amp;gt; hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
&amp;gt;&amp;gt; not have an "mspace" command anywhere in my code.  Any pointers would be&lt;BR /&gt;
&amp;gt;&amp;gt; thanked...&lt;BR /&gt;
&amp;gt;&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&amp;gt; Eric&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt;&amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt;&amp;gt; (MAIN)&lt;BR /&gt;
&lt;BR /&gt;
---&lt;BR /&gt;
Vlad   http://vnestr.tripod.com/&lt;/ENAGEL&gt;</description>
      <pubDate>Wed, 20 Oct 1999 23:39:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774510#M163583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-20T23:39:59Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774511#M163584</link>
      <description>Good call Vladimir.&lt;BR /&gt;
&lt;BR /&gt;
________________________________&lt;BR /&gt;
&lt;BR /&gt;
puckettm@cadvision.com&lt;BR /&gt;
&amp;gt; Not &amp;lt; a Member of the AutoDESK&lt;BR /&gt;
Discussion Forum Moderator Program&lt;BR /&gt;
Imagination makes all things possible.&lt;BR /&gt;
________________________________&lt;BR /&gt;
&lt;BR /&gt;
Vladimir Nesterovsky &lt;VNESTR&gt; wrote in message&lt;BR /&gt;
news:380e51da.45281500@adesknews.autodesk.com...&lt;BR /&gt;
Eric -- if your file is sometimes working, and&lt;BR /&gt;
sometimes doesn't, if it works OK right after&lt;BR /&gt;
you appload it, ---- it's obvious that you have&lt;BR /&gt;
some other file defining another MAIN function,&lt;BR /&gt;
which *does* have an mspace command in it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
You can try and put all your dependent functions&lt;BR /&gt;
inside the main one, like&lt;BR /&gt;
&lt;BR /&gt;
 (defun c:LS2 (/ main layer)&lt;BR /&gt;
&lt;BR /&gt;
  (defun layer() ..... )&lt;BR /&gt;
  (defun main () ..... )&lt;BR /&gt;
&lt;BR /&gt;
  (setq dcl_id (load_dialog "ls2.dcl"))&lt;BR /&gt;
   (if (new_dialog "ls2" dcl_id)&lt;BR /&gt;
     (progn&lt;BR /&gt;
       (action_tile "accept" "(MAIN) (done_dialog)")&lt;BR /&gt;
       (action_tile "cancel" "(done_dialog)")&lt;BR /&gt;
       (start_dialog)&lt;BR /&gt;
       (unload_dialog dcl_id)&lt;BR /&gt;
       (LAYER)&lt;BR /&gt;
     )&lt;BR /&gt;
   )&lt;BR /&gt;
  (princ)&lt;BR /&gt;
  )&lt;BR /&gt;
&lt;BR /&gt;
so that these functions are always defined properly&lt;BR /&gt;
when your command is called.&lt;BR /&gt;
&lt;BR /&gt;
See if this helps. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
On Tue, 19 Oct 1999 14:26:34 -0700, Eric Nagel &lt;ENAGEL&gt; wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt;I forgot to mention that that I am loading this routine thru my&lt;BR /&gt;
&amp;gt;'acadr14.lsp' file.  When I appload the file, it works just fine...I'm&lt;BR /&gt;
&amp;gt;stumped...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;Eric Nagel wrote:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Greetings All !&lt;BR /&gt;
&amp;gt;&amp;gt; I am having an odd problem that I cannot seem to figure out.  I am&lt;BR /&gt;
&amp;gt;&amp;gt; hoping someone will be able to help me out with this...Notice that I do&lt;BR /&gt;
&amp;gt;&amp;gt; not have an "mspace" command anywhere in my code.  Any pointers would be&lt;BR /&gt;
&amp;gt;&amp;gt; thanked...&lt;BR /&gt;
&amp;gt;&amp;gt; Thanks,&lt;BR /&gt;
&amp;gt;&amp;gt; Eric&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Here is the error message that I am getting:&lt;BR /&gt;
&amp;gt;&amp;gt;&lt;BR /&gt;
&amp;gt;&amp;gt; Command: ls2 error: incorrect request for command list data&lt;BR /&gt;
&amp;gt;&amp;gt; (COMMAND ".mspace")&lt;BR /&gt;
&amp;gt;&amp;gt; (MAIN)&lt;BR /&gt;
&lt;BR /&gt;
---&lt;BR /&gt;
Vlad   http://vnestr.tripod.com/&lt;/ENAGEL&gt;&lt;/VNESTR&gt;</description>
      <pubDate>Thu, 21 Oct 1999 02:59:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774511#M163584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>1999-10-21T02:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: LISP QUESTION</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774512#M163585</link>
      <description>Ok on all of my drawings for this company we use drawing footers to&lt;BR /&gt;
determine where the drawing is located, My question is, Is it possible to&lt;BR /&gt;
write a lisp so that when you open a drawing or save a drawing in a new&lt;BR /&gt;
place that it updates the footer text, If it could be done could someone&lt;BR /&gt;
help get me pointed in the right direction. Thanks!</description>
      <pubDate>Tue, 18 Feb 2003 09:57:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774512#M163585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-18T09:57:33Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774513#M163586</link>
      <description>Do you have Express Tools? Sounds like a job for RText.&lt;BR /&gt;
___&lt;BR /&gt;
&lt;BR /&gt;
"Mark Herrin" &lt;MARK.HERRIN&gt; wrote in message&lt;BR /&gt;
news:87BCE4AF8F84CB233B1F23E5FDAC51C6@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Ok on all of my drawings for this company we use drawing footers to&lt;BR /&gt;
&amp;gt; determine where the drawing is located, My question is, Is it possible to&lt;BR /&gt;
&amp;gt; write a lisp so that when you open a drawing or save a drawing in a new&lt;BR /&gt;
&amp;gt; place that it updates the footer text, If it could be done could someone&lt;BR /&gt;
&amp;gt; help get me pointed in the right direction. Thanks!&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/MARK.HERRIN&gt;</description>
      <pubDate>Tue, 18 Feb 2003 09:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-question/m-p/774513#M163586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-02-18T09:59:17Z</dc:date>
    </item>
  </channel>
</rss>

