Skip to content

Instantly share code, notes, and snippets.

@Cyril-Pop
Last active November 11, 2019 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cyril-Pop/70fd3ce2fc526624bb5f781507fd321a to your computer and use it in GitHub Desktop.
Save Cyril-Pop/70fd3ce2fc526624bb5f781507fd321a to your computer and use it in GitHub Desktop.
[Dynamo+=Python] getstatus ImportInstance
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