Message 1 of 15

Not applicable
10-24-2016
12:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hy,
im new in the forum and a rookie with lisp. Im trying to create a lisp, but it doesnt work. If somebody could help me, i will apreciate a lot.
I need a lisp with a conditional, were i write a key word and the lisp associate a number to the key. i was writing something like this:
(DEFUN c:HMMM (CNT DIAM)
(SETQ CNT (GETPOINT "\nselect circle center"))
;click the center of the circle
(INITGET "1Pul 2Pul")
(SETQ PUL (GETKWORD "\n1Pul, 2Pul:"))
;do not write the real diameter number
(cond
((= PUL "1Pul")
(SETQ DIAM 0.033401)
(command "circle" CNT "D" DIAM)
)
((= PUL "2Pul")
(SETQ DIAM 0.060325)
(command "circle" CNT "D" DIAM)
)
) ;End conditional
(PRINC)
)
Solved! Go to Solution.