You will need "dbCreateLabel" and probaly "leAttachFig".
I'm pretty sure your ring has a bBox, almost every layout object I can think about has a bBox.
In reply to berndfi:
In reply to TFTIC:
Your question makes no sense - there's simply not enough detail. Maybe it makes sense with visibility of the code that you sent to Bernd - but this is a community forum - people can't help you if you don't give us enough to go on!
In reply to Andrew Beckett:
Thank you both (Andrew, I should do this from the begining).
Please find the code if this could be helpful.
My target: Add the word Hello in a specific place in layout (this word should be written in metal1).
The reference considering the location of this word should be the metal6 path or the bBox.
The formatting of your code has got completely messed up (this might be because you're using Chrome as a browser? The forums don't work so well with Chrome). Anyway, please re-post the code, or add it as an attachment via the Options tab on the forum (you might need to upload it as a file with the .txt suffix, I'm not sure).
Thank you for the help.
I have tried the solution you provided and it does not work (concering the addition of the word Hello for instance).
Moreover, I also think that there is a conceptual mistake in the script that I posted (to which yours is a slight variation):
I select an object in order to add the ring, say a cell, and the bbox that is in the code refers in the bbox of the cell. The word that would be added in the ring should be not related to that object, but to the ring itself
(thats why I initially stated that the location of the word in the ring should be relative to e.g. metal6 of the ring).
But as I said before, even if the problem of the location of the word would be ignored, I did not manage to see any solution of adding the text by using the lines you provided as they are (only by simply substituting word-->Hello).
I cannot judge your approach and I honestly didn’t want to rebuild your hole code.The mpeLabelInst function works for me as I have posted it, the input argument is datatype string, so you have to call it like this mpeLabelInst("Hello").