AssemblyInstance.AreElementsValidForAssembly
Description:
Identifies if provided assembly members are valid.
Identifies if provided assembly members are valid.
public static bool AreElementsValidForAssembly(
Document document,
ICollection<ElementId> assemblyMemberIds,
ElementId assemblyId
)
-
documentThe document.
-
assemblyMemberIdsElement ids to be tested for validity for membership of an assembly instance.
-
assemblyIdId 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.
-
A non-optional argument was NULL