I'm using VXL and I would to create a label from a shape net property, then I would attach it to the related net. Is there a way to do that?
You didn't say which version you're using, but in IC615 the Create->Label command has an "auto" mode which will create a label from the net name (it's actually a textDisplay, and so if the net name changes the label will too). You can drag the middle mouse button through several wires to label them in one go - look at the options form and look at the prompts in the CIW.
In reply to Andrew Beckett:
Sorry... I'm using IC5. Do you have a solution?
In reply to gparasiliti2:
Personally I don't have any SKILL code to do this written already, but it would be pretty easy to implement in SKILL. Maybe you can do a search on Cadence Online Support (I'm a bit pushed for time to search for you).
I already searched in the support website, I did'n find anything.
Here is something basic for you to start with. This one works on the car(selectedSet()) but you can adjust it to work on all selected items, or write some code using enterPoint or enterLine type commands to selecting the shapes to label.
procedure(myLabelSelectedShapeByNetName() let((shp netName lbl ) shp = car(selectedSet()) when(netName = shp~>net~>name lbl = dbCreateLabel( shp~>cellView "text" car(shp~>points)||shp~>beginPt||car(shp~>bBox) netName "centerCenter" "R0" "roman" shp~>width||1.0 ) lbl~>parent=shp ) ) ;let) ;proc