• 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 append a label on a rectangle created by dbCreateRect...

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 144
  • Views 15289
  • 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 append a label on a rectangle created by dbCreateRect()

DesmondLiu
DesmondLiu over 11 years ago

Hi experts,

     Using dbCreateLabel() could only create the label in cellview but not appended on a object (e.g. rectangle).

 Is there any way that I could append a label on a rectangle (i.e. as a children of a rectangle) created by dbCreateRect() (but not rodCreateRect()) ?

  

  • Cancel
  • skillUser
    skillUser over 11 years ago

    Hi Desmond,

    Add a call to leAttachFig() with the label and rectangle shape database ID's and this will make the label a child of the rectangle. I'm assuming that you are doing this in a layout. Alternatively you should be able to directly update or modify the parent attribute of the parent object's database ID, adding the child ID in a list (since the parent-child relationship can be one-to-many, it is represented as a list).

    Hopefully this answers your question?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • theopaone
    theopaone over 11 years ago

     The parent-child relationship can used in any of the database viewTypes.  You can change a figure's parent but not its children.

    figId~>parent = parentFigId

    Ted

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DesmondLiu
    DesmondLiu over 11 years ago

    Hi Lawrence,

        Thank you, this exactly answered my question. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DesmondLiu
    DesmondLiu over 11 years ago

    Ted,

        Thank you. I think the key I stuck here is that I don't know I can't change/assign a figure's children so I kept finding a function

    to attach labels on rects. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • theopaone
    theopaone over 11 years ago

     Hi Desmond

    The descriptors for which attributes you can change directly (parent) and which are changed through another attribute (children) are found in the Virtuoso Design Environment SKILL Reference under Database Access.

    rectId = dbCreateRect( ... )

    labelId = dbCreateLabel( ... )

    labelId~>parent = rectId

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DesmondLiu
    DesmondLiu over 11 years ago

    Hi Ted,

         This is a great idea assigning parent-children relation.

    Thank you for your suggestion.

     

    Wish you a good day. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • theopaone
    theopaone over 11 years ago

    Hi Desmond,

    Your icon is quite appropriate for this discussion. {8^)

    Ted

    • 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