• 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. axlShell("replay SCRIPT.scr") command in SKILL code not...

Stats

  • Replies 9
  • Subscribers 17
  • Views 6949
  • Members are here 0
More Content

axlShell("replay SCRIPT.scr") command in SKILL code not working-- "W- Cannot exit current application E- Can't find window; form.film_control"

EMperson
EMperson over 6 years ago

I created some code in SKILL that attempts to run the script, "SCRIPT.scr". 

SKILL CODE:

axlShell("replay SCRIPT.scr")

___________________________________

SCRIPT.scr:

setwindow pcb
trapsize 47451
placementedit
artwork
setwindow form.film_control
FORM film_control filmtree popup Add 01_Top
fillin "File"
FORM film_control ok
setwindow pcb
placementedit

_____________________________________

When I type "replay SCRIPT1.scr" into the Allegro command window, the script works perfectly. But when I call axlShell("replay SCRIPT.scr") in my code, two errors pops up: 

W- Cannot exit current application
E- Can't find window; form.film_control

______________________________________

Any ideas why these errors are popping up, and what I can do to avoid them?

Thanks

  • Cancel
  • Sign in to reply
  • eDave
    eDave over 6 years ago in reply to EMperson

    Have you registered your "txt" command as interactive or general?

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

    General? I looked up the documentation for each ?cmdType, but I still don't understand the difference

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EMperson
    EMperson over 6 years ago in reply to EMperson

    So I switched to using "General" for the cmdType, and just axlShell() for my code and it works :) Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Duc Nguyen SV
    Duc Nguyen SV over 6 years ago in reply to EMperson

    I wonder why  "General" is works ! ???

    • 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