• 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. attach label to a pin as a 'children'

Stats

  • Locked Locked
  • Replies 14
  • Subscribers 143
  • Views 15553
  • 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

attach label to a pin as a 'children'

ebecheto
ebecheto over 12 years ago

Dear all,

 I have only pins in the layout and I want to attach a label to it. Unfortunatelly the 'children' cannot be set.

Anyone knows how to set it correctly?

Here is the example of my code. 

Regards,

 

cv=geGetWindowCellView()
p=caar(cv~>terminals~>pins)
foreach(p cv~>terminals~>pins
p1=car(p)
p1~>net~>name
f1=car(p1~>figs)
unless(f1~>children f1~>children=
dbCreateLabel(cv list(f1~>layerName  "label" ) centerBox(f1~>bBox)
p1~>net~>name "centerLeft" "R0" "roman" 0.5)))
 
 
*Error* setSGq: (DB-370034): dbSetq: Cannot set attribute - children
 

 

  • Cancel
Parents
  • ohmycat
    ohmycat over 8 years ago

    Sorry for necroposting, but i found this page very useful, so i adding my code to automaticly generate labels on all selected pins

    foreach(X geGetSelectedSet()
    net = X~>net
    disp=dbCreateTextDisplay( net X list("TEXT" "drawing" ) t centerBox(X~>bBox) "centerCenter" "R0" "roman" 2 nil nil t nil t "name" nil)
    )
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Carona
    Carona over 7 years ago in reply to ohmycat

    Very simple and useful code, I was wondering if it was possible to use dbCreateTextDisplay to create a label with not just the net name, but say with the area value of a rectangle also?

    so passing a string value instead?  

    for instance

    area=5

    string = sprintf(area "%f" area)

    disp=dbCreateTextDisplay( net X list("text" "drawing" ) t centerBox(X~>bBox) "lowerCenter" "R0" "roman" abs(dy/3) nil nil t nil t string nil)  

    This gives me an error, but perhaps I am missing something.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to Carona

    If you want to create a label, use dbCreateLabel. dbCreateTextDisplay is to display the value of a database attribute or property on an associated object - it's not to display arbitrary text (the benefit of a text display is that if that associated attribute value or property value changes, the text displayed changes without needing to do any updates).

    By the way, the dynamic display feature in Virtuoso Layout Suite also allows you to dynamically show the area of an object as you hover over it...

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Carona
    Carona over 7 years ago in reply to Andrew Beckett

    Yes, I am aware of the dynamic display, but it is more useful to have the area attached to the object and visible at all times when floor-planning.

    I will try and play around with dbCreateLabel for passing a string in for the area.  Thank you for pointing me in the right direction.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Carona
    Carona over 7 years ago in reply to Andrew Beckett

    Yes, I am aware of the dynamic display, but it is more useful to have the area attached to the object and visible at all times when floor-planning.

    I will try and play around with dbCreateLabel for passing a string in for the area.  Thank you for pointing me in the right direction.

    • 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