Document.GetDefaultElementTypeId
Description:
Gets the default element type id with the given DefaultElementType id.
Gets the default element type id with the given DefaultElementType id.
public ElementId GetDefaultElementTypeId(
ElementTypeGroup defaultTypeId
)
-
defaultTypeIdThe default element type id.
private bool IsWallUsingDefaultType(Document document, Wall wall)
{
ElementId defaultElementTypeId = document.GetDefaultElementTypeId(ElementTypeGroup.WallType);
return (wall.WallType.Id == defaultElementTypeId);
}
-
A value passed for an enumeration argument is not a member of that enumeration