• 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. Display only the "Active layer" on the toolbar

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 3633
  • 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

Display only the "Active layer" on the toolbar

girig
girig over 11 years ago

Hi,

 If I do not want to view the "layer palette" assistant, but would just like to have the current active layer-purpose displayed (say as part of the one of the toolbars), is there a way to get that?

 One could create a toolbar item with a hiMakeLPChoiceList using the current active layer to display its swatch and lpp, but then it wouldn't change dynamically when the active layer/purpose changes.

 Please let me know if there are any other options.

Thanks,Giri.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Hi Giri,

    You could use pteRegisterUserSelectionTrigger to register a callback when the layer is changed on the palette. See solution 20268008.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • theopaone
    theopaone over 11 years ago

     Wow, this one is new to me. I've wanted to change the grid based on the current layer and could never do it well. 

    Thanks, Andrew.

     Ted

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • girig
    girig over 11 years ago

    Hi Andrew,

      Thank you very much !  Works great.

    Although a couple of observations:

    1. pteRegisterUserSelectionTrigger  triggers even on a middle-click or right-click on the layer palette. So if trapping the active/entry layer is the intent, then it would be wise to use leGetEntryLayer() in the trigger callback, rather than use the layerName and layerPurpose arguments that automatically get passed on to it.

    2.  The callback only triggers for a manual mouse click on the layer palette. A pteSetActiveLpp() or leSetEntryLayer() does not trigger the callback. That is probably by intent, so if the user also has other means of setting active layer (bindkeys), the trigger wouldn't work and the bindkey functions may need to incorporate the callback trigger.

    Thanks,

    Giri. 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lrlsk
    lrlsk over 11 years ago
    Hi Andrew I am currently using version IC6.1.5-64b.500.11 and I wanted to use palette assistant function like the pteRegisterUserSelectionTrigger but CIW returns "undefined function - .........." I don't seem to have any of the palette functions e.g. those with prefix "pte" If it is not available in this version, then is there any existing function similar to pteRegisterUserSelectionTrigger ? thank you in advance. BR ~lrlsk
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • girig
    girig over 11 years ago

    Hi, This function is available only IC6.1.6 500.7 onwards as mentioned in the solution. I don't think there is a similar function available with earlier versions.

    Thanks,

    Giri. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lrlsk
    lrlsk over 11 years ago
    Thanks a lot girig.
    • 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