Files
speckle-sharp-connectors/Importers/Ifc/Speckle.Importers.Ifc/Ara3D.IfcParser/IfcPropSetRelation.cs
T
Jedd Morgan ae4b1b0ab5 Merge pull request #655 from specklesystems/jrm/ifc-collections-data-objects
Send IfcProjects, IfcSites, IfcBuildings, and IfcStoreys as Collections
2025-03-12 08:32:30 +00:00

23 lines
692 B
C#

using Speckle.Importers.Ifc.Ara3D.IfcParser.Schema;
using Speckle.Importers.Ifc.Ara3D.StepParser;
namespace Speckle.Importers.Ifc.Ara3D.IfcParser;
// https://standards.buildingsmart.org/IFC/RELEASE/IFC2x3/TC1/HTML/ifckernel/lexical/ifcreldefinesbyproperties.htm
public class IfcPropSetRelation : IfcRelation
{
public IfcPropSetRelation(IfcGraph graph, StepInstance lineData, StepId from, StepList to)
: base(graph, lineData, from, to) { }
public IfcPropSet PropSet
{
get
{
var node = Graph.GetNode(From);
if (node is not IfcPropSet r)
throw new SpeckleIfcException($"Expected a property set not {node} from id {From}");
return r;
}
}
}