我做了一些搜索,这个lisp实际上是调用布局。JefferyPSanders的lsp。通用域名格式 
  
这是您要消除的警报吗?我注意到你的代码在两个额外括号所在的区域被修改了。 
这是因为有人也删除了(progn)当它应该被保留在。 
  
  
以下是JPS的代码,删除了警报,但保留了progn。 
因此无需拆除支架。警报已消除。 
命令语法:布局 
  
我必须假设您提到的第二个OK是在您选择布局并单击对话框上的第一个OK后弹出的警报框。 
  
这是您似乎已编辑的区域。 
-        ;;;--- If a layout was selected...
-        (if selectedLayout
- [color=seagreen]          (progn                                ;You removed this when it should have been kept in.[/color]
-            ;;;--- Set the current layout
-            (command "layout" "set" selectedLayout)
-            ;;;--- Inform the user
- [color=magenta]          (alert (strcat "Current layout is --> " selectedLayout)) ; You want this removed I assume[/color]
-          )
-        )  
-      )
-    )
-  )
            
  
 
这就是它应该看起来的样子。
 -      ;;;--- If the user pressed the okay button
-      (if(= ddiag 2)
-        ;;;--- If a layout was selected...
-        (if selectedLayout
-          (progn
-            ;;;--- Set the current layout
-            (command "layout" "set" selectedLayout)
-          )
-        )  
-      )
-    )
-  )
            
 
 
布局。dcl 
布局。lsp  |