• 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. How to converts top level shape's bBox transform into a...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 3035
  • 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

How to converts top level shape's bBox transform into a lower level(hierarchy depth) cell ?

Charley Chen
Charley Chen over 15 years ago
Dear All,

I have a shape which is over a instance(maybe depth is 2) ,  the shape's bBox  is apply to level 0 coordinate  ,i.e  (5.075:3.16  5.335:3.52),
I want the bBox  converts into the instance's coordinate . It's similar to Edit-In-Place , But the instance is Read-Only and I don't want to using
Edit-In-Place .
;; Convert bBox from Top to Bottom

e.g.  I draw a rectangle shape(On level 0)  over the instance (depth is  2), I don't need to open the instance in another cellview  ,
 Just liker using Edit-In-Place, the shape's bBox is transformed inside the instance.
When I open the instance , using the sshape's bBox to draw a rectangle shape . It's the sam location when I return to top.

How to do it ?

Thank you,
Charley
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    If it was a single level, you'd use dbTransformBBox() with the inst~>transform (actually that's going to be the wrong way around - that would transform from the instance coordinate space to the top level, not the other way. There is a function in IC5141 called icDbInvertTransform, but it's not documented in IC61X (it's part of Preview so whilst the function still exists in the IC614 build, it may be removed at some point) - so it would be safer to write your own (not hard). If you want to handle more than one level of hierarchy, you'd need to concatenate the transformations down through the hierarchy to the right instance by using dbConcatTransform.

    If the path to the instance is in the same form as returned by dbGet*Overlaps (e.g. dbGetTrueOverlaps) you could use geGetInstTransform to get the complete transformation - but again, this allows you to transform something from the level 2 coordinate space to level 0.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    If it was a single level, you'd use dbTransformBBox() with the inst~>transform (actually that's going to be the wrong way around - that would transform from the instance coordinate space to the top level, not the other way. There is a function in IC5141 called icDbInvertTransform, but it's not documented in IC61X (it's part of Preview so whilst the function still exists in the IC614 build, it may be removed at some point) - so it would be safer to write your own (not hard). If you want to handle more than one level of hierarchy, you'd need to concatenate the transformations down through the hierarchy to the right instance by using dbConcatTransform.

    If the path to the instance is in the same form as returned by dbGet*Overlaps (e.g. dbGetTrueOverlaps) you could use geGetInstTransform to get the complete transformation - but again, this allows you to transform something from the level 2 coordinate space to level 0.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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