• 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/BlockReferenceObjectContextData.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using System;
4

5
namespace ACadSharp.Objects;
6

7
/// <summary>
8
/// Represents object context data for a block reference entity, including insertion point, rotation, and scale factors
9
/// in world coordinates.
10
/// </summary>
11
/// <remarks>This type provides context-specific information for block references, such as position and
12
/// transformation parameters, which are used when applying annotation scaling or other context-dependent behaviors. It
13
/// is typically used in scenarios where block references must adapt to different annotation scales or contexts within a
14
/// drawing. All scale factor properties must be non-zero; setting a scale factor to zero will result in an
15
/// exception.</remarks>
16
[DxfName(DxfFileToken.BlkRefObjectContextData)]
17
[DxfSubClass(DxfSubclassMarker.AnnotScaleObjectContextData)]
18
public class BlockReferenceObjectContextData : AnnotScaleObjectContextData
19
{
20
        /// <summary>
21
        /// Gets or sets the insertion point of the entity in world coordinates.
22
        /// </summary>
23
        [DxfCodeValue(10, 20, 30)]
UNCOV
24
        public XYZ InsertionPoint { get; set; }
×
25

26
        /// <inheritdoc/>
27
        public override string ObjectName => DxfFileToken.BlkRefObjectContextData;
×
28

29
        /// <summary>
30
        /// Gets or sets the rotation angle of the entity, in degrees.
31
        /// </summary>
32
        [DxfCodeValue(DxfReferenceType.IsAngle, 50)]
UNCOV
33
        public double Rotation { get; set; }
×
34

35
        /// <summary>
36
        /// X scale factor.
37
        /// </summary>
38
        [DxfCodeValue(41)]
39
        public double XScale
40
        {
41
                get
42
                {
×
43
                        return this._xscale;
×
44
                }
×
45
                set
UNCOV
46
                {
×
UNCOV
47
                        if (value.Equals(0))
×
48
                        {
×
49
                                string name = nameof(this.XScale);
×
50
                                throw new ArgumentOutOfRangeException(name, value, $"{name} value must be none zero.");
×
51
                        }
UNCOV
52
                        this._xscale = value;
×
UNCOV
53
                }
×
54
        }
55

56
        /// <summary>
57
        /// Y scale factor.
58
        /// </summary>
59
        [DxfCodeValue(42)]
60
        public double YScale
61
        {
62
                get
63
                {
×
64
                        return this._yscale;
×
65
                }
×
66
                set
UNCOV
67
                {
×
UNCOV
68
                        if (value.Equals(0))
×
69
                        {
×
70
                                string name = nameof(this.YScale);
×
71
                                throw new ArgumentOutOfRangeException(name, value, $"{name} value must be none zero.");
×
72
                        }
UNCOV
73
                        this._yscale = value;
×
UNCOV
74
                }
×
75
        }
76

77
        /// <summary>
78
        /// Z scale factor.
79
        /// </summary>
80
        [DxfCodeValue(43)]
81
        public double ZScale
82
        {
83
                get
84
                {
×
85
                        return this._zscale;
×
86
                }
×
87
                set
UNCOV
88
                {
×
UNCOV
89
                        if (value.Equals(0))
×
90
                        {
×
91
                                string name = nameof(this.ZScale);
×
92
                                throw new ArgumentOutOfRangeException(name, value, $"{name} value must be none zero.");
×
93
                        }
UNCOV
94
                        this._zscale = value;
×
UNCOV
95
                }
×
96
        }
97

UNCOV
98
        private double _xscale = 1;
×
99

UNCOV
100
        private double _yscale = 1;
×
101

UNCOV
102
        private double _zscale = 1;
×
103
}
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