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

Document.GetSubelement(ElementId, Int32)

Method
Description:
Gets the subelement referenced by a parent id and subelement id.
Remarks:
null will be returned if the input id string doesn't reference to a valid element or subelement.
Syntax
public Subelement GetSubelement(
	ElementId id,
	int subId
)
Parameters
Parameter Type Description
id ElementId Id of the element.
subId Int32 Id of the sub element.
Return Value
Type Description
Subelement The subelement referenced by the input argument.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null