• 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. Allegro X Scripting - Skill
  3. Dehighlight symbols using skill and Dehighlight symbols...

Stats

  • Replies 2
  • Subscribers 18
  • Views 4232
  • Members are here 0
More Content

Dehighlight symbols using skill and Dehighlight symbols use command

WangL95
WangL95 over 3 years ago

Hi All, 

I am in learning process and have a problem with using skill to dehighlight highlighted symbols in layout.

I used highlight command "Display->Highlight" to highlight several symbols. Then use skill below to try dehighlight them but it has not success.

Can someone help me for this?

Thank you so much!

axlCmdRegister( "dh" 'dehighlight)
;#################################
procedure( dehighlight()
symbols_list = nil
axlClearSelSet()
axlSetFindFilter( ?enabled (list "symbols" ) ?onButtons (list "symbols"))
;axlSetFindFilter( ?enabled '(noall symbols) ?onButtons '(noall symbols))
db_item = axlGetSelSet(axlAddSelectAll())
foreach(item db_item
if( axlIsHighlighted(item)
then
symbols_list = cons(item symbols_list)
)
)
axlClearSelSet()
axlDehighlightObject(symbols_list)
)

  • Cancel
  • Sign in to reply
Parents
  • Uri Chaplin
    Uri Chaplin over 3 years ago

    this function have 2 parameters 

     axlDehighlightObject( [lo_dbid] [g_permHighlight] ) ⇒ t/nil

    try to use axlDehighlightObject(symbols_list t)

    BTW no need create list, do it inside foreach

    foreach(item db_item
      if( axlIsHighlighted(item) then  axlDehighlightObject(item t) )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • WangL95
    WangL95 over 2 years ago in reply to Uri Chaplin

    Thank you so much! 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • WangL95
    WangL95 over 2 years ago in reply to Uri Chaplin

    Thank you so much! 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
Cadence Guidelines

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