Skip to main content
Participating Frequently
September 27, 2023
Question

deselectall doesn't work. He remains in a position of choice.

  • September 27, 2023
  • 2 replies
  • 256 views
After this function, there are further operations. 
Since it is selected, errors will occur in other transactions.
How can I deselect objects?

 

function stroklariFilleCevir() {
    app.executeMenuCommand('selectall');
    app.executeMenuCommand('Live Outline Stroke');
    app.executeMenuCommand('expandStyle');

    //This section doesn't work. He remains in a position of choice.
    app.executeMenuCommand('deselectall');
}

 

This topic has been closed for replies.

2 replies

femkeblanco
Legend
September 27, 2023

Or

app.selection = null;
Legend
September 27, 2023
// How about this code
app.selection = [] ;
Participating Frequently
September 27, 2023

thanks, sttk3 it worked.