![](/skins/images/A54229C87CCE7748F3A239403438F492/responsive_peak/images/icon_anonymous_message.png)
Not applicable
08-26-2020
09:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm listening to the Application.DocumentChanged event and I would like to see if the element modified is an Instance or an ElementType. I'm currently doing the following but it doesn't quite satisfy all the conditions. I'm not native to Revit sorry if my terminology is off. How does the `FilterCollector.WhereElementIsElementType()` determine it's an ElementType?
private static bool IsElementType(Element element)
{
var typeId = element?.GetTypeId();
if (typeId == null || typeId == ElementId.InvalidElementId)
{
if (!(element is Room) && !(element is PipeSegment))
{
return true;
}
}
return false;
}
Solved! Go to Solution.