INSERT LISP - sub folders?
INSERT LISP - sub folders?
(OP)
Hi,
We currently have a LISP routine that inserts our OS-map drawing tiles - It works by us clicking on screen the area where we want the mapping (coordinates) and it then inserts the correct one.
However it only works from one Folder, so is there a way to make it search through multiple folders (basically we want to split up the mapping in to sub-directorary's)
Any help would be great either in altering our current lisp, or a new one, or if there is another way such as VBA.
(Can email current lisp if required)
Thanks
We currently have a LISP routine that inserts our OS-map drawing tiles - It works by us clicking on screen the area where we want the mapping (coordinates) and it then inserts the correct one.
However it only works from one Folder, so is there a way to make it search through multiple folders (basically we want to split up the mapping in to sub-directorary's)
Any help would be great either in altering our current lisp, or a new one, or if there is another way such as VBA.
(Can email current lisp if required)
Thanks





RE: INSERT LISP - sub folders?
"Whether you think that you can, or that you can't, you are usually right "
.. Henry Ford
RE: INSERT LISP - sub folders?
No - I want the lisp routine to search through a number of folders and find the correct block to insert (by name).
Hope that makes it a bit clearer.
RE: INSERT LISP - sub folders?
RE: INSERT LISP - sub folders?
RE: INSERT LISP - sub folders?
"Whether you think that you can, or that you can't, you are usually right "
.. Henry Ford
RE: INSERT LISP - sub folders?
(setq FileToFind "Drawing1.dwg"
StartDir "C:/Program Files/ACAD2000"
)
(setq WheresTheFile(acet-file-dir FileToFind 0 StartDir))
"Whether you think that you can, or that you can't, you are usually right "
.. Henry Ford
RE: INSERT LISP - sub folders?
Your second idea seems to be what I am looking for, but it does not work (acet-file-dir is unknown) - I guess I have the wrong version of expressTools. Anyway is there another to do a recursive search?