Show / Hide Table of Contents

Class Angular2LineDimension

Represents a 3 point angular dimension EntityObject.

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

Constructors

| Improve this Doc View Source

Angular2LineDimension()

Initializes a new instance of the Angular2LineDimension class.

Declaration
public Angular2LineDimension()
| Improve this Doc View Source

Angular2LineDimension(Line, Line, Double)

Initializes a new instance of the Angular2LineDimension class.

Declaration
public Angular2LineDimension(Line firstLine, Line secondLine, double offset)
Parameters
Type Name Description
Line firstLine

First Line that defines the angle to measure.

Line secondLine

Second Line that defines the angle to measure.

System.Double offset

Distance between the center point and the dimension line.

| Improve this Doc View Source

Angular2LineDimension(Line, Line, Double, DimensionStyle)

Initializes a new instance of the Angular2LineDimension class.

Declaration
public Angular2LineDimension(Line firstLine, Line secondLine, double offset, DimensionStyle style)
Parameters
Type Name Description
Line firstLine

First Line that defines the angle to measure.

Line secondLine

Second Line that defines the angle to measure.

System.Double offset

Distance between the center point and the dimension line.

DimensionStyle style

The DimensionStyle to use with the dimension.

| Improve this Doc View Source

Angular2LineDimension(Line, Line, Double, Vector3)

Initializes a new instance of the Angular2LineDimension class.

Declaration
public Angular2LineDimension(Line firstLine, Line secondLine, double offset, Vector3 normal)
Parameters
Type Name Description
Line firstLine

First Line that defines the angle to measure.

Line secondLine

Second Line that defines the angle to measure.

System.Double offset

Distance between the center point and the dimension line.

Vector3 normal

Normal vector of the plane where the dimension is defined.

| Improve this Doc View Source

Angular2LineDimension(Line, Line, Double, Vector3, DimensionStyle)

Initializes a new instance of the Angular2LineDimension class.

Declaration
public Angular2LineDimension(Line firstLine, Line secondLine, double offset, Vector3 normal, DimensionStyle style)
Parameters
Type Name Description
Line firstLine

First Line that defines the angle to measure.

Line secondLine

Second Line that defines the angle to measure.

System.Double offset

Distance between the center point and the dimension line.

Vector3 normal
DimensionStyle style

The DimensionStyle to use with the dimension.

| Improve this Doc View Source

Angular2LineDimension(Vector2, Vector2, Vector2, Vector2, Double)

Initializes a new instance of the Angular2LineDimension class.

Declaration
public Angular2LineDimension(Vector2 startFirstLine, Vector2 endFirstLine, Vector2 startSecondLine, Vector2 endSecondLine, double offset)
Parameters
Type Name Description
Vector2 startFirstLine

Start Vector2 of the first line that defines the angle to measure.

Vector2 endFirstLine

End Vector2 of the first line that defines the angle to measure.

Vector2 startSecondLine

Start Vector2 of the second line that defines the angle to measure.

Vector2 endSecondLine

End Vector2 of the second line that defines the angle to measure.

System.Double offset

Distance between the center point and the dimension line.

| Improve this Doc View Source

Angular2LineDimension(Vector2, Vector2, Vector2, Vector2, Double, DimensionStyle)

Initializes a new instance of the Angular2LineDimension class.

Declaration
public Angular2LineDimension(Vector2 startFirstLine, Vector2 endFirstLine, Vector2 startSecondLine, Vector2 endSecondLine, double offset, DimensionStyle style)
Parameters
Type Name Description
Vector2 startFirstLine

Start Vector2 of the first line that defines the angle to measure.

Vector2 endFirstLine

End Vector2 of the first line that defines the angle to measure.

Vector2 startSecondLine

Start Vector2 of the second line that defines the angle to measure.

Vector2 endSecondLine

End Vector2 of the second line that defines the angle to measure.

System.Double offset

Distance between the center point and the dimension line.

DimensionStyle style

The DimensionStyle to use with the dimension.

Properties

| Improve this Doc View Source

ArcDefinitionPoint

Gets the location of the dimension line arc.

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

CenterPoint

Gets the center Vector2 of the measured arc in local coordinates.

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

EndFirstLine

End Vector2 of the first line that defines the angle to measure in local coordinates.

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

EndSecondLine

End Vector2 of the second line that defines the angle to measure in OCS (object coordinate system).

Declaration
public Vector2 EndSecondLine { 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 center point and the dimension line.

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

Offset values cannot be negative and, even thought, zero values are allowed, they are not recommended.

| Improve this Doc View Source

StartFirstLine

Start Vector2 of the first line that defines the angle to measure in local coordinates.

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

StartSecondLine

Start Vector2 of the second line that defines the angle to measure in OCS (object coordinate system).

Declaration
public Vector2 StartSecondLine { 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 Angular2LineDimension that is a copy of the current instance.

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

A new Angular2LineDimension 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.

Remarks

The start and end points of the reference lines will be modified, the angle measurement is always made from the direction of the first line to the direction of the second 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

Non-uniform and zero scaling local to the dimension entity are not supported.
The transformation will not be applied if the resulting reference lines are parallel.
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