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)
)
The simplest way is to change your button's OnClicked event to ^C^C instead of a function name.
Try
(defun c:CancelButton_OnClicked (/)
(dcl_SendString "(chr 27)(chr 27)\n")
)