Create Path Command

Guest
Does anyone know how to capture the termination coordinates of the
Create Path Command(end of the center line of the path)?

I can capture X coordinate for termination point for a horizontal wire
by using hiGetpoint(hiGetCurrentWindow()) and the Y coordinate for a
vertical command, but the Y for the horizontal and X for the vertical
is the cursor not the middle line of the path and that is what I need.

Any help will be greatly appreciated as this is the last thing for my
script to do what I wish.

Thank you in advance,
Eric Fitzsimmons
IC Layout Designer
 
One way to do that would be this sneaky one, hopefully someone knows a
less sneaky way:
Get a list of all shapes in the cellview, draw the path, get a list of
all New shapes in the cellview, if there's only 1, assume it's your
path.
Check the points of that shape, the last one should be the terminal
point.

;get the original shape list
s = deGetCellView~>shapes
leHiCreatePath()
; get a list of all shapes that weren't in the original shape list
s = setof(shape deGetCellView~>shapes !member(shape s))
if(length(s) == 1 then
terminalPoint = car(last(car(s)~>points))
else terminalPoint = nil
)

On Dec 11, 7:59 am, eric.d.fitzsimm...@gmail.com wrote:
Does anyone know how to capture the termination coordinates of the
Create Path Command(end of the center line of the path)?

I can capture X coordinate for termination point for a horizontal wire
by using hiGetpoint(hiGetCurrentWindow()) and the Y coordinate for a
vertical command, but the Y for the horizontal and X for the vertical
is the cursor not the middle line of the path and that is what I need.

Any help will be greatly appreciated as this is the last thing for my
script to do what I wish.

Thank you in advance,
Eric Fitzsimmons
IC Layout Designer
 
On Dec 11, 7:59 am, eric.d.fitzsimm...@gmail.com wrote:
Does anyone know how to capture the termination coordinates of the
Create Path Command(end of the center line of the path)?

I can capture X coordinate for termination point for a horizontal wire
by using hiGetpoint(hiGetCurrentWindow()) and the Y coordinate for a
vertical command, but the Y for the horizontal and X for the vertical
is the cursor not the middle line of the path and that is what I need.

Any help will be greatly appreciated as this is the last thing for my
script to do what I wish.

Thank you in advance,
Eric Fitzsimmons
IC Layout Designer
Perhaps the return value for your command is the database ID for the
path. Could you then look at the path attributes, I believe it has a
set of points, and the beginning or last pair of points may be your
final coordinate?
 
On Dec 12, 8:38 pm, layoutDesign <ford...@gmail.com> wrote:
On Dec 11, 7:59 am, eric.d.fitzsimm...@gmail.com wrote:

Does anyone know how to capture the termination coordinates of the
Create Path Command(end of the center line of the path)?

I can capture X coordinate for termination point for a horizontal wire
by using hiGetpoint(hiGetCurrentWindow()) and the Y coordinate for a
vertical command, but the Y for the horizontal and X for the vertical
is the cursor not the middle line of the path and that is what I need.

Any help will be greatly appreciated as this is the last thing for my
script to do what I wish.

Thank you in advance,
Eric Fitzsimmons
IC Layout Designer

Perhaps the return value for your command is the database ID for the
path. Could you then look at the path attributes, I believe it has a
set of points, and the beginning or last pair of points may be your
final coordinate?
I am new to cadence skill, left the Intel mother ship 9 months ago
after the Nehalem(i7 processor) tapeout. Can you expain further, how
do I find and manipulate the database ID path and attributes.

Thank you for any and all help.
Eric
 
On Dec 12, 12:15 pm, Risky <theel...@gmail.com> wrote:
One way to do that would be this sneaky one, hopefully someone knows a
less sneaky way:
Get a list of all shapes in the cellview, draw the path, get a list of
all New shapes in the cellview, if there's only 1, assume it's your
path.
Check the points of that shape, the last one should be the terminal
point.

;get the original shape list
s = deGetCellView~>shapes
leHiCreatePath()
; get a list of all shapes that weren't in the original shape list
s = setof(shape deGetCellView~>shapes !member(shape s))
if(length(s) == 1 then
  terminalPoint = car(last(car(s)~>points))
  else terminalPoint = nil
)

On Dec 11, 7:59 am, eric.d.fitzsimm...@gmail.com wrote:



Does anyone know how to capture the termination coordinates of the
Create Path Command(end of the center line of the path)?

I can capture X coordinate for termination point for a horizontal wire
by using hiGetpoint(hiGetCurrentWindow()) and the Y coordinate for a
vertical command, but the Y for the horizontal and X for the vertical
is the cursor not the middle line of the path and that is what I need.

Any help will be greatly appreciated as this is the last thing for my
script to do what I wish.

Thank you in advance,
Eric Fitzsimmons
IC Layout Designer- Hide quoted text -

- Show quoted text -
This would work, I am hesitant to use it. The code is for a manual
router, to automate the width and via transitions and bind the code to
keys. I have everything I need except the endpoint of the wire. If
I use your trick, it maybe slow on big databases.

I really appreciate your efforts.

Any idea if I can get the coordinated from mouseApplyOrFinishPoint()
that I am using to finish a path?

Thank you and Happy holidays!
Eric
 

Welcome to EDABoard.com

Sponsor

Back
Top