how to end a prompting select entity operation ?

how to end a prompting select entity operation ?

giser828DUHJV
Explorer Explorer
821 Views
3 Replies
Message 1 of 4

how to end a prompting select entity operation ?

giser828DUHJV
Explorer
Explorer

my modeless dialog has two buttons,  the first button clicked to prompt select  an entity,

if the second button clicked , i want to end the prompting select entity first and then  do other things,

how  to  end the prompting select entity  operation in the second button click event ?

0 Likes
822 Views
3 Replies
Replies (3)
Message 2 of 4

ActivistInvestor
Mentor
Mentor

You can use the Document's SendStringToExecute() method to send an escape sequence to the command line. 

0 Likes
Message 3 of 4

giser828DUHJV
Explorer
Explorer

doc.SendStringToExecute("\x03\x03", false, true, false);   ?

// this operation will change the entities selected state 

0 Likes
Message 4 of 4

ActivistInvestor
Mentor
Mentor

Yes, it will deselect entities.  The only other option is to add a keyword to your prompt, and issue the keyword using SendStringToExecute().

0 Likes