Home > Community > Forums > PCB SKILL > skill code to delete existing films

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 skill code to delete existing films 

Last post Tue, Feb 9 2010 11:59 PM by redwire. 7 replies.
Started by Pieman 08 Feb 2010 08:06 PM. Topic has 7 replies and 3303 views
Page 1 of 1 (8 items)
Sort Posts:
  • Mon, Feb 8 2010 8:06 PM

    • Pieman
    • Top 500 Contributor
    • Joined on Thu, Feb 19 2009
    • Salt Lake City, UT
    • Posts 27
    • Points 405
    skill code to delete existing films Reply

    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

    • Post Points: 20
  • Mon, Feb 8 2010 10:48 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,550
    Re: skill code to delete existing films Reply

    Hi Marvin,

    Try: 

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

    Dave

    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Feb 8 2010 11:45 PM

    • Pieman
    • Top 500 Contributor
    • Joined on Thu, Feb 19 2009
    • Salt Lake City, UT
    • Posts 27
    • Points 405
    Re: skill code to delete existing films Reply

     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

    • Post Points: 20
  • Tue, Feb 9 2010 12:01 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,550
    Re: skill code to delete existing films Reply

    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

    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Feb 9 2010 12:50 AM

    • Pieman
    • Top 500 Contributor
    • Joined on Thu, Feb 19 2009
    • Salt Lake City, UT
    • Posts 27
    • Points 405
    Re: skill code to delete existing films Reply

     Dave,

    You have been a great help.

    By the way, do you know a Bobby Mosley?

    I worked with him at Tektronix.

    Marvin.

    • Post Points: 20
  • Tue, Feb 9 2010 12:59 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 717
    • Points 15,550
    Re: skill code to delete existing films Reply
    Hi Marvin,

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

    Dave
    Dave Elder, Tait Communications
    • Post Points: 20
  • Tue, Feb 9 2010 5:59 PM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 556
    • Points 9,795
    Re: skill code to delete existing films Reply

    Hi

    I know a number of people have been asking for a standard way to setup a number of artwork films. I've created the attached skill program that can be edited freely to suit personal needs. It's only been tested using millimeters- but be aware of the undefined line width specification in the program.

    Basically it setup a film for each layer and all documentation layers. Etch layers are numbered from 1_ to xx_ where xx is the number of layers.

    Best regards

    Ole

    Best regards Ole
    • Post Points: 20
  • Tue, Feb 9 2010 11:59 PM

    • redwire
    • Top 10 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 875
    • Points 13,480
    Re: skill code to delete existing films Reply

    Very nice code!  Excellent writing style and formatting.  I will use it to improve my SKILL work.

    Thanks,
    Bill

    • Post Points: 5
Page 1 of 1 (8 items)
Sort Posts:
Started by Pieman at 08 Feb 2010 08:06 PM. Topic has 7 replies.