-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using ACadSharp.Classes; | ||
|
||
namespace ACadSharp.Objects | ||
{ | ||
/// <summary> | ||
/// Class that holds the basic information for an unknown <see cref="NonGraphicalObject"/>. | ||
/// </summary> | ||
/// <remarks> | ||
/// Unknown entities may appear in the <see cref="CadDocument"/> if the cad file contains proxies or objects not yet supported by ACadSharp. | ||
/// </remarks> | ||
public class UnknownNonGraphicalObject : NonGraphicalObject | ||
{ | ||
/// <inheritdoc/> | ||
public override ObjectType ObjectType => ObjectType.UNDEFINED; | ||
|
||
/// <inheritdoc/> | ||
public override string ObjectName | ||
{ | ||
get | ||
{ | ||
if (this.DxfClass == null) | ||
{ | ||
return "UNKNOWN"; | ||
} | ||
else | ||
{ | ||
return this.DxfClass.DxfName; | ||
} | ||
} | ||
} | ||
|
||
/// <inheritdoc/> | ||
public override string SubclassMarker | ||
{ | ||
get | ||
{ | ||
if (this.DxfClass == null) | ||
{ | ||
return DxfSubclassMarker.Entity; | ||
} | ||
else | ||
{ | ||
return this.DxfClass.CppClassName; | ||
} | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Dxf class linked to this entity. | ||
/// </summary> | ||
public DxfClass DxfClass { get; } | ||
|
||
internal UnknownNonGraphicalObject(DxfClass dxfClass) | ||
{ | ||
this.DxfClass = dxfClass; | ||
} | ||
} | ||
} |