• 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. modify corner of rod object

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 147
  • Views 16306
  • 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

modify corner of rod object

Dexter073
Dexter073 over 14 years ago

How can I use the leModifyCorner to a rectangle (or polygon) created by a ROD object? If only a databse object can be modifed by leModifyCorner; is it possible to first create a polygon object, modify the corner, and somehow convert it to a ROD object? I need ROD objects for aligning.

I tried this sample code:

pcDefinePCell(
list( ddGetObj( "my_library") "my_cell_view" "layout")

(
( w 1.44)
( l 2.14)
(polyoffx 0.94)
(polyoffy 0.2)
(poly_length 1)
(poly_width 1)

(polyLayer "POLY")
(activeLayer "ACTIVE")
);end of default values

 ;Define contents of the pcell

let((poly active)

poly= rodCreatePolygon(
?layer list(polyLayer "drawing")

?pts list( 0:0 poly_length:0 poly_length:poly_width 0:poly_width )
)
leModifyCorner( poly list(t t t t) t 0.1 4)  ; compains poly is not a  database object

active = rodCreateRect(
?layer list(activeLayer "drawing")
?pts list( 0:0 l:0 l:w 0:w )
)

leModifyCorner( active list(t t t t) t 0.1 4)  ; compains active is not a  database object

rodAlign(
?alignObj active
?alignHandle "lowerLeft"
?refObj poly
?refHandle "lowerLeft"
?xSep polyoffx
?ySep polyoffy
)

)

)

Many thanks in advance. Kindly provide a small code (or modify the existing) to make it work; I am still a newbie..

  • Cancel
Parents
  • Dexter073
    Dexter073 over 14 years ago

    Thank you so much Andrew; it works with the suggestion you have given. However, as you suggested, I will try to write a function to chamfer corners to avoid problems. Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Dexter073
    Dexter073 over 14 years ago

    Thank you so much Andrew; it works with the suggestion you have given. However, as you suggested, I will try to write a function to chamfer corners to avoid problems. Thanks!

    • 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