• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 14800288210

02 May 2025 05:36PM UTC coverage: 75.233% (+0.2%) from 75.033%
14800288210

Pull #559

github

web-flow
Merge c9d758d57 into 54827b12d
Pull Request #559: Issue 557 dimension block

5771 of 8439 branches covered (68.38%)

Branch coverage included in aggregate %.

194 of 390 new or added lines in 17 files covered. (49.74%)

51 existing lines in 6 files now uncovered.

23059 of 29882 relevant lines covered (77.17%)

81468.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

62.07
/src/ACadSharp/Entities/DimensionAngular2Line.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Entities
5
{
6
        /// <summary>
7
        /// Represents a <see cref="DimensionAngular2Line"/> entity.
8
        /// </summary>
9
        /// <remarks>
10
        /// Object name <see cref="DxfFileToken.EntityDimension"/> <br/>
11
        /// Dxf class name <see cref="DxfSubclassMarker.Angular2LineDimension"/>
12
        /// </remarks>
13
        [DxfName(DxfFileToken.EntityDimension)]
14
        [DxfSubClass(DxfSubclassMarker.Angular2LineDimension)]
15
        public class DimensionAngular2Line : Dimension
16
        {
17
                /// <inheritdoc/>
18
                public override ObjectType ObjectType => ObjectType.DIMENSION_ANG_2_Ln;
17✔
19

20
                /// <inheritdoc/>
21
                public override string ObjectName => DxfFileToken.EntityDimension;
39✔
22

23
                /// <inheritdoc/>
24
                public override string SubclassMarker => DxfSubclassMarker.Angular2LineDimension;
2,738✔
25

26
                /// <summary>
27
                /// Definition point for linear and angular dimensions (in WCS).
28
                /// </summary>
29
                [DxfCodeValue(13, 23, 33)]
30
                public XYZ FirstPoint { get; set; }
1,593✔
31

32
                /// <summary>
33
                /// Definition point for linear and angular dimensions (in WCS).
34
                /// </summary>
35
                [DxfCodeValue(14, 24, 34)]
36
                public XYZ SecondPoint { get; set; }
1,593✔
37

38
                /// <summary>
39
                /// Definition point for diameter, radius, and angular dimensions (in WCS).
40
                /// </summary>
41
                [DxfCodeValue(15, 25, 35)]
42
                public XYZ AngleVertex { get; set; }
1,592✔
43

44
                /// <summary>
45
                /// Point defining dimension arc for angular dimensions (in OCS).
46
                /// </summary>
47
                [DxfCodeValue(16, 26, 36)]
48
                public XYZ DimensionArc { get; set; }
1,556✔
49

50
                /// <inheritdoc/>
51
                public override double Measurement
52
                {
53
                        get
54
                        {
36✔
55
                                XY v1 = (XY)(this.SecondPoint - this.FirstPoint);
36✔
56
                                XY v2 = (XY)(this.DefinitionPoint - this.AngleVertex);
36✔
57

58
                                return v1.AngleBetweenVectors(v2);
36✔
59
                        }
36✔
60
                }
61

62
                /// <summary>
63
                /// Default constructor.
64
                /// </summary>
65
                public DimensionAngular2Line() : base(DimensionType.Angular)
383✔
66
                {
383✔
67
                }
383✔
68

69
                /// <inheritdoc/>
70
                public override BoundingBox GetBoundingBox()
71
                {
1✔
72
                        return new BoundingBox(this.FirstPoint, this.SecondPoint);
1✔
73
                }
1✔
74

75
                /// <inheritdoc/>
76
                public override void ApplyTransform(Transform transform)
77
                {
×
78
                        base.ApplyTransform(transform);
×
79

80
                        this.FirstPoint = transform.ApplyTransform(this.FirstPoint);
×
81
                        this.SecondPoint = transform.ApplyTransform(this.SecondPoint);
×
82
                        this.AngleVertex = transform.ApplyTransform(this.AngleVertex);
×
83
                        this.DimensionArc = transform.ApplyTransform(this.DimensionArc);
×
84
                }
×
85

86
                public override void UpdateBlock()
NEW
87
                {
×
NEW
88
                        throw new System.NotImplementedException();
×
89
                }
90

91
                public override void CalculateReferencePoints()
NEW
92
                {
×
NEW
93
                        throw new System.NotImplementedException();
×
94
                }
95
        }
96
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc