DimensionSegment
A segment of a dimension within the Autodesk Revit project.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.APIObject
Autodesk.Revit.DB.DimensionSegment
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class DimensionSegment : APIObject
The DimensionSegment type exposes the following members.
Properties
Name
Description
Public Property
Above
The text shown above the segment’s value.
Public Property
Below
The text shown below the segment’s value.
Public Property
IsLocked
Indicates if this segment is locked.
Public Property
Code Example
IsReadOnly
Identifies if the object is read-only or modifiable.
(Inherited from APIObject)
Public Property
LeaderEndPosition
The position of the dimension leader end point.
Public Property
Origin
The segment origin.
Public Property
Prefix
The text shown before the segment’s value.
Public Property
Suffix
The text shown after the segment’s value.
Public Property
Code Example
TextPosition
The position of the dimension text’s drag point.
Public Property
Value
The length of the segment.
Public Property
ValueOverride
The text that replaces the segment’s value.
Public Property
ValueString
The displayed value shown for the dimension segment.
Methods
Name
Description
Public Method
Dispose
Causes the object to release immediately any resources it may be utilizing.
(Inherited from APIObject)
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
IsTextPositionAdjustable
Indicates if this dimension is supported to set/get TextPosition/LeaderPosition.
Public Method
ResetTextPosition
Resets the text position of the segment to the initial position determined by its type and parameters.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)