• 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 Scripting - Skill
  3. Problem with ARTWORK_PREFIX variable when using axlRunBatchDBProgram...

Stats

  • Replies 2
  • Subscribers 17
  • Views 1297
  • Members are here 0
More Content

Problem with ARTWORK_PREFIX variable when using axlRunBatchDBProgram(artwork...

olov
olov over 6 years ago

Hi,

I have a strange bahaviour when I use axlRunBatchDBProgram("artwork"....

To make sure I get the correct output names I try to remove ARTWORK_PREFIX and ARTWORK_SUFFIX variables before running the batch command, see code below. The problem is that if I have a design that have a prefix stored when I open the design, then this prefix is still included in the output name when I run the batch command. HOWEVER - if I check the prefix in the graphical environment (menu Export->Gerber Parameters) the prefix is empty after running the script. Also - if i generate the corresponding output from the graphical environment there is no prefix attached to the name.

If I then run the script again the prefix is still attached to the output name!

Is there some other variable that is used when running the batch command or what is the deal?

code for artwork generation:

axlDBDeleteProp( nil "ARTWORK_PREFIX")
    axlDBDeleteProp( nil "ARTWORK_SUFFIX")

    filmlayers = axlGetParam("artwork")->groupMembers                                                            ;Create list with the output films
    foreach(s_film filmlayers  axlRunBatchDBProgram("artwork" strcat("artwork -f " s_film " " axlCurrentDesign(), ".brd"), ?noUnload t ?logfile  "photoplot.log" , ?warnProgram t) system( strcat( "move .\\Output\\" s_film ".art " s_rel_outdir "\\" s_filename "_" s_film ".art")))

Thanks,

Olov

  • Cancel
  • Sign in to reply
Parents
  • eDave
    eDave over 6 years ago

    You would need to save the design before running axlRunBatchDBProgram for that to work. Why not just run axlFilmCreate?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • eDave
    eDave over 6 years ago

    You would need to save the design before running axlRunBatchDBProgram for that to work. Why not just run axlFilmCreate?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • olov
    olov over 6 years ago in reply to eDave

    Is not axlFilmCreate just to create the films? In this case I want to generate the gerber files.

    Anyway - it now works after saving the design.

    Thanks!

    • 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