Create a ruler

Discussion in 'Cadence' started by YuAmA, Jun 11, 2009.

  1. YuAmA

    YuAmA Guest

    Hi,all
    I want to create a ruler in the Virtuoso layout,this created ruler is
    cruciate,the length is 10um.
    a cursor position of mouse is the point of ruler.
    who can help me ,thank you!
     
    YuAmA, Jun 11, 2009
    #1
  2. YuAmA wrote, on 06/11/09 15:21:
    Your question is not clear - how is this different from a normal ruler?

    Andrew.
     
    Andrew Beckett, Jun 11, 2009
    #2
  3. YuAmA

    Tarek Guest

    You want a ruler EXTACTLY 10um? Then set your x (or y) snap size to 10
    and draw one unit of the ruler then go back to your original snap size
    afterwards.
     
    Tarek, Jun 11, 2009
    #3
  4. YuAmA

    Tarek Guest

    i mean 'EXACTLY'...
     
    Tarek, Jun 11, 2009
    #4
  5. YuAmA

    KB.How Guest

    Hi Terek,

    You are trying to create a skill code which able user to construct a
    ruler with input value rite!
    Maybe this script will helps.



    procedure( howRuler(valX valY @optional (option "l") (cvId
    geGetEditCellView()))
    let(()

    printf("Create Ruler")

    enterPt = enterPoint(?prompts list("Enter Ruler Start
    Point."))
    startPt = geWindowToEditPoint(hiGetCurrentWindow() enterPt)

    when( startPt
    endPtx = xCoord(startPt)
    endPty = yCoord(startPt)

    case( option
    ( "l"
    leCreateRuler(cvId list(startPt endPtx
    +valX:endPty+valY))
    )
    ( "x"
    leCreateRuler(cvId list(startPt endPtx
    +valX:endPty))
    leCreateRuler(cvId list(startPt endPtx:endPty
    +valY))
    leCreateRuler(cvId list(startPt endPtx-
    valX:endPty))
    leCreateRuler(cvId list(startPt endPtx:endPty-
    valY))
    )
    ( "xy"
    leCreateRuler(cvId list(startPt endPtx:endPty
    +valY))
    leCreateRuler(cvId list(startPt endPtx
    +valX:endPty))
    )
    );case
    );when
    );let
    );proc


    This script required user to input value x and y for the ruler, and
    the options help create different kind of style.

    How to use:
    a. Copy the script and load in CIW
    b. run the function by typing command in CIW: howRuler(10 0)

    Regards,
    How
     
    KB.How, Jun 12, 2009
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.