Change Default Directory

Discussion in 'AutoCAD' started by tracihabergham, Jan 8, 2004.

  1. Hi There,

    I am trying to write a lisp routine and half way through I want to insert a raster image using the image command. Is there a way of making the image command look at a certain directory everytime?

    Thanks Traci
     
    tracihabergham, Jan 8, 2004
    #1
  2. tracihabergham

    ECCAD Guest

    You can use the (getfiled) function for this.
    Example:
    (setq img_file (getfiled "Select Image File" "" "jpg" 2))
    Should give you a browse dialog, pick the image file,
    returns value for img_file = "Formal\\Path\\filename.jpg"

    Bob
     
    ECCAD, Jan 8, 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.