Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autocad LT Scripting SAVEAS

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
761 Views, 4 Replies

Autocad LT Scripting SAVEAS

I am attempting to write a SAVEAS script for autocad that will save the current drawing with another name and in a new location. Here is where i am at:

 

attdia 0
cmddia 0
filedia 0
dwgcheck 0
pickadd 1
pickauto 0
saveas DXF 16 testing3.dxf
attdia 1
cmddia 1
filedia 1
dwgcheck 1

 

However, when i run this in ACad i am prompted for user input, unless i am mistaken all the needed data to saveas is in the command. What am i missing?

Tags (2)
4 REPLIES 4
Message 2 of 5
Paul_Gander
in reply to: Anonymous

Is the prompt asking if you wish to replace the existing file?

Set EXPERT to 2 or more to suppress this prompt.

Message 3 of 5
Anonymous
in reply to: Paul_Gander

It is not asking about replacing a file.

 

Here is what i get:

2.PNG1.PNG

 

 

Message 4 of 5
Paul_Gander
in reply to: Anonymous

It looks like that prompt might be accepting spaces as valid characters rather than as an alternative for the enter key. Try starting a new line in your script file after specifying the dxf file format.

Message 5 of 5
Anonymous
in reply to: Paul_Gander

That did the trick, thanks so much.

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

Post to forums  

Forma Design Contest


Technology Administrators