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

Document.GetSubelement(String)

Method
Description:
Gets the subelement referenced by a unique id string.
Remarks:
null will be returned if the input id string doesn't reference to a valid element or subelement.
Syntax
public Subelement GetSubelement(
	string uniqueId
)
Parameters
Parameter Type Description
uniqueId String The unique id that identifies element or subelement. <li><a href="f9a9cb77-6913-6d41-ecf5-4398a24e8ff8.htm">UniqueId</a></li>
Return Value
Type Description
Subelement The subelement referenced by the input argument.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null