斯潘8
span4
本文将向您展示如何将一个AutoCADdwg(*.dwg)文件转换为MicroStationdgn(*.dgn)格式。对于每种道路类型,AutoCAD道路数据分为不同的图层,each of which has a different symbology.We'll use FME to convert this roads data to MicroStation,alter some of the symbology,write DWG attributes to Microstation tags,把这些层合并在一起。
Note:此视频是使用FME版本2016.0创建的。Some of the steps might be slightly different,but the overall process is the same.以下说明适用于2018.0。
Feel free to download and unzip the data (roads.zip file) attached to this article if you'd like to perform these steps yourself as we go along!
The data used in this article originates from open data made available by the温哥华市,British Columbia.It contains information licensed under the Open Government License - Vancouver.
To create the demo,您需要执行以下步骤。
1)启动FME工作台
In Windows this is found under Start > All Programs > FME Desktop > FME Workbench
2) Select Generate Workspace
This is found on the Create Workspace section of the FME Workbench interface.Alternatively,use Ctrl+G as a shortcut.
3) Browse to and select the source (reader) dataset
浏览并选择源AutoCAD数据(roads.dwg)。The file extension for Roads.dwg tells FME what format of data we are working with (Autodesk AutoCAD DWG/DXF).
4) Set the output (writer) format to Bentley Microstation Design (V8) DGN
Select Bentley Microstation Design (V8) DGN for the format for the writer;do this by typing the name into the field until it appears within the dropdown list.
5) Set the output dataset location
将输出位置设置为最适合目录结构的位置。If you are using the template file above,it will write your output to a Roads folder in your template folder (on Windows,C:\Users\USERNAME\AppData\Local\Temp\,将模板数据存储在以wb_template开头的文件夹中)。
6) Modify the input parameters
Click the Parameters button for the reader.The Autodesk AutoCAD DWG/DXF Parameters dialog box opens.
请注意,此对话框中还有如何控制读取dwg数据的其他方面的参数。
7) Modify the writer parameters
Click the Parameters button for the writer.The Bentley MicroStation (V8) Parameters dialog box opens.
8) Modify feature schema ("Schema Mapping")
If we're happy with an exact copy of the source data we could just run this translation now,但我们想先做些改变。
9) Add the DGNStyler transformer
In addition,我们可以通过在FME中使用名为dgnstyler的变压器来修改输出符号。Add a DGNStyler before the Other writer feature type by selecting its input port and typing DGNStyler to bring up the transformer in the Quick Add menu.双击或按Enter键将其添加到画布,现在应该是这样的:
DGNStyler on the canvas
单击dgnstyler以在“参数编辑器”窗口中打开它。Let's add some parameters to style the Other writer feature type:
DgnStyler参数编辑器窗口现在应该如下所示:
DgnStyler参数
10) Click the Run button on the toolbar
Run the workspace by clicking on the green play button.This carries out the translation.
11)在MicroStation查看器中查看DGN文件
Once complete,use a file browser to locate the output dataset.如果我们使用第三方CAD查看器,例如宾利视图to inspect the data,我们将看到,dgn文件中的行数据已使用dgnstyler中指定的符号写入,and DWG attributes have been written into Microstation tags.在这里,您可以看到温哥华的burrard桥是在另一个writer特性类型(虚线)下设计的,它的属性是标记。
DGN tags in our translated data as seen in Bentley View.
如何将shp转换为dwg(esri shapefile转换为autocad)
MicroStation Cells to AutoCAD Blocks
How to Convert DGN to Shape (CAD Levels to GIS Attributes)
FME 2015.1及更新版本中的MicroStation文本样式
MicroStation Text Styles in FME 2015.0 and older
How to Convert MapInfo TAB to Microstation DGN (GIS to CAD)
Reading Basic Geodatabase Annotation - GDB to DGN
© 2019 亚搏在线Safe Software Inc |Legal