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?
Can you use dump_libraries using axlRunBatchDBProgram?
For the bonus question just use "MISC" and include the file extension. eg.axlDMFindFile("MISC", "*.doc", "r")
In reply to eDave:
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?
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.
In reply to thewill2live:
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)