• 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 copy some objects from current level to current cellview...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 13486
  • 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 copy some objects from current level to current cellview which is in edit-in-plcae ?

Charley Chen
Charley Chen over 14 years ago

Hi All,

I want to copy some objects that can cross hierarchy from top level (or one of it upper level) into

current cellview which is in edit-in-plcae ? (From Top to bottom)

I can get objs = geGetSelSet() in current cellview (maybe top level or one of its upper level),

I edit-in-place in one cellview , How to copy objs into current cellview ?

My problem is how to get the correct transform  (From Top to bottom)

foreach(x objs

          dbCopyFig(x  hiGetCurrentWindow()->cellView  transform)

)

 

Thank you,

Charley

  • Cancel
Parents
  • Austin CAD Guy
    Austin CAD Guy over 14 years ago

     Here is some code that may help. It has been tested only one level down so you have to create multiple levels and test again.

     procedure( dbCopyDown( objs )
      let((
              fp
           transform)
        fp = geFindPathToCellViewInst( geGetTopLevelCellView() geGetEditCellView() )
        transform = reverseTransform( dbGetInstTransform( fp ) )
        foreach( obj objs
           dbCopyFig( obj geGetEditCellView() transform )
        ) ; ** foreach obj **
        
      ) ; ** let **
    ) ; ** procedure dbCopyDown **

    procedure( reverseTransform( transform )
      let((
              point
           rot)
        point = car( transform )
        rot = cadr( transform )
        case( rot
           ( "R0"
             list( list( -xCoord( point ) -yCoord( point ) ) "R0" 1 )
           )
           ( "R90"
             list( list( -yCoord( point ) xCoord( point ) ) "R270" 1 )
           )
           ( "R180"
             list( list( xCoord( point ) yCoord( point ) ) "R180" 1 )
           )
           ( "R270"
             list( list( yCoord( point ) -xCoord( point ) ) "R90" 1 )
           )
           ( "MX"
             list( list( -xCoord( point ) yCoord( point ) ) "MX" 1 )
           )
           ( "MY"
              list( list( xCoord( point ) -yCoord( point ) ) "MY" 1 )
           )
           ( "MXR90"
             list( list( -yCoord( point ) -xCoord( point ) ) "MXR90" 1 )
           )

           ( "MYR90"
             list( list( yCoord( point ) xCoord( point ) ) "MYR90" 1 )
           )
        ) ; ** case rot **
      ) ; ** let **
    ) ; ** procedure reverseTransform **

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Austin CAD Guy
    Austin CAD Guy over 14 years ago

     Here is some code that may help. It has been tested only one level down so you have to create multiple levels and test again.

     procedure( dbCopyDown( objs )
      let((
              fp
           transform)
        fp = geFindPathToCellViewInst( geGetTopLevelCellView() geGetEditCellView() )
        transform = reverseTransform( dbGetInstTransform( fp ) )
        foreach( obj objs
           dbCopyFig( obj geGetEditCellView() transform )
        ) ; ** foreach obj **
        
      ) ; ** let **
    ) ; ** procedure dbCopyDown **

    procedure( reverseTransform( transform )
      let((
              point
           rot)
        point = car( transform )
        rot = cadr( transform )
        case( rot
           ( "R0"
             list( list( -xCoord( point ) -yCoord( point ) ) "R0" 1 )
           )
           ( "R90"
             list( list( -yCoord( point ) xCoord( point ) ) "R270" 1 )
           )
           ( "R180"
             list( list( xCoord( point ) yCoord( point ) ) "R180" 1 )
           )
           ( "R270"
             list( list( yCoord( point ) -xCoord( point ) ) "R90" 1 )
           )
           ( "MX"
             list( list( -xCoord( point ) yCoord( point ) ) "MX" 1 )
           )
           ( "MY"
              list( list( xCoord( point ) -yCoord( point ) ) "MY" 1 )
           )
           ( "MXR90"
             list( list( -yCoord( point ) -xCoord( point ) ) "MXR90" 1 )
           )

           ( "MYR90"
             list( list( yCoord( point ) xCoord( point ) ) "MYR90" 1 )
           )
        ) ; ** case rot **
      ) ; ** let **
    ) ; ** procedure reverseTransform **

     

    • 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