• 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. Automatically Update Gerber Prefix to Current Filename?

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 165
  • Views 17060
  • 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

Automatically Update Gerber Prefix to Current Filename?

JFuoco
JFuoco over 6 years ago

When generating Gerbers, is there a way to set the "Prefix" cell (or Suffix, for that matter) to the board's filename? This way it will automatically update as revision numbers change, and doesn't have to be manually updated?

For instance set it as $FILENAME_ so if the filename is jim_pcb_v00.brd the gerbers become jim_pcb_v00_top, jim_pcb_v00_bot, etc. but if updated to v01, they will become jim_pcb_v01_top, jim_pcb_v01_bot etc, without having to manually update the Suffix cell highlighted below?

  • Cancel
  • DavidJHutchins
    DavidJHutchins over 6 years ago

    ARTWORK_PREFIX

    The ARTWORK_PREFIX property, attached to a board (design), adds a user-defined, case-sensitive string before generated film filenames, allowing a maximum 250-character filename, such as a part or revision number, which may be useful for larger boards with many layers and numerous artwork films as a result. For example, if a board has a project number of CDS1234, adding a prefix of CDS1234_ creates artwork in the following format:

    CDS1234_TOP.art

    CDS1234_BOTTOM.art

    CDS1234_SMASKT.art

    CDS1234_SMASKB.art

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • JFuoco
    JFuoco over 6 years ago in reply to DavidJHutchins

    Thanks David -- but I'm not sure thats exactly what I want. I want to be able to put a variable as the ARTWORK_PREFIX property that populates the filename. So that if I rename my project from CDS1234.brd to CDS1235.brd. the ARTWORK_PREFIX is automatically updated to CDS1235_ without my manually doing it.

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Mysil B
    Mysil B over 6 years ago

    We'd also be quite interested in how to do this.. Is this some setting that is project specific?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DavidJHutchins
    DavidJHutchins over 6 years ago in reply to JFuoco

    The only way I could think of would be to set the variable when the design is opened, however that doesn't cover your 'save_as' scenario, below is the code I added to my allegro.ilinit file:

    procedure(MyTriggerOpenSetArtPrefix(t_open)
    let( (Value Status)
    (Value = (strcat (axlCurrentDesign) "_"))
    ;(axlMsgPut ";#artwork_prefix %s" Value)
    (Status = (axlDBAddProp axlDBGetDesign() list("ARTWORK_PREFIX" Value)))
    t
    )
    )
    axlTriggerSet('open 'MyTriggerOpenSetArtPrefix)

    • Cancel
    • Vote Up +2 Vote Down
    • Cancel
  • JFuoco
    JFuoco over 6 years ago in reply to DavidJHutchins

    Oh wow that's a great idea, I'm going to give that a shot. 

    • 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