• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. adding newline character within a label

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 15783
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

adding newline character within a label

MalcolmWhite
MalcolmWhite over 6 years ago

I'm searching for a way to edit a label using the properties menu and adding a newline character within the label string so the label wraps

in the middle somewhere and becomes usable when width is small. 

Obviously a layout person could just make two labels and edit the label height so it fits in a certain width, but instead I want to use just one label

For example if I have a label in my layout view which is "this_layout_cell_is_a_copy_of_layout_from_ReferenceLibrary_but_well_removed"

this long of a string may not fit in my layout cell width may overhang the edges by quite a bit.

There used to be a way to insert (I think it was an ascii character for newline ) a escape character and then extended command characters .

I cannot find the reference for that anymore.

What I would like would be a string I can place in layout like : "this_layout_cell_is_a_copy_of_layout\n _from_ReferenceLibrary_but_well_removed"

the \n character placed in the middle would create one label that looks like  :

this_layout_cell_is_a_copy_of_layout

_from_ReferenceLibrary_but_well_removed

Thank you for your time.

  • Cancel
Parents
  • MalcolmWhite
    MalcolmWhite over 6 years ago

    nevermind Cadence - I figured it out - you can't create the label with the ordinary label tool under Create,  you can't enter carraige return with the property edit menu , you have to create the label with the dbCreateLabel() and while you enter the 4th parameter, the interpreter will take a \n in the middle of the string and wrap the text.   this one created what I needed.  dbCreateLabel(geGetEditCellView() list("text" "drawing" ) 31.0:38.0 "really_Long\n_Label_Test" "centerCenter" "R0" "roman" 1.0)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 6 years ago in reply to MalcolmWhite

    Be aware that exporting with Oasis (not stream) will not like those trailing whitespaces and carriage returns.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to dmay

    Hi Derek,

    That was a limitation at one point, but fixed (as far as I can see) in IC616 ISR3. Trailing spaces aren't a problem anyway I believe, but the carriage returns aren't allowed in OASIS, so now what happens is you get this in the log file:

    WARNING (XOASIS-81084): Input text "albert?george?" has symbols with ASCII codes: 0xA, 0xA, which are not supported by OASIS and therefore substituted by '_'. The modified text "albert_george_" will be translated to OASIS layer 7 and OASIS data type 0.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to dmay

    Hi Derek,

    That was a limitation at one point, but fixed (as far as I can see) in IC616 ISR3. Trailing spaces aren't a problem anyway I believe, but the carriage returns aren't allowed in OASIS, so now what happens is you get this in the log file:

    WARNING (XOASIS-81084): Input text "albert?george?" has symbols with ASCII codes: 0xA, 0xA, which are not supported by OASIS and therefore substituted by '_'. The modified text "albert_george_" will be translated to OASIS layer 7 and OASIS data type 0.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information