d76865e621
* 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
26 lines
600 B
C#
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];
|
|
}
|