Applies To | |||
Product(s): | Bentley Geo Web Publisher | ||
Version(s): | 08.11.11.61 | ||
Environment: | N/A | ||
Area: | Data Source | ||
Subarea: | DGN/DGN XFM | ||
Original Author: | Nelson Hobdell, Bentley Technical Support Group | ||
When color 7 (specifically) has been defined as 'white' within an input file's color table, elements utilizing color 7 of the table may plot as black due to MicroStation plotting color inversion characteristics. That which follow are strategies for rectifying this scenario.
Baseline graphics: Color 7 and color 0 shown in MicroStation's view window 1 as white (shape outlines), yet are 'plotted' as black during idprcnv.exe / Automated iDPR conversion:
01 Within a comparable MicroStation build, or utilizing the GWPMSEngine.exe delivered within Geo Web Publisher, load an example of the affected file and launch the plot dialog (File>Print )
02 Print>Resymbolization>New Pen Table
03 From the resulting Modify Pen Table dialog, populate [Element Selection Criteria] Color... with the value '7'
04 Switch to the [Element Output Actions] tab, engage the Color: toggle, and choose By RGB for the output color definition. Select the resulting Color... button, and set the desired color to 255,255,255 for white. * Depending on the source color table, you may select another acceptable white via the desired index number if preferred.
05 Preview the results of the pentable to ensure the desired outcome.
06 When as desired, File>Save the modified pen table, noting the path and filename for future steps:
07 Apply the pentable to the idprcnv.exe / Automated iDPR routine.
For Automated iDPR routines:
Launch the Geo Web Publisher Administrator (as Administrator), login to the desired Geo Web Publisher Server, and locate the desired Automated iDPR routine. Select the Filtering tab.
Use the folder selection button to browse to and select the pen table.
Apply changes.
For idprcnv.exe syntax:
See "Pentable" Argument:
http://docs.bentley.com/en/GeoPublisher/GUID-2E8A339D-7324-256F-FFBE-E03AA5E282F6.html
08 Re-execute the idprcnv.exe or Automated iDPR routine's process, and refresh the desired Map within the published site, noting the effect of any caching options set previously for the Geo Web Publisher configuration.
Within MicroStation or the GWPMSEngine For the color table utilized, locate a color which is not white for use in variable definition below. For this example we will choose color '1', which corresponds to blue for the color table attached to our test input *.dgn file.
For demonstration purposes herein, we will utilize a copy of the delivered default workspace.
Experienced Administrators may of course wish to modify their own existing custom workspaces.
01 Locate, copy, and rename the copy of the delivered default user configuration file, e.g. :
...\GeoWebPublisher\Engine\WorkSpace\Users\default.ucf > co7_00.ucf
02 Open/Edit the newly created co7_00.ucf within a text editor.
03 Add the variable, applying the definition of the color to swap:
MS_PLT_INVERT_WHITE_COLORS=1
As color 1 is not white within our example, this will make the color inversion moot. No swap will be applied.
Variable Description: MS_PLT_INVERT_WHITE_COLORS :
The MS_PLT_INVERT_WHITE_COLORS variable allows you to override the colors that are automatically inverted from white to black if necessary. If this variable is not defined, the default inverted color numbers are 0 and/or 7, depending on the drawing file format and color table. The syntax for this value is the same as a level number list, with range 0-254.
Thus by setting this, we are releasing color 7 from the inversion which would occur as the default MicroStation behaviour.
* If it is preferable to preserve the color inversion characteristics of white color 0, add color 0 to the variable definition, e.g.
MS_PLT_INVERT_WHITE_COLORS=0,1
04 Save the edited *.ucf file.
05 Apply the workspace to the idprcnv.exe / Automated iDPR routine.
For Automated iDPR routines:
Launch the Geo Web Publisher Administrator (as Administrator), login to the desired Geo Web Publisher Server, and locate the desired Automated iDPR routine. Select the Advanced tab. Select the desired *.ucf, from the User Configuration File: menu.
Apply changes.
For idprcnv.exe syntax:
See "WU" Argument:
http://docs.bentley.com/en/GeoPublisher/GUID-B69DE814-00BE-C21A-70EF-C0B07B05989D.html
06 Re-execute the idprcnv.exe or Automated iDPR routine's process, and refresh the desired Map within the published site, noting the effect of any caching options set previously for the Geo Web Publisher configuration.
MS_PLT_INVERT_WHITE_COLORS=1 . For preservartion of color 0 inversion to black, add color 0 to the variable, e.g. MS_PLT_INVERT_WHITE_COLORS=0,1