• 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. Align tool

Stats

  • Replies 14
  • Subscribers 163
  • Views 15597
  • Members are here 0
More Content

Align tool

Silver John
Silver John over 14 years ago

Present to you the tools to align objects on PCB.
Welcom for comments, bugs, suggestions.
Questions?
Who wants to can join to development.

Code in the repository: github.com/.../align
Installation described in the README.md.

Issues:
Icons not works in Allegro 15.x
axlUIMenuRegister() not work in Allegro 15.x

 And how it looks:
Align tool UI

  • Sign in to reply
  • Cancel
  • ConnectPCB
    ConnectPCB over 14 years ago

     I tried this, and it works great !    Only one thing, but not important.

    The  issue was on a couple of my parts I did not have a pin1, (I had pin A and K) it exited with error (Symbol "Cr54" has no pin 1.
    E- *Error* max: can't handle max(nil -1000000.0). So maybe have a pin name selection box ?   But of course when you are selecting a group of components they all won't be pin A / K ... it will be a mix of different pin numbers.    So this may not be possible.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Silver John
    Silver John over 14 years ago

     Fixed.

    Added field for pin number/name (text field).

    If pin not found then you will got warning message, and object will be aligned/bound by body center.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Helen
    Helen over 14 years ago

    Currently we are using "out of the box" Allegro Align command available in Placement mode, works just fine.

    Long time ago we used my simple code with simple form but I did figured out UNDO.

    Basically you have to capture all "DOs" xy in a list to be able to "UNDO".

    See code attached

    align_sym.il
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Silver John
    Silver John over 14 years ago

     Hi, Helen. Thanks for your concern.
    But in your script "undo" for only the last action, and only in the script. I implemented the "Oops", by using standart axlDBTransactionXXXX  functions.
    I was referring to a global, external mechanism UNDO. We recently discussed this problem (http://www.cadence.com/community/forums/T/19737.aspx), and the solution is not visible.

      PS Yes, I also used a standard command Align, some scripts other authors...  Then wrote my own script.

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

     Hi

    axlUIMenuRegister() was new in 16.3 and will hence not work before that.

    Don't know if it was updated into 16.2 / 16.01 /16.0 ISR stream, but sure it was not added to 15.x

    Regards

    Ole

    • 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