GeometryGym.Ifc.IfcElementAssembly.AddElement C# (CSharp) Method

AddElement() public method

public AddElement ( IfcProduct s ) : bool
s IfcProduct
return bool
		public override bool AddElement(IfcProduct s)
		{
			if (mIsDecomposedBy.Count == 0 || mIsDecomposedBy[0].mRelatedObjects.Count == 0)
			{
				IfcProduct product = mHost as IfcProduct;
				if(product != null)
					product.AddElement(this);
				else
				{
					new IfcRelAggregates(mHost, this);
				}
			}
			return base.AddElement(s);
		}
	}