• 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. Skill to turn off ruler selection in Cadence 6.1 layout

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 144
  • Views 17555
  • 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

Skill to turn off ruler selection in Cadence 6.1 layout

LongTimeNovice
LongTimeNovice over 13 years ago

Hello.

 I'm trying to write some Skill code that will turn off ruler selection in Virtuoso 6.1 layout.

 When I do it manually, this appears in my CDS.log file:

 _pteHiGuidePropagateSelectability(dwindow('pteGuidePalette3) "Rulers" nil)

 pteGuidePalette3 is specific to the window in which I run the command.  It won't work in any other window, for instance pteGuidePalette10.

 Is there a way to use the command such that it will turn off ruler selection in all windows?  Is there a different command to do this?  Otherwise, is there a command that will determine the palette number of a given window?

 Thank you!

Steven.

 

  • Cancel
  • TeeBro
    TeeBro over 13 years ago

     I'm not sure about this but I think you need to use the skill command leSetObjectSelectable.

    Try this:

    leSetObjectSelectable("ruler" nil )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LongTimeNovice
    LongTimeNovice over 13 years ago

     TeeBro, thank you!  That worked great for rulers.

     It worked for markers and boundaries as well, such as:

     leSetObjectSelectable("Markers" nil)

    leSetObjectSelectable("Boundaries" nil)

     

    So my follow-up question:

     How do I get it to work for specific markers and boundaries?  I want makers and rulers off and boundaries on.  Here's my current, non-working code:

    leSetObjectSelectable("Boundaries" t)
    leSetObjectSelectable("Boundaries,P&R Boundary" t)
    leSetObjectSelectable("Boundaries,Area Boundary" t)
    leSetObjectSelectable("Boundaries,Snap Boundary" t)
    leSetObjectSelectable("Boundaries,Cluster Boundary" t)

    leSetObjectSelectable("ruler" nil )

    leSetObjectSelectable("Marker,Acknowledge Warning" nil)
    leSetObjectSelectable("Markers,Annotation" nil)
    leSetObjectSelectable("Markers,Critical Error" nil)
    leSetObjectSelectable("Markers,Error" nil)
    leSetObjectSelectable("Markers,Fatal" nil)
    leSetObjectSelectable("Markers,Info" nil)
    leSetObjectSelectable("Markers,Signed Off Critical Error" nil)
    leSetObjectSelectable("Markers,Signed Off Error" nil)
    leSetObjectSelectable("Markers,Warning" nil)
    leSetObjectSelectable("Markers" nil)

     

    Like I said, Markers and Boundaries, in general, work with this, but specific types do not.  Any ideas?

     

    Thank you again and again!

    Steven.

     

     

     

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 13 years ago

    Teebro's suggestion is what you ened for disabling the ruler. Here is some code to help you get an assistant by name for a particular session window:

     procedure(myGetSessionAssistantByName(assistantName @optional (swin hiGetSessionWindow(hiGetCurrentWindow())))
      let((theAsst docks rex)
        docks = setof(dwin hiGetWindowList('dockable) hiGetSessionWindow(dwin) == swin)
        case(assistantName
            ("Search"              rex = "seeAssistant")
            ("Property Editor"     rex = "oiAssistant")
            ("Navigator"           rex = "treeAssistant")
            ("Annotation Browser"  rex = "annotationBrowser")
            ("World View"          rex = "hiWorldView")
            ("Dynamic Selection"   rex = "gDSA")
            ("Layers"              rex = "pteLayerPalette")
            ("Guides"              rex = "pteGuidePalette")
            ("Objects"             rex = "pteObjectsPalette")
            (t rex = nil)
        )
        when(rex
            theAsst = car(setof(dwin docks eqv(0 strncmp(sprintf(nil "%L" dwin->hiHandle) rex strlen(rex)))))
        )
        theAsst
      ) ;let
    ) ;proc

    guideAsst=myGetSessionAssistantByName("Guides")
    _pteHiGuideSetSelectability(guideAsst "Rulers" t)

    You can also toggle the visibility of the assistant like this:
    asst = myGetSessionAssistantByName("Navigator")
    hiMapWindow(asst)
    hiUnmapWindow(asst)

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    I'm not sure why you thought you could comma separate the words - it doesn't say this in the manual, as far as I know. If you just use:

    leSetObjectVisible("Annotation" t)
    leSetObjectSelectable("Annotation" t)

    it will turn on the visibility of such markers,and ensure they are selectable. You can use the text of the marker type in the guides assistant to control this.

    For the Boundary types, these are covered clearly in the documentation - search for leSetObjectSelectable. You can use the arguments "P&R", "Snap", "Cluster", "Area" to control those boundaries:

    leSetObjectSelectable("Snap" t)

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LongTimeNovice
    LongTimeNovice over 13 years ago

     Thank you, dmay.

     That's terrific.  I think that will be very useful if I have to do anything in a specific window.

     Ultimately, what I would like to see happen is for my .cdsinit file to load my skill code at the start of Cadence, and this would set my rules, markers, and boundaries before I ever open a layout.  So far, the command 

    load("/home/xxxxx/scripts/cadence/setup_65nm.il")

    in my  .cdsinit file isn't loading automatically, but it does load if I enter that into the icfb window.  I guess that's another follow-up question.  How do I auto-load this thing?

     Thanks.

    Steven.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LongTimeNovice
    LongTimeNovice over 13 years ago

     Andrew, great, I'll try that.

     FYI, I used the commas because I saw them in the CDS.log file when I manually turned these on and off:

     \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Acknowledge Warning" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Annotation" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Critical Error" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Error" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Fatal" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Info" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Signed Off Critical Error" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Signed Off Error" nil)
    \r t
    \a _pteHiGuideSetSelectability(dwindow('pteGuidePalette1) "Markers,Warning" nil)
    \r t

     

    Thanks again.  I'll try your suggestions and post the results.

     Steven.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Steven,

    OK, I understand the confusion. However, just because the UI does one thing, doesn't mean that the non-UI API works the same way - so it's worth reading the manual. Anyway, hopefully this will work cleanly for you!

    Cheers,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • LongTimeNovice
    LongTimeNovice over 13 years ago

     Andrew, thanks again.

     That code works perfectly when I run my script from the icfb window.  Now all I have to do is get it to auto-load from my .cdsinit.

     By the way, this is what the script currently looks like:

     ; ****load this in icfb window
    ;load "setup_65nm.il"


    leSetObjectSelectable("Boundaries" t)
    leSetObjectSelectable("P&R" t)
    leSetObjectSelectable("Area" t)
    leSetObjectSelectable("Snap" t)
    leSetObjectSelectable("Cluster" t)

    leSetObjectSelectable("ruler" nil )

    leSetObjectSelectable("Acknowledge Warning" nil)
    leSetObjectSelectable("Annotation" nil)
    leSetObjectSelectable("Critical Error" nil)
    leSetObjectSelectable("Error" nil)
    leSetObjectSelectable("Fatal" nil)
    leSetObjectSelectable("Info" nil)
    leSetObjectSelectable("Signed Off Critical Error" nil)
    leSetObjectSelectable("Signed Off Error" nil)
    leSetObjectSelectable("Warning" nil)
    leSetObjectSelectable("Markers" nil)

     

    My .cdsinit file has this line calling the code, and at this point, it still doesn't load:

     load("/home/xxxx/scripts/cadence/setup_65nm.il")

     This appears to be my last obstacle.  Thank you for your help!  Hey, where can I get one of those SKILL manuals?

     Thanks again.

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Stephen,

    Loading this from the .cdsinit won't work as is, because it only affects an existing palette. You could use something like this which fires any time you open a layout window (that might be annoying, because it will keep resetting it - so you might need to set flags to only do it once, maybe):

     procedure(MyPostInstallTrigger(args)
        leSetObjectSelectable("Boundaries" t)
        leSetObjectSelectable("P&R" t)
        leSetObjectSelectable("Area" t)
        leSetObjectSelectable("Snap" t)
        leSetObjectSelectable("Cluster" t)

        leSetObjectSelectable("ruler" nil )

        leSetObjectSelectable("Acknowledge Warning" nil)
        leSetObjectSelectable("Annotation" nil)
        leSetObjectSelectable("Critical Error" nil)
        leSetObjectSelectable("Error" nil)
        leSetObjectSelectable("Fatal" nil)
        leSetObjectSelectable("Info" nil)
        leSetObjectSelectable("Signed Off Critical Error" nil)
        leSetObjectSelectable("Signed Off Error" nil)
        leSetObjectSelectable("Warning" nil)
        leSetObjectSelectable("Markers" nil)
    )

    deRegUserTriggers("maskLayout" nil nil 'MyPostInstallTrigger)
    deRegUserTriggers("maskLayoutXL" nil nil 'MyPostInstallTrigger)

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Oh, and for the SKILL manual - just type "cdnshelp" from the UNIX command line or use the Help menus inside Virtuoso! It's searchable...

    Andrew.

    • 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