• 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. Listing DRA names in file directory

Stats

  • State Suggested Answer
  • Replies 2
  • Answers 1
  • Subscribers 159
  • Views 8890
  • Members are here 0
More Content

Listing DRA names in file directory

vimaldevlpr
vimaldevlpr over 3 years ago

HI,

I want to fetch the DRA Names alone in the file directory and list the names in report file. I don't know how to fetch name alone by using skill can any one please help me out.

Here list of library files placed in brd file location in that library files i have to fetch DRA name alone then i want to list in out put file.

output:

DRANAMES.lst

aaa

bbb

ccc

skill:

procedure(dranameslist()

outdata = outfile("DRANAMES.lst")

;getDirFiles

:I try to use this function shows me error.

)

  • Sign in to reply
  • Cancel
  • eDave
    0 eDave over 3 years ago

    procedure(dranameslist (@optional (dir "./"))
    outPort = outfile("DRANAMES.lst")
    foreach(draFn, setof(fn, getDirFiles(dir), cadddr(axlDMFileParts(fn)) == "dra")
    fprintf(outPort, "%s\n", draFn)
    )
    close(outPort)
    )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • vimaldevlpr
    0 vimaldevlpr over 3 years ago in reply to eDave

    Thanks a lot dave

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