Community
Hi,
I have a lisp which pendant on wether a linetype exists will automatically run or not. I thought that the rule was if a lisp is to call another lisp we do that as follows
(WOBEL)
as aposed to when its called through the command line as follows
(defun C:WOBEL ()
however with this in mind the following will not work
(if (null (tblsearch "ltype" "BOUWTEK-01")) (WOBEL) ) (DEFUN WOBEL () (alert "this is where the relating command would be") )
so what have i done wrong?
(DEFUN WOBEL () (alert "this is where the relating command would be") ) (if (null (tblsearch "ltype" "BOUWTEK-01")) (WOBEL) )
You must ensure that "WOBEL" function is already loaded when you call it...
HTH
Henrique
If you define the lisp using C:WOBEL (command) you would have to call it with (C:WOBEL). If you don't use WOBEL as a command define it as Defun WOBEL ( / ...) (function) and call as (WOBEL).