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

DomCR / ACadSharp / 24788042622

22 Apr 2026 03:47PM UTC coverage: 77.123% (+0.05%) from 77.076%
24788042622

push

github

web-flow
Merge pull request #1041 from DomCR/issue/1035_parse-hook

issue-1035 Add progress reporting to CAD file reading process

8457 of 11919 branches covered (70.95%)

Branch coverage included in aggregate %.

332 of 385 new or added lines in 12 files covered. (86.23%)

8 existing lines in 3 files now uncovered.

30460 of 38542 relevant lines covered (79.03%)

153328.51 hits per line

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

68.75
/src/ACadSharp/IO/EntityData.cs
1
namespace ACadSharp.IO;
2

3
/// <summary>
4
/// Represents the common graphical properties associated with a CAD entity.
5
/// </summary>
6
public readonly struct EntityData
7
{
8
        /// <summary>
9
        /// Gets the reference data for the book color of the entity.
10
        /// </summary>
NEW
11
        public ReferenceData BookColor { get; }
×
12

13
        /// <summary>
14
        /// Gets the color of the entity.
15
        /// </summary>
NEW
16
        public Color Color { get; }
×
17

18
        /// <summary>
19
        /// Gets a value indicating whether the entity is invisible.
20
        /// </summary>
NEW
21
        public bool IsInvisible { get; }
×
22

23
        /// <summary>
24
        /// Gets the reference data for the layer the entity belongs to.
25
        /// </summary>
26
        public ReferenceData Layer { get; }
2,907✔
27

28
        /// <summary>
29
        /// Gets the reference data for the line type of the entity.
30
        /// </summary>
31
        public ReferenceData LineType { get; }
2,907✔
32

33
        /// <summary>
34
        /// Gets the line type scale applied to the entity.
35
        /// </summary>
NEW
36
        public double LineTypeScale { get; }
×
37

38
        /// <summary>
39
        /// Gets the line weight of the entity.
40
        /// </summary>
NEW
41
        public LineWeightType LineWeight { get; }
×
42

43
        /// <summary>
44
        /// Initializes a new instance of the <see cref="EntityData"/> struct.
45
        /// </summary>
46
        /// <param name="bookColor">The reference data for the book color.</param>
47
        /// <param name="color">The color of the entity.</param>
48
        /// <param name="isInvisible">A value indicating whether the entity is invisible.</param>
49
        /// <param name="layer">The reference data for the layer.</param>
50
        /// <param name="lineType">The reference data for the line type.</param>
51
        /// <param name="lineTypeScale">The line type scale.</param>
52
        /// <param name="lineWeight">The line weight.</param>
53
        public EntityData(
54
                ReferenceData bookColor,
55
                Color color,
56
                bool isInvisible,
57
                ReferenceData layer,
58
                ReferenceData lineType,
59
                double lineTypeScale,
60
                LineWeightType lineWeight)
61
        {
5,812✔
62
                this.BookColor = bookColor;
5,812✔
63
                this.Color = color;
5,812✔
64
                this.IsInvisible = isInvisible;
5,812✔
65
                this.Layer = layer;
5,812✔
66
                this.LineType = lineType;
5,812✔
67
                this.LineTypeScale = lineTypeScale;
5,812✔
68
                this.LineWeight = lineWeight;
5,812✔
69
        }
5,812✔
70
}
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