• 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. skill code to delete existing films

Stats

  • Replies 7
  • Subscribers 161
  • Views 15222
  • Members are here 0
More Content

skill code to delete existing films

Pieman
Pieman over 15 years ago

Does anyone have a skill code that will delete existing films?

 I have code to create my films from a GUI, but only on a new board file (only top and bottom to start with).

 I need to be able to delete existing films then add my new films, otherwise I get my new films and the old ones still exist.

 Thanks for any help.

 Marvin

I can be contacted directly at:

mlaw@cardaccess-inc.com

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 15 years ago

    Hi Marvin,

    Try: 

    axlDeleteObject(mapcar(lambda((film), axlGetParam(strcat("artwork:", film))), setof(film, axlGetParam("artwork") ->groupMembers, film != "TOP")))

    Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Pieman
    Pieman over 15 years ago

     Dave,

    Thank you for such a quick response.  I now will admit my stupidity by stating that I partcially understand this bit of code, but not fully.

     I have been searching for the documentation in Allegro to understand the AXL commands but as of yet have not located it.

    Can you direct me as to the possible location in the Allegro directory structure as to where these might be, or give a breif description as to how this code works?

    Also, if I were to implement this in a test skill file, would I call this by way of something like:

    axlCmdRegister ( "flmdel" 'film_delete )

    then copy your code here

     Thanks again.

    Marvin

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

    Hi Marvin,

    The code needs to be wrapped in a funcion for it to be called that way:

    defun( filmdel () axlDeleteObject(mapcar(lambda((film), axlGetParam(strcat("artwork:", film))), setof(film, axlGetParam("artwork") ->groupMembers, film != "TOP"))))

    Place this and your axlCmdRegister line in your Allegro.ilinit file.

    The documentation is in:

    C:\Cadence\SPB_16.x\doc\algroskill\algroskill.pdf and C:\Cadence\SPB_16.x\doc\sklangref\sklangref.pdf

    I refernce the functions in: 

    C:\Cadence\SPB_16.x\share\pcb\examples\skill\DOC\FUNCS

     Dave

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Pieman
    Pieman over 15 years ago

     Dave,

    You have been a great help.

    By the way, do you know a Bobby Mosley?

    I worked with him at Tektronix.

    Marvin.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 15 years ago
    Hi Marvin,

    Yes. Bobby worked here for a few months. He's one of the good guys!

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