Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
asgardd2
Creator III
Creator III

"Unlock And Clear All" in macro

Hello!

I would like to find a way to use "Unlock and Clear All" in macro. How i can find this function? There is not information about this in APIGuide.

I know, that I can unlock first and then clear current selections. But it is not suit for me, because i have triggers on unlock events. (if i push "unlock and clear all" -  triggers are not started)


Thank you!

1 Solution

Accepted Solutions
el_aprendiz111
Specialist
Specialist

Hi,

1 Example:

SUB DocumentClearSelections

 

  ActiveDocument.ClearAll (true)

 

END SUB

View solution in original post

4 Replies
el_aprendiz111
Specialist
Specialist

Hi,

1 Example:

SUB DocumentClearSelections

 

  ActiveDocument.ClearAll (true)

 

END SUB

asgardd2
Creator III
Creator III
Author

Thank you! How you can find this option? ('true'  in parameter)

kristy_wedel
Contributor II
Contributor II

I'm not sure if there's a way to do both at once, but this worked for me:

SUB UnlockAndClearAll

ActiveDocument.UnlockAll

ActiveDocument.ClearAll (true)

END SUB

asgardd2
Creator III
Creator III
Author

Yes, it is work fine. Thank You.