-
-
Save Cyril-Pop/70fd3ce2fc526624bb5f781507fd321a to your computer and use it in GitHub Desktop.
[Dynamo+=Python] getstatus ImportInstance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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