斯潘8
span4
此示例使用FME Workbench将二维房间从CAD平面图转换为IFC中的三维空间。
The source data is an AutoCAD DWG dataset representing a building floor plan.
楼层平面多边形被提升到适当的楼层高度。They possess attributes for the room number (Name)目的(目的)LongName)和天花板高度(Height)
工作区有四个主要部分:
源功能位于与其建筑层相对应的层上。The Sampler transformer groups by this layer (using theautocad_layer属性)为每个故事提取单个功能。attributeCreator创建并将属性设置为fme_feature_type,which represents the AutoCAD layer name.These features are used to create IfcBuildingStorey features to contain the spaces from that story.
二维房间边界由“高度”属性拉伸以创建三维实体。The general properties are set on the feature and converted to geometry traits using the GeometryPropertySetter.In the following GeometryPropertySetter,the geometry name is set to ‘Body',设置表示类型。This will later combine with Property Sets to make up the IfcSpace feature type.
几何图形将从每个房间的副本中删除,然后使用两个副本创建属性集公共空间and身份数据.The properties for each set,随着ifc_属性\设置\名称,are created as attributes then converted to geometry traits.The geometry name is then set to ‘IfcPropertySet'.
The Space geometry and property sets are aggregated together and the link to the parent IfcBuildingStorey is set using the AttributeCreator before writing to the IfcSpace feature type.
取样器变压器从源数据中提取单一特征。The geometry is removed and two copies are used to create the two property set definitions for公共空间and身份数据using two separate IFCPropertySetDefinitionCreators.The definition for公共空间不是真正需要的,因为这个属性集是在FME中预先定义的。
为了在数据检查器中查看结果,使用输出文件添加数据集。在你按下OK之前,go into the Parameters,几何条件下,and set ‘Read IfcSpace Geometries' to ‘Yes' in order to display the space geometry in the Viewer.
The result displayed in the Data Inspector.
When we open the output file in an IFC viewer like DDS-CAD or Solibri,我们可以看到空间有它们的几何结构,常规属性和属性集都正确写入。
使用DDS-CAD查看IFC空间时,you will need to turn on the visibility of IfcSpace in the IFC File Object Types tab.默认情况下,将文件加载到查看器时,the visibility for IfcSpace will be off.
Data was obtained from an Autodesk Revit sample and converted using FME.
Hi!
This is Amazing,我确实是个笨蛋,但我正在尝试获取您在AutoCAD中拥有的“额外”属性,但我无法找到如何向AutoCAD中的一个对象添加额外信息。How you got this OD properties in your Polyline?
Hi阿非萨,
可以使用AutoCAD Map3D编写器(仅在Windows 64位版本中可用)在FME中创建OD属性。To create them in AutoCAD,you need to use AutoCAD Map 3D or Civil 3D.
© 2019 亚搏在线Safe Software Inc |合法的