Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Use arx to trans arbitary arguments to lisp function?
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Use arx to trans arbitary arguments to lisp function? (Read 1292 times)
0 Members and 1 Guest are viewing this topic.
xinxirong
Mosquito
Posts: 17
Use arx to trans arbitary arguments to lisp function?
«
on:
April 06, 2017, 07:25:43 PM »
for example
(defun myadd ( lst / )
(mapcar '+ lst)
)
in arx,defun a ads function tran_args_fun.
then i can use (tran_args_fun 'myadd 1 2 3 4 5 6....) to subsitude the lisp fun +.
Logged
xinxirong
Mosquito
Posts: 17
Re: Use arx to trans arbitary arguments to lisp function?
«
Reply #1 on:
April 06, 2017, 08:29:27 PM »
you call acedInvoke
Other way is calling undocumented function acedEvaluateLisp():
int __cdecl acedEvaluateLisp(wchar_t const *str, struct resbuf *&result);
where str is a lisp-expression, and result is a result of evaluation of this lisp-expression
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Use arx to trans arbitary arguments to lisp function?