Look for the Brd2odb_help.pdf in the directory where the ODB++ translator executable of Mentor is placed. In the PDF you have a section 'Using Command Line Parameters:' The command line is 'brd2odb [parameters] ' You can see which commands are actually used, put this in the Allegro command prompt: set wait_debug Then the axlRunBatchDBProgram() commands are echoed in the commandline. The same is valid for the DXF export. For a simple DXF export to give you a head start: dxfFile = "dxf_output" fcnv = "DXF_mapping" layer = "TOP" p = axlDMOpenFile("ALLEGRO_CNV", fcnv, "w") fprintf(p "#This is the Layer Conversion File used for\n") fprintf(p "#importing DXF data into Allegro/APD.\n\n") fprintf(p "#CLASS! SUBCLASS! DXF_LAYER!\n\n") fprintf(p "BOARD GEOMETRY!\n") fprintf(p " CUTOUT! OUTLINE!\n\n") fprintf(p "BOARD GEOMETRY!\n") fprintf(p " DESIGN_OUTLINE! OUTLINE!\n\n") fprintf(p "PACKAGE GEOMETRY!\n") fprintf(p " ASSEMBLY_%s! PACKAGE!\n\n" layer) fprintf(p "PIN!\n") fprintf(p " %s! PIN!\n\n" layer) fprintf(p "REF DES!\n") fprintf(p " DISPLAY_%s! REF_DES!\n\n" layer) fprintf(p "#END\n") axlDMClose(p) sprintf(str "a2dxf -$ -u MM -a 3 -f 12 -c L \"%s.cnv\" \"%s/%s_%s.dxf\" %%s" fcnv getWorkingDir() dxfFile layer ) res= axlRunBatchDBProgram("Generating DXF File... " str ?noLogview t ?warnProgram t ?noExitMsgs t) deleteFile(strcat(getWorkingDir() "/" fcnv ".cnv")) Kr, Bram
↧