Design script testing on color, the elements in question are using level symbology.


  
 Applies To 
  
 Product(s):PROJECTWISE INTERPLOT ORGANIZER
 Version(s):N\A
 Environment: N\A
 Area: IPLOT
 Subarea: N\A
 Original Author:Beverly Dawn Gentry, Bentley Technical Support Group
  

Problem

Design script testing on color, the elements in question are using level symbology. This data case worked in v8, but does not in XM. It appears that the difference is the way the level symbology is stored. In XM, you have Symbology: Bylevel and Symbology: Overrides....it seems that our pen table code is not looking at the overrides, but the ByLevel....once I set the ByLevel to match the Overrides, the pen table worked....is this something that changed between V8 and XM? 

Solution

In iplotsrv.cfg:

# (For use with MicroStation V8i)
# IPLOTSRV_DESIGN_SCRIPT_SYMBOLOGY_AS_STORED determines whether or not
# level override symbology is taken into account in a design script.
When
# set to "true", level override symbology is not taken into account when
# querying the element's color, weight, or style. In this mode, the
values
# used in 'if" statements, such as "if (color .eq. 2)", come from the
# header of the element and are never dependent on the view being
printed.
# This is the default behavior. When this variable is set to "false",
# and level override symbology is in use, the design script symbology is
# taken from the level overrides.

IPLOTSRV_DESIGN_SCRIPT_SYMBOLOGY_AS_STORED = true