Message 1 of 8
Call external lisp within a lisp of a DCL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How can I call up to run a external lisp within a DCL lisp?
defun C:test (/ AAA BBB ccc ddd ) ;;; BBB is a function in an external lisp (setq dcl_id (load_dialog "test.dcl")) (if (not (new_dialog "test" dcl_id)) (progn (alert " Error in loading the dialog (test.dcl) ") (exit) ) ) (action_tile "D_AAA" "(setq ccc t)(done_dialog)" ) (action_tile "D_BBB" "(setq ddd t)(done_dialog)" ) (action_tile "cancel" "(done_dialog)") (start_dialog) (unload_dialog dcl_id) (cond ((and ccc) (progn (c:AAA) (C:TEST))) ((and ddd) (progn (c:BBB) (C:TEST))) ;; BBB is external function ) (princ) )
DCL
test : dialog { label = "Test"; : button { label = "Test1"; key = "D_AAA"; is_default = false; } : button { label = "Test2"; key = "D_BBB"; is_default = false; } ok_only ; }
I want to assign function BBB to an external lisp to work for button Test2 in attached dcl.
Thanks