Please enable JavaScript to view this site.

TerraModeler User Guide

Navigation: Programming Interface

Configuration Variables for Bentley CAD platforms

Scroll Prev Top Next More

Configuration Variables for Bentley CAD platforms

Bentley CAD applications are able to locate TerraModeler with the help of configuration variables. When you install TerraModeler, the installation program creates a configuration file TERRA.CFG which defines the required environment variables. This file is placed in Bentley CAD tool's CONFIG\APPL directory.

For example, C:\...\MICROSTATION\CONFIG\APPL\TERRA.CFG contains:

#-------------------------------------------------------

# TERRA.CFG - Configuration for Terra Applications

#-------------------------------------------------------

TERRADIR=c:/terra/

TERRACFG=$(TERRADIR)config/

MS_MDLAPPS < $(TERRADIR)ma/

MS_HELPPATH < $(TERRADIR)docs/

%if exists ($(TERRACFG)*.cfg)

% include $(TERRACFG)*.cfg

%endif

This configuration file includes the application-specific configuration files in C:\TERRA\CONFIG directory. TerraModeler's configuration file TMODEL.CFG contains:

#-------------------------------------------------------

# TMODEL.CFG - TerraModeler Configuration File

#-------------------------------------------------------

# Directory for storing the user license file (TMODEL.LIC)

TMODEL_LICENSE=$(TERRADIR)license/

# Directory for application settings (TMODEL.INF)

TMODEL_SET=$(TERRADIR)/tmodel/

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 Bentley CAD. In case these variables have not been defined correctly, you should define them manually.

TerraModeler User Guide   01.01.2024   © 2024 Terrasolid Ltd