PartUtils
General Part utility methods
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.PartUtils
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static class PartUtilsThe PartUtils type exposes the following members.
Methods
Name
Description
Public Method
Static Member
AreElementsValidForCreateParts
Identifies if the given elements can be used to create parts.
Public Method
Static Member
ArePartsValidForDivide
Identifies if provided members are valid for dividing parts.
Public Method
Static Member
ArePartsValidForMerge
Identifies whether Part elements may be merged.
Public Method
Static Member
CreateMergedPart
Create a single merged part which represents the Parts specified by partsToMerge.
Public Method
Static Member
CreateParts(Document, ICollection.ElementId.)
Creates a new set of parts out of the original elements.
Public Method
Static Member
CreateParts(Document, ICollection.LinkElementId.)
Creates a new set of parts out of the original elements.
Public Method
Static Member
DivideParts
Creates divided parts out of parts.
Public Method
Static Member
FindMergeableClusters
Segregates a set of elements into subsets which are valid for merge.
Public Method
Static Member
GetAssociatedPartMaker(Document, ElementId)
Gets associated PartMaker for an element.
Public Method
Static Member
GetAssociatedPartMaker(Document, LinkElementId)
Gets associated PartMaker for an element.
Public Method
Static Member
GetAssociatedParts(Document, ElementId, Boolean, Boolean)
Returns all Parts that are associated with the given element.
Public Method
Static Member
GetAssociatedParts(Document, LinkElementId, Boolean, Boolean)
Returns all Parts that are associated with the given element
Public Method
Static Member
GetChainLengthToOriginal
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.
Public Method
Static Member
GetMergedParts
Retrieves the element ids of the source elements of a merged part.
Public Method
Static Member
GetPartMakerMethodToDivideVolumeFW
Obtains the object allowing access to the divided volume properties of the PartMaker.
Public Method
Static Member
Code Example
GetSplittingCurves(Document, ElementId)
Identifies the curves that were used to create the part.
Public Method
Static Member
Code Example
GetSplittingCurves(Document, ElementId, Plane.)
Identifies the curves that were used to create the part and the plane in which they reside.
Public Method
Static Member
Code Example
GetSplittingElements
Identifies the elements ( reference planes, levels, grids ) that were used to create the part.
Public Method
Static Member
HasAssociatedParts(Document, ElementId)
Checks if an element has associated parts.
Public Method
Static Member
HasAssociatedParts(Document, LinkElementId)
Checks if an element has associated parts.
Public Method
Static Member
IsMergedPart
Is the Part the result of a merge.
Public Method
Static Member
IsPartDerivedFromLink
Is the Part derived from link geometry.
Public Method
Static Member
IsValidForCreateParts
Identifies if the given element can be used to create parts.