• 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. Finding of polygons SKILL.

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 142
  • Views 10121
  • 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

Finding of polygons SKILL.

Serjik
Serjik over 8 years ago

Hello.

I've got a layout with containce polygons of certan layer, i need to find the coordinats of that polygons (center) and put them in to file.

Here is the cod, but the outpu file is empty.

myPort = outfile( "~/Desktop/pllist" )
foreach(polygon geGetEditCellView()~>polygons
if(polygon~>fig~>lpp=="metal1" then
fprintf(myPort "\t%L\n" centerBox(polygon~>shapes~>bBox(points)))
)
)
close( myPort)
sh( "gedit ~/Desktop/pllist &" )

Can you help me ?

Regards,

Sergey.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    This won't work for numerous reasons:

    1. There is no attribute called polygons on a cellView so geGetEditCellView()~>polygons will return nil
    2. Even if you'd managed to find an object for a polygon, it presumably would be a polygon object, so polygon~>fig would return nil
    3. The lpp attribute on a shape object is a list (e.g. ("metal1" "drawing")) so your comparison for metal1 would never be true
    4. A single polygon wouldn't have a shapes attribute, so that's not going to work either.
    5. The bBox attribute isn't a function so doesn't take an argument of points.

    If you really only want the polygons, you'd use:

    foreach(shape geGetEditCellView()~>shapes
      when(shape~>objType=="polygon"
        when(shape~>layerName=="metal1"
          fprintf(myPort "\t%L\n" centerBox(shape~>bBox))
        )
      )
    )

    Something like that.

    Regards,

    Andrew.

          

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    This won't work for numerous reasons:

    1. There is no attribute called polygons on a cellView so geGetEditCellView()~>polygons will return nil
    2. Even if you'd managed to find an object for a polygon, it presumably would be a polygon object, so polygon~>fig would return nil
    3. The lpp attribute on a shape object is a list (e.g. ("metal1" "drawing")) so your comparison for metal1 would never be true
    4. A single polygon wouldn't have a shapes attribute, so that's not going to work either.
    5. The bBox attribute isn't a function so doesn't take an argument of points.

    If you really only want the polygons, you'd use:

    foreach(shape geGetEditCellView()~>shapes
      when(shape~>objType=="polygon"
        when(shape~>layerName=="metal1"
          fprintf(myPort "\t%L\n" centerBox(shape~>bBox))
        )
      )
    )

    Something like that.

    Regards,

    Andrew.

          

    • 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