Skip to content

Subelement.IsValidSubelementReference

Public Class

Checks if given Reference identifies either a valid element or subelement.

Namespace: Autodesk.Revit.DB

Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)

Syntax

public static bool IsValidSubelementReference(
Document aDoc,
Reference reference
)

Parameters

aDoc Document

The document.

reference Reference

The reference that identifies an element or subelement.

Return Value

Boolean
True if %reference% identifies a valid element or subelement, false otherwise.

Exceptions

Exception

Condition


ArgumentNullException

A non-optional argument was null


Remarks

A reference to an element or subelement in a linked document is acceptable.