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

DomCR / ACadSharp / 22516092443

28 Feb 2026 07:20AM UTC coverage: 76.4% (-0.9%) from 77.295%
22516092443

push

github

web-flow
Merge pull request #987 from DomCR/issue-973_vertex-layer-update

issue-973 polyline match vertices props

8190 of 11652 branches covered (70.29%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 2 files covered. (100.0%)

1132 existing lines in 12 files now uncovered.

29627 of 37847 relevant lines covered (78.28%)

149864.28 hits per line

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

33.33
/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)]
23
        public List<CadObject> CadObjects { get; set; } = new();
1✔
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)]
30
        public CadObjectCollection<Field> Children { get; private set; }
1✔
31

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

38
        /// <summary>
39
        /// Gets or sets the error message generated during evaluation.
40
        /// </summary>
41
        [DxfCodeValue(300)]
UNCOV
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)]
UNCOV
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)]
UNCOV
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)]
UNCOV
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)]
UNCOV
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)]
104
        public CadValue Value { get; set; } = new();
1✔
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)]
111
        public Dictionary<string, CadValue> Values { get; private set; } = new(StringComparer.InvariantCultureIgnoreCase);
1✔
112

113
        /// <inheritdoc/>
114
        public Field() : base()
1✔
115
        {
1✔
116
                this.Children = new(this);
1✔
117
        }
1✔
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)
UNCOV
135
        {
×
136
                base.AssignDocument(doc);
×
137

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

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

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