/// <summary> /// Creates wall with default parameters of material layer set usage: /// LayerSetDirection = IfcLayerSetDirectionEnum.AXIS1 /// DirectionSense = IfcDirectionSenseEnum.POSITIVE /// OffsetFromReferenceLine = 0 /// </summary> /// <param name="document">DOM document in witch the wall should be created in</param> /// <param name="xbimWallType">Wall type of the wall. It must be created befor the wall is going to be created.</param> internal XbimWall(XbimDocument document, XbimWallType xbimWallType) : base(document) { BaseInit(xbimWallType); _ifcBuildingElement.SetMaterialLayerSetUsage(xbimWallType.IfcMaterialLayerSet, IfcLayerSetDirectionEnum.AXIS2, IfcDirectionSenseEnum.POSITIVE, 0); }
/// <summary> /// Creates wall with specified parameters of material set usage. /// </summary> /// <param name="document">DOM document in witch the wall should be created in</param> /// <param name="xbimWallType">Wall type of the wall. It must be created befor the wall is going to be created.</param> /// <param name="MaterialLayersDirection">Direction of material set (axis)</param> /// <param name="MaterialLayersDirectionSense">Sense of direction of material set</param> /// <param name="MaterialLayersOffsett">Offset of direction of material set</param> internal XbimWall(XbimDocument document, XbimWallType xbimWallType, XbimLayerSetDirectionEnum MaterialLayersDirection, XbimDirectionSenseEnum MaterialLayersDirectionSense, float MaterialLayersOffsett) : base(document) { BaseInit(xbimWallType); EnumConvertor<XbimLayerSetDirectionEnum, IfcLayerSetDirectionEnum> conv1 = new EnumConvertor<XbimLayerSetDirectionEnum, IfcLayerSetDirectionEnum>(); IfcLayerSetDirectionEnum direction = conv1.Conversion(MaterialLayersDirection); EnumConvertor<XbimDirectionSenseEnum, IfcDirectionSenseEnum> conv2 = new EnumConvertor<XbimDirectionSenseEnum, IfcDirectionSenseEnum>(); IfcDirectionSenseEnum sense = conv2.Conversion(MaterialLayersDirectionSense); _ifcBuildingElement.SetMaterialLayerSetUsage(xbimWallType.IfcMaterialLayerSet, direction, sense, MaterialLayersOffsett); }
private void BaseInit(XbimWallType xbimWallType) { _document.Walls.Add(this); _ifcBuildingElement = _document.Model.Instances.New<IfcWallStandardCase>(); _ifcBuildingElement.SetDefiningType(xbimWallType.IfcTypeProduct, _document.Model); }