Show / Hide Table of Contents

Class AlignedDimension

Represents a dimension EntityObject that is aligned the reference line.

Inheritance
System.Object
DxfObject
EntityObject
Dimension
AlignedDimension
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 AlignedDimension : Dimension, IHasXData, ICloneable

Constructors

| Improve this Doc View Source

AlignedDimension()

Initializes a new instance of the AlignedDimension class.

Declaration
public AlignedDimension()
| Improve this Doc View Source

AlignedDimension(Line, Double)

Initializes a new instance of the AlignedDimension class.

Declaration
public AlignedDimension(Line referenceLine, double offset)
Parameters
Type Name Description
Line referenceLine

Reference Line of the dimension.

System.Double offset

Distance between the reference line and the dimension line.

Remarks

The reference points define the distance to be measure.

| Improve this Doc View Source

AlignedDimension(Line, Double, DimensionStyle)

Initializes a new instance of the AlignedDimension class.

Declaration
public AlignedDimension(Line referenceLine, double offset, DimensionStyle style)
Parameters
Type Name Description
Line referenceLine

Reference Line of the dimension.

System.Double offset

Distance between the reference line and the dimension line.

DimensionStyle style

The DimensionStyle to use with the dimension.

Remarks

The reference points define the distance to be measure.

| Improve this Doc View Source

AlignedDimension(Line, Double, Vector3)

Initializes a new instance of the AlignedDimension class.

Declaration
public AlignedDimension(Line referenceLine, double offset, Vector3 normal)
Parameters
Type Name Description
Line referenceLine

Reference Line of the dimension.

System.Double offset

Distance between the reference line and the dimension line.

Vector3 normal

Normal vector of the plane where the dimension is defined.

Remarks

The reference points define the distance to be measure.

| Improve this Doc View Source

AlignedDimension(Line, Double, Vector3, DimensionStyle)

Initializes a new instance of the AlignedDimension class.

Declaration
public AlignedDimension(Line referenceLine, double offset, Vector3 normal, DimensionStyle style)
Parameters
Type Name Description
Line referenceLine

Reference Line of the dimension.

System.Double offset

Distance between the reference line and the dimension line.

Vector3 normal

Normal vector of the plane where the dimension is defined.

DimensionStyle style

The DimensionStyle to use with the dimension.

Remarks

The reference line define the distance to be measure.

| Improve this Doc View Source

AlignedDimension(Vector2, Vector2, Double)

Initializes a new instance of the AlignedDimension class.

Declaration
public AlignedDimension(Vector2 firstPoint, Vector2 secondPoint, double offset)
Parameters
Type Name Description
Vector2 firstPoint

First reference Vector2 of the dimension.

Vector2 secondPoint

Second reference Vector2 of the dimension.

System.Double offset

Distance between the reference line and the dimension line.

Remarks

The reference points define the distance to be measure.

| Improve this Doc View Source

AlignedDimension(Vector2, Vector2, Double, DimensionStyle)

Initializes a new instance of the AlignedDimension class.

Declaration
public AlignedDimension(Vector2 firstPoint, Vector2 secondPoint, double offset, DimensionStyle style)
Parameters
Type Name Description
Vector2 firstPoint

First reference Vector2 of the dimension.

Vector2 secondPoint

Second reference Vector2 of the dimension.

System.Double offset

Distance between the reference line and the dimension line.

DimensionStyle style

The DimensionStyle to use with the dimension.

Remarks

The reference points define the distance to be measure.

Properties

| Improve this Doc View Source

DimLinePosition

Gets the location of the dimension line.

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

FirstReferencePoint

Gets or sets the first definition point of the dimension in OCS (object coordinate system).

Declaration
public Vector2 FirstReferencePoint { 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
Remarks

The dimension is always measured in the plane defined by the normal.

| Improve this Doc View Source

Offset

Gets or sets the distance between the reference line and the dimension line.

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

The offset value must be equal or greater than zero.
The side at which the dimension line is drawn depends of the direction of its reference line.

| Improve this Doc View Source

SecondReferencePoint

Gets or sets the second definition point of the dimension in OCS (object coordinate system).

Declaration
public Vector2 SecondReferencePoint { get; set; }
Property Value
Type Description
Vector2

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 AlignedDimension that is a copy of the current instance.

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

A new AlignedDimension that is a copy of this instance.

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

SetDimensionLinePosition(Vector2)

Calculates the dimension offset from a point along the dimension line.

Declaration
public void SetDimensionLinePosition(Vector2 point)
Parameters
Type Name Description
Vector2 point

Point along the dimension line.

| 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