Share

Document.IsDefaultElementTypeIdValid Method

Checks whether the element type id is valid for the give DefaultElmentType id.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)

Syntax

C#

public bool IsDefaultElementTypeIdValid(
	ElementTypeGroup defaultTypeId,
	ElementId typeId
)

Parameters

defaultTypeId  ElementTypeGroup
The default element type id.
typeId  ElementId
The element type id.

Return Value

Boolean
True if the element type id is valid for the give DefaultElmentType id, false otherwise.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration

See Also

Reference

Was this information helpful?