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

IsValidSubelementReference

Method
Description:
Checks if given Reference identifies either a valid element or subelement.
Remarks:
A reference to an element or subelement in a linked document is acceptable.
Syntax
public static bool IsValidSubelementReference(
	Document aDoc,
	Reference reference
)
Parameters
Parameter Type Description
aDoc Autodesk.Revit.DB.Document The document.
reference Autodesk.Revit.DB.Reference The reference that identifies an element or subelement.
Return Value
Type Description
Autodesk.Revit.Exceptions.ArgumentNullException True if %reference% identifies a valid element or subelement, false otherwise.
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.ArgumentNullException A non-optional argument was null