User Alterable Keys
-------------------

Some fine tuning to Arcv2CAD's operation can be achieved via settings
in the A2C25.INI amd STYLES.INI files, especially with regard to
Default settings used by Arcv2CAD.

The .ini file is divided into Sections.  Each Section is headed by
the name of the Section in square brackets, eg  [Arcv2CAD]

Keys that are alterable by the user, listed under their respective
Sections, and their explanations follow:

Note that 'flag' type settings have only 2 settings "0" or "1", where
"0" has the meaning 'off' or 'false', and "1" has the meaning 'on' or
'true'.

Technical Note: 
---------------

Sometimes making a change to the A2C25.INI file may appear to have no
effect.  This is usually because a translation has already been
performed on the same shapefile.  Arcv2CAD stores the settings used
for each translation, and recalls those settings as the defaults for
that shapefile.  These defaults are stored in the DefsDir directory
(usually "C:\arcv2cad\defs") in .def files.   Delete these .def files
if you want to get rid of previous settings.


STYLES.INI 
----------

Entries in this file control the available Text Styles.  These Text
styles appear in the drop-down lists in various places in Arcv2CAD.

The entries in the [Styles] section be changed, added to, or deleted. 
The general format of each entry is :-

STYLENAME=FONTNAME

where 

'STYLENAME' is the name of the Text Style.  This is any name of your
choice as long as it conforms to the naming convention for AutoCAD
objects, ie 
- maximum length is 31 characters 
- consists of letters (A-Z,a-z), digits(0-9), '$', '-', or '_' 
  (an AutoCAD object name cannot have spaces)

eg STANDARD
   ARIAL_TT

'FONTNAME' is the name of a font file which exists on the end system. 

eg txt.shx
   arial.ttf 

Notes:

(1) STYLENAMES must be unique.  FONTNAMES on the other hand do
not need to be unique.


A2C25.INI 
---------

[Arcv2CAD]

VerticesMergeTol=

Eliminates consecutive points for Polylines / Polygons whose distance
is closer than the tolerance.

Default is 0.0000000001


MergeTolerance=

Eliminates consecutive points that are on straight line segments, or
very close to straight line segments. The tolerance value here is the
difference in 'slopes' of consecutive line segments.  The 'Merge
Straight Lines' setting must be on, for points to get eliminated in
this case.

Default is 0.01


TmpDir=

The default operation of Arcv2CAD is to write temporary files to a
directory specified by the TMP or TEMP environment variables.  This
operation can be overridden by the TmpDir entry.  eg
"TmpDir=C:\SCRATCH" would cause Arcv2CAD to write all its temporary
files to the directory "C:\SCRATCH".  Note however that the directory
must exist.


DefsDir=

The default operation of Arcv2CAD is to write "Defaults" files to a
sub-directory called "DEFS" directly under where Arcv2CAD was
installed. This default operation can be overridden by the DefsDir
entry.  eg "DefsDir=C:\MYDEFS" would cause Arcv2CAD to write all its
defaults files to the directory "C:\MYDEFS".  The directory must
exist.  A defaults file stores the settings for each shape file that
is translated.  Translating the file "SHAPES.SHP" causes the file
"SHAPES.DEF" to be produced.  Settings stored in this file include a
record of the of Features and Annotation labels that were selected
for translation, as well as other settings.


No999=

By default Arcv2CAD will output 2 comment lines in the Header section
of output DXF files, with information about what version of Arcv2CAD
produced the DXF file, and also the Date that the file was created. 
Comments in DXF files are indicated by a '999' group code.  eg

999
ARCV2CAD 2.4 (Rev H.20)
999
Tue May 20 23:00:51 1998

The above comment lines are suppressed by setting "No999=1", and
activated by setting "No999=0"


MaxAttribLen=

DXF ATTRIB values can have a maximum length of 255 characters.  This
entry allows this maximum value to be specified to be less than the
default maximum.  eg "MaxAttribLen=80" would cause any ATTRIB values
to be truncated to 80 characters.


StripSpaces=

Controls the stripping of leading and trailing spaces from Attribute
values. 0==don't, 1==do, 2=strip leading only, 3=strip trailing only
The default value is "StripSpaces=1"


MaxPolygonEdges=

Applies only to the output of QikDraw Extended Planes.  Valid values
are 4 to 4745.  The default value is 2720.  If the number of edges
for a Polygon exceeeds this value, then the Polygon will be broken up
into smaller polygons that do not exceed the maximum value. 


OversizeTreatment=

Applies only to the output of QikDraw Extended Planes.  Where the
number of edges exceeds the MaxPolygonEdges value (see above), this
flag controls way that the Polygon will be broken up, where:-
0=Do not output colour fills for this polygon
1=Output by Splitting into chunks with edges less than MaxPolygonEdges
2=Same as 1, but output resultant planes in a single BLOCK
The default value is "OversizeTreatment=1"


2D=

Controls output of Z coordinates in the DXF file.  The default setting is
"2D=1".  This causes output of Z values to be suppressed.  A setting
of "2D=0" causes Z values to be output (all 0.0 by default).  This
flag also affects the 'LowerFill' and 'RaiseText' keys, which are
ignored if "2D=1".


LowerFill=
zFill=


If the 'LowerFill' flag is on ("LowerFill=1"), then colour fills will
be output with a Z value equal to the negative of the value specified
in the 'zFill' key.  


RaiseText=
zText=


If the 'RaiseText' flag is on ("RaiseText=1"), then Text will be
output with a Z value equal to the value specified in the 'zText'
key.


TidyDxf=

If the 'TidyDxf' flag is on ("TidyDxf=1") then the DXF output file
will have formatting such that it is easier for a human to read, ie
Group codes are indented.  The drawback is that the DXF file is
a bit larger.


LineSpacing=

This value determines the space between lines of text, specified as
a ratio of the text height. Default is LineSpacing=0.5


TextWidthFactor=

TextWidthFactor is used to adjust Center and Right justified text to
the approximately correct position in end applications that do not
handle Center and Right Justification in their DXF import eg
CorelDraw 6.0.  The default value is 1.0

OverlapFactor=

Controls elimination of identical overlapping text labels.
This factor is approximate in that the exact width of end font size
is usually not known exactly.  To give more margin for error increase
this factor.  A factor of 2.0 would cause the overlap elimination to
work on the basis that the text is double the size that it actually
is.  This value specifies the initial default setting. The default
value is 1.0


AnnotLayerDef=

Controls the initial Default setting as to whether Text Lables are
output on the same Layer as their Shape part, or on a single
'Annotation' Layer.  Can be 0 or 1.  (Default is 1)
0 == Initial setting is 'Output Text on same Layer as their Shape part'
1 == Initial setting is 'Output Text on a single Annotation Layer'
Note that if a Shapefile has previously been translated, then its
setting at that time will override this setting.


SingleRedlineLayer=

This is the default Layer name for Text Labels output.  Default is 
SingleRedlineLayer=LABELS


AlignText=

For Arc type Shapefiles specifies whether the default is to Align
text labels along the Arcs, or not.  
Can be 0 or 1.  (Default is 1)

ElimDoubleLabels=

Specifies whether the default is to Eliminate Overlapping Identical
Labels, or not.  
Can be 0 or 1.  (Default is 0)

DecPlaces=

Controls DXF output precision of numeric data.  Valid values are 
0 to 16, and represent the number of decimal places of precision.
Specifying a higher number will cause the precision to be greater, 
but because DXF is a text format, can also cause the DXF file to 
be significantly larger in size.   This setting has no effect on DWG 
output which Arcv2CAD always output at the maximum precision 
(ie double precision binary).

Verbose=
Default is 0
Value of 1 causes more verbose reporting in text window (currently
only affects reporting in Batch Mode)


VerDXF=

Specifies the version of DXF or DWG to output.  Valid values are 0 to 6
where :-

0 = AutoCAD Version 2.5
1 = AutoCAD Version 2.6
2 = AutoCAD Version 9
3 = AutoCAD Version 10
4 = AutoCAD Version 11,12 
5 = AutoCAD Version 13
6 = AutoCAD Version 14

The default value is 4 (AutoCAD Version 11,12)

Notes:
(1) Arcv2CAD uses a 3rd party engine to output DXF versions other than
11,12.  
(2) Version numbers can also be specified with a minus sign in front 
them.  This will force DXF output using the 3rd party DXF output engine. 
eg DXFVer=-4 forces DXF version 11,12 output using the 3rd party engine.
(3) Note that AutoCAD Versions prior to 11 did not support Extended
Data. If you are using the Xdata option in Arcv2CAD, the only valid
settings are 4 or greater (ie AutoCAD versions 11+).

HatchScale=

For AutoCAD Rel 14 and QikDraw DXF, this setting controls the default
Scale that will be used for Hatch Patterns.  A positive HatchScale
value causes a fixed Default Hatching scale.  A value of -1.0 (the
default), causes the default Hatch Pattern scale to be calculated as
the product of the Diagonal size of the Shapefile and the
HatchToMinMax variable (see below).  


HatchToMinMax=

For AutoCAD Rel 14 and QikDraw DXF, this setting affects the default
Scale that will be used for Hatch Patterns.   This is the initial 
value that is displayed in the Colours Dialog box in the edit control
labeled 'Scale:' next to the drop down Pattern Selection list.  Note
that this variable is only used where there is not a fixed default
Hatch scale (see the variable HatchScale).  Default is
HatchToMinMax=0.02, valid range is positive numbers.


HatchToMinMax=

For AutoCAD Rel 14 and QikDraw DXF, this setting affects the default
Scale that will be used for Hatch Patterns.   This is the initial 
value that is displayed in the Colours Dialog box in the edit control
labeled 'Scale:' next to the drop down Pattern Selection list.  Note
that this variable is only used where there is not a fixed default
Hatch scale (see the key HatchScale).  Default is HatchToMinMax=0.02,
valid range is positive numbers.

TextLabelsHeightToMinMax=

This setting has 2 meanings. When positive, it is used to calculate a
reasonable default height for text labels, based on a ratio to the
extents (min/max) of the shapefile.
When negative, Arcv2CAD uses the negative value made positive as a 
fixed value default height for Text labels.  eg 
TextLabelsHeightToMinMax=-0.1 means always use 0.1 as the default
text height.
Default is TextLabelsHeightToMinMax=0.004 (meaning that the default
text height will be set to 0.004 * the diagonal extents of the
shapefile.)  
Valid range is all non-zero numbers.

LegendHeightToMinMax=

Default is LegendHeightToMinMax=0.005, valid range non-zero numbers.
If -ve, Height is fixed height, made positive.

MarkerHeightToMinMax=

Default is MarkerHeightToMinMax=0.004, valid range is non-zero numbers.
If -ve, Height is fixed height, made positive.

AttribHeightToMinMax=

Default is AttribHeightToMinMax=0.004, valid range is non-zero numbers.
If -ve, Height is fixed height, made positive.


ACADHatchPattern=

(Arcv2cad v2.4+) For AutoCAD Rel 14 DXF, this variable sets the default
Hatch Pattern for AutoCAD Boundary Hatch translation. The default is
ACADHatchPattern=SOLID, the only other valid values being names which appear
in the Hatch Pattern dropdown list in Colours Dialog box.


QDDxfFlags=

For QikDraw users only. Controls whether the DXF/DWG configuration dialog 
box is displayed during DXF/DWG import (when Arcv2CAD is executed iside
QikDraw).  1 == display config. dialog,  5 == don't display config. dialog.
(default == 5)


DWGCodePageIndex= 
DWGCodePageString=      

Specifies the SYSCODEPAGE variable in AutoCAD.  This variable
affects which character set will be used.  If accented characters
appear to be incorrect, you may need to change these variables.

Note that both of the above entries should be set according to the
table below.

Arcv2CAD's default setting is 

DWGCodePageIndex=30
DWGCodePageString=ANSI_1252

Index   String
----------------------
0       UNDEFINED
1       ASCII
2       ISO8859-1
3       ISO8859-2
4       ISO8859-3
5       ISO8859-4
6       ISO8859-5
7       ISO8859-6
8       ISO8859-7
9       ISO8859-8
10      ISO8859-9
11      DOS437
12      DOS850
13      DOS852
14      DOS855
15      DOS857
16      DOS860
17      DOS861
18      DOS863
19      DOS864
20      DOS865
21      DOS869
22      DOS932
23      MAC-ROMAN
24      BIG5
25      KSC5601
26      JOHAB
27      DOS866
28      ANSI_1250
29      ANSI_1251
30      ANSI_1252
31      GB2312
32      ANSI_1253



ClosePolys=

Default is 0
Value of 1 causes Polylines to have a closing link inserted, and to
be output as DXF/DWG Closed Polyline entities.  
The setting affects shapefile types Polyline, PolylineZ, PolylineM.
NOTE:  This setting is only going to be suitable for a Polyline
shapefile where the Polylines in the shapefile are effectively
polygons, ie their start and end points are the same or very nearly
the same.


Legend=0

Default, 0=off
The legend option is initially off by default for new shapefiles
If you want the Legend option to be on by default then change the entry to:
Legend=1        (1=on)


TextColour=

Default is 40  (Yellow-Orange)
DXF Pen color (1-255) for the Text Labels


LegendTextColour=

Default is 40  (Yellow-Orange)
DXF Pen color (1-255) for the Legend Text Labels

Editor=

Default is notepad.exe
Path to text editor to us when viewing Arcv2CAD log file.

HorizSpacing=
Default is 1.0

For Labels that are stacked horizontally HorizSpacing defines the
space that is inserted between each field.  The default value is 1.0
which has the meaning 1.0 x Height of the text being output.


ResizeMainWindow=
Default is 1.0

Causes the main dialog to be scaled from the default.  Use this
setting if all the controls do not fit vertically on the main window.

ReposRightDlgUnits=
Default is 0

Causes right side controls (i.e. info area, and save buttons) to be
right adjusted by the specfied number of dialog units.
A negative value causes a left shift, and a postive value a right
shift.

Use this setting if the right side controls are cut off, or not
fitting properly.


createdefcmd=

Control creation / overwriting of .DEF files for translations via the command
line.

(.DEF files store the settings that were used in the translation of 
a particular shapefile.)

0=don't create and dont overwrite (default)
1=create only if a .DEF file does not already exist
2=create, overwriting if a .DEF file exists already
