• 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. Custom IC SKILL
  3. select all labels inside a (non-rectangular) shape through...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 14204
  • Members are here 0
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

select all labels inside a (non-rectangular) shape through hierarchy

caver456
caver456 over 6 years ago

Is there a way to select all labels inside a non-rectangular shape?  It looks like all of the 'overlaps' functions only use a rectangular area (bbox) as the selection window.  Also, is there a way to do this through the hiearchy, i.e. specifying a start and stop level?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    You could use dbGetOverlaps or dbShapeQuery to find everything (down the hierarchy) in the bounding box of the polygonal shape, and then (transforming the coordinates to the top level), determine whether the bBox of each label (or the xy (origin) if you don't want to use the bBox) is within the polygonal area. You could make that determination using dbPointArrayAnd to do a logical and of the polygon and the rectangle (if a bBox) and see if you get a result - then they overlap. Or you could use something like abPointInPolygon to check whether a point is within a polygon area.

    Something like that...

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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