Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dwgs file name with spaces on script file - problem to read

5 REPLIES 5
Reply
Message 1 of 6
hcanas
484 Views, 5 Replies

Dwgs file name with spaces on script file - problem to read


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

DC
5 REPLIES 5
Message 2 of 6
marko_ribar
in reply to: hcanas

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.

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 3 of 6
hcanas
in reply to: marko_ribar

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*

 

 

DC
Message 4 of 6
marko_ribar
in reply to: hcanas

Have you tried to put complete : drive letter + path + filename into quotes...

 

M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
Message 5 of 6
Lee_Mac
in reply to: hcanas

You haven't quoted the entire path as shown in Marko's example.

Message 6 of 6
hcanas
in reply to: Lee_Mac

Got it!,

it was the quote.... thank you guys....really apreciate.

Quote the whole path is the solution.

 

DC

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost