I have been working on a Pcell. I want to place a pin with lable in the pcell, where the pin name should change to the text given from parameter form. I had tried with rodCreateRect() where connectivity info can be added to shape but the issue is we have to give pinname or net name as string, it is not accepting a variable which has stored a string. Same is the case with dbCreateNet(). Can anyone help me to change pin name according to the text mentioned?
I'am really not sure whether I understand the problem - are you saying that specifying a literal string works but a variable with it's value being a string does not? What exactly happens if you use a variable instead, do you get an error or what? Might be usefull to see your code.
On a different note - the text you see on the label is the netname respectively the terminal name...not the name of the pin which is created by the system.