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

DomCR / ACadSharp / 29143042407

11 Jul 2026 06:34AM UTC coverage: 2.912% (-73.0%) from 75.918%
29143042407

push

github

web-flow
Merge pull request #1146 from ilCosmico/acds-read-payload-anchor

Read the AcDs payload area offset from the data segment header

264 of 12999 branches covered (2.03%)

Branch coverage included in aggregate %.

0 of 30 new or added lines in 1 file covered. (0.0%)

31243 existing lines in 465 files now uncovered.

1337 of 41984 relevant lines covered (3.18%)

5.38 hits per line

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

0.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
/// <summary>
8
/// Represents a <see cref="Field"/> object.
9
/// </summary>
10
/// <remarks>
11
/// Object name <see cref="DxfFileToken.ObjectField"/> <br/>
12
/// Dxf class name <see cref="DxfSubclassMarker.Field"/>
13
/// </remarks>
14
[DxfName(DxfFileToken.ObjectField)]
15
[DxfSubClass(DxfSubclassMarker.Field)]
16
public class Field : NonGraphicalObject
17
{
18
        /// <summary>
19
        /// Gets or sets the collection of CAD objects associated with this entity.
20
        /// </summary>
21
        [DxfCodeValue(DxfReferenceType.Count, 97)]
22
        [DxfCollectionCodeValue(DxfReferenceType.Handle, 331)]
UNCOV
23
        public List<CadObject> CadObjects { get; set; } = new();
×
24

25
        /// <summary>
26
        /// Gets the collection of child fields associated with this object.
27
        /// </summary>
28
        [DxfCodeValue(DxfReferenceType.Count, 90)]
29
        [DxfCollectionCodeValue(DxfReferenceType.Handle, 360)]
UNCOV
30
        public CadObjectCollection<Field> Children { get; private set; }
×
31

32
        /// <summary>
33
        /// Gets or sets the error code resulting from the evaluation process.
34
        /// </summary>
35
        [DxfCodeValue(96)]
UNCOV
36
        public int EvaluationErrorCode { get; set; }
×
37

38
        /// <summary>
39
        /// Gets or sets the error message generated during evaluation.
40
        /// </summary>
41
        [DxfCodeValue(300)]
42
        public string EvaluationErrorMessage { get; set; }
×
43

44
        /// <summary>
45
        /// Gets or sets the evaluation option flags that control how the associated expression is evaluated.
46
        /// </summary>
47
        [DxfCodeValue(91)]
48
        public EvaluationOptionFlags EvaluationOptionFlags { get; set; }
×
49

50
        /// <summary>
51
        /// Gets or sets the evaluation status flags that indicate the current state of the object evaluation process.
52
        /// </summary>
53
        /// <remarks>These flags provide information about the outcome or progress of the evaluation, such as whether
54
        /// the evaluation succeeded, failed, or is in progress. The specific meaning of each flag is defined by the
55
        /// EvaluationStatusFlags enumeration.</remarks>
56
        [DxfCodeValue(95)]
57
        public EvaluationStatusFlags EvaluationStatusFlags { get; set; }
×
58

59
        /// <summary>
60
        /// Gets or sets the identifier of the evaluator associated with this entity.
61
        /// </summary>
62
        [DxfCodeValue(1)]
63
        public string EvaluatorId { get; set; }
×
64

65
        /// <summary>
66
        /// Gets or sets the code string representing the field definition in the DXF file.
67
        /// </summary>
68
        /// <remarks>The field code typically contains the raw expression or formula used in the field. This value may
69
        /// be used for parsing or evaluating the field within DXF processing workflows.</remarks>
70
        [DxfCodeValue(2)]
71
        public string FieldCode { get; set; }
×
72

73
        /// <summary>
74
        /// Gets or sets the flags that indicate the current state of the field.
75
        /// </summary>
76
        [DxfCodeValue(94)]
77
        public FieldStateFlags FieldStateFlags { get; set; }
×
78

79
        /// <summary>
80
        /// Gets or sets the set of flags that specify filing options for the associated entity.
81
        /// </summary>
82
        /// <remarks>The filing option flags determine how the entity is processed or stored during serialization. The
83
        /// specific meaning of each flag depends on the context in which the entity is used. Refer to the documentation for
84
        /// the FilingOptionFlags enumeration for details on available options.</remarks>
85
        [DxfCodeValue(92)]
86
        public FilingOptionFlags FilingOptionFlags { get; set; }
×
87

88
        /// <summary>
89
        /// Gets or sets the format string used to control how values are displayed or serialized.
90
        /// </summary>
91
        /// <remarks>The format string determines the representation of values when output or stored. The expected
92
        /// format depends on the context in which this property is used. If the format string is invalid or unsupported, the
93
        /// output may not be formatted as intended.</remarks>
94
        [DxfCodeValue(301)]
95
        public string FormatString { get; set; }
×
96

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

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

103
        [DxfCodeValue(7)]
UNCOV
104
        public CadValue Value { get; set; } = new();
×
105

106
        /// <summary>
107
        /// Gets or sets the collection of CAD values associated with the field.
108
        /// </summary>
109
        [DxfCodeValue(DxfReferenceType.Count, 93)]
110
        [DxfCollectionCodeValue(6)]
UNCOV
111
        public Dictionary<string, CadValue> Values { get; private set; } = new(StringComparer.InvariantCultureIgnoreCase);
×
112

113
        /// <inheritdoc/>
UNCOV
114
        public Field() : base()
×
UNCOV
115
        {
×
UNCOV
116
                this.Children = new(this);
×
UNCOV
117
        }
×
118

119
        //90
120
        //Data type of field value
121

122
        //140
123
        //Double value(if data type of field value is double)
124

125
        //330
126
        //ID value, AcDbSoftPointerId (if data type of field value is ID)
127

128
        //92
129
        //Binary data buffer size(if data type of field value is binary)
130

131
        //310
132
        //Binary data(if data type of field value is binary)
133

134
        internal override void AssignDocument(CadDocument doc)
135
        {
×
136
                base.AssignDocument(doc);
×
137

138
                doc.RegisterCollection(this.Children);
×
139
        }
×
140

141
        internal override void UnassignDocument()
142
        {
×
143
                this.Document.UnregisterCollection(this.Children);
×
144

145
                base.UnassignDocument();
×
146
        }
×
147
}
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