internal XbimBuildingElementProxy(XbimDocument document, XbimBuildingElementProxyType xbimBuildingElementProxyType, XbimLayerSetDirectionEnum MaterialLayersDirection, XbimDirectionSenseEnum MaterialLayersDirectionSense, float MaterialLayersOffsett) : base(document) { BaseInit(xbimBuildingElementProxyType); 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(xbimBuildingElementProxyType.IfcMaterialLayerSet, direction, sense, MaterialLayersOffsett); }
internal XbimSlabType(XbimDocument document, string name, string description, XbimSlabTypeEnum predefinedType) : base(document) { BaseInit(name); _ifcTypeProduct.Description = description; EnumConvertor<XbimSlabTypeEnum, IfcSlabTypeEnum> convertor = new EnumConvertor<XbimSlabTypeEnum, IfcSlabTypeEnum>(); IfcSlabTypeEnum type = convertor.Conversion(predefinedType); IfcSlabType.PredefinedType = type; _document.SlabTypes.Add(this); }
public void SetMaterialLayerSetUsage(XbimLayerSetDirectionEnum MaterialLayersDirection, XbimDirectionSenseEnum MaterialLayersDirectionSense, float MaterialLayersOffsett) { 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(ElementType.IfcMaterialLayerSet, direction, sense, MaterialLayersOffsett); }
public void SetSlabType(XbimSlabTypeEnum slabType) { EnumConvertor<IfcSlabTypeEnum, XbimSlabTypeEnum> conv = new EnumConvertor<IfcSlabTypeEnum, XbimSlabTypeEnum>(); IfcSlabTypeEnum type = conv.Conversion(slabType); IfcSlab.PredefinedType = type; }