span8
span4
span8
span4
Non-spatial attribute information can be attached to a DGN element as tags,a Microstation feature.A simple parameter inside FME can help to write FME attributes as MicroStation tags.Tags can be written to MicroStation design files by creating a series of format attributes that define tags and tag sets as well as user attributes that store tag values.
Reading MicroStation tags using FME is covered inthis article.
When adding aDGN Writerto a workspace,the parameters dialog has aWrite tagsparameter with the option of Yes or No.
The same parameter exists in the Navigator window in an existing workspace:
The user should then set up the DGN Writer feature types,using any method they like,with the required attribute schema:
Then - assuming Write Tags is set to yes - when the workspace is run the attribute information from the source features will be written as a set of tags to the MicroStation dataset:
The tagset here is named "Parks" because that is the name of the FME feature type.
When more than one tagset is required,then tags can be defined using format attributes.These attributes tell the Writer which attributes should be used and to which tag set they should belong.The attributes are as follows:
igds_tag_names{}.tagset_name .tagtype .prompt .display .default_value .x_offset .y_offset .z_offset
For example you might define attributes as:
igds_tag_names{0} = ParkNameigds_tag_names{1} = ParkAreaParkName.tagset_name = LeisureParkArea.tagset_name = GroundsMaintenance
This would create two tagsets (Leisure,GroundsMaintenance),each with a single tag (ParkName,ParkArea)
The following example writes a set of parcel boundaries with two different tagsets;one for general parcel information,one for ownership information.Download the template Writing DGN Tags Example (fme20171-microstationtagswriting.fmwt),open with FME Workbench,and inspect it:
Notice that the first section of the workspace reads the parcel data,which has some basic parcel information,and merges in ownership information from an Excel spreadsheet.
The second section bookmarked "Define Tags" consists of five transformers that carry out the creation of attributes to define the tags.
NB: Steps 1a-1d are all part of the AttributeCreator (Step 1)igds_tag_names{0} PARCEL_IDigds_tag_names{1} AREAigds_tag_names{2} PERIMETERigds_tag_names{3} Ownerigds_tag_names{4} OwnershipSince
PARCEL_ID.tagset_name ParcelDataAREA.tagset_name ParcelDataPERIMETER.tagset_name ParcelDataOwner.tagset_name OwnerDataOwnershipSince.tagset_name OwnerData
PARCEL_ID.tagtype 3AREA.tagtype 4PERIMETER.tagtype 4Owner.tagtype 1OwnershipSince.tagtype 3
PARCEL_ID.display yesPARCEL_ID.height 5PARCEL_ID.justification 7
PARCEL_ID.x_offset 10PARCEL_ID.y_offset -17
The result is a set of tags in MicroStation:
MicroStation Text Styles in FME 2015.1 and newer
MicroStation Text Styles in FME 2015.0 and older
Writing Microstation (DGN) Text Nodes with FME
Handling MicroStation (DGN) Dimensions
GIS to CAD: Convert Parcel Polygons and Lines from Geodatabase to DGN
CAD to GIS: Convert Parcel Lines and Text from DGN to Geodatabase
Reading MicroStation (DGN) Tags with FME
How to retain CAD symbology and text in database formats
Using the V7 Microstation Design File reader reports that it is skipping cells
© 2019 亚搏在线Safe Software Inc |Legal