Converting polygon to a pin

Status
Not open for further replies.

Greg Michaelson

Usenet Archive
Joined
Jan 10, 2001
Messages
8
Reaction score
0
Is there a quick and dirty way to convert a polygon to a pin? I've played around with the dbSet command but it will not let me set an 'attribute'. Is there a way around this?

Thanks!
 
Ok. I can create a pin in the layout, then use dbSet to transfer the point list of the polygon to the newly created pin: dbSet(x y~>points "points") where y is the polygon and x is the newly formed pin. That will work well in a script but there has got to be a better way. Still looking for other ideas and I'll post more updates as I progress thorugh this...

(Greg Michaelson) wrote in
:

Is there a quick and dirty way to convert a polygon to a pin? I've played around with the dbSet command but it will not let me set an 'attribute'. Is there a way around this?

Thanks!
 
Greg,

Assuming that the variable polygon represents the polygon object, and pinName is the name you want the pin to be:

let((net cv)
cv=polygon~>cellView
net=dbMakeNet(cv pinName)
dbCreatePin(net polygon)
)

is the code snippet to do this (not tested, just off the top of my head, but I think it's OK).

Andrew.

On Mon, 14 Jan 2002 15:18:12 GMT, (Greg Michaelson)
wrote:

Is there a quick and dirty way to convert a polygon to a pin? I've played around with the dbSet command but it will not let me set an 'attribute'. Is there a way around this?

Thanks!
 
Thanks much. I'm not sure if this is the place or if anyone cares, but here is the final form of my Polygon2Pin script.

;========================================================== ; ; This will add connectivity to a polygon. ; ; How to use:
;
; 1. Select a polygon in a layout
; 2. Enter PF_polygon2Pin in the CIW
; 3. Enter the name of the net to be assigned to the polygon ; 4. Hit OK or Apply (you can go through a layout selecting ; more polygons if you hit Apply) ; ; ; Procedures:
; PF_polygon2Pin -- Builds the form
; PF_polygon2PinApp -- Assigns the net to the polygon
;
;==========================================================

procedure(polygon2Pin
let((netNameField)

netNameField = hiCreateStringField(
?name 'netNameField
?prompt "Net Name"
?value ""
)

netNameForm = hiCreateAppForm(
?name 'netNameForm
?formTitle "Convert Polygon to Pin"
?callback "polygon2PinApp"
?fields list(netNameField)
)

hiDisplayForm(netNameForm)

);end let
)

;==========================================================

procedure(polygon2PinApp
let((cv net)

cv=car(geGetSelSet)~>cellView
net=dbMakeNet(cv netNameForm~>netNameField~>value)
dbCreatePin(net car(geGetSelSet))

);end let
)
 
Status
Not open for further replies.

Latest threads

Back
Top