// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool Xbim.CodeGeneration 
//  
//     Changes to this file may cause incorrect behaviour and will be lost if
//     the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------

using Xbim.Ifc4.Interfaces;
using System.Collections.Generic;
using System.Linq;
using Xbim.Common;

// ReSharper disable once CheckNamespace
namespace Xbim.Ifc2x3.ProductExtension
{
	public partial class @IfcOpeningElement : IIfcOpeningElement
	{

		private  Ifc4.Interfaces.IfcOpeningElementTypeEnum? _predefinedType;


		[CrossSchemaAttribute(typeof(IIfcOpeningElement), 9)]
		Ifc4.Interfaces.IfcOpeningElementTypeEnum? IIfcOpeningElement.PredefinedType 
		{ 
			get
			{
				return _predefinedType;
			} 
			set
			{
				SetValue(v => _predefinedType = v, _predefinedType, value, "PredefinedType", -9);
				
			}
		}
		IEnumerable<IIfcRelFillsElement> IIfcOpeningElement.HasFillings 
		{ 
			get
			{
				return Model.Instances.Where<IIfcRelFillsElement>(e => (e.RelatingOpeningElement as IfcOpeningElement) == this, "RelatingOpeningElement", this);
			} 
		}
	//## Custom code
	//##
	}
}