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
)