Eric Boehlke
Usenet Archive
- Joined
- Aug 25, 2003
- Messages
- 2
- Reaction score
- 0
There seems to be a limitation on AutoLISP (ACAD 2002) opening or copying files with a very long name + path.
I think the workaround is to use vl-file-rename and temporarily rename the file that needs to be opened to something with a short name.
Example:
_$ (setq x (getfiled "" "" "" 0))
"G:\\Details\\06 - Envelope\\01 Exterior Wall Types\\Cavity Walls\\Brick Veneer\\LMF Back-Up\\0000-brick-code-01_exterior-wall-at-slab-w-relieving-angle.det" _$ (setq a (open x "r")) nil _$ (vl-file-copy x "c:/temp/xxx") nil _$ x "G:\\Details\\06 - Envelope\\01 Exterior Wall Types\\Cavity Walls\\Brick Veneer\\LMF Back-Up\\0000-brick-code-01_exterior-wall-at-slab-w-relieving-angle.det" _$ (vl-file-rename x "c:/temp/xxxyyy")
T
Perhaps there is some setting to avoid this problem.
I think the workaround is to use vl-file-rename and temporarily rename the file that needs to be opened to something with a short name.
Example:
_$ (setq x (getfiled "" "" "" 0))
"G:\\Details\\06 - Envelope\\01 Exterior Wall Types\\Cavity Walls\\Brick Veneer\\LMF Back-Up\\0000-brick-code-01_exterior-wall-at-slab-w-relieving-angle.det" _$ (setq a (open x "r")) nil _$ (vl-file-copy x "c:/temp/xxx") nil _$ x "G:\\Details\\06 - Envelope\\01 Exterior Wall Types\\Cavity Walls\\Brick Veneer\\LMF Back-Up\\0000-brick-code-01_exterior-wall-at-slab-w-relieving-angle.det" _$ (vl-file-rename x "c:/temp/xxxyyy")
T
Perhaps there is some setting to avoid this problem.