TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: cjw on April 06, 2009, 11:46:59 PM
-
How to get the arguments of funtion???
;;;(JW-MK_CIRCLE LAYER CENTER RADIUS)
(defun JW-MK_CIRCLE (LAYER CENTER RADIUS)
(if (entmake (list (cons 0 "CIRCLE")
(cons 100 "AcDbEntity")
(cons 100 "AcDbCircle")
(cons 8 LAYER)
(cons 10 CENTER)
(cons 40 RADIUS)
)
)
(entlast)
)
)
Could only know the funtion name: "JW-MK_CIRCLE",
how to get the arguments: "(LAYER CENTER RADIUS)"???
See the picture: (But how to achieve it with LISP)
-
An easy way to get the ename or nil
;;;(JW-MK_CIRCLE LAYER CENTER RADIUS)
(defun JW-MK_CIRCLE (LAYER CENTER RADIUS)
(entmakex (list (cons 0 "CIRCLE")
(cons 8 LAYER)
(cons 10 CENTER)
(cons 40 RADIUS)
)
)
)
-
An easy way to get the ename or nil
;;;(JW-MK_CIRCLE LAYER CENTER RADIUS)
(defun JW-MK_CIRCLE (LAYER CENTER RADIUS)
(entmakex (list (cons 0 "CIRCLE")
(cons 8 LAYER)
(cons 10 CENTER)
(cons 40 RADIUS)
)
)
)
It's must be something mistake about my question~~again~
repeat my question:
1. only know the "JW-MK_CIRCLE" funtion name~
2. don't know the "(LAYER CENTER RADIUS)" arguments
3. Want to use the symbol JW-MK_CIRCLE to get the "(LAYER CENTER RADIUS)" arguments
-
PS:
return "(LAYER CENTER RADIUS)"
LAYER、CENTER 、RADIUS are all symbol ~ not value
-
Just like this:
SubFunction Manager
(But I do this with stupid method ,write it one by one)
-
PS:
return "(LAYER CENTER RADIUS)"
LAYER、CENTER 、RADIUS are all symbol ~ not value
you should ask : "How to get the parameters of function?"
-
PS:
return "(LAYER CENTER RADIUS)"
LAYER、CENTER 、RADIUS are all symbol ~ not value
you should ask : "How to get the parameters of function?"
:? :-P
-
I think you want to inspect the function like so:
-
I think he wants to query the function with a lisp routine.
Just a guess. 8-)
-
Guess I should read everything in the post :oops: