MostafaElAyoubi / Data-shapes

code for revit, dynamo
50 stars 12 forks source link

UI.SelectModelElementsData returns categories when no selection made #19

Closed andydandy74 closed 7 years ago

andydandy74 commented 7 years ago

Buttons of the uiselectelementsofcat class will return the categories of their category filter if no model element has been selected. It would be preferable if they returned null (single element selection) or an empty list (multi-element selection). One approach may be to check all button tags in setclose if they contain Revit categories and remove them. noselectionreturnscategories

MostafaElAyoubi commented 7 years ago

That would indeed be a good approach since buttons should never return categories. I'll take care of it publish it in the next version along with all the great stuff you contributed.