Guide to Using DWG and Other Formats
Guide to Using DWG and Other Formats
Guide to Using DWG and Other Formats

Enabling and Disabling Workmode Capabilities

In addition to setting a workmode, you can use a configuration file to control the capabilities (functions) that are enabled or disabled in a specific workmode. The workmode.cfg file lists the variables and syntax that you can use to control various capabilities.

The default location for this file is "..\Program Files\Bentley\Program\MicroStation\config\system\".

Do not edit workmode.cfg in the default location because it will be overwritten when the system is upgraded. Either copy the contents of workmode.cfg to a configuration file of your choice (for example, workspace/standards/standards.cfg), or copy the file to a user location and add the include comment (include workspace/standards/myworkmode.cfg) in the standards.cfg file.

Within a configuration file, a capability may be enabled or disabled using the following syntax:

<WORKMODE VARIABLE> <Operator> <Prefix> <CAPABILITY_NAME>

where:

To enable or disable a function using a configuration file
  1. Using a text editor, copy the contents of the workmode.cfg file to another configuration file (for example, workspace/standards/standards.cfg).

  2. To enable or disable a function in the configuration file, add a line that uses the following syntax: <WORKMODE VARIABLE> <Operator> <Prefix> <CAPABILITY_NAME>
    For example, to allow the creation of levels in all workmodes, key in: _USTN_CAPABILITY < + CAPABILITY_LEVELS_CREATE
    To disable the ability to enter level description in DWG workmode, key in: _USTN_CAPABILITY_DWG < – CAPABILITY_LEVEL_DESCRIPTION

Workmode.cfg syntax

The Workmode.cfg file contains lists of workmode variables, operators, prefixes, and the capabilities that can be enabled or disabled. It also provides details about the file syntax. For additional information, see Configuration Variable File Syntax.

Workmode variables

The following workmode variables can be set:

Workmode Variable

Description

_USTN_CAPABILITY

the capability applies in all workmodes

_USTN_CAPABILITY_DGN

the capability applies in V8 workmode only

_USTN_CAPABILITY_DWG

the capability applies only in DWG workmode

_USTN_CAPABILITY_V7

the capability applies only in V7 workmode

Operators

To define configuration variables, you can use the following operators:

Operator

Description

>

Append the capability variable value to the workmode variable settings.

For example:

_USTN_CAPABILITY > +CAPABILITY_PARASOLID

<

Prepend the capability variable value to the workmode variable settings. For example:

_USTN_CAPABILITY < –CAPABILITY_RASTER_BACKGROUND

Do not use the “=” operator. Using = after the initial definition will override any previous definition, which may result in undesirable or unpredictable behavior.

Prefixes

Use the following prefixes to enable or disable capability variables:

Prefix

Description

+

Enable the capability variable.

-

Disable the capability variable.

Capability variables

The following capabilities can be enabled or disabled:

Capability Variable

Description

CAPABILITY_ALLOW_NON_SHX_STYLES

If enabled, allows non-SHX fonts and styles to be used. If disabled, allows only line styles with symbols that contain SHX fonts or text styles to be used, which ensures full DWG compatibility. When disabled, line style usage is limited so that no additional shapes need to be created when writing a DWG file.

CAPABILITY_BSPLINE_DISPLAY_CONTROL

If enabled, allows by-element control of B-spline curve/surface/polygon display.

CAPABILITY_BYCELL

If enabled, allows ByCell settings for elements.

CAPABILITY_BYLEVEL

If enabled, allows ByLevel settings for elements.

CAPABILITY_CELLPATTERN

If enabled, allows MicroStation cell patterns or AutoCAD named patterns to be used.

CAPABILITY_CELLS_ATTRIBUTE_CHANGES

If enabled, allows sub-component attributes to be modified.

CAPABILITY_COLORTABLE

If enabled, allows color table to be attached.

CAPABILITY_CREATE_COMPOUND_STYLE

If enabled, allows a compound style to be created in the Line Style Editor. If disabled, a compound style cannot be created, which ensures DWG compatibility.

CAPABILITY_CREATE_POINT_STYLE

If enabled, allows a point style to be created in the Line Style Editor. If disabled, a point style cannot be created, which ensures DWG compatibility.

CAPABILITY_CURVE_IN_CMPLXCH

If enabled, allows curves in complex chain/shape.

CAPABILITY_DDDESIGN

If enabled, allows dimension driven design.

CAPABILITY_DEFAULT_FONTS

If enabled, allows default font.rsc to be used.

CAPABILITY_DIMENSION_ALT_LABEL

If enabled, allows alternate labeling for dimensions.

CAPABILITY_DIMENSION_ARBITRARY

If enabled, allows a dimension to be aligned at an arbitrary position.

CAPABILITY_DIMENSION_ARC_ABOVE

If enabled, allows an arc symbol above an angular text display for dimensions.

CAPABILITY_DIMENSION_ARC_LENGTH

If enabled, allows an arc length format for an angular dimension.

CAPABILITY_DIMENSION_BALLNCHAIN

If enabled, allows the ball and chain curve type at all dimension terminators.

CAPABILITY_DIMENSION_CAPSULE_FRAME

If enabled, allows a capsule frame to be used around dimension text.

CAPABILITY_DIMENSION_CELLTERM_HEIGHT

If enabled, allows cell terminators for dimensions to have different width and height.

CAPABILITY_DIMENSION_CUSTOM_PREFIX

If enabled, allows custom prefixes and suffixes for dimensions.

CAPABILITY_DIMENSION_CUSTOM_SYMBOLS

If enabled, allows custom diameter and plus/minus symbols for dimensions.

CAPABILITY_DIMENSION_CUSTOM_UNITS

If enabled, allows custom units for dimensions.

CAPABILITY_DIMENSION_DIMLINE_LEVEL

If enabled, allows dimension lines to be placed on selected levels.

CAPABILITY_DIMENSION_FONT

If enabled, allows font and text style options for dimensions. If disabled, only style option is used.

CAPABILITY_DIMENSION_LSTYLE_OVERRIDE

If enabled, allows line style overrides for dimensions.

CAPABILITY_DIMENSION_METRIC_FORMAT

If enabled, allows unit separation for dimensions at thousandth and millionth.

CAPABILITY_DIMENSION_MINIMUM_LEADER

If enabled, allows minimum leader beyond dimension terminator to be changed.

CAPABILITY_DIMENSION_NEG_EXTOFFSET

If enabled, allows a negative value for dimension extension line offset.

CAPABILITY_DIMENSION_NOSTYLE

If enabled, allows “Style (none)” to be used as the active dimension style.

CAPABILITY_DIMENSION_SCALEFROMMODEL

If enabled, allows you to use dimension geometrical scale per model.

CAPABILITY_DIMENSION_SECONDARY_ZEROS

If enabled, allows separate leading/training zeros for a secondary dimension.

CAPABILITY_DIMENSION_TERM_ATTRIBS

If enabled, allows dimensions terminator symbology.

CAPABILITY_DIMENSION_TERM_FIRST

If enabled, allows the first terminator type for consecutive dimensions.

CAPABILITY_DIMENSION_TERM_JOINT

If enabled, allows the joint terminator type for consecutive dimensions.

CAPABILITY_DIMENSION_TERM_SIDES

If enabled, allows terminator to be inside/outside/reversed.

CAPABILITY_DIMENSION_TERM_SYMBOL

If enabled, allows the terminator character symbol.

CAPABILITY_DIMENSION_TEXT_MARGIN

If enabled, allows separate text margins for left of and above dimension line.

CAPABILITY_DIMENSION_TEXT_WEIGHT

If enabled, allows dimension text weight to be specified.

CAPABILITY_DIMENSION_TEXT_WIDTH

If enabled, allows text width overrides.

CAPABILITY_DIMENSION_UNDERLINE_TEXT

If enabled, allows underlined text for a dimension.

CAPABILITY_DIMENSION_UNIT_FORMAT

If enabled, allows the master units format for dimensions to be changed.

CAPABILITY_DIMENSION_UNIT_LABEL

If enabled, allows master units labels to be set for dimensions.

CAPABILITY_DIMSTYLE_REQUIRESTANDARD

If enabled, style Standard or the last named style cannot be deleted.

CAPABILITY_DWG_INCOMPATIBLE_LINESTYLES

If enabled, all line styles are displayed in the list of available line styles. If disabled, allows only line styles that can be exported to DWG files to be displayed in the list of the available line styles.

CAPABILITY_ELEMENT_CLASS

If enabled, allows element class to be set.

CAPABILITY_GRID_ORIENTATION

If enabled, allows a grid orientation display to be set.

CAPABILITY_IGDS_LINESTYLE

If enabled, allows 1–7 IGDS line styles to be used.

CAPABILITY_INVISGEOM_BYELEMENT

If enabled, allows invisible geometry display to be controlled by element.

CAPABILITY_LEVEL_PLOT

If enabled, allows plot control of levels. A Plot column is added in the Level Manager.

CAPABILITY_LEVELS_CREATE

If enabled, allows level creation.

CAPABILITY_LEVELS_DESCRIPTION

If enabled, allows level descriptions to be used in Level Manager.

CAPABILITY_LEVELS_GLOBALDISPLAY

If enabled, allows levels to be turned on and off using global display.

CAPABILITY_LEVELS_GLOBALFREEZE

If enabled, allows levels to be turned on and off using global freeze.

CAPABILITY_LEVELS_NUMBERS

If enabled, allows level numbers to be used in Level Manager/Level Display.

CAPABILITY_MASK_CLIP

If enabled, allows image clipping (reference or raster).

CAPABILITY_MODEL_ANNOTATION_SCALE_LOCK

If enables, allows use of annotation scale lock toggle.

CAPABILITY_MODEL_CHANGE_TYPE

If enabled, allows model type to be changed.

CAPABILITY_MODEL_CREATE_2D

If enabled, allows 2D models to be created.

CAPABILITY_MODEL_CREATE_3D

If enabled, allows 3D models to be created.

CAPABILITY_MODEL_CREATE_DESIGN

If enabled, allows DGN models to be created.

CAPABILITY_MODEL_CREATE_SHEET

If enabled, allows sheet models to be created.

CAPABILITY_MODEL_DELETE_DESIGN

If enabled, allows design models to be deleted.

CAPABILITY_MODEL_DELETE_LAST_DESIGN

If enabled, allows the last design model to be deleted.

CAPABILITY_MODEL_DELETE_LAST_SHEET

If enabled, allows the last sheet model to be deleted.

CAPABILITY_MODEL_DELETE_SHEET

If enabled, allows the sheet model to be deleted.

CAPABILITY_MODEL_EDIT_PROPERTIES_DESIGN

If enabled, allows properties of design models to be edited.

CAPABILITY_MODEL_EDIT_PROPERTIES_SHEET

If enabled, allows properties of sheet models to be edited.

CAPABILITY_MODEL_WITHOUT_VIEWGROUP

If enabled, allows a model to be created without also creating a view group.

CAPABILITY_MULTILINE_NOSTYLE

If enabled, uses Style-None as the active multi-line style.

CAPABILITY_MULTILINE_REQUIRESTANDARDSTYLE

If enabled, the Standard style can be renamed but not deleted.

CAPABILITY_NAMED_GROUPS

If enabled, allows named groups to be created and used.

CAPABILITY_NOTE_ELBOWLENGTH

If enabled, allows the elbow/hook line length to be set for a note.

CAPABILITY_NOTE_LEFTMARGIN

If enabled, allows the left text margin to be set.

CAPABILITY_NOTE_LOWERMARGIN

If enabled, allows the lower margin to be set.

CAPABILITY_NOTE_MANUALATTACHMENT

If enabled, allows the note leader to be attached to the left or right side of the text.

CAPABILITY_NOTE_VERTICAL_LINE

If enabled, allows a vertical line to be created in a note.

CAPABILITY_PARASOLID

If enabled, allows a Parasolid element to be created.

CAPABILITY_PLACETEXT_DISPLAY_TOGGLES

Controls the tool settings for the Place Text tool. If enabled, when you place text using a style, toggles appear for the tool settings. You must then turn on a tool setting before you can modify it.

CAPABILITY_RASTER_ALL_TYPES

If enabled, allows all supported raster types to be opened.

CAPABILITY_RASTER_APPLYROTATIONANDAFFINITY

If enabled, allows you to turn on/off the raster apply rotation and affinity toggle.

CAPABILITY_RASTER_BACKGROUND

If enabled, allows background color on rasters.

CAPABILITY_RASTER_DISP_GAMMA

If enabled, allows use of display gamma control for rasters.

CAPABILITY_RASTER_DISP_PER_VIEW

If enabled, allows use of display control for rasters.

CAPABILITY_RASTER_GEOREFERENCEPRIORITY

If enabled, allows you to change the raster georeference priority setting.

CAPABILITY_RASTER_INVERT

If enabled, allows you to turn on/off the raster invert toggle.

CAPABILITY_RASTER_PRINT

If enabled, allows use of print control for rasters.

CAPABILITY_RASTER_PRINT_GAMMA

If enabled, allows use of the Print Gamma setting for rasters.

CAPABILITY_RASTER_PROJECT

If enabled, allows use of raster projects.

CAPABILITY_RASTER_TINT

If enabled, allows tint color on rasters.

CAPABILITY_RASTER_TRANSP_FULL_CONTROL

If enabled, allows full control on image transparency settings.

CAPABILITY_REF_ADJUSTCOLORS

If enabled, allows reference colors to be adjusted.

CAPABILITY_REF_AUX_INFO

If enabled, allows logical name and description for a reference attachment.

CAPABILITY_REF_DISP_PER_VIEW

If enabled, allows display control on a per view basis.

CAPABILITY_REF_FROM_URL

If enabled, allows a reference attachment from a URL.

CAPABILITY_REF_NESTING_OPTIONS

If enabled, allows reference nesting.

CAPABILITY_REF_NONDEFAULT_MODEL

If enabled, allows a model other than the default to be used as a reference.

CAPABILITY_REF_SAVE_PATH_REL

If enabled, allows a relative path to be used for reference attachments.

CAPABILITY_REF_RASTERDISPLAY_OFF

If enabled, allows reference and raster display attachments to be turned off.

CAPABILITY_REF_SCALELINESTYLE

If enabled, allows line style scaling when attaching a reference.

CAPABILITY_REFERENCE_3DTO2D

If enabled, allows 2D files to have 3D references.

CAPABILITY_REFERENCE_ATTACHLEVEL

If enabled, allows a reference to be placed on a particular level.

CAPABILITY_REFERENCE_DWG

If enabled, allows DWG references.

CAPABILITY_REFERENCE_V8

If enabled, allows V8 type references.

CAPABILITY_SAVEDVIEWS_APPLY_TO_SHEETS

If enabled, allows saved views to be applied to sheet models.

CAPABILITY_SAVEDVIEWS_CREATE_FOR_SHEETS

If enabled, allows saved views to be created for sheet models.

CAPABILITY_SAVEDVIEWS_DELETE_FOR_SHEETS

If enabled, allows saved views to be deleted from sheet models.

CAPABILITY_SAVEDVIEWS_PROPS_FOR_SHEETS

If enabled, allows saved view properties to be edited for a sheet model.

CAPABILITY_SAVEDVIEWS_UPDATE_FOR_SHEETS

If enabled, allows saved view setting updates for sheet models.

CAPABILITY_SCALE_AXIS_INDEP

If enabled, allows scale factors to be independently modified along the X, Y, and Z axes.

CAPABILITY_SELF_REFERENCE

If enabled, allows a self reference to be attached.

CAPABILITY_SHAREDCELLS_FROM_ATTACHED_LIB

If enabled, allows shared cells from an attached library to be placed.

CAPABILITY_SHAREDCELLS_FROM_REFERENCES

If enabled, allows shared cells from references to be placed.

CAPABILITY_TABLE_DESCRIPTION

If enabled, allows a description to be created for references or dimension styles.

CAPABILITY_TAG_NO_CELL_ELEMS

If enabled, allows a tag element to be attached to non-cell elements.

CAPABILITY_TAGS_COPY_WITH_BASE

If enabled, allows tags to be copied with a base element.

CAPABILITY_TEXT_AUTOSTACKFRACTIONS

If enabled, the word processor text editor creates AutoCAD-type stacked fractions from numeric characters that are separated by a slash (for example, 9/16).

CAPABILITY_TEXT_BACKGROUND

CAPABILITY_TEXT_BACKGROUND_BORDER_X

CAPABILITY_TEXT_BACKGROUND_BORDER_Y

CAPABILITY_TEXT_BACKGROUND_COLOR

CAPABILITY_TEXT_BACKGROUND_FILL_COLOR

CAPABILITY_TEXT_BACKGROUND_STYLE

CAPABILITY_TEXT_BACKGROUND_WEIGHT

CAPABILITY_TEXT_BACKWARDS

CAPABILITY_TEXT_BOLD

CAPABILITY_TEXT_COLOR

CAPABILITY_TEXT_FIXEDSPACING

CAPABILITY_TEXT_FONTS

If enabled, the setting is visible in the Text Styles editor. If disabled, the setting is not visible.

CAPABILITY_TEXT_FONTS_RSC

CAPABILITY_TEXT_FONTS_SHX

CAPABILITY_TEXT_FONTS_TRUETYPE

If enabled, the selected fonts are displayed in font list boxes. If disabled, the fonts are not displayed.

CAPABILITY_TEXT_FRACTIONS

CAPABILITY_TEXT_FULLJUSTIFICATION

CAPABILITY_TEXT_HEIGHT

CAPABILITY_TEXT_INTERCHARACTERSPACING

CAPABILITY_TEXT_ITALICS

CAPABILITY_TEXT_JUSTIFICATION

If enabled, the setting is visible in the Text Styles editor. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_CB

If enabled, the Center Bottom setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_CC

If enabled, the Center Center setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_CT

If enabled, the Center Top setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_LB

If enabled, the Left Bottom setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_LC

If enabled, the Left Center setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_LMB

If enabled, the Left Margin Bottom setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_LMC

If enabled, the Left Margin Center setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_LMT

If enabled, the Left Margin Top setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_LT

If enabled, the Left Top setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_RB

If enabled, the Right Bottom setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_RC

If enabled, the Right Center setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_RMB

If enabled, the Right Margin Bottom setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_RMC

If enabled, the Right Margin Center setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_RMT

If enabled, the Right Margin Top setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_JUSTIFICATION_RT

If enabled, the Right Top setting is visible in Justification list box. If disabled, the setting is not visible.

CAPABILITY_TEXT_LINELENGTH

CAPABILITY_TEXT_LINEOFFSET_X

CAPABILITY_TEXT_LINEOFFSET_Y

CAPABILITY_TEXT_LINESPACING

CAPABILITY_TEXT_LINESPACINGTYPE

CAPABILITY_TEXT_NODEJUSTIFICATION

If enabled, the setting is visible in the Text Styles editor. If disabled, the setting is not visible.

CAPABILITY_TEXT_OVERLINE

CAPABILITY_TEXT_OVERLINE_COLOR

CAPABILITY_TEXT_OVERLINE_OFFSET

CAPABILITY_TEXT_OVERLINE_STYLE

CAPABILITY_TEXT_OVERLINE_WEIGHT

CAPABILITY_TEXT_PARENTTEXTSTYLES

CAPABILITY_TEXT_SHXBIGFONTS

CAPABILITY_TEXT_SLANTANGLE

CAPABILITY_TEXT_SUBSCRIPT

CAPABILITY_TEXT_SUPERSCRIPT

CAPABILITY_TEXT_UNDERLINE

CAPABILITY_TEXT_UNDERLINE_COLOR

CAPABILITY_TEXT_UNDERLINE_OFFSET

CAPABILITY_TEXT_UNDERLINE_STYLE

CAPABILITY_TEXT_UNDERLINE_WEIGHT

CAPABILITY_TEXT_UPSIDEDOWN

CAPABILITY_TEXT_VERTICAL

CAPABILITY_TEXT_WIDTH

If enabled, the setting is visible in the Text Styles editor. If disabled, the setting is not visible.

CAPABILITY_TEXTSTYLE_ACTIVE_DGNSETTINGS

Controls the display of settings for “Style (none)” in the Text Styles editor. If enabled, DGN text style settings are displayed.

CAPABILITY_TEXTSTYLE_ACTIVE_DWGSETTINGS

Controls the display of settings for “Style (none)” in the Text Styles editor. If enabled, only DWG-compatible text style settings are displayed.

CAPABILITY_TEXTSTYLE_STYLE_DGNSETTINGS

Controls the display of settings for text styles in the Text Styles editor. If enabled, DGN text style settings are displayed.

CAPABILITY_TEXTSTYLE_STYLE_DWGSETTINGS

Controls the display of settings for text styles in the Text Styles editor. If enabled, only DWG-compatible text style settings are displayed.

CAPABILITY_TYPE2_CELL

If enabled, type 2 cells can be created.

CAPABILITY_TYPE87_RASTER

If enabled, type 87/88 raster element can be created.

CAPABILITY_TYPE90_ALL

If enabled, allows import of all rasters as type 90 elements.

CAPABILITY_VIEW_ROTATE_SHEET_MODEL_VIEW

If enables, allows sheet model views to be rotated.

CAPABILITY_VIEWATTRIBUTES

If enabled, allows view attributes in a DWG file to be modified.

CAPABILITY_VIEWGROUP_CREATION

If enabled, allows view groups to be created.

CAPABILITY_VIEWGROUP_DELETION

If enabled, allows view groups to be deleted.

CAPABILITY_VIEWGROUP_UPDATE

If enabled, allows view group properties to be updated.

CAPABILITY_WORDPROCESSOR_USE_RSCFRACTIONS

If enabled and an RSC font containing fraction characters is used, the word processor creates an RSC fraction character from numbers separated by a slash (for example, 9/16).