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

DomCR / ACadSharp / 17737836230

15 Sep 2025 03:12PM UTC coverage: 2.092% (-76.2%) from 78.245%
17737836230

push

github

web-flow
Merge pull request #790 from DomCR/addflag-refactor

addflag refactor

141 of 9225 branches covered (1.53%)

Branch coverage included in aggregate %.

0 of 93 new or added lines in 10 files covered. (0.0%)

24910 existing lines in 372 files now uncovered.

724 of 32119 relevant lines covered (2.25%)

5.76 hits per line

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

0.0
/src/ACadSharp/IO/CadWriterConfiguration.cs
1
using ACadSharp.Classes;
2

3
namespace ACadSharp.IO
4
{
5
        /// <summary>
6
        /// Configuration for the <see cref="CadWriterBase{T}"/> class.
7
        /// </summary>
8
        public class CadWriterConfiguration
9
        {
10
                /// <summary>
11
                /// The writer will close the stream once the operation is completed.
12
                /// </summary>
13
                /// <value>
14
                /// default: true
15
                /// </value>
UNCOV
16
                public bool CloseStream { get; set; } = true;
×
17

18
                /// <summary>
19
                /// Resets the <see cref="DxfClass"/> collection in the <see cref="CadDocument"/> before writing it.
20
                /// </summary>
21
                /// <remarks>
22
                /// Sometimes the files are corrupted by badly formed dxf classes, is recommended to keep this flag set.
23
                /// </remarks>
24
                /// <value>
25
                /// default: true
26
                /// </value>
UNCOV
27
                public bool ResetDxfClasses { get; set; } = true;
×
28

29
                /// <summary>
30
                ///  Update the blocks that visualize the dimensions in the model space.
31
                /// </summary>
32
                /// <remarks>
33
                /// When creating or modifying a dimension in a block, it needs to be updated in order to appear in the drawing.
34
                /// </remarks>
35
                /// <value>
36
                /// default: false
37
                /// </value>
UNCOV
38
                public bool UpdateDimensionsInBlocks { get; set; } = false;
×
39

40
                /// <summary>
41
                /// Update the blocks that visualize the dimensions in the blocks.
42
                /// </summary>
43
                /// <remarks>
44
                /// The dimensions in the model space are automatically updated by the drawing software, is not recommended to update them if is not needed.
45
                /// </remarks>
46
                /// <value>
47
                /// default: false
48
                /// </value>
UNCOV
49
                public bool UpdateDimensionsInModel { get; set; } = false;
×
50

51
                /// <summary>
52
                /// The writer will not ignore the <see cref="ACadSharp.XData.ExtendedData"/> collection in the <see cref="CadObject"/>.
53
                /// </summary>
54
                /// <value>
55
                /// default: true
56
                /// </value>
UNCOV
57
                public bool WriteXData { get; set; } = true;
×
58

59
                /// <summary>
60
                /// The writer will not ignore the <see cref="ACadSharp.Objects.XRecord"/> objects in the document.
61
                /// </summary>
62
                /// <remarks>
63
                /// Due the complexity of XRecords, if this flag is set to true, it may cause a corruption of the file.
64
                /// </remarks>
65
                /// <value>
66
                /// default: false
67
                /// </value>
UNCOV
68
                public bool WriteXRecords { get; set; } = false;
×
69

70
                /// <summary>
71
                /// The writer will not ignore the <see cref="ACadSharp.Entities.Shape"/> entities in the document.
72
                /// </summary>
73
                /// <remarks>
74
                /// Shapes can cause corruption for some documents due the lack of support for shx files in this library which cannot validate the correct shape format.
75
                /// </remarks>
UNCOV
76
                public bool WriteShapes { get; set; } = false;
×
77
        }
78
}
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