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

Document.SetDefaultElementTypeId

Method
Description:
Sets the default element type id of the given DefaultElementType id.
Syntax
public void SetDefaultElementTypeId(
	ElementTypeGroup defaultTypeId,
	ElementId typeId
)
Parameters
Parameter Type Description
defaultTypeId ElementTypeGroup The default element type id.
typeId ElementId The element type id.
Return Value
Exceptions
Exception Condition
ArgumentException The element type id typeId is invalid for the give DefaultElementType id defaultTypeId.
ArgumentNullException A non-optional argument was null
ArgumentOutOfRangeException A value passed for an enumeration argument is not a member of that enumeration