Analysis |
The AnalysisResultSchema type exposes the following members.
Name | Description | |
---|---|---|
![]() | AnalysisResultSchema(AnalysisResultSchema) | Constructs a new copy of the input AnalysisResultSchema object. |
![]() | AnalysisResultSchema(String, String) | Creates object and assigns name and description |
Name | Description | |
---|---|---|
![]() | AnalysisDisplayStyleId | ElementId of analysis display style overriding the style set for view; -1 if the style is not overridden |
![]() | CurrentUnits | Stores the index in the array of applicable units |
![]() | Description | Description of analysis result in view |
![]() | IsValidObject | Specifies whether the .NET object represents a valid Revit entity. |
![]() | IsVisible | If true analysis result is visible in view |
![]() | Name | Name of analysis result in view |
![]() | Scale | Multiplier used for displaying diagram or vector values in view. |
Name | Description | |
---|---|---|
![]() | Dispose | Releases all resources used by the AnalysisResultSchema |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object) |
![]() | GetNumberOfUnits | returns number of possible units |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object) |
![]() | GetUnitsMultiplier | returns units multiplier by index |
![]() | GetUnitsName | returns units name by index |
![]() | IsEqual | Determines if the input object is equivalent to this AnalysisResultSchema. |
![]() ![]() | SetUnits | Sets names and multipliers of all units for result visualization |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object) |
// By default, each analysis result uses the Analysis Display Style assigned to the view. // To display different types of results (colored surface, markers, diagram, vector) simultaneously in a single view // the Analysis Display Style for each result must be set to a style that matches result's type foreach (int result in spatialFieldManager.GetRegisteredResults()) // get all results for this SpatialFieldManager { AnalysisResultSchema schema = spatialFieldManager.GetResultSchema(result); switch (schema.Name) // check the name of the schema { case "Reactions": // based on the schema name, set the schema's Analysis Display Style schema.AnalysisDisplayStyleId = AnalysisDisplayStyle.FindByName(doc, "Vector"); break; case "Shear": schema.AnalysisDisplayStyleId = AnalysisDisplayStyle.FindByName(doc, "Diagram"); break; case "Plate Shear": schema.AnalysisDisplayStyleId = AnalysisDisplayStyle.FindByName(doc, "Surface"); break; } spatialFieldManager.SetResultSchema(result, schema); // update the schema }