Express Tool LMAN & Lisp Routine!

Discussion in 'AutoCAD' started by kipph, Sep 10, 2004.

  1. kipph

    kipph Guest

    trying to Import a Layer State using the Express Tools Lman.lsp & a separate Lisp routine.

    Background Info:
    Using ADT r3.3 w/ Express Tools from AutoCAD 2k.

    1st attempt at Importing:
    Load Express Tools in Startup.

    (defun LAYER_STATE ()
    (command "bns_c_import_lay" "Layers.lay")
    (princ "\nBLayers State Imported!")
    (princ)
    );end
    This doesn't work (Error on Command)!!!

    2nd Attempt:
    (defun LAYER_STATE ()
    (princ "\n Type \"Import\" then grab the appropriate Layer State")
    (princ "\n Enter to continue")
    (command pause)
    (c:-lman)
    (princ "\nBLayers State Imported!")
    (princ)
    );end

    This works but is awkward for users to perform.
    Is there any other way to execute this???

    Help,
    KippH
     
    kipph, Sep 10, 2004
    #1
  2. kipph

    Jack G Guest

    My solution for this would be to write a small script file called something
    like "ImpLayers.scr" something like...
    bns_c_import_lay
    layers.lay
    and then in lisp, say (command "script" "ImpLayers.scr").

    Jack
     
    Jack G, Sep 11, 2004
    #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.