Description

This workspace scans a source dataset (in this case a DGN file) and outputs a text-file listing of all of the feature types contained within it.

How it Works

A single source feature type is set up with a merge filter set to *. This permits all source feature types to pass. The feature type also has the Format Attribute fme_feature_type exposed.

A DuplicateRemover leaves a single instance for each feature type. The AttributeCopier maps the feature type name attribute to the text line attribute for writing.

Workspace Screenshot

User-added image

Output

Although this looks like a list of geometry types, these are actually the layer names in my DGN file...
  • 2 Point Line (type 3)
  • Polyline (type 4)
  • Closed Polyline (type 4)
  • Shape (type 6)
  • Text (Type 17)
  • Multi-Text (Type 7+17)
  • Arc (Type 16)
  • Ellipse (Type 15)
  • Curve (Type 11)
  • Spline (type 27)
  • Point (type 3)
  • MultiLine (Type 36)

Version 2

Version 2 of this workspace is an update that counts the number of features on each layer.

User-added image

Version 2 Output

The output here (from a different source dataset) shows how the feature types are listed with a count of the number of features contained therein. This workspace also sorts the feature types into alphabetical order.
  • Buildings (15921)
  • Rail (4)
  • Rivers (117)
  • Roads (2198)
  • Schools (30)