Configuration Variables for Bentley CAD platforms
Bentley CAD tools are able to locate TerraScan with the help of configuration variables. When you install TerraScan, the installation program will create a configuration file TERRA.CFG which defines the required environment variables. This file is placed in Bentley tool's CONFIG\APPL sub-directory.
For example, C:\USTATION\CONFIG\APPL\TERRA.CFG may contain:
#--------------------------------------------------
# TERRA.CFG - Configuration for Terra Applications
#--------------------------------------------------
TERRADIR=c:/terra/
TERRACFG=$(TERRADIR)config/
TERRADOCS=$(TERRADIR)docs/
MS_MDLAPPS < $(TERRADIR)ma/
%if exists ($(TERRACFG)*.cfg)
% include $(TERRACFG)*.cfg
%endif
This configuration file will include all the configuration files in C:\TERRA\CONFIG directory. TerraScan's configuration file TSCAN.CFG contains:
#------------------------------------------
# TSCAN.CFG - TerraScan Configuration File
#------------------------------------------
TSCAN_DATA=$(TERRADIR)data/
TSCAN_LICENSE=$(TERRADIR)license/
TSCAN_MACRODIR=$(TERRADIR)macro/
# Directory for user preferences (user has write access)
TSCAN_PREF=$(TERRADIR)tscan/
# Directory for settings (may point to read-only directory)
TSCAN_SET=$(TERRADIR)tscan/
# Files for settings (may be shared by organization)
TSCAN_ALIGNREP = $(TSCAN_SET)alrepfmt.inf
TSCAN_OUTFMT = $(TSCAN_SET)outfmt.inf
TSCAN_TRANSFORM = $(TSCAN_SET)trans.inf
TSCAN_TARGETS = $(TSCAN_SET)targets.inf
TSCAN_CODES = $(TSCAN_SET)codes.inf
In a default configuration, Bentley CAD automatically includes these settings as configuration variables. You can check the values for these variables in the Configuration Variables dialog of the Bentley application. In case these variables have not been defined correctly, you should define them manually.
•MS_MDLAPPS should include the directory where TSCAN.MA is located.
•TSCAN_DATA defines a default directory for incoming laser points.
•TSCAN_LICENSE should point to the directory where user license TSCAN.LIC is located.
•TSCAN_MACRODIR defines a directory where macros are searched from.
•TSCAN_SET should point to a directory where settings can be stored. This directory may be shared by an organization and the user may lack write access to it.
•TSCAN_PREF should point to a directory where user preferences can be stored. The user must have write access to this directory.
•TSCAN_ALIGNREP defines the file in which alignment report formats are stored.
•TSCAN_OUTFMT defines the file in which output file formats are stored.
•TSCAN_TRANSFORM defines the file in which coordinate transformations are stored.
•TSCAN_TARGETS defines the file in which target object types are stored.
•TSCAN_CODES defines the file in which EarthData code translation table is stored.