Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

browse to a certain directory

2 REPLIES 2
Reply
Message 1 of 3
rseyda
137 Views, 2 Replies

browse to a certain directory

How do you put a browse function in a lisp routine? I need to browse to a certain directory depending on a variable setting. I made a dialog box, and you choose a setting (i.e. steel or concrete) and depending on what you choose it will go to the proper directory so you can look at the files there. So I need to know how to do that in autolisp for acad2002. Thanks.
2 REPLIES 2
Message 2 of 3
gsarver
in reply to: rseyda

The best thing out there, IMO, is DosLIB by Robert McNeel and Associates. Not only does it cleanly handle all of those external functions, it's also FREE. Check it out.

http://www.mcneel.com/doslib.htm
Message 3 of 3
Anonymous
in reply to: rseyda

How are users going to "look at the files there?"
If you simply want to present a standard "open file" dialog box that's been
pre-directed to a given folder (based on the previous dialog selection),
then look at the (getfiled) function of straight AutoLisp. There are simple
ways to get it to:
-start in a given directory
-restrict the types of files listed
-restrict the choices of the user
It returns the full path and filename of the selected file.

DosLib, as mentioned by gsarver, is also an excellent collection of
additional lisp functions, some of which might be of interest to you in your
current problem. It is free, but will need to be loaded at each workstation
that will use the functions you write (those that depend on DosLib
functions, anyway).

"rseyda" wrote in message
news:f16e33b.-1@WebX.maYIadrTaRb...
> How do you put a browse function in a lisp routine? I need to browse to a
certain directory depending on a variable setting. I made a dialog box, and
you choose a setting (i.e. steel or concrete) and depending on what you
choose it will go to the proper directory so you can look at the files
there. So I need to know how to do that in autolisp for acad2002. Thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost