Home > Community > Forums > Custom IC SKILL > Draw many Rect/Polygons of Many layers Interactively and selectively using Skill

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

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

Last post Fri, Jan 15 2010 9:03 AM by Satya. 4 replies.
Started by Satya 12 Jan 2010 09:17 AM. Topic has 4 replies and 2517 views
Page 1 of 1 (5 items)
Sort Posts:
  • Tue, Jan 12 2010 9:17 AM

    • Satya
    • Top 500 Contributor
    • Joined on Sun, Jul 20 2008
    • Bangalore, Karnataka
    • Posts 17
    • Points 295
    Draw many Rect/Polygons of Many layers Interactively and selectively using Skill Reply

    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

    • Post Points: 20
  • Tue, Jan 12 2010 11:26 AM

    Re: Draw many Rect/Polygons of Many layers using Skill Interactively Reply
    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
    • Post Points: 5
  • Tue, Jan 12 2010 12:10 PM

    • Satya
    • Top 500 Contributor
    • Joined on Sun, Jul 20 2008
    • Bangalore, Karnataka
    • Posts 17
    • Points 295
    Re: Draw many Rect/Polygons of Many layers using Skill Interactively Reply

    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

    • Post Points: 20
  • Wed, Jan 13 2010 4:18 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,078
    • Points 16,395
    Re: Draw many Rect/Polygons of Many layers using Skill Interactively Reply
    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
    • Post Points: 20
  • Fri, Jan 15 2010 9:03 AM

    • Satya
    • Top 500 Contributor
    • Joined on Sun, Jul 20 2008
    • Bangalore, Karnataka
    • Posts 17
    • Points 295
    Re: Draw many Rect/Polygons of Many layers using Skill Interactively Reply

    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

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by Satya at 12 Jan 2010 09:17 AM. Topic has 4 replies.