canceling (SSGET)

Started by masoud_123, June 18, 2012, 12:47:07 AM

Previous topic - Next topic

masoud_123

Hi
Could you please help me, How can I cancel "Select Object" prompted by (SSGET) by pressing a button? Like Cancelling it by pressing
"ESCAPE" key from keyboard?

I write this code but it doesn't work.

(defun c:CancelButton_OnClicked (/)
  (command)
)

owenwengerd

The simplest way is to change your button's OnClicked event to ^C^C instead of a function name.

XDCAD

Try

Code (autolisp) Select

(defun c:CancelButton_OnClicked (/)
  (dcl_SendString "(chr 27)(chr 27)\n")
)