Lisp for visual making views

Discussion in 'AutoCAD' started by calendriersca, Sep 18, 2006.

  1. 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 ?
     
    calendriersca, Sep 18, 2006
    #1
  2. calendriersca

    eastsun Guest

    写é“:

    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)
    (princ)
    )
     
    eastsun, Sep 20, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.