Revit 2025.3 API
Spatial |
Factory method - creates manager object for the given view
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static SpatialFieldManager CreateSpatialFieldManager( View view, int numberOfMeasurements )
Public Shared Function CreateSpatialFieldManager ( view As View, numberOfMeasurements As Integer ) As SpatialFieldManager
public: static SpatialFieldManager^ CreateSpatialFieldManager( View^ view, int numberOfMeasurements )
static member CreateSpatialFieldManager : view : View * numberOfMeasurements : int -> SpatialFieldManager
Parameters
- view View
- View for which manager object is created or retrieved
- numberOfMeasurements Int32
- Total number of measurements in the calculated results. This number defines the length of value arrays in ValueAtPoint objects
Return Value
SpatialFieldManagerManager object for the view passed in the argument
| Exception | Condition |
|---|---|
| ArgumentException | numberOfMeasurements is less than one |
| ArgumentNullException | A non-optional argument was null |
| InvalidOperationException | View is not allowed to display analysis results or a manager object for this view already exists |
See Also