AnalysisDisplayMarkersAndTextSettings
Contains markers and text settings for analysis display style element.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Analysis.AnalysisDisplayMarkersAndTextSettings
Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class AnalysisDisplayMarkersAndTextSettings : IDisposable
The AnalysisDisplayMarkersAndTextSettings type exposes the following members.
Constructors
Name
Description
Public Method
AnalysisDisplayMarkersAndTextSettings.
Constructs a default instance of markers and text settings.
Public Method
AnalysisDisplayMarkersAndTextSettings(AnalysisDisplayMarkersAndTextSettings)
Constructs a new copy of the input AnalysisDisplayMarkersAndTextSettings object.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Public Property
MarkerSize
Size of marker.
Public Property
MarkerType
Type of marker.
Public Property
Rounding
Increment to which numeric values of analysis results are rounded in markers.
Public Property
TextLabelType
Type of diagram text label visualization.
Public Property
TextTypeId
Element id of text associated with the settings.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the AnalysisDisplayMarkersAndTextSettings
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
IsEqual
Compares two colored surface settings objects.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Example
// Settings relating to the marker shape and size and the display of valuesAnalysisDisplayMarkersAndTextSettings markerSettings = new AnalysisDisplayMarkersAndTextSettings();markerSettings.MarkerSize = .05;markerSettings.MarkerType = AnalysisDisplayStyleMarkerType.Triangle;markerSettings.Rounding = .01;
// Settings relating to the marker colorAnalysisDisplayColorSettings colorSettings = new AnalysisDisplayColorSettings();colorSettings.MaxColor = new Color(255, 0, 0);colorSettings.MinColor = new Color(0, 255, 255);
// Settings relating to the legendAnalysisDisplayLegendSettings legendSettings = new AnalysisDisplayLegendSettings();legendSettings.Rounding = .01;
// Create the new display styleAnalysisDisplayStyle ads = AnalysisDisplayStyle.CreateAnalysisDisplayStyle(doc, "Markers 1", markerSettings, colorSettings, legendSettings);
// Assign the new display style to the current viewdoc.ActiveView.AnalysisDisplayStyleId = ads.Id;