• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. PCB Design
  3. Running ODB++ via Batch File

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 164
  • Views 14353
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Running ODB++ via Batch File

generali
generali over 13 years ago

Hello all,

 

I'm trying to run the brd2odb executable via a batch (.bat) file. The purpose of this executable is to open up Allegro PCB Editor, extract the board design, and run the brd2odb executable all via commands in the batch file.

 Here's the snippet of the script

allegro -gui -product pcb_design_expert -p %DESIGN_DIR% -s %CDSROOT%\tools\pcb\skill\allegro.scr %DESIGN_DIR%\%DESIGN_ITEM%
C:\MentorGraphics\Allegr~1\brd2odb -ijp %DESIGN_DIR% -gui -jp -gz -a2l -dgr %DESIGN_DIR%\%DESIGN_ITEM%

All the variables were already set. The first step goes through correctly, however, after I run the brd2odb program in gui mode, the program freezes at the following step:

 

Sorting pins file into C:/MentorGraphics/Allegr~1/odb-genesis186a2.3332/cds-sort-pins-genesis186a3.3332
Completed
 
Prepare layer structure...
*********** WARNING  09Jan2012.113104.070  3332  9.1.0(65) Windows Vista
There is no aif file
Read padstacks...
Read components...
Read pins...
*********** WARNING  09Jan2012.113104.105  3332  9.1.0(65) Windows Vista
pins in file C:/MentorGraphics/Allegr~1/odb-genesis186a2.3332/cds-sort-pins-genesis186a3.3332 start on line 3 has no component and no package name, therefore no_body paackage was build

Does anyone know why brd2odb is stopping at this point? When I run this program via command prompt (instead of batch file), the same warning appears but the program continues on instead of freezing.

 

Thanks,

Dan

  • Cancel
  • djhutchi
    djhutchi over 13 years ago
    Try running without the –gui option:

    C:\MentorGraphics\Allegr~1\brd2odb -ijp %DESIGN_DIR% -jp -gz -a2l -dgr %DESIGN_DIR%\%DESIGN_ITEM%

    Since I run it from Allegro with the following skill commands:

    (Command = sprintf(Command, "%s/brd2odb -a2l -c p -gz -jn %s -nn -read_sqa no -re -bb -fi -iff -sp %s\\%s.brd", getShellEnvVar("ALLEGRO_BRD2ODB"), lowerCase(axlCurrentDesign()), getWorkingDir(), axlCurrentDesign()))

    axlRunBatchDBProgram("brd2odb", Command, ?noUnload t)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • generali
    generali over 13 years ago

    Thank you for your reply! However, running without -gui option freezes the command prompt as well. The error log this time shows

     

    Sorting pins file into C:/MentorGraphics/Allegr~1/odb-genesis186a2.6780/cds-sort-pins-genesis186a3.danli0l.6780
    Completed
     
    Prepare layer structure...
    *********** WARNING  10Jan2012.095212.877  6780  9.1.0(65) Windows Vista
    There is no aif file

     

     which is same as previous error except it did not reach as far.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information