LINYTYPE load with lsp

Discussion in 'AutoCAD' started by connie anguiano, Dec 18, 2003.

  1. i was wondering is i can modify part of this lisp to
    load all linetypes, instead the specified linetypes.

    thanks in advance.

    connie
    ;;;;;;;;;;;;;;;;;;;

    (defun c:ceg109()
    (setvar "cmdecho" 0)

    (setq sc (getvar "useri1"))

    ;load linetypes
    (command "-linetype" "load" "center" "acad.lin" "" "")
    (command "-linetype" "load" "center2" "acad.lin" "" "")
    (command "-linetype" "load" "divide2" "acad.lin" "" "")
    (command "-linetype" "load" "dot" "acad.lin" "" "")
    (command "-linetype" "load" "dot2" "acad.lin" "" "")
    (command "-linetype" "load" "dashdot" "acad.lin" "" "")
    (command "-linetype" "load" "center2" "acad.lin" "" "")
    (command "-linetype" "load" "dashed" "acad.lin" "" "")
    (command "-linetype" "load" "dashed2" "acad.lin" "" "")
    (command "-linetype" "load" "hidden" "acad.lin" "" "")
    (command "-linetype" "load" "hidden2" "acad.lin" "" "")
    (command "-linetype" "load" "phantom" "acad.lin" "" "")
    (command "-linetype" "load" "sandbag40" "acad.lin" "" "")
    (command "-linetype" "load" "FENCEBOX20" "acad.lin" "" "")

    (if (= sc 0) (command "script" "ceg109"))



    (princ)
    )
     
    connie anguiano, Dec 18, 2003
    #1
  2. connie anguiano

    Paul Turvill Guest

    (command "_.-linetype" "_load" "*" "acad.lin" "")
    ___
     
    Paul Turvill, Dec 19, 2003
    #2
  3. connie anguiano

    Dean Griffin Guest

    (setvar "expert" 3)
    (command "-linetype" "load" "*" "acad.lin" "" "")
     
    Dean Griffin, Dec 19, 2003
    #3
  4. thanks so much paul & dean!!

    u guy's saved me a great deal of time.
    my Hereos!!

    thanks again!!
    connie
     
    connie anguiano, Dec 19, 2003
    #4
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.