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

DomCR / ACadSharp / 17065159770

19 Aug 2025 09:16AM UTC coverage: 78.225% (-0.2%) from 78.427%
17065159770

push

github

web-flow
Merge pull request #725 from DomCR/issue-399_proxy-entities

issue 399

6509 of 9051 branches covered (71.91%)

Branch coverage included in aggregate %.

35 of 145 new or added lines in 8 files covered. (24.14%)

1 existing line in 1 file now uncovered.

25266 of 31569 relevant lines covered (80.03%)

104758.74 hits per line

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

27.27
/src/ACadSharp/Objects/ProxyObject.cs
1
using ACadSharp.Attributes;
2
using ACadSharp.Classes;
3
using System.IO;
4

5
namespace ACadSharp.Objects
6
{
7
        /// <summary>
8
        /// Represents a <see cref="ProxyObject"/> entity.
9
        /// </summary>
10
        /// <remarks>
11
        /// Object name <see cref="DxfFileToken.ObjectProxyObject"/> <br/>
12
        /// Dxf class name <see cref="DxfSubclassMarker.ProxyObject"/>
13
        /// </remarks>
14
        [DxfName(DxfFileToken.ObjectProxyObject)]
15
        [DxfSubClass(DxfSubclassMarker.ProxyObject)]
16
        public class ProxyObject : NonGraphicalObject, IProxy
17
        {
18
                /// <inheritdoc/>
19
                [DxfCodeValue(91)]
NEW
20
                public int ClassId { get { return this.DxfClass.ClassNumber; } }
×
21

22
                /// <summary>
23
                /// Object drawing format when it becomes a proxy: <br/>
24
                /// Low word is AcDbDwgVersion. <br/>
25
                /// High word is MaintenanceReleaseVersion.
26
                /// </summary>
27
                [DxfCodeValue(95)]
NEW
28
                public int DrawingFormat { get { return (int)this.Version | (this.MaintenanceVersion << 16); } }
×
29

30
                /// <inheritdoc/>
NEW
31
                public DxfClass DxfClass { get; set; }
×
32

33
                /// <inheritdoc/>
34
                public int MaintenanceVersion { get; set; }
1✔
35

36
                /// <inheritdoc/>
NEW
37
                public override string ObjectName => DxfFileToken.ObjectProxyObject;
×
38

39
                /// <inheritdoc/>
40
                [DxfCodeValue(70)]
41
                public bool OriginalDataFormatDxf { get; set; }
1✔
42

43
                /// <inheritdoc/>
44
                /// <remarks>
45
                /// Always 499
46
                /// </remarks>
47
                [DxfCodeValue(90)]
48
                public int ProxyClassId { get; } = 499;
1✔
49

50
                //93 Size of entity data in bits
51
                //310 Binary entity data(multiple entries can appear) (optional)
52

53
                [DxfCodeValue(310)]
NEW
54
                public Stream BinaryData { get; set; }
×
55

56
                [DxfCodeValue(311)]
NEW
57
                public Stream Data { get; set; }
×
58

59
                //330 or 340
60
                //or 350 or 360
61
                //An object ID(multiple entries can appear) (optional)
62

63
                //94 0 (indicates end of object ID section)
64

65
                /// <inheritdoc/>
NEW
66
                public override string SubclassMarker => DxfSubclassMarker.ProxyObject;
×
67

68
                /// <inheritdoc/>
NEW
69
                public ACadVersion Version { get; set; }
×
70
        }
71
}
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

© 2025 Coveralls, Inc