• 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 144
  • Views 4111
  • 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
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Hi Satya,

    Use enterBox() to prompt the user for the location of the rectangle(s), maybe with an options form to control which layer names to create the rectangles on, and then in the doneProc of the enterBox use dbCreateRect to create the rectangles.

    Your requirement to delete existing shapes is rather imprecise - but that's just a matter of using dbDeleteObject on any shapes you want to delete.

    This seems pretty straightforward, and a little research (in the documentation, in this forum, and on Cadence Online Support) could have found you the answers to all of this. Perhaps your requirements are really more complicated? Or perhaps you just wanted somebody to write the code for you?

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Satya
    Satya over 15 years ago

    Hi Andrew!!

    Thanks for the reply...Actually I wanted to know how better I can do it. But here  the no of layers are almost 5-16 or more ,

    I would like to draw them simultaneosly and selectively also same for deletion.

    Thanks,

    Ninge

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • Satya
    Satya over 15 years ago

    Thank you somuch Querk,

    as soon as I completed the task, definetely I'll share with you all.Once again, "All" Thanks  for your kind suggestions and help.

     Satya

    • 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