2027 Method
Changes 0
M

PartUtils.GetAssociatedParts

Description:
Returns all Parts that are associated with the given element
Overloads (2):
GetAssociatedParts(Document,LinkElementId,Boolean,Boolean)
public static ICollection<ElementId> GetAssociatedParts(
	Document hostDocument,
	LinkElementId hostOrLinkElementId,
	bool includePartsWithAssociatedParts,
	bool includeAllChildren
)
  • hostDocument
    The document of the element
  • hostOrLinkElementId
    The element to be checked for associated Parts.
  • Boolean
    includePartsWithAssociatedParts
    If true, include parts that have associated parts
  • Boolean
    includeAllChildren
    If true, return all associated Parts recursively for all children If false, only return immediate children
Return Value ICollection<ElementId> Parts that are associated to the element