2023 Method
Changes 0
M

AssemblyInstance.AreElementsValidForAssembly

Description:
Identifies if provided assembly members are valid.
public static bool AreElementsValidForAssembly(
	Document document,
	ICollection<ElementId> assemblyMemberIds,
	ElementId assemblyId
)
  • document
    The document.
  • ICollection<ElementId>
    assemblyMemberIds
    Element ids to be tested for validity for membership of an assembly instance.
  • assemblyId
    Id of the existing assembly to add components to. If invalid, the method return whether the components can be added to a new assembly
Return Value bool True if all member ids are valid, false otherwise.