AnalysisResultSchema
Description:
Contains all information about one analysis result. Each result may contain several measurements.
Contains all information about one analysis result. Each result may contain several measurements.
Remarks:
In order to take effect, the AnalysisResultSchema object has to be registered by calling SpatialFieldManager::RegisterResult, which returns result index for future references; to make changes to the properties of an already registered object, use method SpatialFieldManager::SetResultSchema and supply result index and replacing object.
In order to take effect, the AnalysisResultSchema object has to be registered by calling SpatialFieldManager::RegisterResult, which returns result index for future references; to make changes to the properties of an already registered object, use method SpatialFieldManager::SetResultSchema and supply result index and replacing object.
Inheritance Hierarchy:
System.Object
Autodesk.Revit.DB.Analysis.AnalysisResultSchema
System.Object
Autodesk.Revit.DB.Analysis.AnalysisResultSchema
public class AnalysisResultSchema : IDisposable
IList<string> unitNames = new List<string>();
unitNames.Add("Feet");
unitNames.Add("Inches");
IList<double> multipliers = new List<double>();
multipliers.Add(1);
multipliers.Add(12);
AnalysisResultSchema resultSchema = new AnalysisResultSchema("Schema Name", "Description");
resultSchema.SetUnits(unitNames, multipliers);
| Name | Return Type | Description |
|---|---|---|
| AnalysisResultSchema(AnalysisResultSchema) | None | Constructs a new copy of the input AnalysisResultSchema object. |
| AnalysisResultSchema(String, String) | None | Creates object and assigns name and description |
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| GetNumberOfUnits() | int | returns number of possible units |
| GetUnitsMultiplier(Int32) | double | returns units multiplier by index |
| GetUnitsName(Int32) | string | returns units name by index |
| IsEqual(AnalysisResultSchema) | bool | Determines if the input object is equivalent to this AnalysisResultSchema. |
| SetUnits(IList<String>, IList<Double>) | None | Sets names and multipliers of all units for result visualization |
| Name | Return Type | Description |
|---|---|---|
| AnalysisDisplayStyleId | ElementId | ElementId of analysis display style overriding the style set for view; -1 if the style is not overridden |
| CurrentUnits | int | Stores the index in the array of applicable units |
| Description | string | Description of analysis result in view |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| IsVisible | bool | If true analysis result is visible in view |
| Name | string | Name of analysis result in view |
| Scale | double | Multiplier used for displaying diagram or vector values in view. |