Update File location lisp

Update File location lisp

kzD1219
Collaborator Collaborator
145 Views
1 Reply
Message 1 of 2

Update File location lisp

kzD1219
Collaborator
Collaborator

I have this awesome lisp and it works great unless we are using our new drawing names that just became standard as well as just a simple drawing name.  Is there any way to get it working again?  The two other ways we name drawing files are:

00000,SLC,Lot 00,Civic 00,00000,0-0-00,Nowhere Street, 2025 Jan 27  

00000,P#14-0000-0,00000,0-0-00,Nowhere Street, 2025 Jan 27.

 

So what has happened is a lot of commas, no spaces after the commas until after the street name.  So I am guessing this lisp routines doesn't like commas or the drawing name is way too long.  And yes this is actually the way the format will stay, helps IT with our databases that are set up.

 

I do use the open file location in acad, but would much rather type than stop and move the mouse to click.

 

Below is the lisp that does work great on most of our drawings.

 

(defun c:FL () (startapp (strcat "explorer /select, " (getvar "dwgprefix") (getvar "dwgname") ", /e")) (princ))

0 Likes
146 Views
1 Reply
Reply (1)
Message 2 of 2

Michiel.Valcke
Advisor
Advisor

Could it be that the filename + location is exceeding 256 characters?


You can modify the key registry in windows to enable long file paths, see if that fixes it.
https://www.supportyourtech.com/articles/how-to-enable-long-paths-in-windows-11-step-by-step-guide/

Do be careful, not all applications can use long file paths. For example the Autodesk Desktop Connector ignores the long filepath setting of windows to avoid potential conflicts with other software that cannot handle long file paths.

0 Likes