Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am preparing add-in and using pick object filter element.
I found this code on help webpage
public bool AllowElement(Element element) { if (element.Category.Name == "Mass") { return true; } return false; }
But it does't work if you have Revit in other language.
it's not universal code for all developers.
my code is longer and used BuiltInCategory parameter
Category cat = doc.GetElement(e).Category;
bcat = (BuiltInCategory)cat.Id.IntegerValue;
Solved! Go to Solution.