FME Transformers: 2024.2
FME Transformers: 2024.2
DGNStyler
Prepares features for output to Bentley Microstation Design V7/V8 by providing a convenient interface to set a variety of Bentley Microstation Design format-specific attributes.
Configuration
Parameters
Color
Color By Level |
Specifies that the pen color will be set by the color of the level specified on an FME Feature, rather than by the RGB color or Index color. (Note that this parameter is only supported by the V8 version of the Design writer.) Format attribute set: igds_color_set_bylevel |
||||||||||||||||||||
Color Type |
Specifies format of the color to use. This applies to both the pen color and the fill color which are together used to render the feature. |
||||||||||||||||||||
RGB Color |
Specifies the pen color that will be used to render the feature. The pen color determines the color of lines, and area boundaries. To edit this parameter, click the browse button to the right of the text field. Format attribute set: fme_color Specifying Colors Colors may be entered directly or chosen from the color picker via the ellipsis button. Syntax
Colors can be specified by RGB values or hex codes. RGB values may be either 24-bit or decimal (0 - 1). If the value type is unclear, as in (1,1,1), the 24-bit interpretation is used. Hex codes are accepted with or without a hash sign (#).
Note Note that when this parameter is specified, the igds_color attribute is removed from the feature and fme_color is set. This is because igds_color overrides fme_color if they are both present.
Note Also note that the RGB color specified by fme_color may be stored as the color table index which most closely approximates it, where the color table is defined as a specific set of RGB colors in the seed file.
|
||||||||||||||||||||
RGB Fill Color |
Specifies the fill color that will be used for the feature. The fill color determines the color used within the boundary of area features. To edit this parameter, click the browse button to the right of the text field. Format attribute set: fme_fill_color Specifying Colors Colors may be entered directly or chosen from the color picker via the ellipsis button. Syntax
Colors can be specified by RGB values or hex codes. RGB values may be either 24-bit or decimal (0 - 1). If the value type is unclear, as in (1,1,1), the 24-bit interpretation is used. Hex codes are accepted with or without a hash sign (#).
Note Note that when this parameter is specified, the igds_fill_color attribute is removed from the feature and fme_fill_color is set. This is because igds_fill_color overrides fme__fill_color if they are both present.
Note Also note that the RGB color specified by fme_color may be stored as the color table index which most closely approximates it, where the color table is defined as a specific set of RGB colors in the seed file.
|
||||||||||||||||||||
Index Number |
Specifies the index of a pen color in a table of colors. The indexed color will be used for the feature. The pen color determines the color of lines, and area boundaries. This parameter can be set to integer value between 0 and 255. Format attribute set: igds_color |
||||||||||||||||||||
Fill Index Number |
Specifies the index of a fill color in a table of colors. The indexed color will be used for the feature. The fill color determines the color used within the boundary of area features. This parameter can be set to integer value between 0 and 255. Format attribute set: igds_fill_color |
Cells
If enabled, point features will be turned into cells and given a cell name, rotation, and size.
Features with other geometry types will not be affected by settings in this section.
Format attributes set: igds_type to igds_cell or igds_shared_cell
Cell Library File |
Specifies the name of an existing Bentley Microstation Design Cell file that will be used by the transformer as a source for cell names. It is not used by the actual Design writer – the cell library file must be specified in the writer’s parameters and should contain the same cell names as the file specified here. Most often, the same file will be used in both the transformer and the writer. Further note that if no cells are to be used, then this parameter can be left blank. |
Cell Name |
Specifies the cell that will be placed at the point location. Click the browse button to pick the name from the set of cells defined in the cell library file. Format attribute set: igds_cell_name |
Cell Mode |
Specifies how a cell will be written. If a value of Library is specified, an igds_cell element is created which is expected to reference a cell definition in the cell library file. Otherwise, if a value of Shared (V8 Only) is specified, then an igds_shared_cell element is created in the destination which does not refer to a cell definition in the cell file definition. (Note that the Shared value for this parameter is only supported by the V8 version of the Design writer.) Format attribute set: igds_type to igds_cell or igds_shared_cell |
Relative Graphic Cells |
Specifies if the graphic cells are to be created as relative graphic cells. Relative graphic cells map the cell members with the lowest level number to the current cell feature's level which becomes a base level for the relative graphic cell. All the subsequent cell members have their levels offset according to the base level. This does not apply to point or shared cells. (Note that this parameter is only supported by the V8 version of the Design writer.) Format attribute set: igds_is_graphic_cell_relative |
Cell Rotation |
Specifies rotation of the cell (in degrees counterclockwise from horizontal). This can be set to any floating-point value between -360.0 to 360.0, or be set to a value taken from an attribute. Format attribute set: igds_cell_rotation |
Cell Size By |
Indicates how the size of the cell will be specified. If master units are chosen, then the cell will be scaled so that its range in x, y, and z covers the specified amounts. If scale factor is chosen, then the amounts in x, y, and z specify the scaling which will be applied to the cell in each of the three axes. |
X |
Specifies the sizing amount for the x axis, which can be a floating-point value or taken from an attribute. Its meaning is dependent on the Block Size By setting described above. Format attributes set: igds_cell_x_scale (if Cell Size By is Scale Factor); igds_cell_size_x (if Cell Size By is Master Units) |
Y |
Specifies the sizing amount for the y axis, which can be a floating-point value or taken from an attribute. Its meaning is dependent on the Block Size By setting described above. Format attributes set: igds_cell_y_scale (if Cell Size By is Scale Factor); igds_cell_size_y (if Cell Size By is Master Units) |
Z |
Specifies the sizing amount for the z axis, which can be a floating-point value or taken from an attribute. Its meaning is dependent on the Block Size By setting described above. Format attribute set: igds_cell_z_scale (if Cell Size By is Scale Factor) |
Lines
If enabled, linear features will be prepared for output to Bentley Microstation Design.
Features with other geometry types will not be affected by settings in this section.
Line Weight |
Specifies an index in the range 0 to 31 which designates the width or thickness of the lines used to render a graphic element. In addition, the line weight may be set to ByLevel, which specifies that the line weight be set by the level specified on an FME Feature. Click the browse button to pick from a visual representation of the possible values. Format attribute set: igds_weight and igds_weight_set_bylevel |
Line Style |
Specifies an index in the range 0 to 7 which designates the style of the lines used to render a graphic element. In addition, the line style may be set to ByLevel, which specifies that the line style be set by the level specified on an FME Feature. Click the browse button to pick from a visual representation of the possible values. Format attribute set: igds_style and igds_style_set_bylevel |
Text
If enabled, text features will be prepared for output to Bentley Microstation Design.
Features with other geometry types will not be affected by settings in this section.
Font Number |
Specifies the font that will be used for the text. Values from 0..511 are RSC fonts, while values from 512..1023 are SHX fonts, and values above 1023 are True Type fonts. Format attribute set: igds_font |
Text Style ID |
Specifies the ID of the textstyle that will be used. If a matching ID is found in the seed file, then that text style information will be applied to this text element as the default style. Any text style options set here will take precedence over the matched default text style information. Format attribute set: igds_textstyle_id |
Text Size |
Specifies the size of the text, measured in ground units. This is stored as the height of the text element. Format attribute set: fme_text_size |
Text Width |
Specifies the width of the text, measured in ground units. If this parameter is not specified, then the Bentley Microstation Design writer uses the Text Size. Format attribute set: igds_text_width_multiplier |
Text Justification |
Sets the justification code of the text. Format attribute set: igds_justification |
Text Rotation |
Specifies the rotation of the text string. The rotation is measured in degrees counterclockwise up from the horizontal. Format attribute set: fme_rotation |
Bold |
Specifies whether or not the text should have a bold style. Format attribute set: igds_textstyle_bold |
Slant Angle |
Specifies whether or not the text should have an italic style and the angle in degrees at which the text will slant. An angle of 30 degrees is usually used to apply an italic style. Format attribute set: igds_textstyle_slant |
Underline |
Specifies whether or not the text should have an underline style. Format attribute set: igds_textstyle_underline |
Overline |
Specifies whether or not the text should have an overline style. Format attribute set: igds_textstyle_overline |
Additional References
For more information about styling:
- See Bentley Microstation Design Reader/Writer > Feature Representation in the FME Readers and Writers manual. In FME Workbench, select Help > FME Readers and Writers Reference.
Editing Transformer Parameters
Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.
How to Set Parameter Values
Defining Values
There are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters.
Using the Text Editor
The Text Editor provides a convenient way to construct text strings (including regular expressions) from various data sources, such as attributes, parameters, and constants, where the result is used directly inside a parameter.
Using the Arithmetic Editor
The Arithmetic Editor provides a convenient way to construct math expressions from various data sources, such as attributes, parameters, and feature functions, where the result is used directly inside a parameter.
Conditional Values
Set values depending on one or more test conditions that either pass or fail.
Parameter Condition Definition Dialog
Content
Expressions and strings can include a number of functions, characters, parameters, and more.
When setting values - whether entered directly in a parameter or constructed using one of the editors - strings and expressions containing String, Math, Date/Time or FME Feature Functions will have those functions evaluated. Therefore, the names of these functions (in the form @<function_name>) should not be used as literal string values.
Content Types
These functions manipulate and format strings. | |
Special Characters |
A set of control characters is available in the Text Editor. |
Math functions are available in both editors. | |
Date/Time Functions | Date and time functions are available in the Text Editor. |
These operators are available in the Arithmetic Editor. | |
These return primarily feature-specific values. | |
FME and workspace-specific parameters may be used. | |
Creating and Modifying User Parameters | Create your own editable parameters. |
Dialog Options - Tables
Table Tools
Transformers with table-style parameters have additional tools for populating and manipulating values.
Row Reordering
|
Enabled once you have clicked on a row item. Choices include:
|
Cut, Copy, and Paste
|
Enabled once you have clicked on a row item. Choices include:
Cut, copy, and paste may be used within a transformer, or between transformers. |
Filter
|
Start typing a string, and the matrix will only display rows matching those characters. Searches all columns. This only affects the display of attributes within the transformer - it does not alter which attributes are output. |
Import
|
Import populates the table with a set of new attributes read from a dataset. Specific application varies between transformers. |
Reset/Refresh
|
Generally resets the table to its initial state, and may provide additional options to remove invalid entries. Behavior varies between transformers. |
Note: Not all tools are available in all transformers.
For more information, see Transformer Parameter Menu Options.
FME Community
The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.
Search for all results about the DGNStyler on the FME Community.