• 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 code to toggle EIP (Edit in place)

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 143
  • Views 16967
  • 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 code to toggle EIP (Edit in place)

zeroskills
zeroskills over 15 years ago

Hi All,

I always use EIP (edit in place) and would like to have a toggle to turn it off and on, could you help me with a skill code. I would like to assign it to a bindkey - "alt+x". pressing "alt+x" will turn on or off EIP.

 

Thanks. 

  • Cancel
  • dmay
    dmay over 15 years ago

    I'm assuming you are talking about the EIP surround option on the Display Options form. If so, then this is all you need:

    procedure(toggleEipSurround()
        let(((win hiGetCurrentWindow()))
           if(win->drawSurroundingOn
                win->drawSurroundingOn=nil
                win->drawSurroundingOn=t
           )
        ) ;let
    ) ;proc

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • zeroskills
    zeroskills over 15 years ago

    That was quick. was it a default skill code or it was just that easy?

    Anyway, Thanks for help. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 15 years ago

    Hi,

    I will add to what Derek said.  If you are talking about the default "x" bindkey which performs Edit-In-Place, then the default Shift-B bindkey should perform a return operation.

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Hi zeroskills,

    What does "turning EIP on or off" mean? Edit in Place is an action you take - you edit in place, select a location, and it descends to that point. I don't see that there's anything to turn on or off?

    Perhaps you mean toggling the display of the EIP surround? (As on the Options->Display form). If so, the trick would be to look at:

    hiGetCurrentWindow()~>?

    Figure out the relevant property name (I can't check because I'm sending this from a PDA in an airport), and then your bindkey would be:

    hiGetCurrentWindow()~>thePropName=!hiGetCurrentWindow()~>thePropName

    Where "thePropName" is whatever it is called.

    But of course this is guesswork - you may be asking a different question!

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Thanks to Derek for identifying the property name (my previous reply explained how to figure it out yourself).

    That said, defining a function is overkill for this, as:

    hiGetCurrentWindow()~>drawSurroundingOn=!hiGetCurrentWindow()~>drawSurroundingOn

    Would be sufficient.

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • zeroskills
    zeroskills over 15 years ago

    Derek's code is all i need, just toggling EIP from on to off and vice versa. i had a similar one but the if statement is a hit and miss, and there's a condition to satisfy like if M0 drawing is present, do the EIP - off else -on.

    But the code above is fine.

    Thanks for the help.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    What do you mean by "default SKILL code?"

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • zeroskills
    zeroskills over 15 years ago

    Hi Andrew ,

    is  this what you meant?

     

    procedure(drawSurroundingOn()

    hiGetCurrentWindow()~>drawSurroundingOn=!hiGetCurrentWindow()~>drawSurroundingOn


    ) ;proc

    hiSetBindKey( "Layout" "Alt<Key>c" "drawSurroundingOn()")
     
    i thought there's a default skill code for toggling edit in place (eip). my current skill code wasn't working properly so i have to do it in the display option's window (e)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Sort of, but you don't really need to define the procedure. Just doing this would be enough:

    hiSetBindKey( "Layout" "Alt<Key>c" "hiGetCurrentWindow()~>drawSurroundingOn=!hiGetCurrentWindow()~>drawSurroundingOn")

    There's no built in function to do this toggling (if that's what you meant by "default") because it's such a simple expression to do it.

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • zeroskills
    zeroskills over 15 years ago

    I guess you're right, since i had a skill code for it so there wasn't a really a default one in the first place. i was just checking in case there was and didn't even knew it.

    Thanks for all you're codes and helping me again.

    • 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