// ------------------------------------------------------------------------------
// <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 @IfcGrid : IIfcGrid
	{

		[CrossSchemaAttribute(typeof(IIfcGrid), 8)]
		IItemSet<IIfcGridAxis> IIfcGrid.UAxes 
		{ 
			get
			{
			
				return new Common.Collections.ProxyItemSet<GeometricConstraintResource.IfcGridAxis, IIfcGridAxis>(UAxes);
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcGrid), 9)]
		IItemSet<IIfcGridAxis> IIfcGrid.VAxes 
		{ 
			get
			{
			
				return new Common.Collections.ProxyItemSet<GeometricConstraintResource.IfcGridAxis, IIfcGridAxis>(VAxes);
			} 
		}

		[CrossSchemaAttribute(typeof(IIfcGrid), 10)]
		IItemSet<IIfcGridAxis> IIfcGrid.WAxes 
		{ 
			get
			{
			
				return new Common.Collections.ProxyItemSet<GeometricConstraintResource.IfcGridAxis, IIfcGridAxis>(WAxes);
			} 
		}

		private  Ifc4.Interfaces.IfcGridTypeEnum? _predefinedType;


		[CrossSchemaAttribute(typeof(IIfcGrid), 11)]
		Ifc4.Interfaces.IfcGridTypeEnum? IIfcGrid.PredefinedType 
		{ 
			get
			{
				return _predefinedType;
			} 
			set
			{
				SetValue(v => _predefinedType = v, _predefinedType, value, "PredefinedType", -11);
				
			}
		}
		IEnumerable<IIfcRelContainedInSpatialStructure> IIfcGrid.ContainedInStructure 
		{ 
			get
			{
				return Model.Instances.Where<IIfcRelContainedInSpatialStructure>(e => e.RelatedElements != null &&  e.RelatedElements.Contains(this), "RelatedElements", this);
			} 
		}
	//## Custom code
	//##
	}
}