public void AddPropertySetDefinition(IIfcPropertySetDefinitionSelect pSetDefSelect) { foreach (var pSetDef in pSetDefSelect.PropertySetDefinitions) { AddPropertySetDefinition(pSetDef); } }
public static IIfcRelDefinesByProperties NewIfcRelDefinesByProperties(this IModel s, IIfcPropertySetDefinitionSelect set) { switch (s.SchemaVersion) { case Xbim.Common.Step21.XbimSchemaVersion.Ifc2X3: throw new NotSupportedException($"{typeof(IIfcPropertySetDefinitionSelect)} is not supported by IFC2x3"); case Xbim.Common.Step21.XbimSchemaVersion.Ifc4: case Xbim.Common.Step21.XbimSchemaVersion.Ifc4x1: return(s.NewIfc4PropertyRelation(set as Xbim.Ifc4.Kernel.IfcPropertySetDefinitionSelect)); default: throw new NotImplementedException($"Missing implementation for {s.SchemaVersion}"); } }