Code Red > AutoLISP (Vanilla / Visual)

3rd party command definition

(1/2) > >>

ronjonp:
How would I get lisp to recognize this command that is defined through 3rd party software?


--- Code: ---(if (or (= (getvar 'lunits) 3) (= (getvar 'lunits) 4))
  (command "WID_SetDesignArcRadius" "5'")
  (command "WID_SetDesignArcRadius" "5")
)
--- End code ---

If I paste "WID_SetDesignArcRadius" into the command line it is recognized....but in the lisp it is not?

Thanks,

Ron

Serge J. Gianolla:
(WID_SetDesignArcRadius "5'")

ronjonp:
Nice try but....

; error: no function definition: WID_SETDESIGNARCRADIUS

Jeff_M:
You will probably be able to run it by:
 (C:WID_SETDESIGNARCRADIUS)
but you won't be able to pass the "5" to it......that's one limitation of lisp commands. If you can find if & where this value gets stored then you may have better luck modifying yourself.

Serge J. Gianolla:

--- Quote from: ronjonp on April 14, 2006, 05:31:36 PM ---Nice try but....

; error: no function definition: WID_SETDESIGNARCRADIUS

--- End quote ---

This error means your function was not loaded.
And as Jeff started mentioning about argument passed to routine, check if you have similar:
(defun c:WID_SETDESIGNARCRADIUS (sVal / ....)

Navigation

[0] Message Index

[#] Next page

Go to full version