Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(objects): cnx 931 create archicadobject #200

Merged
19 changes: 19 additions & 0 deletions src/Speckle.Objects/Data/ArchicadObject.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Speckle.Sdk.Models;

namespace Speckle.Objects.Data;

/// <summary>
/// Represents a base class object in Archicad
/// </summary>
[SpeckleType("Objects.Data.ArchicadObject")]
public class ArchicadObject : DataObject, IArchicadObject
{
public required string type { get; set; }

public required string level { get; set; }

[DetachProperty]
public List<ArchicadObject> elements { get; set; }

IReadOnlyList<IArchicadObject> IArchicadObject.elements => elements;
}
9 changes: 9 additions & 0 deletions src/Speckle.Objects/Interfaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ public interface IGisObject : IDataObject
string type { get; }
}

public interface IArchicadObject : IDataObject
{
string type { get; }

string level { get; }

IReadOnlyList<IArchicadObject> elements { get; }
}

public interface INavisworksObject : IDataObject { }


Expand Down
Loading