Files
speckle-sharp-connectors/Importers/Ifc/Speckle.Importers.Ifc/Ara3D.StepParser/StepInstance.cs
T
Adam Hathcock d76865e621 moving IFC to connectors repo (#488)
* First pass of moving IFC to connectors repo

* Fix some errors and ignore others

* fix namespaces and exceptions

* fix namespaces

* formatting

* Fix namespaces and move stuff

* add linux ci

* more csproj changes

* importer stuff will be the nuget

* add pack version and to Local sln

* do a nuget push on main

* fix restore
2025-01-15 12:01:45 +00:00

26 lines
600 B
C#

namespace Speckle.Importers.Ifc.Ara3D.StepParser;
public class StepInstance
{
public readonly StepEntity Entity;
public readonly uint Id;
public List<StepValue> AttributeValues => Entity.Attributes.Values;
public string EntityType => Entity?.EntityType.ToString() ?? "";
public StepInstance(uint id, StepEntity entity)
{
Id = id;
Entity = entity;
}
public bool IsEntityType(string str) => EntityType == str;
public override string ToString() => $"#{Id}={Entity};";
public int Count => AttributeValues.Count;
public StepValue this[int i] => AttributeValues[i];
}