AssemblyInstance.AreElementsValidForAssembly
Method
Description:
Identifies if provided assembly members are valid.
Identifies if provided assembly members are valid.
Syntax
public static bool AreElementsValidForAssembly(
Document document,
ICollection<ElementId> assemblyMemberIds,
ElementId assemblyId
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| document | Document | The document. |
| assemblyMemberIds | ICollection | Element ids to be tested for validity for membership of an assembly instance. |
| assemblyId | ElementId | 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
| Type | Description |
|---|---|
| Boolean | True if all member ids are valid, false otherwise. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |