Skip to content

PartUtils

Public Class

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 PartUtils

The PartUtils type exposes the following members.

Methods

Name

Description


Public Method
Static Member

Identifies if the given elements can be used to create parts.


Public Method
Static Member

Identifies if provided members are valid for dividing parts.


Public Method
Static Member

Identifies whether Part elements may be merged.


Public Method
Static Member

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

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

Gets associated PartMaker for an element.


Public Method
Static Member

Gets associated PartMaker for an element.


Public Method
Static Member

Returns all Parts that are associated with the given element.


Public Method
Static Member

Returns all Parts that are associated with the given element


Public Method
Static Member

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

Retrieves the element ids of the source elements of a merged part.


Public Method
Static Member

Obtains the object allowing access to the divided volume properties of the PartMaker.


Public Method
Static Member
Code Example

Identifies the curves that were used to create the part.


Public Method
Static Member
Code Example

Identifies the curves that were used to create the part and the plane in which they reside.


Public Method
Static Member
Code Example

Identifies the elements ( reference planes, levels, grids ) that were used to create the part.


Public Method
Static Member

Checks if an element has associated parts.


Public Method
Static Member

Checks if an element has associated parts.


Public Method
Static Member

Is the Part the result of a merge.


Public Method
Static Member

Is the Part derived from link geometry.


Public Method
Static Member

Identifies if the given element can be used to create parts.