Author Topic: Pause Lisp to Grip Edit and continue...  (Read 2389 times)

0 Members and 1 Guest are viewing this topic.

ROBBO

  • Bull Frog
  • Posts: 217
Pause Lisp to Grip Edit and continue...
« on: July 03, 2014, 09:32:55 AM »
Hi,

Any help as always is much appreciated.

What can replace the (while (/= (getvar 'cmdactive) 0)) in the code below to allow me to select an object activate grips and edit the block with the grips (the bit I am struggling with), un-select and return to command? 

Code - Auto/Visual Lisp: [Select]
  1. (command "_.select" pause (sssetfirst nil (ssget "_p")) (while (/= (getvar 'cmdactive) 0)) "_.select" "_r" "_p")

Hopefully this makes sense.

Kindest regards, Robbo.
The only thing to do with good advice is to pass it on.
It is never of any use to oneself.

Oscar Wilde
(1854-1900, Irish playwright, poet and writer)

ROBBO

  • Bull Frog
  • Posts: 217
Re: Pause Lisp to Grip Edit and continue...
« Reply #1 on: July 04, 2014, 02:52:36 AM »
Using Grip_Stretch appears to do the trick.

Code - Auto/Visual Lisp: [Select]
  1. (command "_.select" pause)
  2. (sssetfirst nil (ssget "_p"))
  3. (command "_.GRIP_Stretch" pause)
  4. )

Best regards, Robbo.
« Last Edit: July 04, 2014, 03:05:05 AM by ROBBO »
The only thing to do with good advice is to pass it on.
It is never of any use to oneself.

Oscar Wilde
(1854-1900, Irish playwright, poet and writer)