The document tested is a part.

Apply the operation if the SOLIDWORKS blocking bar is present among the functions in the design tree.


If the blocking bar is at the top of the tree, it will not be detected, as SOLIDWORKS considers it to be deactivated.