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

DomCR / ACadSharp / 22056180537

16 Feb 2026 08:56AM UTC coverage: 77.283% (-0.3%) from 77.593%
22056180537

Pull #978

github

web-flow
Merge a338464f1 into ae77202b7
Pull Request #978: issue-976 context data

8169 of 11454 branches covered (71.32%)

Branch coverage included in aggregate %.

87 of 256 new or added lines in 16 files covered. (33.98%)

13 existing lines in 5 files now uncovered.

29543 of 37343 relevant lines covered (79.11%)

150779.69 hits per line

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

0.0
/src/ACadSharp/CadValue.cs
1
using ACadSharp.Attributes;
2

3
namespace ACadSharp;
4

5
public enum CadValueType
6
{
7
        /// <summary>
8
        /// Unknown
9
        /// </summary>
10
        Unknown = 0,
11
        /// <summary>
12
        /// 32 bit Long value
13
        /// </summary>
14
        Long = 1,
15
        /// <summary>
16
        /// Double value
17
        /// </summary>
18
        Double = 2,
19
        /// <summary>
20
        /// String value
21
        /// </summary>
22
        String = 4,
23
        /// <summary>
24
        /// Date value
25
        /// </summary>
26
        Date = 8,
27
        /// <summary>
28
        /// 2D point value
29
        /// </summary>
30
        Point2D = 0x10,
31
        /// <summary>
32
        /// 3D point value
33
        /// </summary>
34
        Point3D = 0x20,
35
        /// <summary>
36
        /// Object handle value
37
        /// </summary>
38
        Handle = 0x40,
39
        /// <summary>
40
        /// Buffer value
41
        /// </summary>
42
        Buffer = 0x80,
43
        /// <summary>
44
        /// Result buffer value
45
        /// </summary>
46
        ResultBuffer = 0x100,
47
        /// <summary>
48
        /// General
49
        /// </summary>
50
        General = 0x200
51
}
52

53
public enum CadValueUnitType
54
{
55
        /// <summary>
56
        /// No units.
57
        /// </summary>
58
        NoUnits = 0,
59
        /// <summary>
60
        /// Distance.
61
        /// </summary>
62
        Distance = 1,
63
        /// <summary>
64
        /// Angle.
65
        /// </summary>
66
        Angle = 2,
67
        /// <summary>
68
        /// Area.
69
        /// </summary>
70
        Area = 4,
71
        /// <summary>
72
        /// Volumne.
73
        /// </summary>
74
        Volume = 8,
75
        /// <summary>
76
        /// Currency.
77
        /// </summary>
78
        Currency = 0x10,
79
        /// <summary>
80
        /// Percentage.
81
        /// </summary>
82
        Percentage = 0x20
83
}
84

85
public class CadValue
86
{
87
        [DxfCodeValue(90)]
NEW
88
        public CadValueType ValueType { get; set; }
×
89

90
        [DxfCodeValue(94)]
NEW
91
        public CadValueUnitType Units { get; set; }
×
92

93
        [DxfCodeValue(93)]
NEW
94
        public int Flags { get; set; }
×
95

96
        public bool IsEmpty
97
        {
98
                get
NEW
99
                {
×
NEW
100
                        return (this.Flags & 1) != 0;
×
NEW
101
                }
×
102
                set
NEW
103
                {
×
NEW
104
                        if (value)
×
NEW
105
                        {
×
NEW
106
                                this.Flags |= 0b1;
×
NEW
107
                        }
×
108
                        else
NEW
109
                        {
×
NEW
110
                                this.Flags &= ~0b1;
×
NEW
111
                        }
×
NEW
112
                }
×
113
        }
114

115
        [DxfCodeValue(1)]
NEW
116
        public string Text { get; set; }
×
117

118
        [DxfCodeValue(300)]
NEW
119
        public string Format { get; set; }
×
120

121
        [DxfCodeValue(302)]
NEW
122
        public string FormattedValue { get; set; }
×
123

NEW
124
        public object Value { get; set; }
×
125

126
        /// <inheritdoc/>
127
        public override string ToString()
NEW
128
        {
×
NEW
129
                return this.Value.ToString();
×
NEW
130
        }
×
131
}
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