←  Technical Questions

nanoCAD forum

»

Export to DXF as command line arguments

Rajarethinam T's Photo Rajarethinam T 08 May 2019

Hi, Will 'filedia' not applicable for the command 'Export' in Nanocad?

The save document dialog window is keep on opening even when we set the 'filedia' value as 0 and used the command as '-export'.

To write a script in Lisp to export the selected features as DXF, I have tried the below code.

(Setvar "filedia" 0)
(Command "-export" "d:\\test.dxf" ..etc)

Please suggest.
Quote

Hellen_V's Photo Hellen_V 13 May 2019

Hi,
filedia is not applicable for Export, sorry.
Quote

tracciatura.net's Photo tracciatura.net 18 May 2019

Try this code in VScript:
dim file_Path

file_Path = "c:\export.dxf"
ThisDrawing.SaveAs file_Path, 13
Where the code 13 mean ac2000_dxf: AutoCAD 2000 DXF (*.dxf)

Here you can find all the codes https://www.engram9....saveastype.html
Hope this can help you
Bye
Quote