I have a SKILL script that basically determines which script to replay (for plotting to PDF) based on available films in the design.
FILMS: FAB1, FAB2, ASY1, ASY2
Some designs would not have the xxx2 film
When I replay my script directly, it works perfectly.
But when I run it through SKILL, it gives out error (looks like it cannot focus on the UI windows that pops out while replaying the script)
Can't find window; form.fpfileplotsetup
Below is my SKILL program:
defun( pp_plotPDF ()
let( (dbid_film a2 f2)
a2 = "FALSE"
f2 = "FALSE"
dbid_film = axlGetParam("artwork")
if( filmgp == "FAB2" then f2 = "TRUE")
if( filmgp == "ASY2" then a2 = "TRUE")
) ; end foreach
if( f2 == "TRUE" then
if( a2 == "TRUE" then
; Both ASY2 & FAB2 present. PLOT BOTH
axlShell(sprintf(nil, "replay plotPDF4"))
; Both FAB & ASY1 present. PLOT Fab1, Fab2 & A1 only
axlShell(sprintf(nil, "replay plotPDF2"))
); end if
; Fab1 and both ASY present. PLOT Fab1 only and both ASY
axlShell(sprintf(nil, "replay plotPDF3"))
; ASY1 and FAB1 present. PLOT Fab1 only and ASY1 only
axlShell(sprintf(nil, "replay plotPDF1"))
); end if
); end let
); end defun
Any suggestions on what i'm doing wrong here?
Vijay Anandh Vela
I tested this skill code & didn't see any issues...
I think the error might be due to some issue in the .scr files you are running
Did some checking on the .scr file and manage to find out what was causing the problem.It was previously calling the pp_plotPDF function through a registered command (smt pp_plotPDF)
I changed the .scr file to instead call (skill pp_plotPDF) and everything is working perfectly now.