• 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. Limit specific BRD files to only using certain library paths...

Stats

  • State Verified Answer
  • Replies 7
  • Subscribers 160
  • Views 6234
  • Members are here 0
More Content

Limit specific BRD files to only using certain library paths?

bengelJF
bengelJF over 1 year ago

I'm repackaging an existing design from an outside group and have received a schematic and footprint/padstack files.

By pure coincidence, some of the footprint names in the schematic matched up with our internal libraries and were placeable in the board file straightaway. However, I don't want this file to be able to access our internal libraries; I want it to only pull from a particular project-specific library.

I hop between projects pretty regularly, so I don't want to delete everything from my padpath and psmpath to limit my entire installation to the project-specific library. If I do this, I'd have to change them every time I hop to a different board, which could be multiple times a day.

Is there a way to tell a board file to only use specific libraries/file paths?

  • Sign in to reply
  • Cancel
  • Robert Finley
    0 Robert Finley over 1 year ago

    This is driven by your search paths stored in your SPB_Data/pcbenv/env file.

    You can either edit that text file or change your search paths around from Allegro.

    >Setup >Preferences

    Paths>  Library>

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bengelJF
    0 bengelJF over 1 year ago in reply to Robert Finley

    Going through the setup menu is how I've gotten our libraries hooked up to my install of PCB Editor in the first place. It's clunky either way if I have to change these out on the fly multiple times a day, hence my question if there's a different/better way to handle these on-the-fly changes.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Finley
    0 Robert Finley over 1 year ago in reply to bengelJF

    Yes.  I suggest replacing/swapping an entire Env file to be the easiest approach.   

    I believe having the wrong library isn't a problem until you netin a change.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • John T
    +1 John T over 1 year ago

    Hi bengelJF, it is possible to place a brief SKILL file inside each design folder; in this file you can rewrite the library paths automatically when the design is opened. 

    This SKILL file is to be located in the same folder as your brd design, place the following lines of text in this; alter to suit your desired library paths:

    axlSetVariableFile("psmpath" "C:/SPB_Data/Lib/symbol" )
    axlSetVariableFile("padpath" "C:/SPB_Data/Lib/pad" )

    Save the above in a file named LibraryPaths.il as example.

    To complete the automation, go to your allegro.ilinit file located in the folder %home%/pcbenv. This SKILL initialisation file runs upon opening your design, therefore we should add the following line of code to allegro.ilinit : 

    load("LibraryPaths.il")

    In this way, any design can have specific individual paths loaded directly upon opening the board. Each design folder can have a different library path due its own version of the  LibraryPaths.il file. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • bengelJF
    +1 bengelJF over 1 year ago

    The solution we came up with was to use a relative path in the same directory as the .BRD file, e.g. "./Library", placed at the top of the padpath and psmpath lists. OrCAD goes through these lists from top to bottom when searching for footprints and padstacks, so by placing this at the top we tell it to look in this Library folder first.

    If we're working on a design from an external source, their footprints and padstacks go in this folder and are the first thing OrCAD encounters; if we're working on an internal project, we simply don't create that folder and it falls back on our regular libraries which are further down the list.

    The downside here is that you can still end up with internal footprints on an external project if it finds a matching item on an internal library, so we need to watch for that. The upside is that we don't need to create any scripts or customized files as long as we follow this setup.

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