Ejemplo n.º 1
0
 /// <summary>
 /// Adds the specified element to the decomposition of this element
 /// </summary>
 /// <param name="element"></param>
 public void AddDecomposingElement(XbimBuildingElement element)
 {
     IfcBuildingElement.AddDecomposingObjectToFirstAggregation(Document.Model, element.IfcBuildingElement);
 }
 /// <summary>
 /// Adds element as element contained in the spatial structure element.
 /// </summary>
 /// </summary>
 /// <param name="element">Building element to be added</param>
 public void AddContainedBuildingElement(XbimBuildingElement element)
 {
     _spatialElement.AddElement(element.IfcBuildingElement);
 }
Ejemplo n.º 3
0
 public void AddBoundingElement(XbimBuildingElement element, XbimPhysicalOrVirtualEnum type, XbimInternalOrExternalEnum external)
 {
     IfcElement el = element.IfcBuildingElement;
     if (el == null) return;
     Space.AddBoundingElement(_document.Model, el, GetIfcPhysicalOrVirtualEnum(type), GetIfcInternalOrExternalEnum(external));
 }
Ejemplo n.º 4
0
 public double? GetVolumeForElement(XbimBuildingElement buildingElement)
 {
     XbimMaterialQuantities quantities = buildingElement.MaterialQuantities;
     return quantities.GetMaterialVolume(this);
 }
Ejemplo n.º 5
0
 new public void AddDecomposingElement(XbimBuildingElement element)
 {
     if (!CanBeDecomposedByElements) throw new Exception("Roof has its own geometry or material layers usage. So it can not be decomposed.");
     IfcRoof.AddDecomposingObjectToFirstAggregation(_document.Model, element.IfcBuildingElement);
 }