span8
斯潘4
Please note that this article is for demonstration purposes only.数据是 not supplied.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.为了在这个系列中取得成功,all three parts need to be followed.模板文件已提供用于您的数据。请记住,有些变压器可能需要根据正在转换的数据更改其参数。最好在启用功能缓存的情况下运行工作区,并在数据流过时监视数据。
免责声明:这些文章旨在对每个工作区的功能和转换数据的过程进行高级概述。Open the workspace and examine each transformer's parameters to learn the specifics.
AutoCAD (for Part 2: Preparing the Preprocessed Data)
谷歌地球第2部分可选:准备预处理数据)
在进入FME之前,确保已创建包含建筑内所有层的主dwg文件。将楼层文件作为外部参照附着,位置设置为0,0,0,the scale set to 0,旋转0:
Attach each of the floor files with the location,规模,在AutoCAD中将旋转设置为0
为了使数据有效,IMDF需要满足特定的要求。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中查看对齐之前
处理数据的工作区如下所示:
用于转换为IMDF之前预处理AutoCAD DWG的FME桌面工作区概述
建筑物的主图纸文件,which should contain references to each of the layer files,读入。添加读卡器时,在读卡器功能类型参数中,additional AutoCAD and Xref Format Attributes are exposed.
然后,测试仪将仅用于分离AutoCAD实体中的AutoCAD外部参照文件。
引用文件的路径可以是绝对路径或相对路径。另一个测试仪用于分离每种路径类型,以便分别处理它们。相对路径通过文件名partextractor转换器从fme_数据集中提取路径名。Then various transformers are used to turn relative paths into absolute paths.
If the path was already an absolute path,它将创建相同的路径和外部参照属性,just without the data cleanup.
Once paths have been cleaned,这两种类型都通过BulkAttributeMover删除所有属性,从AutoCAD开始:
BulkAttributeRemover前后的属性
FeatureReader Transformer用于从参考文件中读取AutoCAD DWG功能,using the _path attribute to specify the file name.在“飞毛腿”中,将显示AutoCAD对齐和实体属性,用于将门符号转换为与墙重合的线条。
Clean up and read in Xref files
使用AutoCAD DWG属性创建新的IMDF位置特定属性:
新属性 | 属性值 |
_xref | AutoCAD外部参照名称 |
腐烂病 | AutoCAD旋转 |
_file_x_scale | AutoCADXX刻度 |
_file_y_scale | 自动驾驶仪 |
_file_z_scale | 自动驾驶仪 |
从主图形中提取坐标,计算主图形和参考图形之间的差异并将其存储为属性。These attributes will be used to offset the drawing.然后删除非imdf特定的属性。
Extract coordinates to be used in the Offsetter
Georeferencing 亚搏在线workflow
A FeatureMerger is used to merge both the Xref and Georeferencing 亚搏在线workflows together based on the _xref attribute,merging only attributes.
然后通过旋转应用地理参考,缩放和抵消了绘画。所有层和房间现在都在正确的位置。
在FME数据检查员中查看的地理参考对准前后
所有层都在正确的位置,它们需要分为不同的类型:级别(Gros$),Units (RM$) and Openings (ADO).FeatureTypeFilter用于按总美元过滤,RM $和ADO。
To create the levels (GROS$) a new attribute is created called _outerlayer,这是每个级别的外墙,具有命名约定
Levels renamed and viewed in the FME Data Inspector
下一步,使用按外部参照分组的区域生成器创建房间。然后,通过将双层墙转换为一条线,使墙变薄;this is done by using the WallThinner custom transformer.最后,创建属性outerlayer,其值为
在FME数据检查器中查看的WallThiner自定义变压器前后的墙
将门转换为洞口要复杂一些。First,需要将门线捕捉在一起,然后组合在一起,以创建表示每个门的单行。然后使用两个坐标拉伸器来提取每个门端点并创建顶点。
然后使用锚定捕捉器将顶点捕捉到墙上。最后,the attribute _outerlayer is created,属性值为
从附着坐标的门创建的端点,viewed in the FME Data Inspector
最后一步是在AutoCAD中编写用于手动处理的dwg。The autocad_alignment_x/y/z attributes are removed,那么外地人属性
_outlayer and autocad_justification attribute created
The writer is set up to write out to AutoCAD DWG format with the layer name _outerlayer.Run the translation then open the DWG file up in AutoCAD.继续第2部分学习如何在AutoCAD中编辑文件。
After alignment,viewed in AutoCAD
?2019安全亚搏在线软件公司|合法的