• 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. Help with exporting .ART with SKILL

Stats

  • Replies 3
  • Subscribers 17
  • Views 10285
  • Members are here 0
More Content

Help with exporting .ART with SKILL

yuriyk
yuriyk over 7 years ago

Hello all,

I am trying to accomplish the following:

- Lets say i have all the artwork films created in the Artwork Control Form, and they are named in the following format: XXXXX-X_YXX (X = 0-9 digit, Y=letter)

I have other films defined there and i need to sort out only what i need to export. I am trying to write a SKILL script to automate exporting only the films that match my format above. 

I've recorded scripts exporting those films, but i am limited to only 1 design with this approach. how can i structure the SKILL script to automate it for any combination of letters and number in film name?

I started using hardcoded script:

axlRunBatchDBProgram("artwork" "artwork -f filmname ", ?noUnload t ?logfile "photoplot.log", ?warnProgram t)

Thanks!

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

    films = '("1234-5-A67", "X234-5-A67")
    filmNames = rexMatchList("^[0-9][0-9][0-9][0-9]-[0-9]-[A-Z][0-9][0-9]$", films)

    Returns ("1234-5-A67")

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • yuriyk
    yuriyk over 7 years ago in reply to eDave

    Thanks so much, this is what i wasnt able to grasp about rexEx. I was trying to use rexCompile, rexExecute, rexMatchp. Totally overlooked rexMatchList..

    Now, how can i run axlRunBatchDBProgram through my list of selected films? 

    my code that doesnt run correctly:

    films = axlGetParam("artwork")->groupMembers

    filmLayers = rexMatchList("^[0-9][0-9][0-9][0-9][0-9]-[0-9]_[A-Z][0-9][0-9]$", films)

    foreach(films1 filmLayers axlRunBatchDBProgram("artwork" strcat("artwork -f films1 " axlCurrentDesign(), ".brd"), ?noUnload t ?logfile "photoplot.log", ?warnProgram t))

    so the problem is i dont know how to pass the variable to axlRunBatchDBProgram(). It thinks i want the film named films1 to run throguh, but i want it to be a variable in the foreach function.

    Thanks for the help!

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

    Thanks so much, this is what i wasnt able to grasp about rexEx. I was trying to use rexCompile, rexExecute, rexMatchp. Totally overlooked rexMatchList..

    Now, how can i run axlRunBatchDBProgram through my list of selected films? 

    my code that doesnt run correctly:

    films = axlGetParam("artwork")->groupMembers

    filmLayers = rexMatchList("^[0-9][0-9][0-9][0-9][0-9]-[0-9]_[A-Z][0-9][0-9]$", films)

    foreach(films1 filmLayers axlRunBatchDBProgram("artwork" strcat("artwork -f films1 " axlCurrentDesign(), ".brd"), ?noUnload t ?logfile "photoplot.log", ?warnProgram t))

    so the problem is i dont know how to pass the variable to axlRunBatchDBProgram(). It thinks i want the film named films1 to run throguh, but i want it to be a variable in the foreach function.

    Thanks for the help!

    • 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