Revit 2026 API
Global |
Returns all global parameters available in the given document.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static ISet<ElementId> GetAllGlobalParameters( Document document )
Public Shared Function GetAllGlobalParameters ( document As Document ) As ISet(Of ElementId)
public: static ISet<ElementId^>^ GetAllGlobalParameters( Document^ document )
static member GetAllGlobalParameters : document : Document -> ISet<ElementId>
Parameters
- document Document
- The document containing the global parameters
Return Value
ISetElementIdA collection of Element Ids of global parameter elements.
| Exception | Condition |
|---|---|
| ArgumentException | Global parameters are not supported in the given document. A possible cause is that it is not a project document, for global parameters are not supported in Revit families. |
| ArgumentNullException | A non-optional argument was null |
See Also