这些都是基本的东西,建议你详细阅读帮助文件Working with Programmable Dialog Boxes这一章
下面是帮助文件里的一个例子,改了一行代码 hello : dialog { label = "Sample Dialog Box"; : text { label = "Hello, world."; } ok_only; } (defun C:HELLO( / dcl_id ) (setq dcl_id (load_dialog "hello.dcl")) ; Load the DCL file. (if (not (new_dialog "hello" dcl_id)) ; Initialize the dialog. (exit) ; Exit if this doesn’t ; work. ) (if (= (start_dialog) 1) (c:PEXQ)) ;如果LINE_XQ.LSP已加载,运行PEXQ ; Display the dialog (unload_dialog dcl_id) ; Unload the DCL file. (princ) )
|