Macro for drawing circles using tiny square of a specific feature size

edited August 2015 in Ruby Scripting
Hi,

I am looking for a macro that allows me to generate circles with a user-defined diameter based on a user-defined feature size of the tiny squares approximating the shape of the circle in the layout.

The ideal case for me is a circle, but in order to comply with the DRC restrictions, I prefer to have the little squares.

I appreciate your help.

Thanks!

Ahmed

Comments

  • edited August 2015

    Ahmed,

    If I understand you correctly, you will draw the squares yourself (either manually with the mouse or via script) and then want to convert them to circles? (Correct me if I'm wrong.)

    If so, for the latter part of it, take a look at Edit menu > Selection > Convert to PCell. For example:

    1. Manually draw some rectangles
    2. Choose select tool in toolbar
    3. Choose Edit > Selection > Convert to PCell
    4. Choose Basic.CIRCLE
    5. The rectangles convert to circles. The diameter is taken as the minimum of the width and the height.

    I thought perhaps you didn't know of that functionality. Let us know what additional functionality you seek. e.g. do you need to draw the squares via script, and if so, what are your requirements on how to draw the squares' x, y, and width?

    David

Sign In or Register to comment.