• 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. PCB Editor: SKILL script forSelecting Which Script to Replay...

Stats

  • Replies 2
  • Subscribers 18
  • Views 10029
  • Members are here 0
More Content

PCB Editor: SKILL script forSelecting Which Script to Replay based on Available Films

VeejayVela
VeejayVela over 5 years ago

Hi,

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")

                                foreach(filmgp dbid_film->groupMembers

                                                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"))

                                                else

                                                                ; Both FAB & ASY1 present. PLOT Fab1, Fab2 & A1 only

                                                                axlShell(sprintf(nil, "replay plotPDF2"))

                                                ); end if

                                else

                                                if( a2 == "TRUE" then

                                                                ; Fab1 and both ASY present. PLOT Fab1 only and both ASY

                                                                axlShell(sprintf(nil, "replay plotPDF3"))

                                                else

                                                                ; ASY1 and FAB1 present. PLOT Fab1 only and ASY1 only

                                                                axlShell(sprintf(nil, "replay plotPDF1"))

                                                ); end if

                                ); end if

                ); end let

); end defun

Any suggestions on what i'm doing wrong here?

Thanks.

Vijay Anandh Vela

  • Cancel
  • Sign in to reply
Parents
  • DavidJHutchins
    DavidJHutchins over 5 years ago

    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

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • VeejayVela
    VeejayVela over 5 years ago in reply to DavidJHutchins

    Hi David,

    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.

    Thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • VeejayVela
    VeejayVela over 5 years ago in reply to DavidJHutchins

    Hi David,

    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.

    Thank you

    • 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