RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Document

Document.IsDefaultElementTypeIdValid

Method
Description:
Checks whether the element type id is valid for the give DefaultElmentType id.
Syntax
Parameters
Parameter Type Description
defaultTypeId ElementTypeGroup The default element type id.
typeId ElementId The element type id.
Return Value
Type Description
Boolean True if the element type id is valid for the give DefaultElmentType id, false otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration