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

Element.CanHaveTypeAssigned(Document, ICollection<ElementId>)

Method
Description:
Checks if all elements in the set can have a type assigned.
Syntax
public static bool CanHaveTypeAssigned(
	Document document,
	ICollection<ElementId> elementIds
)
Parameters
Parameter Type Description
document Document The document.
elementIds ICollection A collection of element IDs.
Return Value
Type Description
Boolean True if all elements in the set can have a type assigned, false otherwise.
Exceptions
Exception Condition
ArgumentException Thrown when at least one of the elements does not exist in the document.
ArgumentNullException A non-optional argument was null