Create a ruler

Y

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 wrote, on 06/11/09 15:21:
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!
Your question is not clear - how is this different from a normal ruler?

Andrew.
 
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.
 
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
 

Welcome to EDABoard.com

Sponsor

Back
Top