I have a lisp that create a multiple attachment at once, the my script file is correct:
-xref _A C:\Users\admin\Desktop\temp\176112 E-504.00.40-B.dwg
0,0
1
1
0
-xref _A C:\Users\admin\Desktop\temp\176112 E-504.00.40.dwg
0,0
1
1
0
but at the time autocad read the line of the dwg to attach it, it truncate the file name
(because the space on the file name) giving me the error:
"176112.dwg" cannot be found.
*Invalid*
any sugestion please.... help!
Thank in advance...
Dave
Your *.scr file should look like this :
-xref _A "C:\Users\admin\Desktop\temp\176112 E-504.00.40-B.dwg" 0,0 1 1 0 -xref _A "C:\Users\admin\Desktop\temp\176112 E-504.00.40.dwg" 0,0 1 1 0
Note "" marks...
HTH, M.R.
I did try it adding the quotes... but it does the same
my script file:
-xref
_A
C:\Users\admin\Desktop\temp\"176112 E-504.00.40-B.dwg" <= on script file is correct file with quotes
0,0
1
1
0
the error message:
Command: -xref
Enter an option [?/Bind/Detach/Path/Unload/Reload/Overlay/Attach] <Attach>: _A
Enter name of file to attach: C:\Users\Canas\Desktop\temp\"176112 <= = file name truncated
Error: "C:\Users\admin\Desktop\temp\"176112" is not a valid file name.
*Invalid*
Have you tried to put complete : drive letter + path + filename into quotes...
M.R.
You haven't quoted the entire path as shown in Marko's example.