• 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. Trigger on opening a layout (how to make ruler not selectable...

Stats

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

Trigger on opening a layout (how to make ruler not selectable)?

drdanmc
drdanmc over 8 years ago

I would like my layouts to open with ruler objects set to not selectable.  I can do this in the GUI by picking the objects tab in the Pallette assistant and unchecking ruler selectability.  Alternatively, I can use this bit of skill code:

pteSetSelectable("Rulers" nil "Objects") 

however, I can't seem to find a good cdsinit way of doing this.  I scanned over the layout and layoutXL environment variable settings and nothing popped out as the right thing.  I also looked for a way to register a trigger function to run when the layout editor is started and also struck out.  Any suggestions?  Again the goal is to have ruler objects not selectable by default when I open layouts.

Thanks

-Dan

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Dan,

    If you are calling this from a user post install trigger (defined with deRegUserTriggers), then I think you may have to use:

    leSetObjectSelectable("Rulers" nil)

    as the palette (pte) functions are not initialised until after the first design is loaded (subsequent windows would have worked, but not the first).

    procedure(CCFpostInstallTrig(_args)
      ;pteSetSelectable("Rulers" nil "Objects")
      leSetObjectSelectable("Rulers" nil)
    )

    deRegUserTriggers("maskLayout" nil nil 'CCFpostInstallTrig)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • drdanmc
    drdanmc over 8 years ago
    Thanks Andrew! As always, your help is much appreciated and right on target. I often find that my biggest challenge in skill programming is getting to the right spot in the documentation. Anyway, now that deRegUserTriggers is in my vocabulary it is all working nicely. Thanks again.

    -Dan
    • 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