• 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. Setting multiple snap spacings

Stats

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

Setting multiple snap spacings

Arun14787
Arun14787 over 11 years ago

Hi,

    My requirement is to set snap spacings according to the layer been selected in LSW. To achieve this, i have following questions:

 1) How to check which layer is selected currently?

 2) If i have the script which is able to identify the layer selected and accordingly change my snap spacings, then how can i schedule that script so that as soon as i change my layer selection in my LSW snap spacings should change automatically. Is there a way to do that?

Thanks,

Arunkumar A 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Hi Arun,

    The first question is leGetEntryLayer. For the second question, I'm not sure there's any public trigger for doing this. One option would be to use leRegUserObjectSelectionFilter (which is public) which gets called as soon as you move over an object prior to selection. You'd need to make it return t, but you could retrieve the entry layer and set the snap spacing there. For example - this just displays the entry layer whenever you move over an object. Note that you must keep such a function fast to avoid affecting interactivity.

    procedure(CCFcurrentLayer(figId)
      printf("ENTRY: %L\n" leGetEntryLayer())
      t
    )
    leRegUserObjectSelectionFilter("CCFcurrentLayer")

    Otherwise, perhaps you could contact customer support to request a trigger on entry layer change? There's already one on layer selection (leRegUserLayerSelectionFilter), but that's only when selectabilty of a layer is changed.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Hi Arun,

    The first question is leGetEntryLayer. For the second question, I'm not sure there's any public trigger for doing this. One option would be to use leRegUserObjectSelectionFilter (which is public) which gets called as soon as you move over an object prior to selection. You'd need to make it return t, but you could retrieve the entry layer and set the snap spacing there. For example - this just displays the entry layer whenever you move over an object. Note that you must keep such a function fast to avoid affecting interactivity.

    procedure(CCFcurrentLayer(figId)
      printf("ENTRY: %L\n" leGetEntryLayer())
      t
    )
    leRegUserObjectSelectionFilter("CCFcurrentLayer")

    Otherwise, perhaps you could contact customer support to request a trigger on entry layer change? There's already one on layer selection (leRegUserLayerSelectionFilter), but that's only when selectabilty of a layer is changed.

    Regards,

    Andrew.

    • 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