• 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. PCB Design
  3. Documentation for allegro scripts

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 165
  • Views 18127
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Documentation for allegro scripts

arcwilson
arcwilson over 16 years ago

Anybody know of a good place to get more documentation on allegro scripting? (i.e. filename.scr not skill)  I'm wondering if there is a users guide or something similar.  The only information I've found is from the help menu (I searched "script") and it does not give a good overview of writing scripts.  For example, I know that I can execute commands from a script if I know the command's name to start with, but I don't know where to look when I need to figure out how to script things whose names I don't know.  For example, I have no idea what the command equivalents are to many of the preferences.  Is there a way to find those out so I can script changes to them?

What I've been doing so far is just using the script recorder in pcb editor, making the changes I want, and then reviewing the .scr file to see what the editor did.  This is kind of painful, as the script recorder only records changes, and therefore to find out how to change all the items in a menu, I have to go through and change every item by hand.  I wish I could just hover over a button in pcb editor and have it show the name of the corresponding scripting command.  Anybody know of something that might be like this?

Thanks,

Chris
  • Cancel
  • arcwilson
    arcwilson over 16 years ago

     For example, if I wanted to find out how to script turning grids on and off, where would I look?  By scripting it within the editor, and looking at the results, it appears that I need to run:

     prmed

     setwindow form.prmedit

     FORM prmedit view_grids_button

    It seems like there might be a command for turning the grids off via a single command, but I have no clue where to look to find out. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lcanx2
    lcanx2 over 16 years ago
    You might try Tools->Utilities->Keyboard Commands from the pulldown menu.

    This was posted recently by another member and is an excellent source for not only a list of the keyboard commands themselves but also invokes them.  You will find the command for turning grids on and off there.  You can also specify if you would like Help on the command rather than having the command executed.

    As for capturing commands that change options within applications, you can try using the commands that are output to your  journal file (allegro.jrl). This will avoid having to turn scripting on.

    Bill
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • rpieper
    rpieper over 16 years ago

    My guess is that 95% of people record what they want to automate and then open .scr to see the commands.

    • Cancel
    • Vote Up 0 Vote Down
    • 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