AssemblyInstance.CanRemoveElementsFromAssembly
Method
Description:
Identifies if provided assembly members can be removed from the assembly instance.
Identifies if provided assembly members can be removed from the assembly instance.
Syntax
public static bool CanRemoveElementsFromAssembly(
AssemblyInstance assemblyInstance,
ICollection<ElementId> memberIds
)
Parameters
Parameter | Type | Description |
---|---|---|
assemblyInstance | AssemblyInstance | The assembly instance to remove elements from. |
memberIds | ICollection | Element ids to be tested for validity to remove from the assembly instance. |
Return Value
Type | Description |
---|---|
Boolean | True if all member ids are valid, false otherwise. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |