IFC(Industry Foundation Classes)是一种通过数字化建模实现建筑和工程过程信息交流和共享的标准。IFC4是当前最新的IFC版本,实现了多种CAD软件和建筑信息管理系统(BIM)之间的交互。
IFC4文件是一个包含实体和属性信息的文本文件,其结构由XML和EXPRESS数据定义语言描述。一个IFC4文件通常由以下几个部分组成:
IFC的开发由建筑信息模型交流联盟(buildingSMART)组织执行,同样,开发过程中的标准化也是由该组织推动的。IFC4的相关规范文档可以在其网站上找到(https://www.buildingsmart.org/standards/bsi-standards/industry-foundation-classes/)。
此外,一些开源解决方案也提供了IFC4的文档和规范,例如Open BIM工具包(https://github.com/opensourceBIM/BIMserver)。这是一个开源的IFC4服务器,支持通过 Web 服务协议(SOAP)进行IFC4的交互。
以下是一个简单的IFC4示例文件,用于描述一个简单的建筑。
<?xml version="1.0" encoding="UTF-8"?>
<iso_10303_21>
  <header>
    <name>IFC4 Building Model</name>
    <description>A simple representation of a building designed with BIM software</description>
    <authorization>This model is for demonstration purposes only.</authorization>
    <schema_identifiers>(IFC4)</schema_identifiers>
  </header>
  <data>
    <building>
      <type>commercial</type>
      <floor_area>75000</floor_area>
      <storeys>5</storeys>
      <construction_date>2010-05-01</construction_date>
      <status>in_use</status>
      <components>
        <wall id="1">
          <material>Concrete</material>
          <thickness>0.3</thickness>
          <length>10.0</length>
          <height>3.5</height>
        </wall>
        <window id="2">
          <material>Glass</material>
          <area>3.0</area>
        </window>
        <door id="3">
          <material>Metal</material>
          <width>1.5</width>
          <height>2.5</height>
        </door>
      </components>
    </building>
  </data>
</iso_10303_21>
在这个示例中,我们定义了一个商业建筑,具有5层和75,000平方英尺的占地面积。建筑由墙壁(用混凝土制成)、窗户(用玻璃制成)和门(用金属制成)等构成。通过在XML元素中定义每个组件的属性,我们可以创建一个完整的IFC模型。