span8
span4
span8
span4
This article will cover how to write Microstation text nodes,using multi-line text and text elements as list attributes.Text node featuresare point features and only have a single coordinate.Normally text nodes are used to group together lines of text into a single complex element.However,such text groups are handled by theigds_multi_texttype and not by theigds_text_nodetype,which is used only for text nodes with no attached text.
The key to writing text nodes to MicroStation DGN is to define the text as a list attribute for each node.A list attribute in FME is a way to store multiple values for an attribute.Each value in the list becomes a line of text in the text node.
writing-dgn-text-nodes-1-fme20171.fmwt
writing-dgn-text-nodes-2-fme20171.fmwt
Information is often stored in FME as format attributes.The format attributes for a text node are stored in a list calledigds_text_elements{}and the list features must be associated withigds_typeofigds_multi_text.Setting theigds_typeensures FME knows that these features are text nodes.Here you can see theigds_text_elements{}in a DGN Writer feature type:
For example,to create a text node feature representing pipeline IDs a user could to define:
They could also define any other format attributes,such as the x/y location,or the text font.
Additionally,the user must inform FME that this is a text node by setting:
The first example here involves hard-coding the format attributes using an AttributeCreator.It is as simple of an example as possible.
Download the templateWriting DGN Text Nodes: Example 1,open with FME Workbench and inspect it.
Notice that a simple point feature is created and then format attributes are created for a single text node feature as follows:
This results in a single text node:
A single text node viewed in Microstation.
The following example is more complex,but more realistic.It involves a source dataset of tree types.Each tree is listed under a postal address and there can be multiple trees for each address.
The idea is to create a text node for each address,that lists all of the trees.
Download the templateWriting DGN Text Nodes: Example 2,open with FME Workbench and inspect it.
The first section bookmarked "Read Source Data" reads the trees data,which at this point are non-spatial (tabular),and also merges in an address database in order to turn the trees into spatially referenced point features.
The second section bookmarked "Define Text Nodes" consists of 8 transformers that carry out the creation of a list attribute that defines all our text nodes.
Run the workspace,then view the results in Microstation.
The data used here originates from open data made available by theCity of Vancouver.It contains information licensed under the Open Government License - Vancouver.
MicroStation Text Styles in FME 2015.1 and newer
CAD to GIS: Convert Parcel Lines and Text from DGN to Geodatabase
Writing Microstation (DGN) Tags with FME
Reading MicroStation (DGN) Tags with FME
MicroStation Text Styles in FME 2015.0 and older
Handling MicroStation (DGN) Dimensions
GIS to CAD: Convert Parcel Polygons and Lines from Geodatabase to DGN
How do I convert curved text from Geodatabase to Microstation DGN?
© 2019 亚搏在线Safe Software Inc |Legal