• 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. Deleting text label from selected object

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 144
  • Views 18013
  • 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

Deleting text label from selected object

Carona
Carona over 7 years ago

I was browsing around the forums looking for a simple solution, and I discovered this 

txtLp = car(setof(lp cv~>lpps lp~>layerName=="text" && lp~>purpose=="drawing")) ;; get the text layer purpose database object
mapcar('dbDeleteObject txtLp~>shapes) ;; delete all labels and textDisplays

However this deletes all text from a virtuoso active window. I was hoping to modify this to only delete a text label from the selected object.

I can go into further detail as to why I would like that feature, but basically I want to perform a transformation on a shape and then add a label to the center of the shape.

So, I want to first delete an existing label, then create a new one.  I have the create a new label portion of code that works well.

This solution works with one shape, but if there are multiple shapes, every time I select a new shape to modify, its text label will be removed from the other shapes.

Thanks for your help

  • Cancel
Parents
  • psill000
    psill000 over 7 years ago

    txtLp = car(setof(lp geGetSelSet()~>lpps lp~>layerName=="text" && lp~>purpose=="drawing"))

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Carona
    Carona over 7 years ago in reply to psill000

    perfect!!! Appreciate the help.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Carona
    Carona over 7 years ago in reply to psill000

    perfect!!! Appreciate the help.

    • 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