• 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 13836
  • 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
  • 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
  • kumarsanj
    kumarsanj over 8 years ago
    Yeah David, currently looks like this is the only option. However I have contacted the cadence team as well, lets see if they have something else for this. Will update this note if there is any response from them.

    Thanks,
    Sanjeev
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • kumarsanj
    kumarsanj over 8 years ago
    So here is the reply from cadence team
    *******************************************************************************************************************************************
    1. The issue is not related to Skill command axlfcreate. This command creates a new film in the Artwork form.
    2. The axlRunBatchDBProgram function calls the command in batch mode (It can be compared to running a command available to be executed in batch mode from Command prompt.
    3. You are calling artwork Batch command using this function. The Artwork command is a stand alone batch command and it does not refer to the Artwork parameters set in Artwork form. The Arguments this batch command can use are:

    ________________________________________________________________
    1) artwork <design>
    - Output all Gerber films defined in the design.
    2) artwork -l <design>
    - List all Gerber films defined in design.
    3) artwork [-s -p <-o outline_offset> <-a min_aperture>]
    [-f <filmname1> -f <filmname2> -f...] <design>
    - Output Gerber films based upon options defined below

    [-f <filmname1> -f <filmname2> -f...]
    Films to generate. Film must be defined in design are
    are case insensitive. Multiple films may be specified
    each with its out '-f' option
    [-s]
    Array outside of the shapes is not to be filled on a
    negative film.
    [-p]
    Use vector pad-type behavior for raster artwork.
    [-o <outline_offset>]
    Applies to negative films. Adds another outline around
    the design outline extending the shape boundary of
    the filled area. This new artwork outline extends in
    all directions beyond the design outline.
    Default is "Shape bound box" obtained from the film record.
    Value must be given in mils.
    [-a <min_aperture>]
    This option is NOT recommended.

    For vector artwork, uses this as the minimum aperture.
    Default is 3 mils. min_aperture is an integer number whose
    units must be given in mils. Fractional numbers is not
    supported and you must round the value to the nearest integer.

    Normally we use the smallest aperature defined in the
    or 3 mils whatever is larger. This allows you to set the
    default smaller then 3 mils. Do NOT attempt to use this
    to set a larger value then 3 mils.

    [-l]
    list films in design; one per line

    <design> An Allegro .brd, .mcm or .sip file

    Except for the -l option a art_param.txt must exist. If Gerber 4x or 6x are enabled, then a art_aper.txt must also exist.

    Standard command line arguments:

    [-help]
    - This information
    [-version]
    - Program prints its version and exits
    [-versionLong]
    - Program prints its long version (if available) and exits

    Legend:
    [...] - optional argument
    <...> - provide indicated data. Typically a filename.
    | - provide one of these arguments. Example -j|-o
    ... - required argument
    -$ - most Allegro programs accept this argument which means
    do not prompt for missing command line arguments _______________________________________________________________________

    If you look at the available arguments, it does not have any arguments to refer to Artwork parameters.

    So if the prefix or suffix is required to be added, this batch command can't be used.

    You will have to continue to use some more axlShell functions to create the artwork from the artwork form switches.

    I hope this provides all the details you should be looking for.
    *******************************************************************************************************************************************
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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