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