PDA

View Full Version : Help starting a LISP command


gurudas.ku
2006-12-14, 06:45 AM
hi friends i am very new to Auto Lisp how can i invoke Auto lisp command, i type auto lisp in command prompt, but there is an error comes its an invalid command, i have a some of lisp tutorials,
Hope a reply ASAP

Steve_Bennett
2006-12-14, 07:13 AM
Please note I have moved this to the AutoLISP forum from the ADT tips/tricks forum as I feel this is a more appropriate place for it to receive a better response.

.T.
2006-12-14, 07:43 AM
hi friends
I am very new to Auto lisp,i have a some of tutorials in lisp also , realy what i am facing is i am not able to invoke autolisp command. when i type Autolisp in command prompt invalid command error is comming how can i resolve this issue.
Hope a reply ASAP

If I understand you correctly (and this is just a guess), you are trying to get to the VL interface. Just type VLIDE at the command prompt. Let us know if I have made a bad guess.

Opie
2006-12-14, 02:10 PM
hi friends i am very new to Auto Lisp how can i invoke Auto lisp command, i type auto lisp in command prompt, but there is an error comes its an invalid command, i have a some of lisp tutorials,
Hope a reply ASAP
Which version of AutoCAD are you using?

Adesu
2006-12-15, 12:03 AM
Hi gurudas.ku,
For the best solution you should post here your code,without seeing your code,I can not help you.
Here as a sample code

(defun c:test (/ p1 p2 p3 p4)
(setq p1 '(0 0 0))
(setq p2 '(10 0 0))
(setq p3 '(10 5 0))
(setq p4 '(0 5 0))
(command "_pline" p1 p2 p3 p4 "c" "")
(princ)
) ; defun

Now you do,block that code with your cursor then hit right button,hit copy.
open your cad,at command prompt type "vlide",find icon "new file",hit them and click at upper left corner,then hit right button your mouse,hit paste.
save as your folder and give them name with extention lsp,find again icon "load active edit window",hit them.
move session to acad,at command prompt type "test",now watching it,and what happended in drawing area.


hi friends i am very new to Auto Lisp how can i invoke Auto lisp command, i type auto lisp in command prompt, but there is an error comes its an invalid command, i have a some of lisp tutorials,
Hope a reply ASAP

gurudas.ku
2006-12-15, 05:00 AM
i am using autocad 2006 and 2007