• 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. Allegro X PCB Editor
  3. Skill Command for dumping library?

Stats

  • Replies 3
  • Subscribers 159
  • Views 14048
  • Members are here 0
More Content

Skill Command for dumping library?

thewill2live
thewill2live over 11 years ago

Is there a Skill version of the dlib command? I want to be able to call it as part of my program but fill in the selection criteria without user input because my program will sort and move the data after it has been generated. I know I could call axlShell(dlib) but that would still require user input for the directory to save to and to hit the Export button. Any way to do this in Skill? I tried axlWritePackageFile() in a loop for each of the dbids but the database has wayyy too many elements for that to run (and it's a terrible workaround to begin with). 

 

Bonus question: Is there a way to obtain a list of the files in a specific directory (obtained via user input) WITHOUT specifying the file ID in the fileops.txt file? I am in a directory I want to be in but I need a way of knowing if the files I'm looking for (.zips and a .doc) are inside said directory so that I can copy them over to a new location. Or should I just make a new entry in the fileops.txt? If that's easier, how would I do that? 

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 11 years ago

    Can you use dump_libraries using axlRunBatchDBProgram?

    For the bonus question just use "MISC" and include the file extension. eg.axlDMFindFile("MISC", "*.doc", "r")

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • thewill2live
    thewill2live over 11 years ago

    Thanks for the tip Dave. I've been learning Skill by myself from the Allegro Skill Reference and Cadence Skill Language Reference documents that live in the allegro home directory so I ever only know of the functions described in there. I looked up the entry for axlRunBatchDBProgram() and it seems like it's made to run windows .bat files. I found the dump_libraries.exe file in the home directory and read the txt that goes with it. Is this the correct syntax if I'm trying to dump everything?

      axlRunBatchDBProgram("dump_libraries" "dump_libraries")

     

    For the Bonus question, thanks. I didn't realize that there was a MISC option in the fileops.txt file. Kind of a dense list to search through, haha.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 11 years ago

    The batch help files are in .....\share\pcb\batchhelp. Look for dump_libraries.txt

    Check the syntax for axlRunBatchDBProgram in ....doc\algroskill\algroskill.pdf or ...share\pcb\examples\skill\DOC\FUNCS\axlRunBatchDBProgram.txt

    I expect your commands to look something like this:

    sprintf(cmdStr, "dump_libraries padamfl %s.brd", axlCurrentDesign())

    axlRunBatchDBProgram("dump_libraries", cmdStr,  ?reloadDB nil ?noUnload t)

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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