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.
I can be contacted directly at:
axlDeleteObject(mapcar(lambda((film), axlGetParam(strcat("artwork:", film))), setof(film, axlGetParam("artwork") ->groupMembers, film != "TOP")))
In reply to eDave:
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
In reply to Pieman:
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:
You have been a great help.
By the way, do you know a Bobby Mosley?
I worked with him at Tektronix.
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.
In reply to Ejlersen:
Very nice code! Excellent writing style and formatting. I will use it to improve my SKILL work.