• 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. To Replace part of Label Name (Not the Complete Label) in...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13426
  • 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

To Replace part of Label Name (Not the Complete Label) in Design !!!

Sonu Chopra
Sonu Chopra over 5 years ago

Hello ,

I Want to Replace Part of Label Name (not the complete label)  in a Design (Containing lots of Labels) . I have the Tried the rex , pcre functions but not able to solve this issue.

I am explaining the issue with an example : 

label_Shapes_Id = setof(i cv~>shapes i~>layerName == "text" && i~>purpose == "drawing")~>theLabel   --> List of Labels in Design

Output :-

("Seperated" "Point Touch" "VTL_P;drawing_Corner to_VTL25_P;drawing_Edge" "VTL25_P;drawing_Corner to_VTL_P;drawing_Edge" "Overlap"
"Abutment" "Donut_VTL25_P;drawing_Abut_to_VTL_P;drawing" "Donut_VTL_P;drawing_Abut_to_VTL25_P;drawing" "VTL_P;drawing_Inside_VTL25_P;drawing" "VTL25_P;drawing_Inside_VTL_P;drawing"
"Line on Line" "VTL25_P;drawing_at_ortho_overlap_VTL_P;drawing_at_45_Degree" "VTL_P;drawing_at_ortho_overlap_VTL25_P;drawing_at_45_Degree" "VTL25_P;drawing_overlap_VTL_P;drawing_at_45_Degree" "VTL25_P;drawing_Abut_VTL_P;drawing_at_45_Degree"
"VTL_P;drawing_at_45_Inside_VTL25_P;drawing_at_orthogonal" "VTL25_P;drawing_at_45_Inside_VTL_P;drawing_at_orthogonal" "VTL_P;drawing_at_Orthogonal_Inside_VTL25_P;drawing_at_45" "VTL25_P;drawing_at_Orthogonal_Inside_VTL_P;drawing_at_45" "VTL_P;drawing_Inside_VTL25_P;drawing_at_45"
"VTL25_P;drawing_Inside_VTL_P;drawing_at_45" "Seperated" "Point Touch" "VTH_P;drawing_Corner to_VTL25_P;drawing_Edge" "VTL25_P;drawing_Corner to_VTH_P;drawing_Edge"
"Overlap" "Abutment" "Donut_VTL25_P;drawing_Abut_to_VTH_P;drawing" "Donut_VTH_P;drawing_Abut_to_VTL25_P;drawing" "VTH_P;drawing_Inside_VTL25_P;drawing"
"VTL25_P;drawing_Inside_VTH_P;drawing" "Line on Line" "VTL25_P;drawing_at_ortho_overlap_VTH_P;drawing_at_45_Degree" "VTH_P;drawing_at_ortho_overlap_VTL25_P;drawing_at_45_Degree" "VTL25_P;drawing_overlap_VTH_P;drawing_at_45_Degree"
"VTL25_P;drawing_Abut_VTH_P;drawing_at_45_Degree" "VTH_P;drawing_at_45_Inside_VTL25_P;drawing_at_orthogonal" "VTL25_P;drawing_at_45_Inside_VTH_P;drawing_at_orthogonal" "VTH_P;drawing_at_Orthogonal_Inside_VTL25_P;drawing_at_45" "VTL25_P;drawing_at_Orthogonal_Inside_VTH_P;drawing_at_45"
"VTH_P;drawing_Inside_VTL25_P;drawing_at_45" "VTL25_P;drawing_Inside_VTH_P;drawing_at_45" "GOOD CASES" "BAD CASES" "VTL25_P.R.6"
)

In the Above Output , I want to Replace VTL_25;drawing and VTH_P;drawing in the label name with NW;drawing and OD;drawing (with another layers).

Could You please help me on this point ?

Regards

Sonu 

  • Cancel
  • mbracht
    mbracht over 5 years ago

    Hi Sonu,

    I take it that you want to replace just the labels' text not the layers and purposes they are on - correct?

    (foreach label label_Shapes_Id
    label->theLabel=(pcreReplace (pcreCompile "VTL_25;drawing") label->theLabel "NW;drawing" 0)
    label->theLabel=(pcreReplace (pcreCompile "VTH_P;drawing") label->theLabel "OD;drawing" 0)
    )

    Max

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Sonu Chopra
    Sonu Chopra over 5 years ago in reply to mbracht

    Hello Max,

    Yes you are Correct (I only want to change label name) and I have tried your solution , Its work Perfectly fine at my end.

    Thanks for all the help and quick Response.

    Regards

    Sonu 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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