mattmas / Metamorphosis

A tool for watching changes between Revit models, addin and Dynamo.
MIT License
76 stars 23 forks source link

Feature request: Support category types in category settings #15

Closed andydandy74 closed 7 years ago

andydandy74 commented 7 years ago

Currently, when saving a complete subtree of categories (e.g. model elements), the settings file stores every category. When loading that setting, the checkbox of that subtree is unchecked (which is confusing to users): metamorphosissavedcategories My proposal would be the following: If an entire subtree is selected, do not save every category of that subtree in the settings file. Instead save the CategoryType using its enum value of CategoryType (http://www.revitapidocs.com/2017/eb96f224-a134-50e6-57e8-32bcb13bee7d.htm). This would also be more robust in terms of dealing with potential category changes in the Revit data model in future Revit versions.

mattmas commented 7 years ago

Andreas - check out the new update, I've done more or less what you suggested... If you pick at the CategoryType level, we store that, and restore that checkbox.

andydandy74 commented 7 years ago

That fixed it. Thanks Matt.