• 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. Automating Gerber Generation

Stats

  • Replies 8
  • Subscribers 160
  • Views 18157
  • Members are here 0
More Content

Automating Gerber Generation

wERerABbiT
wERerABbiT over 16 years ago

Hi All,

I would like to write a skill program to automate the gerber generation. May I know:-

1) Are there any functions (skill or axl) that allows you to manually generate a certain gerber layer rather than using the MANUFACTURING -> ARTWORK dialog window?

2) Are there any functions that allows you to import a predefined setup for the Artwork Layers? If not, any suggestion on how to do this in a skill program?

Thanks All

 

 

 

  • Sign in to reply
  • Cancel
Parents
  • vramanan
    vramanan over 16 years ago
    These are the pre-requisites

    1.       The board name should be XXX-YYYY-ZZ_RVVV

    a.       The first XXX has 2 requirements one number for assembly rev and another for Fab

                                                                   i.      Ex 200 for PCB and 30X for assembly in this case

    b.      Also if it is 299 then it is internal and 200 if product

    2.       Pkzipc should be installed

    a.       You can install 7zip and modify the code

    3.       First generate all the gerbers/IPC/ODB/placement/NC-TAPE/NC-DRILL/Testprep before using scripts then run the fabout script

    a.       Look at example at the end

    4.       I use lot of batch commands to manipulate  zip file names and moving copying stuff

    a.       Change it to your requirement

    b. when you run the fabout it will create a t.bat examine its code to understand what it does, it is extensively commented

    setwindow pcb

    odb_out

    ipc356 out

    setwindow form.ipc356

    FORM ipc356 run

    FORM ipc356 close

    setwindow pcb

    plctxt out

    setwindow form.plctxt

    FORM plctxt body_center YES

    FORM plctxt filename ven_cntr.plc

    FORM plctxt execute

    FORM plctxt pin_1 YES

    FORM plctxt filename ven_pin1.plc

    FORM plctxt execute

    FORM plctxt cancel

    setwindow pcb

    setwindow pcb

    trapsize 44073

    reports "Component Pin Report" nographic write cpn.rpt

    ncdrill param

    setwindow form.nc_parameters

    FORM nc_parameters decimal_places 5

    FORM nc_parameters suppress_lead_zeroes YES

    FORM nc_parameters suppress_equal YES

    FORM nc_parameters done

    setwindow pcb

    nctape_full

    setwindow form.nc_drill

    FORM nc_drill tape_name nctape.drl

    FORM nc_drill scale 1.000

    FORM nc_drill separate_tapes YES

    FORM nc_drill auto_tool_select YES

    FORM nc_drill repeat_codes NO

    FORM nc_drill repeat_codes YES

    FORM nc_drill execute

    FORM nc_drill close

    setwindow pcb

     

    system artwork $module

    skill load "fabout.il"

    fabout
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • vramanan
    vramanan over 16 years ago
    These are the pre-requisites

    1.       The board name should be XXX-YYYY-ZZ_RVVV

    a.       The first XXX has 2 requirements one number for assembly rev and another for Fab

                                                                   i.      Ex 200 for PCB and 30X for assembly in this case

    b.      Also if it is 299 then it is internal and 200 if product

    2.       Pkzipc should be installed

    a.       You can install 7zip and modify the code

    3.       First generate all the gerbers/IPC/ODB/placement/NC-TAPE/NC-DRILL/Testprep before using scripts then run the fabout script

    a.       Look at example at the end

    4.       I use lot of batch commands to manipulate  zip file names and moving copying stuff

    a.       Change it to your requirement

    b. when you run the fabout it will create a t.bat examine its code to understand what it does, it is extensively commented

    setwindow pcb

    odb_out

    ipc356 out

    setwindow form.ipc356

    FORM ipc356 run

    FORM ipc356 close

    setwindow pcb

    plctxt out

    setwindow form.plctxt

    FORM plctxt body_center YES

    FORM plctxt filename ven_cntr.plc

    FORM plctxt execute

    FORM plctxt pin_1 YES

    FORM plctxt filename ven_pin1.plc

    FORM plctxt execute

    FORM plctxt cancel

    setwindow pcb

    setwindow pcb

    trapsize 44073

    reports "Component Pin Report" nographic write cpn.rpt

    ncdrill param

    setwindow form.nc_parameters

    FORM nc_parameters decimal_places 5

    FORM nc_parameters suppress_lead_zeroes YES

    FORM nc_parameters suppress_equal YES

    FORM nc_parameters done

    setwindow pcb

    nctape_full

    setwindow form.nc_drill

    FORM nc_drill tape_name nctape.drl

    FORM nc_drill scale 1.000

    FORM nc_drill separate_tapes YES

    FORM nc_drill auto_tool_select YES

    FORM nc_drill repeat_codes NO

    FORM nc_drill repeat_codes YES

    FORM nc_drill execute

    FORM nc_drill close

    setwindow pcb

     

    system artwork $module

    skill load "fabout.il"

    fabout
    • 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