Document.GetDefaultElementTypeId
Method
Description:
Gets the default element type id with the given DefaultElementType id.
Gets the default element type id with the given DefaultElementType id.
Examples
private bool IsWallUsingDefaultType(Document document, Wall wall)
{
ElementId defaultElementTypeId = document.GetDefaultElementTypeId(ElementTypeGroup.WallType);
return (wall.WallType.Id == defaultElementTypeId);
}
Parameters
| Parameter | Type | Description |
|---|---|---|
| defaultTypeId | ElementTypeGroup | The default element type id. |
Return Value
| Type | Description |
|---|---|
| ElementId | The element type id. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |