RVTDocs.com

AnalysisResultSchema

Class
Description:
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.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Analysis.AnalysisResultSchema
Syntax
public class AnalysisResultSchema : IDisposable
Examples
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);