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

PartUtils.GetChainLengthToOriginal

Method
Description:
Calculates the length of the longest chain of divisions/merges to reach to an original non-Part element that is the source of the tested part.
Syntax
public static int GetChainLengthToOriginal(
	Part part
)
Parameters
Parameter Type Description
part Part The part to be tested
Return Value
Type Description
Int32 The length of the longest chain.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null