Home > Community > Forums > Custom IC SKILL > How to find if a coordinate is on a net

## Email

Recipients email * (separate multiple addresses with commas)

Message *

 Send yourself a copy

## Subscribe

Intro copy of the newsletter section here, some intro copy of the newsletter. Instruction of how to subscribe to this newsletter.

First Name *

Last Name *

Email *

Company / Institution *

 Send Yourself A Copy

# How to find if a coordinate is on a net

Last post Wed, Sep 17 2008 12:20 AM by bimukt. 3 replies.
 Started by bimukt 15 Sep 2008 10:04 PM. Topic has 3 replies and 2540 views
• #### Mon, Sep 15 2008 10:04 PM

• bimukt
• Joined on Mon, Sep 15 2008
• Posts 2
• Points 40
How to find if a coordinate is on a net
 I neeed to find if a coordinate is on a metal1 net.The net is a randomly drawn path on a layout.Is there any skill function available
• Post Points: 35
• #### Tue, Sep 16 2008 5:24 AM

• istjohn
• Joined on Mon, Sep 15 2008
• Posts 1
• Points 20
Re: How to find if a coordinate is on a net
 You could always turn the point into a small bbox and use dbGetTrueOverlaps to see what nets are under it. Or, if you want the most accurate method, you can do something like this:`cv=geGetEditCellView()foreach(net cv~>nets foreach(fig net~>figs if( absIsPointInsideFig(fig pt ) then foundNet = net~>name );if );foreach );foreachfoundNet ;name of net under point`
• Post Points: 20
• #### Tue, Sep 16 2008 6:35 AM

• dmay
• Joined on Thu, Jul 17 2008
• Allen, TX
• Posts 393
• Points 7,415
Re: How to find if a coordinate is on a net
 Another simple approach is to use gePointQuery. This is similar to geSingleSelectPt except that it doesn't do the selection. The routine takes three arguments: window id, coordinate and filter function.result=gePointQuery(hiGetCurrentWindow() 10:20 "myFilter")procedure(myFilter(fig)    if(fig~>layerName=="metal1" && fig~>objType=="path"        t        nil    ))Derek
• Post Points: 5
• #### Wed, Sep 17 2008 12:20 AM

• bimukt
• Joined on Mon, Sep 15 2008
• Posts 2
• Points 40
Re: How to find if a coordinate is on a net
 HI John, I need to find if the coordinate is on the net.Actually my script will move all pins to the routing grid.I have found the coordinate of the nearest routing grid and move the pin there.I need to check that the new position of the pin is on the same net otherwise the pin will lose the connectivity with parent net. When I found the net from the pin and use the function this returned nil for a coordinate on the net.I gave the dbId of the net for this. if( absIsPointInsideFig(fig pt )also to give the id of a figure ...I probed all figs by net~>figs.....there was no fig found.. In this case how will I check the coordinate is on the net.
• Post Points: 5