Setting the version of a dxf being exported through a lisp routine

Setting the version of a dxf being exported through a lisp routine

Anonymous
Not applicable
850 Views
1 Reply
Message 1 of 2

Setting the version of a dxf being exported through a lisp routine

Anonymous
Not applicable

I am trying to update a lisp routine that exports dxfs for our laser from AutoCAD 2011 to AutoCAD 2017.  In this routine it runs the user through various options so that the file gets saved to the right place and a selection tool is used to select the profile that is supposed to be exported.  The problem I am running into is that our laser requires the dxfs to be a AutoCAD 2000 dxf and it will not accept AutoCAD 2017 dxfs. 

 

I can't find anyway to do this in the lisp routine.  Is there a variable that needs to be set somewhere?  I know in the options you can set the dwg version that AutoCAD always saves to but I can't find anything for dxfs.  Any ideas?

 

I have included the lisp routine that I am updating.  It dates back all the way to R13 and it needs a bit of cleaning up, that I am attempting to do.  Note that it does link to a couple other lisp routines to perform some tasks but I am either working on eliminating them from the routine or I don't think that they are related to the problem I am having here so I haven't included them.  

0 Likes
851 Views
1 Reply
Reply (1)
Message 2 of 2

rkmcswain
Mentor
Mentor

FYI: There is no "2017" DXF format, 2013 is the latest.

 

This should do what you want.

 

;
(vl-cmdf "._saveas" "dxf" "_V" "LT2000" "16" "C:\\temp\\my2000dxf_file.dxf")
;
R.K. McSwain     | CADpanacea | on twitter
0 Likes