예제 #1
0
        internal XbimPlate(XbimDocument document, XbimPlateType xbimPlateType)
            : base(document)
        {
            BaseInit(xbimPlateType);
            _ifcBuildingElement.SetMaterialLayerSetUsage(xbimPlateType.IfcMaterialLayerSet, IfcLayerSetDirectionEnum.AXIS1, IfcDirectionSenseEnum.POSITIVE, 0);

        }
예제 #2
0
        internal XbimPlate(XbimDocument document, XbimPlateType xbimPlateType, XbimLayerSetDirectionEnum MaterialLayersDirection, XbimDirectionSenseEnum MaterialLayersDirectionSense, float MaterialLayersOffsett)
            : base(document)
        {
            BaseInit(xbimPlateType);
            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(xbimPlateType.IfcMaterialLayerSet, direction, sense, MaterialLayersOffsett);

        }
예제 #3
0
 private void BaseInit(XbimPlateType xbimPlateType)
 {
     _document.Plates.Add(this);
     _ifcBuildingElement = _document.Model.Instances.New<IfcPlate>();
     _ifcBuildingElement.SetDefiningType(xbimPlateType.IfcTypeProduct, _document.Model);
 }