• 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. [Solved] Tried using the ABE to obtain layer within a bBox...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 11612
  • 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

[Solved] Tried using the ABE to obtain layer within a bBox, got all abutting layer shapes instead

jriad
jriad over 4 years ago

Hello fellow community members,

So I have two instances with their "metal1" shapes abutting. I want to extract the "metal1" shapes from one cell but not the other. What I did was:

(abeInit cv)
(abeLayerFromCellView "metal1" ?bBox (getq instance1 bBox))
What I expected is that this will extract the "metal1" shapes from instance1 but not from instance2. What ends up happening is, because the shapes are abutting, the "metal1" shapes for both instances get extracted, even though instance2 lies completely outside the bBox of instance1.
Is this the expected behavior? Is there any way I can get around it?
Thanks,
Joe
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Joe,

    Yes, it's expected because the abutting shape is seen as a single shape across the hierarchy.

    It's easy enough to fix with a bit of extra code:

    (abeInit cv)
    (setq result (abeLayerFromCellView "metal1" ?bBox (getq instance1 bBox)))
    (setq bBox (abeNewLayer))
    (abeLayerOrPtArray (getq instance1 bBox) bBox)
    (setq result1 (abeNewLayer))
    (abeLayerInside result bBox result1)

    Then result1 contains what you want (I think...)

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Joe,

    Yes, it's expected because the abutting shape is seen as a single shape across the hierarchy.

    It's easy enough to fix with a bit of extra code:

    (abeInit cv)
    (setq result (abeLayerFromCellView "metal1" ?bBox (getq instance1 bBox)))
    (setq bBox (abeNewLayer))
    (abeLayerOrPtArray (getq instance1 bBox) bBox)
    (setq result1 (abeNewLayer))
    (abeLayerInside result bBox result1)

    Then result1 contains what you want (I think...)

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • jriad
    jriad over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thanks a lot. This works as expected for the case when the two instances have non-overlapping bBoxes. It will fail (as expected) if the bBoxes overlap.

    For that case I found that a good workaround is to extract the shapes from the instance's master then transform their points via dbTransformPoint.

    • 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