• 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 for align via to pin when overlap

Stats

  • State Verified Answer
  • Replies 6
  • Answers 1
  • Subscribers 18
  • Views 1912
  • Members are here 0
More Content

skill for align via to pin when overlap

Xiaome8
Xiaome8 3 months ago

Hi Bro,

Is there a skill to move the via to the pin center automatic when the via and pin are overlap with each others? it is not convenient to move the via to pin center one by one which use the move and snap command.

it would be great if the skill support the bbox select for muti vias align with the pin.

  • Cancel
  • Sign in to reply
Parents
  • Hoangkhoipcb
    +1 Hoangkhoipcb 3 months ago

    Hi Friend,
    You can refer this code.


    axlCmdRegister("move_via_to_pin" `move_via_to_pin )
    (defun move_via_to_pin ()
    axlClearSelSet()
    axlSetFindFilter(?enabled '(noall VIAS NAMEFORM) ?onButtons '(noall ALL))
    while(axlSelect(?prompt "Please select an element...")
    Input_List = axlGetSelSet()
    axlClearSelSet()
    foreach(via setof(e Input_List axlDBIsFixed(e->net) == nil && axlDBIsFixed(e) == nil)
    axlSetFindFilter(?enabled '(noall PINS NAMEFORM) ?onButtons '(noall ALL))
    axlSingleSelectBox(via->bBox)
    pin = car(axlGetSelSet())
    if(pin != nil then
    axlTransformObject(via ?move axlMXYSub(pin->xy via->xy))
    )
    )
    axlSetFindFilter(?enabled '(noall VIAS NAMEFORM) ?onButtons '(noall ALL))
    )
    printf("Last Update: 02/07/2025 -Version 1.0\n" )
    )

    Regards,
    HoangKhoi.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Xiaome8
    0 Xiaome8 3 months ago in reply to Hoangkhoipcb

    Hi HoangKhoi.

    WOW, The code works well ,thanks again!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • Xiaome8
    0 Xiaome8 3 months ago in reply to Hoangkhoipcb

    Hi HoangKhoi.

    WOW, The code works well ,thanks again!

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