• 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

25.0
/src/ACadSharp/Objects/Field.cs
1
using ACadSharp.Attributes;
2
using System;
3
using System.Collections.Generic;
4

5
namespace ACadSharp.Objects;
6

7
[System.Flags]
8
public enum EvaluationStatusFlags
9
{
10
        NotEvaluated = 1,
11

12
        Success = 2,
13

14
        EvaluatorNotFound = 4,
15

16
        SyntaxError = 8,
17

18
        InvalidCode = 0x10,
19

20
        InvalidContext = 0x20,
21

22
        OtherError = 0x40
23
}
24

25
[System.Flags]
26
public enum FieldStateFlags
27
{
28
        Unknown = 0,
29

30
        Initialized = 1,
31

32
        Compiled = 2,
33

34
        Modified = 4,
35

36
        Evaluated = 8,
37

38
        Cached = 16
39
}
40

41
[System.Flags]
42
public enum FilingOptionFlags
43
{
44
        None = 0,
45

46
        NoFieldResult = 1
47
}
48

49
/// <summary>
50
/// Represents a <see cref="Field"/> object.
51
/// </summary>
52
/// <remarks>
53
/// Object name <see cref="DxfFileToken.ObjectField"/> <br/>
54
/// Dxf class name <see cref="DxfSubclassMarker.Field"/>
55
/// </remarks>
56
[DxfName(DxfFileToken.ObjectField)]
57
[DxfSubClass(DxfSubclassMarker.Field)]
58
public class Field : NonGraphicalObject
59
{
60
        [DxfCodeValue(DxfReferenceType.Count, 97)]
61
        [DxfCollectionCodeValue(DxfReferenceType.Handle, 331)]
62
        //Object ID used in the field code(AcDbSoftPointerId); repeats for the number of object IDs used in the field code
63
        public List<CadObject> CadObjects { get; set; } = new();
1✔
64

65
        [DxfCodeValue(DxfReferenceType.Count, 90)]
66
        [DxfCollectionCodeValue(DxfReferenceType.Handle, 360)]
67
        //Child field ID(AcDbHardOwnershipId); repeats for number of children
68
        public List<Field> Children { get; set; } = new();
1✔
69

70
        [DxfCodeValue(96)]
71
        public int EvaluationErrorCode { get; set; }
1✔
72

73
        [DxfCodeValue(300)]
NEW
74
        public string EvaluationErrorMessage { get; set; }
×
75

76
        [DxfCodeValue(91)]
NEW
77
        public EvaluationOptionFlags EvaluationOptionFlags { get; set; }
×
78

79
        [DxfCodeValue(95)]
NEW
80
        public EvaluationStatusFlags EvaluationStatusFlags { get; set; }
×
81

82
        [DxfCodeValue(1)]
NEW
83
        public string EvaluatorId { get; set; }
×
84

85
        [DxfCodeValue(2)]
NEW
86
        public string FieldCode { get; set; }
×
87

88
        [DxfCodeValue(3)]
NEW
89
        public string FieldCodeOverflow { get; set; }
×
90

91
        [DxfCodeValue(94)]
NEW
92
        public FieldStateFlags FieldStateFlags { get; set; }
×
93

94
        [DxfCodeValue(92)]
NEW
95
        public FilingOptionFlags FilingOptionFlags { get; set; }
×
96

97
        /// <inheritdoc/>
NEW
98
        public override string ObjectName => DxfFileToken.ObjectField;
×
99

100
        /// <inheritdoc/>
NEW
101
        public override string SubclassMarker => DxfSubclassMarker.Field;
×
102

103
        [DxfCodeValue(DxfReferenceType.Count, 93)]
104
        //Number of the data set in the field
105
        public List<object> Values { get; set; } = new();
1✔
106

107
        //6
108
        //Key string for the field data; a key-field pair is repeated for the number of data sets in the field
109

110
        //7
111
        //Key string for the evaluated cache; this key is hard-coded as ACFD_FIELD_VALUE
112

113
        //90
114

115
        //Data type of field value
116
        //140
117

118
        //Double value(if data type of field value is double)
119

120
        //330
121

122
        //ID value, AcDbSoftPointerId (if data type of field value is ID)
123

124
        //92
125

126
        //Binary data buffer size(if data type of field value is binary)
127

128
        //310
129

130
        //Binary data(if data type of field value is binary)
131

132
        [DxfCodeValue(301)]
NEW
133
        public string FormatString { get; set; }
×
134

135
        [DxfCodeValue(9)]
NEW
136
        public string OverflowFormatString { get; set; }
×
137

138

139
}
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