AssemblyInstanceAreElementsValidForAssembly Method |
Identifies if provided assembly members are valid.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static bool AreElementsValidForAssembly(
Document document,
ICollection<ElementId> assemblyMemberIds,
ElementId assemblyId
)
Public Shared Function AreElementsValidForAssembly (
document As Document,
assemblyMemberIds As ICollection(Of ElementId),
assemblyId As ElementId
) As Boolean
public:
static bool AreElementsValidForAssembly(
Document^ document,
ICollection<ElementId^>^ assemblyMemberIds,
ElementId^ assemblyId
)
static member AreElementsValidForAssembly :
document : Document *
assemblyMemberIds : ICollection<ElementId> *
assemblyId : ElementId -> bool
Parameters
- document Document
-
The document.
- assemblyMemberIds ICollectionElementId
-
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
Boolean
True if all member ids are valid, false otherwise.
Exceptions
See Also