CATDrawing to DXF via CATScript - how to set options

Daniel E Echegoyen

CATDrawing to DXF via CATScript - how to set options

CATDrawing to DXF via CATScript - how to set options.

Hello,

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.

Existing code:

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)
sheet.Activate

LOGFILE.WriteLine("Saving the DXF file: " & catDXFPath)
Set catDrwDoc = CATIA.ActiveDocument
catDrwDoc.ExportData catDXFPath, "dxf"