-linetype?

Discussion in 'AutoCAD' started by martin, Jan 13, 2004.

  1. martin

    martin Guest

    i'm trying to load linetypes from a lin-file through lisp, the problem is
    that it all goes well till it finds an existing linetype then it prompts
    (linetype exists, overwrite?), although i've set (cmdecho) to zero the
    prompt still appears, is there a way to avoid this?
     
    martin, Jan 13, 2004
    #1
  2. martin

    C Witt Guest

    (foreach findltype'("center" "hidden" "phantom" "dashed")
    (if (= (tblsearch "ltype" findltype) nil)
    (command "-linetype" "l" findltype "" "")
    )
    )
     
    C Witt, Jan 13, 2004
    #2
  3. martin

    dean_bourke Guest

    (defun c:load_linetypes (/)
    (command "linetype" "LOAD" "*" "")
    (while (= (getvar "cmdactive") 1) (command ""))
    (princ)
    )
     
    dean_bourke, Jan 13, 2004
    #3
  4. martin

    martin Guest

    it's perfect.
    martin
     
    martin, Jan 13, 2004
    #4
  5. martin

    R.K. McSwain Guest

    Set the sysvar "expert" to 3 or higher to suppress these prompts....
     
    R.K. McSwain, Jan 13, 2004
    #5
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.