OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: masoud_123 on June 18, 2012, 12:47:07 AM

Title: canceling (SSGET)
Post by: masoud_123 on June 18, 2012, 12:47:07 AM
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)
)
Title: Re: canceling (SSGET)
Post by: owenwengerd on June 18, 2012, 04:54:47 AM
The simplest way is to change your button's OnClicked event to ^C^C instead of a function name.
Title: Re: canceling (SSGET)
Post by: XDCAD on July 15, 2012, 10:49:38 AM
Try

Code (autolisp) Select

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