Skip to content

Instantly share code, notes, and snippets.

@Cyril-Pop
Created November 11, 2019 09:57
Show Gist options
  • Save Cyril-Pop/ab589d52758eaf13fd7fd90982c83940 to your computer and use it in GitHub Desktop.
Save Cyril-Pop/ab589d52758eaf13fd7fd90982c83940 to your computer and use it in GitHub Desktop.
def getstatus(view, import_instance):
hidden = []
visible = []
catSub = import_instance.Category.SubCategories
for cat_cad in catSub:
in_view = view.GetCategoryHidden(cat_cad.Id)
if in_view:
hidden.append(cat_cad.Id)
else:
visible.append(cat_cad.Id)
return hidden, visible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment