span8
span4
span8
span4
Please note that this article is for demonstration purposes only in Windows.The data is 不提供.If you require data please see the 场景:维多利亚机场ESRI的地理数据库IMDFarticle
This is the first article in a three-part series about how to convert AutoCAD to Indoor Mapping Data Format (IMDF) using FME, it covers how to preprocess the data.To be successful in this series, all three parts need to be followed.Template files have been provided to use with your data.Keep in mind some transformers might need to have their parameters changed depending on the data that is being transformed.It is a good idea to run the workspace with Feature Caching enabled and monitor the data as it flows through.
Disclaimer:这些文章的意思是每个工作区所做的一个高度概括和过程,其中将数据转换。打开工作区,并检查每个变压器的参数,以了解具体情况。
Windows Operating System
AutoCAD (for Part 2: Preparing the Preprocessed Data)
Google Earth (optional for Part 2: Preparing the Preprocessed Data)
Before moving into FME, ensure that you have created a Master DWG file that contains all of the layers within your building.Attach floor files as Xrefs with the location set to 0,0,0, the scale set to 0, and the rotation 0:
连接各楼层的文件与AutoCAD中的位置,规模,以及0旋转集
IMDF has specific requirements that need to be met in order for the data to be valid.The PreProcess.fmw workspace is part one of three to prepare the data.The first step is to align the floors for the building as well as create attributes with the correct naming convention to meet the IMDF requirements.
之前对准在AutoCAD中查看
The workspace to process the data looks like this:
FME桌面工作区概述转换为IMDF前预处理AutoCAD的DWG
A master DWG file of the building, which should contain references to each of the layer files, is read in.When the reader is added, in the reader feature type parameters, additional AutoCAD and Xref Format Attributes are exposed.
A Tester is then used to separate out only autocad_xref files within the autocad_entity.
Paths to reference files may be absolute or relative.Another Tester is used to separate out each path type so that they can be dealt with separately.The relative paths go through a FileNamePartExtractor transformer to extract the path name from fme_dataset.Then various transformers are used to turn relative paths into absolute paths.
If the path was already an absolute path, it would have the same _path and _xref attributes created, just without the data cleanup.
Once paths have been cleaned, both types go through a BulkAttributeRemover to remove all attributes starting with autocad_:
前后BulkAttributeRemover后属性
变压器在使用AutoCAD的DWG读取一个FeatureReader从参考文件的功能,使用_path属性指定的文件名。内FeatureReader,AutoCAD的对准和实体的属性被暴露,这将被用于将门符号转换到线重合与壁。
清理和外部参照文件中读取
新IMDF位置特定属性使用AutoCAD的DWG属性创建:
New Attribute | Attribute Value |
_xref | autocad_xref_name |
_file_rot | autocad_rotation |
_file_x_scale | autocad_xscale |
_file_y_scale | autocad_yscale |
_file_z_scale | autocad_zscale |
坐标是从主图提取和主站和基准之间的差值被计算并作为属性存储。这些属性将被用来抵消图。然后,非IMDF特定的属性被删除。
在Offsetter使用提取的坐标
地理参考流程亚搏在线
甲FeatureMerger用于合并这两个外部参照和地理参考工作流程基于一起在_xref属性,合并只属性。亚搏在线
地理参考然后通过旋转,缩放和偏移绘图应用。所有的层和房间现在是在正确的位置。
前和FME数据查验查看地理参考比对后
有了正确的地方所有的层,需要对它们进行分离背出到他们不同的类型:水平(GROS $),单位(RM $)和开口(ADO)。一个FeatureTypeFilter由GROSS $,$ RM和ADO用于过滤。
要创建一个新的属性创建一个名为_outerlayer水平(GROS $),这是对于每个级别的外壁和具有的命名约定
水平改名并在FME数据检查观察
接下来,客房使用由_xref分组的AreaBuilder创建。然后将壁通过转换双线壁成一个单一的线间取;这是通过使用WallThinner定制变压器完成。最后,属性_outerlayer创建具有的价值
前和FME数据查验观看WallThinner定制变压器后墙壁
转换门开口是有点复杂。首先,门线需要被卡合在一起,然后组合以创建表示每个门的单个线。那么双CoordinateExtractors用于提取每个门终点,创造顶点。
然后,顶点捕捉到使用AnchorSnappers墙壁。最后,属性_outerlayer被创建,并与属性值
从坐标门连接创建端点,在FME数据检查观察
在DWG前的最后一个步骤写出来在AutoCAD中手工加工。所述autocad_alignment_x / Y / Z的属性被删除,则该属性_outlayer与
_outlayer和autocad_justification属性创建
笔者设置写出来与图层名称_outerlayer AutoCAD的DWG格式。运行翻译,那么在AutoCAD中打开DWG文件了。继续第2部分学习如何编辑在AutoCAD文件。
比对后,在AutoCAD中查看
© 2020 Safe Software Inc |Legal