Using saveas in an AutoCAD script

Using saveas in an AutoCAD script

jleavitt
Advocate Advocate
693 Views
3 Replies
Message 1 of 4

Using saveas in an AutoCAD script

jleavitt
Advocate
Advocate

We are currently switching over from Map 3D 2018 to Map 3D 2020 and I am having trouble using the SAVEAS command in an AutoCAD script that previously worked:

 

(LOAD "C:\\TMP\\BLM LISP\\GMM to Shape Files\\Create Project TWP File.lsp")
(createtwp (vl-filename-base (getvar "dwgname")))
CTLIN
IMPSIDS
IMPCOR
RIL
LAY->TBDY
(SETJOB)
ZOOM
E
PIDOFF
RF
LXIN
CRPOLYTOPO
IMPAN
(LOAD "C:\\TMP\\BLM LISP\\LINKING\\READ IN LLD FILE.LSP")
READLLD
SAVEAS
1018

 

The process works flawlessly, except for the save portion.  I am assuming that there have been no updates to the AutoCAD formats, so why do I get this error message:

 

jleavitt_0-1648152939459.png

 

 

J Leavitt, PLS
Land Surveyor
Bureau of Land Management
California State Office
0 Likes
Accepted solutions (1)
694 Views
3 Replies
Replies (3)
Message 2 of 4

pendean
Community Legend
Community Legend
Accepted solution
Should your last line read 2018 or something else perhaps?

The message is basically letting you know that your Map3D2020 content cannot be saved to an older file format, there is no LISP or script to fix that, you hit a by-deign Map3D limitation.
0 Likes
Message 3 of 4

Sea-Haven
Mentor
Mentor

SAVEAS
1018  what version year ?

0 Likes
Message 4 of 4

jleavitt
Advocate
Advocate

Then why does the saveas command default to 2013 and not offer an option to specify 2020 format?

 

J Leavitt, PLS
Land Surveyor
Bureau of Land Management
California State Office
0 Likes