• 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. Skill for attaching labels to instances

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 14934
  • 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

Skill for attaching labels to instances

Mondeo205
Mondeo205 over 13 years ago

Hi togehter!

 Is there maybe a skill existing, which automatically attaches the labels above an instance to the instance?

 

 Or better, I'm looking for a way, that i don't have to attach every label and its instance by itself, an option which is doing that over the whole layoutblock automatically!

 

 Thanks for the answers!

 

 Br

Franz

  • Cancel
Parents
  • Quek
    Quek over 13 years ago

     Hi Franz

    A new label will automatically attaches itself to an instance when placed on top of the instance. For existing labels, if we assume that there are no overlapping instances and only a single label on each instance, the following simple procedure can be used:

    procedure( CCSattachLabels()
       let( (cv allLabels x1 y1 box inst)
          cv=geGetWindowCellView()
          allLabels=setof(x cv~>shapes x~>objType=="label")
          foreach( label allLabels
             x1=car(label~>xy)
             y1=cadr(label~>xy)
             box=list(x1:y1 x1+0.001:y1+0.001)
             inst=car(dbProduceOverlapInst(cv box))
             leAttachFig(label inst)
             printf("Attached label %s at %L to inst %s\n" label~>theLabel label~>xy inst~>name)
          ) ;foreach
       ) ;let
    ) ;procedure


    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Quek
    Quek over 13 years ago

     Hi Franz

    A new label will automatically attaches itself to an instance when placed on top of the instance. For existing labels, if we assume that there are no overlapping instances and only a single label on each instance, the following simple procedure can be used:

    procedure( CCSattachLabels()
       let( (cv allLabels x1 y1 box inst)
          cv=geGetWindowCellView()
          allLabels=setof(x cv~>shapes x~>objType=="label")
          foreach( label allLabels
             x1=car(label~>xy)
             y1=cadr(label~>xy)
             box=list(x1:y1 x1+0.001:y1+0.001)
             inst=car(dbProduceOverlapInst(cv box))
             leAttachFig(label inst)
             printf("Attached label %s at %L to inst %s\n" label~>theLabel label~>xy inst~>name)
          ) ;foreach
       ) ;let
    ) ;procedure


    Best regards
    Quek

    • 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