• 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. funckey to a skill program

Stats

  • State Verified Answer
  • Replies 4
  • Subscribers 18
  • Views 6007
  • Members are here 0
More Content

funckey to a skill program

SOT23
SOT23 over 3 years ago

Hello ! 

I have written some skill programs that I load at Allegro's startup using the allegro.ilinit file.
I have some funckeys that I have programmed in my env file. 

I would like to program some of my skill functions as funckeys, but I couldn't manage to do that. Does the env file load before the allegro.ilinit ? Does the "axlCmdRegister()" function names I have entered can be used in the env file ? 

Thank you !

  • Cancel
  • Sign in to reply
Parents
  • mahimag
    +1 mahimag over 3 years ago

    yes, you can use axlcmdregister commands in your funckey. To do so you need to add <load "filename.il"> line in allegro.ilinit in your pcbenv folder. 

    add <funckey m command_name> in your env file.

    Now invoke allegro and you could use m to run the axlcmdregister command because your skill file is loaded at hte time of startup.

    I tried this at my end and it is working fine. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • DavidJHutchins
    0 DavidJHutchins over 3 years ago in reply to mahimag

    I have found that you don't really need to register the skill code as a command to run it, for example I have the following alias defined in my env file:

    alias vnp ((axlVisibleLayer "package geometry" nil)(axlVisibleLayer "PACKAGE KEEPIN" nil)(axlVisibleLayer "PACKAGE KEEPOUT" nil)(axlVisibleUpdate t))

    after typing in vnp<enter> at the Command> prompt  the journal file shows the following:

    \i (00:07:38) skill '(axlVisibleLayer "package geometry" nil)(axlVisibleLayer "PACKAGE KEEPIN" nil)(axlVisibleLayer "PACKAGE KEEPOUT" nil)(axlVisibleUpdate t)'

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • DavidJHutchins
    0 DavidJHutchins over 3 years ago in reply to mahimag

    I have found that you don't really need to register the skill code as a command to run it, for example I have the following alias defined in my env file:

    alias vnp ((axlVisibleLayer "package geometry" nil)(axlVisibleLayer "PACKAGE KEEPIN" nil)(axlVisibleLayer "PACKAGE KEEPOUT" nil)(axlVisibleUpdate t))

    after typing in vnp<enter> at the Command> prompt  the journal file shows the following:

    \i (00:07:38) skill '(axlVisibleLayer "package geometry" nil)(axlVisibleLayer "PACKAGE KEEPIN" nil)(axlVisibleLayer "PACKAGE KEEPOUT" nil)(axlVisibleUpdate t)'

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • SOT23
    0 SOT23 over 3 years ago in reply to DavidJHutchins

    This is very interesting !

    I couldn't manage to make the skill work :p it says unbound variable PACKAGE), but the .jrl file does show that the parenthesis were interpreted as skill code. Maybe I will try to convert my smaller programs to aliases.

    • 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