from Spotfire.Dxp.Application.Filters import CheckBoxHierarchyFilter
plFilter=Document.FilteringSchemes[1].Item[tab].Item[tab.Columns.Item["Region"]].As[CheckBoxHierarchyFilter]()
if Document.Properties.Item["Status"]=="All":
plFilter.UncheckAllNodes()
Document.Properties.Item["Status"]="None"
else:
plFilter.CheckAllNodes()
Document.Properties.Item["Status"]="All"