CATDrawing to DXF via CATScript - how to set options.
I'm looking to write a CATScript to export CATDrawing to DXF, but I need to change some export options on the fly.
I have the basic export working, but not the export options, more specifically Version and Export Mode fields.
Would anyone point me in the right direction?
Thanks for your feedback.
LOGFILE.WriteLine("Opening drawing file: " & catDrwPath)
Dim catDrwDoc As Document
Set catDrwDoc = catDrw.Open(catDrwPath)
' Need to choose the first sheet
Dim sheet As AnyObject
Set sheet = catDrwDoc.Sheets.Item(1)
LOGFILE.WriteLine("Saving the DXF file: " & catDXFPath)
Set catDrwDoc = CATIA.ActiveDocument
catDrwDoc.ExportData catDXFPath, "dxf"