• 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 Design
  3. Layout XL: how to set default options for Selection Protection...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 15649
  • 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

Layout XL: how to set default options for Selection Protection?

dontpanic
dontpanic over 8 years ago

Hello! Is it possible to set somewhere the default options for the Selection Protection feature in Layout XL (the ones under "Edit->Select->Selection Protection Options...")?

Every time I open a new layout window I need to set these, which becomes cumbersome.

I tried looking on the .cdsenv settings but had no luck. In case there are no variables to control these, is there any way to set them through skill? For instance, I tried the following but it doesn't work:

procedure( mySetSelProtectionHighlight()
    geSetSelProtectionHighlightOptionForm()
    hiiSetCurrentForm('_geProtectOptionsForm)
    _geProtectOptionsForm->geHlWidth->value= "thin"
    hiFormDone(_geProtectOptionsForm)
);

...I'm interested to know if the latter approach for settings things via code would work, as it would allow us to automate many other things!

Thanks in advance,

Jorge.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Jorge,

    If you want to set the default, just use:

    envSetVal("graphic" "protectedObjHighlightHaloWidth" 'string "thin")

    This will affect any new windows (unless you've saved the default settings to the cellView or library at some point; I think the editor options or display options saving buttons may do this - I've not checked).

    If you want to change it for the current window, you'd set it as a property on the window object:

    hiGetCurrentWindow()->protectedObjHighlightHaloWidth="thin"

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dontpanic
    dontpanic over 8 years ago

    Thanks a million, Andrew; that did the trick!
    P.S. I would have never guessed that the tool name for these settings is named "graphic" - kept looking under "layout" and "layoutXL"!
    Cheers,
    Jorge.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago
    Jorge,

    Some things are left at the base graphics level rather than having an application-specific env var. As you can see here, this is "ge" (graphics editor) functionality (from the function call names) and has not been overridden to be specific to the layout editor.

    In practice you often need to check both, because we're not always entirely consistent about this! Sometimes it's obvious though - things like snap spacing is going to be different in each application, so that ends up with an application-specific env var which overrides the "graphic" env var.

    Regards,

    Andrew.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dontpanic
    dontpanic over 8 years ago
    Ah, good to know Andrew, thanks!
    Cheers,
    Jorge.
    • 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