Lisp for visual making views

I've a french autocad.

I want to make and name a view in the object space viewport directly. A lisp (edview.lsp)

(defun c:ev () (setq pt1 (getpoint "\n1corner of the view")) (setq pt2 (getpoint "\n2corner of the view"))")) (setq txt (getstring "\nname of the view :")) (command "view" "w" txt pt1 pt2) (princ) )

I make all it's ask, including name of the view. Then a prompt appear, who's says "name of the view" unknow command.

Any Idea ?

Reply to
calendriersca
Loading thread data ...

snipped-for-privacy@hotmail.fr =E5=86=99=E9=81=93=EF=BC=9A

This will be OK!

(defun C:ev () (setq pt1 (getpoint "\n1corner of the view")) (setq pt2 (getpoint "\n2corner of the view")) (setq txt (getstring "\nname of the view :")) (command "view" "w" txt pt1 pt2)=20 (princ)=20 )

Reply to
eastsun

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.