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.
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
In reply to dmay:
That was quick. was it a default skill code or it was just that easy?
Anyway, Thanks for help.
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.
In reply to skillUser:
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.
In reply to zeroskills:
In reply to Andrew Beckett:
Hi Andrew ,
is this what you meant?
procedure(drawSurroundingOn()hiGetCurrentWindow()~>drawSurroundingOn=!hiGetCurrentWindow()~>drawSurroundingOn) ;prochiSetBindKey( "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)
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.