IsValidSubelementReference
Method
Description:
Checks if given Reference identifies either a valid element or subelement.
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.
A reference to an element or subelement in a linked document is acceptable.
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 |