• 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 PCB Editor
  3. Modify film_reorder.il

Stats

  • Replies 9
  • Subscribers 163
  • Views 15988
  • Members are here 0
More Content

Modify film_reorder.il

bulldog
bulldog over 12 years ago

I have been looking at the program "film_reorder.il" (available at cadence.com) and have found it useful but would like to make a small modification to it.  After you have selected a layer to be moved (up or down) in the list you have to re-select it if you want to move it more than one position.  Does anyone know of a way to modify this program so the selected layer stays selected until another layer is selected?  I would like to just click the up/down arrow X times until it is moved into the correct position without having to keep re-selecting the layer.

Thanks!

  • Sign in to reply
  • Cancel
Parents
  • Ejlersen
    Ejlersen over 12 years ago

    Hi

    At the bottom of the code for UP (line 182) you can insert code like

    if(sel_index > 0 then
      axlFormListSelect(myform "FILMS_LIST" sel_index-1)
    else
      axlFormListSelect(myform "FILMS_LIST" 0)
    )

    The film list works by indexes or names, the command axlFormListSelect should be able  to take both a list of arguments and index as the argument. Could not get it working by passing "sel_items" which is why it ended up with indexes

    you need to do something similar for the Down code.

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Ejlersen
    Ejlersen over 12 years ago

    Hi

    At the bottom of the code for UP (line 182) you can insert code like

    if(sel_index > 0 then
      axlFormListSelect(myform "FILMS_LIST" sel_index-1)
    else
      axlFormListSelect(myform "FILMS_LIST" 0)
    )

    The film list works by indexes or names, the command axlFormListSelect should be able  to take both a list of arguments and index as the argument. Could not get it working by passing "sel_items" which is why it ended up with indexes

    you need to do something similar for the Down code.

    Best regards

    Ole

    • 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