Revit 2026 API
Linear |
This indicates whether the input count is a valid size for an array based on the document.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static bool IsValidNumberOfMembers( int count, Document pADoc )
Public Shared Function IsValidNumberOfMembers ( count As Integer, pADoc As Document ) As Boolean
public: static bool IsValidNumberOfMembers( int count, Document^ pADoc )
static member IsValidNumberOfMembers : count : int * pADoc : Document -> bool
Parameters
- count Int32
- The count.
- pADoc Document
- The document.
Return Value
BooleanTrue if an array can be set to the specified count in the given document, false otherwise.
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
In project documents, the array count must be between 2 and 200.
In family documents, the array count must be between 0 and 200.
See Also