• 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. Draw many Rect/Polygons of Many layers Interactively and...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 150
  • Views 4654
  • 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

Draw many Rect/Polygons of Many layers Interactively and selectively using Skill

Satya
Satya over 15 years ago

Hi All !!

I am again here with some new problem and expecting suggestion and  help from all of you.

 Now I would like to draw polygons/rectangales of one or more layer interactivley at the same time, Also If the layers alredy present want to delete the layer interactively using skill. Please help to do this...

Thank you in advance,

Satya

  • Cancel
Parents
  • Quek
    Quek over 15 years ago
    Hi Satya

    The following is a sample of how you can do it. Load the script and enter "CCSgetPoints()" in ciw. Draw a few lines in a layout and press Enter to terminate.

    The script actually has a problem in that it is quite inflexible in terms of changing the input layers. Would you like to improve on it and post your solution so that everybody can benefit from it? Perhaps you might want to consider using "@rest" keyword in CCSgetPoints procedure to allow user to enter the desired layers.

    Best regards
    Quek


    procedure( CCSgetPoints()
       let( (orgSnapMode)
          orgSnapMode=hiGetCurrentWindow()->snapMode
          hiGetCurrentWindow()->snapMode="anyAngle"
          enterLine(
             ?prompts list("Enter first point" "Enter next point(s)")
             ?doneProc "CCSdraw"
          ) ;enterLine
          hiGetCurrentWindow()->snapMode=orgSnapMode
       ) ;let
    ) ;procedure

    procedure( CCSdraw(win done allPoints)
       let( (cv)
          if( done then
             cv=geGetWindowCellView()
             dbCreatePolygon(cv list("Metal1" "drawing") allPoints)
             dbCreatePolygon(cv list("Metal2" "drawing") allPoints)
             dbCreatePolygon(cv list("Metal3" "drawing") allPoints)
          ) ;if
       ) ;let
    ) ;procedure
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Quek
    Quek over 15 years ago
    Hi Satya

    The following is a sample of how you can do it. Load the script and enter "CCSgetPoints()" in ciw. Draw a few lines in a layout and press Enter to terminate.

    The script actually has a problem in that it is quite inflexible in terms of changing the input layers. Would you like to improve on it and post your solution so that everybody can benefit from it? Perhaps you might want to consider using "@rest" keyword in CCSgetPoints procedure to allow user to enter the desired layers.

    Best regards
    Quek


    procedure( CCSgetPoints()
       let( (orgSnapMode)
          orgSnapMode=hiGetCurrentWindow()->snapMode
          hiGetCurrentWindow()->snapMode="anyAngle"
          enterLine(
             ?prompts list("Enter first point" "Enter next point(s)")
             ?doneProc "CCSdraw"
          ) ;enterLine
          hiGetCurrentWindow()->snapMode=orgSnapMode
       ) ;let
    ) ;procedure

    procedure( CCSdraw(win done allPoints)
       let( (cv)
          if( done then
             cv=geGetWindowCellView()
             dbCreatePolygon(cv list("Metal1" "drawing") allPoints)
             dbCreatePolygon(cv list("Metal2" "drawing") allPoints)
             dbCreatePolygon(cv list("Metal3" "drawing") allPoints)
          ) ;if
       ) ;let
    ) ;procedure
    • 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