Share

AnalysisDisplayMarkersAndTextSettings Class

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: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class AnalysisDisplayMarkersAndTextSettings : IDisposable

The AnalysisDisplayMarkersAndTextSettings type exposes the following members.

Constructors

 NameDescription
Public methodAnalysisDisplayMarkersAndTextSettings() Constructs a default instance of markers and text settings.
Public methodAnalysisDisplayMarkersAndTextSettings(AnalysisDisplayMarkersAndTextSettings) Constructs a new copy of the input AnalysisDisplayMarkersAndTextSettings object.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyMarkerSize Size of marker.
Public propertyMarkerType Type of marker.
Public propertyRounding Increment to which numeric values of analysis results are rounded in markers.
Public propertyTextLabelType Type of diagram text label visualization.
Public propertyTextTypeId Element id of text associated with the settings.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the AnalysisDisplayMarkersAndTextSettings
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsEqual Compares two colored surface settings objects.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

Example

C#

// Settings relating to the marker shape and size and the display of values
AnalysisDisplayMarkersAndTextSettings markerSettings = new AnalysisDisplayMarkersAndTextSettings();
markerSettings.MarkerSize = .05;
markerSettings.MarkerType = AnalysisDisplayStyleMarkerType.Triangle;
markerSettings.Rounding = .01;

// Settings relating to the marker color
AnalysisDisplayColorSettings colorSettings = new AnalysisDisplayColorSettings();
colorSettings.MaxColor = new Color(255, 0, 0);
colorSettings.MinColor = new Color(0, 255, 255);

// Settings relating to the legend
AnalysisDisplayLegendSettings legendSettings = new AnalysisDisplayLegendSettings();
legendSettings.Rounding = .01;

// Create the new display style
AnalysisDisplayStyle ads = AnalysisDisplayStyle.CreateAnalysisDisplayStyle(doc, "Markers 1", markerSettings, colorSettings, legendSettings);

// Assign the new display style to the current view
doc.ActiveView.AnalysisDisplayStyleId = ads.Id;

VB

' Settings relating to the marker shape and size and the display of values
Dim markerSettings As New AnalysisDisplayMarkersAndTextSettings()
markerSettings.MarkerSize = 0.05
markerSettings.MarkerType = AnalysisDisplayStyleMarkerType.Triangle
markerSettings.Rounding = 0.01

' Settings relating to the marker color
Dim colorSettings As New AnalysisDisplayColorSettings()
colorSettings.MaxColor = New Color(255, 0, 0)
colorSettings.MinColor = New Color(0, 255, 255)

' Settings relating to the legend
Dim legendSettings As New AnalysisDisplayLegendSettings()
legendSettings.Rounding = 0.01

' Create the new display style
Dim ads As AnalysisDisplayStyle = AnalysisDisplayStyle.CreateAnalysisDisplayStyle(doc, "Markers 1", markerSettings, colorSettings, legendSettings)

' Assign the new display style to the current view

See Also

Reference

Was this information helpful?