How to use a MicroStation variable in an IPLOT design script


  
 Applies To 
  
 Product(s):BENTLEY INTERPLOT CLIENT
 Version(s):N\A
 Environment: N\A
 Area: IPLOT
 Subarea: N\A
 Original Author:Marion Powell, Bentley Technical Support Group
  

Problem

How to use a MicroStation variable in an Interplot design script?

Solution

The following example uses the MS_RASTER_DEF_DIR variable:
a) Set the variable in MicroStation (MS_RASTER_DEF_DIR=c:\temp),
b) Place the text ($rasterdirectoryinfo$) in design file
c) Create design script as follows and apply prior to printing

envr_variable = "MS_RASTER_DEF_DIR"
if (characters .eq. "$rasterdirectoryinfo$") then
characters=envr_value
endif