• 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. Hilights: get window/cv hilights, get hilight coords

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 143
  • Views 1360
  • 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

Hilights: get window/cv hilights, get hilight coords

heptagon
heptagon over 12 years ago

Hello! I've been investigating abilities of hilights and am confused with three things. Could anybody help and explain please?

1. How to get hilight sets of an open window or an open cellview? I.e. when I don't have a handler of freshly-myself-created hilight set, but have an open window with a highlight set and want to get it's handler

The only way I found is to use geGetCurrentWindowHilightSet() and  geGetCurrentHilightSet() function, but they work only if h-set was pushed.
Therefore they does not work for global h-sets. And despite I can display several differently colored h-sets in a window, I can't get all of them, only the pushed one.

My simple code I used for playing with-sets (open a layout window first):

;; !!! Define your own coloring, e.g.
;  hilite_color = list("y0" "drawing")

hilite_color = list("m2" "drawing")
;  Define hilite set
;hSet = geCreateWindowHilightSet(geGetEditCellViewWindow(geGetEditCellView()) hilite_color nil)
hSet = geCreateHilightSet(geGetEditCellView() hilite_color nil)
;  Add a drawing
geAddHilightRectangle( hSet list( -5:-5 5:5 ) )
;  Display it as instructed by documentation
hSet->enable = t
geDrawHilightSet( geGetEditCellViewWindow(geGetEditCellView()) hSet )
;  Push it to make next function work
gePushHilightStack(hSet)
#  Get a hilite set of the current window
geGetCurrentWindowHilightSet(hiGetCurrentWindow())
#  Get a hilite set of the current cellview
geGetCurrentHilightSet(ccv())

2. What's the main difference between global h-set and nonglobal (except from the fact that I have to push a nonglobal one to get it displayed)?3. When I have a handle of a hilite set with some "drawings" (objects), I can't get their coordinates or points, despite I had obviously specified them at creation. I can get each object id, it's type (e.g. rectangle) but no coords.

Taking the testcase from the section one, see this yourself:
hSet->??
hSet->objects~>??
That's all I can get, no coordinates.
geGetFigHilightObjectId() or geGetHilightObjectFigId() does not help.

  • 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