• 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. Oblong XY report

Stats

  • Replies 5
  • Subscribers 161
  • Views 13098
  • Members are here 0
More Content

Oblong XY report

karthikeyan123
karthikeyan123 over 4 years ago

hi,

I would like to get oblongs CENTER POINT xy location report I don't know how to get can any one please guide me how to get center of oblongs XY.

  • Sign in to reply
  • Cancel
  • luanvn81
    luanvn81 over 4 years ago

    Hi!

    You can use  axlDBAltOrigin(g_mode o_dbid )⇒ xy/nil

    g_mode

    The ‘center option returns the body center of an object.
    The‘origin option returns the origin of an object (normally if dbid
        has an xy attribute, this is the same coordinate).
    The‘pin1 option returns pin1 as center.

    Luan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • karthikeyan123
    karthikeyan123 over 4 years ago in reply to luanvn81

    Kindly Thanks for the help luan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • karthikeyan123
    karthikeyan123 over 4 years ago in reply to luanvn81

    Hi luan,

    One more doubt please what is command to get layer name and radius value.

    while using by this it shows me nil.

    procedure(check()
    foreach(item axlDBGetShapes("ROUTE KEEPOUT")
      chk = axlDBAltOrigin('center item)
      println(item ->layer)
      println(item ->radius)
     )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • luanvn81
    luanvn81 over 4 years ago in reply to karthikeyan123

    Hi!

    Try this code:

    procedure(check()
    foreach(item axlDBGetShapes("ROUTE KEEPOUT")
    chk = axlDBAltOrigin('center item)
    println(item->layer)
    foreach(el setof(element item->segments element->xy != nil)
    println(el->radius)
    )
    )
    )

    Luan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • karthikeyan123
    karthikeyan123 over 4 years ago in reply to luanvn81

    Thanks Luan

    • 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