AnsweredAssumed Answered

PADS macro in batch mode

Question asked by martin.gyurko on Feb 17, 2012
Latest reply on Feb 17, 2012 by strangd

Dear PADS users,

 

I wrote a nice macro which automatically generates a DXF file from a batch file. Is it possible to pass arguments from the batch into the macro?

It would be nice to pass the filename into the macro. Any other ideas???

 

best regards,

 

Wolfgang

 

 

    Application.ExportDocument("DxfExport.dxf")

    DXFExportDlg.RemoveAll.Click()

    DXFExportDlg.AvailableLayers.Selected(1) = true

    DXFExportDlg.AvailableLayers.Selected(4) = true

    DXFExportDlg.AvailableLayers.Selected(27) = true

    DXFExportDlg.AvailableLayers.Selected(30) = true

 

    DXFExportDlg.Add.Click()

    DXFExportDlg.DXFFileUnits = "Inches"

    DXFExportDlg.Copper = false

    DXFExportDlg.Text = false

    DXFExportDlg.CopperPour = false

    DXFExportDlg.Routes = false

    DXFExportDlg.Attributes = false

    DXFExportDlg.Ok.Click()

Outcomes