Page 1 of 1

Export - Save as ASCII dxf?

Posted: Fri Sep 02, 2005 12:06 pm
by bcammack
I don't know if it's possible. Is it? We have a laser projector that only accepts ASCII format dxf files. I'd like to automate that process with a button and some VBA code, but I don't see anything that let's me set the perferred format.

Posted: Sat Sep 03, 2005 2:18 am
by John Finlay
bcammack,

Looks like there are no options to the SaveAs method for DXF files.




------------------
Regards
John Finlay

Posted: Mon Sep 05, 2005 4:14 pm
by ssc
bcammack,

Try,

Private Sub SaveAsExample()

' This example saves the drawing as a file called TESTING.DWG.

Application.ActiveDocument.SaveAs ("C:\Documents and Settings\ssc\My Documents\testing.dxf")

End Sub

It appears you can use either a dxf extension (Icad will save to dxf format, not sure what version) or dwg. Make sure you change the directory to where you want it to go.

The above worked for me using Version 5 of IntelliCAD.

ssc

Posted: Tue Sep 06, 2005 3:38 pm
by John Finlay
SSC,

Good one.

------------------
Regards
John Finlay

Posted: Wed Nov 02, 2005 8:56 am
by bcammack
I guess I should have formed the question better. I know that I can specify a file extension to for the file save format to a certain degree, but via the user interface you can specify either DXF binary or DXF Ascii. Which does IntelliCAD write a DXF file out as via the VBA method?

Thanks!