Skip to content

Commit

Permalink
Merge pull request #90 from DomCR/DxfClasses-generation
Browse files Browse the repository at this point in the history
Dxf classes generation
  • Loading branch information
DomCR authored Nov 3, 2023
2 parents f0504fa + 893deca commit 6bd2a4e
Show file tree
Hide file tree
Showing 11 changed files with 444 additions and 42 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,5 @@ MigrationBackup/

/local
/samples/local
/local
/samples/out
/ACadTestGenerator
2 changes: 2 additions & 0 deletions ACadSharp/CadDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ internal CadDocument(bool createDefaults)

if (createDefaults)
{
DxfClassCollection.UpdateDxfClasses(this);

//Header and summary
this.Header = new CadHeader(this);
this.SummaryInfo = new CadSummaryInfo();
Expand Down
7 changes: 5 additions & 2 deletions ACadSharp/Classes/DxfClass.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using ACadSharp.Attributes;
using System.Collections.Generic;
using System.Text;

namespace ACadSharp.Classes
{
Expand All @@ -11,6 +9,7 @@ public class DxfClass
/// </summary>
[DxfCodeValue(1)]
public string DxfName { get; set; }

/// <summary>
/// C++ class name. Used to bind with software that defines object class behavior; always unique
/// </summary>
Expand Down Expand Up @@ -57,6 +56,10 @@ public class DxfClass
/// </summary>
public short ItemClassId { get; set; }

public ACadVersion DwgVersion { get; set; }

public short MaintenanceVersion { get; set; }

/// <inheritdoc/>
public override string ToString()
{
Expand Down
Loading

0 comments on commit 6bd2a4e

Please sign in to comment.