• 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. Skill code not loading correctly at startup

Stats

  • State Verified Answer
  • Replies 2
  • Subscribers 17
  • Views 3099
  • Members are here 0
More Content

Skill code not loading correctly at startup

leto
leto over 2 years ago

Hello All,

I'm using this code in "allegro.ilinit" to load all my skill files in skill folder when Allegro PCB starts

setSkillPath(buildString(cons("c:/SPB_Data/pcbenv/skill" getSkillPath())))
foreach(dir getSkillPath()
    when(isDir(dir)
        foreach(file rexMatchList("\\.il$" getDirFiles(dir))
             when(
                 printf("Loading Skill file: %s\n" file)
                 load(file)
             )
        )
    )
)

However the code seem to be only partially loaded and some functions within the code not running at all

only by retyping    load("myskillscript.il")   does the code loads fully

Alternately i can specifically load each skill code by name in the allegro.ilinit file by adding this line for each skill script

load("myskillscript.il")

but that makes the code less portable.

Thanks All

  • Cancel
  • Sign in to reply
Parents
  • eDave
    +1 eDave over 2 years ago

    That code looks like it should work if none of your scripts have errors - although I don't see the need for either of the two "when" statements.

    Loading all of your Skill utilities is overkill. I prefer to use the autoload feature:

    myskillStart.autoload = "myskillscript.il"

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Reply
  • eDave
    +1 eDave over 2 years ago

    That code looks like it should work if none of your scripts have errors - although I don't see the need for either of the two "when" statements.

    Loading all of your Skill utilities is overkill. I prefer to use the autoload feature:

    myskillStart.autoload = "myskillscript.il"

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
Children
  • leto
    0 leto over 2 years ago in reply to eDave

    Thank You Dave!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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