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?
Solved! Go to Solution.
Solved by Paul_Gander. Go to Solution.
Is the prompt asking if you wish to replace the existing file?
Set EXPERT to 2 or more to suppress this prompt.
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.
Can't find what you're looking for? Ask the community or share your knowledge.