Show / Hide Table of Contents

Class OrdinateDimension

Represents an ordinate dimension EntityObject.

Inheritance
System.Object
DxfObject
EntityObject
Dimension
OrdinateDimension
Implements
IHasXData
System.ICloneable
Inherited Members
Dimension.DimensionStyleChanged
Dimension.OnDimensionStyleChangedEvent(DimensionStyle, DimensionStyle)
Dimension.DimensionBlockChanged
Dimension.OnDimensionBlockChangedEvent(Block, Block)
Dimension.DimensionStyleOverrideAdded
Dimension.OnDimensionStyleOverrideAddedEvent(DimensionStyleOverride)
Dimension.DimensionStyleOverrideRemoved
Dimension.OnDimensionStyleOverrideRemovedEvent(DimensionStyleOverride)
Dimension.defPoint
Dimension.textRefPoint
Dimension.TextPositionManuallySet
Dimension.TextReferencePoint
Dimension.Style
Dimension.StyleOverrides
Dimension.DimensionType
Dimension.AttachmentPoint
Dimension.LineSpacingStyle
Dimension.LineSpacingFactor
Dimension.Block
Dimension.TextRotation
Dimension.UserText
Dimension.Elevation
Dimension.Update()
EntityObject.LayerChanged
EntityObject.OnLayerChangedEvent(Layer, Layer)
EntityObject.LinetypeChanged
EntityObject.OnLinetypeChangedEvent(Linetype, Linetype)
EntityObject.XDataAddAppReg
EntityObject.OnXDataAddAppRegEvent(ApplicationRegistry)
EntityObject.XDataRemoveAppReg
EntityObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
EntityObject.Reactors
EntityObject.Type
EntityObject.Color
EntityObject.Layer
EntityObject.Linetype
EntityObject.Lineweight
EntityObject.Transparency
EntityObject.LinetypeScale
EntityObject.IsVisible
EntityObject.Normal
EntityObject.Owner
EntityObject.XData
EntityObject.TransformBy(Matrix4)
EntityObject.ToString()
DxfObject.CodeName
DxfObject.Handle
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class OrdinateDimension : Dimension, IHasXData, ICloneable

Constructors

| Improve this Doc View Source

OrdinateDimension()

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension()
| Improve this Doc View Source

OrdinateDimension(Vector2, Vector2, Vector2)

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, Vector2 leaderEndPoint)
Parameters
Type Name Description
Vector2 origin

Origin Vector2 in local coordinates of the ordinate dimension.

Vector2 featurePoint

Base location Vector2 in local coordinates of the ordinate dimension.

Vector2 leaderEndPoint

Leader end Vector2 in local coordinates of the ordinate dimension

Remarks

Uses the difference between the feature location and the leader endpoint to determine whether it is an X or a Y ordinate dimension. If the difference in the Y ordinate is greater, the dimension measures the X ordinate. Otherwise, it measures the Y ordinate.

| Improve this Doc View Source

OrdinateDimension(Vector2, Vector2, Vector2, OrdinateDimensionAxis, DimensionStyle)

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, Vector2 leaderEndPoint, OrdinateDimensionAxis axis, DimensionStyle style)
Parameters
Type Name Description
Vector2 origin

Origin Vector2 in local coordinates of the ordinate dimension.

Vector2 featurePoint

Base location Vector2 in local coordinates of the ordinate dimension.

Vector2 leaderEndPoint

Leader end Vector2 in local coordinates of the ordinate dimension

OrdinateDimensionAxis axis

Length of the dimension line.

DimensionStyle style

The DimensionStyle to use with the dimension.

| Improve this Doc View Source

OrdinateDimension(Vector2, Vector2, Vector2, DimensionStyle)

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, Vector2 leaderEndPoint, DimensionStyle style)
Parameters
Type Name Description
Vector2 origin

Origin Vector2 in local coordinates of the ordinate dimension.

Vector2 featurePoint

Base location Vector2 in local coordinates of the ordinate dimension.

Vector2 leaderEndPoint

Leader end Vector2 in local coordinates of the ordinate dimension

DimensionStyle style

The DimensionStyle to use with the dimension.

Remarks

Uses the difference between the feature location and the leader endpoint to determine whether it is an X or a Y ordinate dimension. If the difference in the Y ordinate is greater, the dimension measures the X ordinate. Otherwise, it measures the Y ordinate.

| Improve this Doc View Source

OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis)

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis)
Parameters
Type Name Description
Vector2 origin

Origin Vector2 of the ordinate dimension.

Vector2 featurePoint

Base location Vector2 in local coordinates of the ordinate dimension.

System.Double length

Length of the dimension line.

OrdinateDimensionAxis axis

Length of the dimension line.

Remarks

The local coordinate system of the dimension is defined by the dimension normal and the rotation value.

| Improve this Doc View Source

OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis, DimensionStyle)

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis, DimensionStyle style)
Parameters
Type Name Description
Vector2 origin

Origin Vector2 of the ordinate dimension.

Vector2 featurePoint

Base location Vector2 in local coordinates of the ordinate dimension.

System.Double length

Length of the dimension line.

OrdinateDimensionAxis axis

Length of the dimension line.

DimensionStyle style

The DimensionStyle to use with the dimension.

Remarks

The local coordinate system of the dimension is defined by the dimension normal and the rotation value.

| Improve this Doc View Source

OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis, Double)

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis, double rotation)
Parameters
Type Name Description
Vector2 origin

Origin Vector2 of the ordinate dimension.

Vector2 featurePoint

Base location Vector2 in local coordinates of the ordinate dimension.

System.Double length

Length of the dimension line.

OrdinateDimensionAxis axis

Length of the dimension line.

System.Double rotation

Angle of rotation in degrees of the dimension lines.

Remarks

The local coordinate system of the dimension is defined by the dimension normal and the rotation value.

| Improve this Doc View Source

OrdinateDimension(Vector2, Vector2, Double, OrdinateDimensionAxis, Double, DimensionStyle)

Initializes a new instance of the OrdinateDimension class.

Declaration
public OrdinateDimension(Vector2 origin, Vector2 featurePoint, double length, OrdinateDimensionAxis axis, double rotation, DimensionStyle style)
Parameters
Type Name Description
Vector2 origin

Origin Vector3 in world coordinates of the ordinate dimension.

Vector2 featurePoint

Base location Vector2 in local coordinates of the ordinate dimension.

System.Double length

Length of the dimension line.

OrdinateDimensionAxis axis

Local axis that measures the ordinate dimension.

System.Double rotation

Angle of rotation in degrees of the dimension lines.

DimensionStyle style

The DimensionStyle to use with the dimension.

Remarks

The local coordinate system of the dimension is defined by the dimension normal and the rotation value.

Properties

| Improve this Doc View Source

Axis

Gets or sets the local axis that measures the ordinate dimension.

Declaration
public OrdinateDimensionAxis Axis { get; set; }
Property Value
Type Description
OrdinateDimensionAxis
| Improve this Doc View Source

FeaturePoint

Gets or set the base Vector2 in local coordinates, a point on a feature such as an endpoint, intersection, or center of an object.

Declaration
public Vector2 FeaturePoint { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

LeaderEndPoint

Gets or sets the leader end Vector2 in local coordinates

Declaration
public Vector2 LeaderEndPoint { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

Measurement

Actual measurement.

Declaration
public override double Measurement { get; }
Property Value
Type Description
System.Double
Overrides
Dimension.Measurement
| Improve this Doc View Source

Origin

Gets or sets the origin Vector2 in local coordinates.

Declaration
public Vector2 Origin { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

Rotation

Gets or sets the angle of rotation in degrees of the ordinate dimension local coordinate system.

Declaration
public double Rotation { get; set; }
Property Value
Type Description
System.Double

Methods

| Improve this Doc View Source

BuildBlock(String)

Gets the block that contains the entities that make up the dimension picture.

Declaration
protected override Block BuildBlock(string name)
Parameters
Type Name Description
System.String name

Name to be assigned to the generated block.

Returns
Type Description
Block

The block that represents the actual dimension.

Overrides
Dimension.BuildBlock(String)
| Improve this Doc View Source

CalculateReferencePoints()

Calculate the dimension reference points.

Declaration
protected override void CalculateReferencePoints()
Overrides
Dimension.CalculateReferencePoints()
| Improve this Doc View Source

Clone()

Creates a new OrdinateDimension that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new OrdinateDimension that is a copy of this instance.

Overrides
EntityObject.Clone()
| Improve this Doc View Source

TransformBy(Matrix3, Vector3)

Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.

Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
Type Name Description
Matrix3 transformation

Transformation matrix.

Vector3 translation

Translation vector.

Overrides
EntityObject.TransformBy(Matrix3, Vector3)
Remarks

Matrix3 adopts the convention of using column vectors to represent a transformation matrix.

Implements

IHasXData
System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX