Search the Community
Showing results for tags 'directory'.
-
I'm using Lee Mac's great DirectoryFiles routine (copied below) to get a list of files in a given root directory. I'd like to stop the recursion prematurely and return nil if there are over 100 files in the list, but the recursion, mapcars, and lambdas are a bit above my head. Any help w...
-
Hi, is there a way to save my drawing with its name in a directory by using a Attribute value. Example: Drawingname: test.dwg blockname: TitleBlock Attribute: SF:WE Attribute-Value: test2 And it should save the drawing in: C:drawing/test drawing/(attribute-value)/... but...
-
Error: bad argument value: string position out of range 17
TimG posted a topic in AutoLISP, Visual LISP & DCL
I have been having problems loading a lisp that has previously worked, without a problem for years, but now throws a message "Error: bad argument value: string position out of range 17". The lisp is loaded on opening of each drawing in the acaddoc.lsp, which has not changed. It is supposed to o... -
Lisp to create numbered folders based on selection
benhubel posted a topic in AutoLISP, Visual LISP & DCL
I have some drawings which contain hundreds of numbers (example: 1-218b), each of which is on geometry which will be written as a block into its own folder. I am trying to write a Lisp that will create all of the folders based on the selected text. I have found a few posts about writing a directory,... -
Seeking template name and path of NEW drawing (not QNEWed)
Ahankhah posted a topic in AutoLISP, Visual LISP & DCL
Hi everybody, as I requested in another thread (Finding template of new drawing), I am seeking a way to find out the name and directory of the template file which is used for NEW drawing. I tested all ways mentioned in the thread, with no success (shown as follow) (getenv "General\...- 11 replies
-
- qnew
- new command
-
(and 2 more)
Tagged with:
-
AutoLISP code needed to remove directories (folders)
Ahankhah posted a topic in AutoLISP, Visual LISP & DCL
:)Hello everyone, I need to romove some empty directories via autolisp code. Is there any way? Any help is appreciated.- 2 replies
-
- directory
- directories
-
(and 1 more)
Tagged with: