• 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. Prefix set for Gerber file name does not appear in output...

Stats

  • Replies 3
  • Subscribers 158
  • Views 13851
  • Members are here 0
More Content

Prefix set for Gerber file name does not appear in output file

kumarsanj
kumarsanj over 8 years ago

Hi,

I am trying to generate the gerber with the prefix name set in the film control window. for this I am trying the below code.

; -----------------------------------------------------------------
; PREFIX SETTING
; -----------------------------------------------------------------
axlShell("setwindow form.film_control")
axlShell("FORM film_control general_parameters")
axlShell(strcat("FORM film_control filename_prefix " (axlCurrentDesign) "_"))
axlShell("FORM film_control ok")
; -----------------------------------------------------------------
; FILM SETTING
; -----------------------------------------------------------------
axlfcreate "ASSY1" '(0 0 0 6 0 1 0 0 0 0 0 0 0) '("REF DES/SILKSCREEN_TOP" "PIN/TOP" "PACKAGE GEOMETRY/SILKSCREEN_TOP" "DRAWING FORMAT/TITLE_BLOCK" "DRAWING FORMAT/DWG_ASY1" "BOARD GEOMETRY/OUTLINE" "BOARD GEOMETRY/SILKSCREEN_TOP" "BOARD GEOMETRY/ASSEMBLY_DETAIL"))
; -----------------------------------------------------------------
; GENERATE FAB LAYER ARTWORK
; -----------------------------------------------------------------
axlRunBatchDBProgram("artwork" strcat("artwork -f FAB " axlCurrentDesign(), ".brd"), ?noUnload t ?logfile "photoplot.log", ?warnProgram t)


axlShell command is setting up the correct prefix name in the film control window,however the generated output file doesnot shows the same prefix name which is set by the axlShell command in film control window.

Looks like the Parameters are not getting accessed through axlfcreate function, as the below message can be seen on photoplot.log while generating the artwork file

Could someone guide me how to access the parameter files if we are generating an artwork file with the above method?

Thanks,
Sanjeev

  • Sign in to reply
  • Cancel
Parents
  • DavidJHutchins
    DavidJHutchins over 8 years ago
    When using the external 'artwork' command the parameters are read from the 'art_param.txt' file,
    it looks like the filename_prefix settings are not written to that file...

    You may want to try replacing the axlRunBatchDBProgram() call with a few more axlShell commands:
    axlShell("FORM film_control film_control")
    axlShell("FORM film_control select_all")
    axlShell("FORM film_control create")
    axlShell("setwindow form.film_control")
    axlShell("FORM film_control ok")
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • DavidJHutchins
    DavidJHutchins over 8 years ago
    When using the external 'artwork' command the parameters are read from the 'art_param.txt' file,
    it looks like the filename_prefix settings are not written to that file...

    You may want to try replacing the axlRunBatchDBProgram() call with a few more axlShell commands:
    axlShell("FORM film_control film_control")
    axlShell("FORM film_control select_all")
    axlShell("FORM film_control create")
    axlShell("setwindow form.film_control")
    axlShell("FORM film_control ok")
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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