• 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 code to print all the labels in a layout view to a...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 18241
  • 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 code to print all the labels in a layout view to a file

vvangap
vvangap over 11 years ago

Hello,

        I am new to skill, I would like to search for all the labels in a layout and print them in a file. I dont want to traverse through the hierarchy. Is there a skill function to do that or if not can you please provide a small code snippet to do the same.

 Here is a small code snippet, I am trying to run 

procedure(printLabels()

   cv= getGetWindowCellView()

    myPort = outfile("/home/vvangap/tmp/printLabels.txt") 

   ;;let((cv shape)

      /****Operating on the desired property****/

      foreach(shape cv~>shapes

         if(shape~>objType == "label" then

            fprintf(myPort "\n Label:  %L" shape)

         )/****end of if****/

      )/****end of foreach****/

  ;;)/****end of let****/

)/****end of procedure****/ 

 

The above code prints the database numbers in the CIW window, but I need the labels itself to be printed in the printLabels.txt file. 

Thanks

Vikram 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Vikram,

    Just use shape~>theLabel in your fprintf - this is the text of the label itself.

    Regards,

    Andrew.

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

    Thanks Andrew it works,

    Vikram 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Mallikarjun032
    Mallikarjun032 over 6 years ago in reply to Andrew Beckett

    Hi Andrew,

    In the above script, is there a way to find the coordinate location of a label?

    Thanks,

    Mallikarjun

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Mallikarjun032

    Hi Mallikarjun,

    It's not my code, but you could use shape~>xy to find the coordinate (origin) of the label.

    Regards,

    Andrew.

    • 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