Sie sind auf Seite 1von 10

Arcv2CAD Command Lines OPTIONS

-------------------------------

General Syntax is of the form:

a2c32.exe {switches} shapefile.shp [outfile.[dxf,dwg]]

or

a2c32.exe @BatchCommandFile

where BatchCommandFile contains multiple command lines of the form:

{switches} shapefile.shp [outfile.[dxf,dwg]]

General Notes:
--------------

- Arcv2CAD will get general defaults from the a2c25.ini file.


General defaults are ones that cannot be specified from the command
line and include such options as 'Merge straight lines', and other
miscellaneous options.

- Default Command line options will be loaded from a file called


A2CBATCH.INI, if it exists. You can set up the most common default
options for your command line here. The a2cbatch.ini file should
contain 1 switch per line. A sample a2cbatch.ini file is supplied.

- Several files can be processed in sequence by specifying them in


a single Command File. Two sample Command Files are supplied :

BATCH1.A2C - Processes 4 sample Shapefiles to 4 DXF output files


BATCH2.A2C - Processes 3 sample Shapefiles to 1 DXF output file

To run BATCH1.A2C you would specify

"C:\ARCV2CAD\A2C25.EXE @C:\ARCV2CAD\BATCH1.A2C"

as the command to run, putting in the correct path for your system.
Note also that the paths specified inside the BATCH1.A2C file also
need to be correct for your system.

Miscellaneous Notes:
--------------------

Lines in Batch Command Files that begin with a semi-colon ie ';' will
be ignored. This allows comments to be placed in the command file.

SWITCHES
========

/B

This switch is now obsolete and is ignored.

/G
Group Translation. Indicates that all the succeeding file translations in
a Command File will be output to a single Output file. Must have a
corresponding /O switch later in the command file.

NOTE: The /G switch must be specified on a line of its own in the Command
file, prior to the translations that it will affect.

/O outfile_name

Output the Group translations to the Specified outfile_name. This command


terminates the Group translation that was invoked by the /G switch.

NOTE: The /O switch must be specified along with its output file name on a
line of its own in the Command file, prior to the translations that it
will affect. eg

Example of the use of the /G and /O switches in a Command File:

/G
/T=1 C:\city\sreets.shp
/C=0 /C0=2 C:\city\parks.shp
/O C:\dxfs\city.dxf

The above file would cause the 'streets' and 'parks' shapefiles to be output
to the single dxf file called 'city.dxf'

/N

In the case of executing a Batch file with multiple files for translation
this switch causes a 'Next' button to be displayed for the user to press
at the completion of each individual file translation. Once the 'Next'
switch has been activated it remains in effect for the rest of the
translations.

NOTE: The /N switch must be specified on a line of its own, either in the
a2cbatch.ini file, or in the Command file prior to the translations that
it will affect.

/X

Exit the command process upon completion.


In a batch command file this switch should be placed on a line of its
own, as the last line of the command file. In a single command line
it is placed as one of the switches preceding the input/output
filenames.

LAYERS:
-------

Default (no switch)


=Single Layer matching shapefile name

/L=Layername
Single Layer with name "Layername"

/LF=nn (Default=0)
Layer Names keyed to Feature with index=nn (0-99)

/LC=n
Classification, where n=0,1,2
0=Quantile
1=Equal Interval
2=Unique Values (Default)

/L2=nn
No. of classes (1-99), Default=5

COLOURS:
--------

/C=n (relevant for Polygon shapefile only)


where n=0,1,2
0=Outline is ON (default)
1=Fill is ON
2=Outline and Fill are both on

/C0=nnn
Colour(s) for Polygon Outline, Points, Arcs where n=0-255
0=Colours linked to Feature (Default)
1-255=Single Pen colour

/C1=nnn
Colour(s) for Polgon Fill where n=0-255
0=Colours linked to Feature (Default)
1-255=Single Pen colour

/CF=nn (Default=0)
Colours keyed to Feature with index=nn (0-99)

/CC=n
Classification, where n=0,1,2
0=Quantile
1=Equal Interval
2=Unique Values (Default)

/C2=nn
No. of classes (1-99), Default=5

/CP=n
Colour Scheme, where n=0-63
n is the index of the Colour Scheme in the list of user-defined Colour
Schemes in Arcv2CAD

/CH=n

Hatch Pattern, applies to AutoCAD Rel. 14 and QikDraw output


formats only, where n is the index of the Pattern name.

Default pattern is SOLID, == index 0

Indices for Rel 14 output and their corresponding Pattern names are:-

0=SOLID
1=ANGLE
2=ANSI33
3=ANSI34
4=ANSI35
5=ANSI36
6=ANSI37
7=ANSI138
8=AR-B816
9=AR-HBONE
10=AR-SAND
11=BOX
12=BRASS
13=CLAY
14=CORK
15=CROSS
16=DASH
17=DOLMIT
18=DOTS
19=EARTH
20=FLEX
21=GRASS
22=GRATE
23=HEX
24=LINE
25=MUDST
26=NET
27=NET3
28=SQUARE
29=STARS
30=SWAMP
31=TRIANG
32=ZIGZAG

Indices for QikDraw output and their corresponding Pattern names are:-

0=SOLID
1=PATTERN 1
2=PATTERN 2
3=PATTERN 3
4=PATTERN 4
5=PATTERN 5
6=PATTERN 6
7=PATTERN 7
8=PATTERN 8
9=PATTERN 9
10=PATTERN 10
11=PATTERN 11
12=PATTERN 12
13=PATTERN 13
14=PATTERN 14
15=PATTERN 15
16=PATTERN 16
17=PATTERN 17
18=PATTERN 18
19=PATTERN 19
20=PATTERN 20
21=PATTERN 21
22=PATTERN 22
23=PATTERN 23
24=PATTERN 24
25=PATTERN 25
26=PATTERN 26
27=PATTERN 27
28=PATTERN 28
29=PATTERN 29
30=PATTERN 30
31=PATTERN 31
32=PATTERN 32
33=PATTERN 33
34=PATTERN 34
35=PATTERN 35
36=PATTERN 36
37=PATTERN 37
38=PATTERN 38
39=PATTERN 39
40=PATTERN 40

/CHS=num

Hatch Scale, where num = a real number


Default = -1.0
See explanation of HatchScale in inikeys.txt

DBF X,Y FIELDS:


---------------

/DX=n
/DY=m

Where n,m are indices of the X,Y fields respectively.


Valid only for .DBF translations.

ELEVATION:
----------
/E=n

where n is the index of the elevation field

/ES=num

The Elevation Scale where num is a real number not equal to 0.0
Default = Elevation Factor specified in the a2c25.ini file.

TextElevation = that specified in the a2c25.ini file

POINTS:
-------
/P=n

Point type n=-1 to 3 where,


-1 = Marker from Font File
0 = DXF POINTS (Default)
1 = Plus sign
2 = Circle
3 = Solid Circle

/PS=Stylename

Default=STANDARD

/PF=font

Default=txt

/PH=num
Marker Height, where num = positive real numeric value

If this switch is not specified then Marker Height defaults to a


reasonable height calculated by Arcv2CAD. Arcv2CAD uses the formula
DiagonalSizeofShapefile * MarkerHeightToMinMax to determine the
marker height, where MarkerHeightToMinMax is specified in the
a2c25.ini file.

FEATURE ATTRIBUTES:
-------------------
Default = no Attribs
1
/Ax=i,j...

where x=N,E,Q
N=Normal
E=EED
Q=QikDraw

i,j... = 0 based indices of Attribute Fields to be translated


OR
/Ax=-1 means Translate ALL Attribute Fields

Attrib Position Arcs

/APAB=n
/APAV=n
/APAJ=n

Attrib Position Polygons

/APPB=n
/APPV=n
/APPJ=n

Attrib Position Points

/APTB=n
/APTV=n
/APTJ=n

where the B,V,J letters of each switch represent the specification for the
enclosing Box, the Vertical alignment, and the horizontal Justification

Box = 1-9 where 1=Top Left Hand corner


2=Top Middle
3=Top Right Hand corner
4=Left Middle
5=Middle
6=Right Middle
7=Bottom Left Hand corner
8=Bottom Middle
9=Bottom Right Hand corner

Vertical = -1,0,1 where

-1 = Above
0 = Middle
1 = Below

Justification = 0,1,2 where

0 = Left
1 = Center
2 = Right

Defaults are
/APAB=5
/APAV=-1
/APAJ=1
/APPB=5
/APPV=0
/APPJ=1
/APTB=5
/APTV=0
/APTJ=0

There are also several miscellaneous Attrib Positioning Flags

/APAF=n

For Arcs Attrib can aligned Horizontally, or along the Arc

0=Horizontal
1=Horizontal, moving Attrib next to Arc (default)
2=Align along arc

/APPF=n

For Polygons, Center Attrib within polygon boundary, where


0=off
1=on

TEXT LABELS:
------------
Default = no Text Labels

/T=i,j...

i,j... = 0 based indices of Attribute Fields to translate to Text Labels


OR
/T=-1 means Translate ALL Attribute Fields to Text Labels
/TS=Stylename

Default=STANDARD

/TF=font

Default=txt

/TH=num
Text Height, where num = positive real numeric value

If this switch is not specified then Text Height defaults to a


reasonable height calculated by Arcv2CAD. Arcv2CAD uses the formula
DiagonalSizeofShapefile * TextLabelsHeightToMinMax to determine the
text height, where TextLabelsHeightToMinMax is specified in the
a2c25.ini file.

/TC=nnn

Text colour where nnn=1-255

Default=1

/TO=n

Text Overlap, where n=0,1


0=off
1=Eliminate Overlapping Identical Labels

/TOF=num

Text Overlap factor = positive numeric value (default=1.0)

/TL=n

Text Layer, where n=0,1


0=place Text on same Layer as its shape part
1=Single Layer name

/TLN=SingleLayername

Text Position Arcs

/TPAB=n
/TPAV=n
/TPAJ=n

Text Position Polygons

/TPPB=n
/TPPV=n
/TPPJ=n

Text Position Points


/TPTB=n
/TPTV=n
/TPTJ=n

where the B,V,J letters of each switch represent the specification for the
enclosing Box, the Vertical alignment, and the horizontal Justification

Box = 1-9 where 1=Top Left Hand corner


2=Top Middle
3=Top Right Hand corner
4=Left Middle
5=Middle
6=Right Middle
7=Bottom Left Hand corner
8=Bottom Middle
9=Bottom Right Hand corner

Vertical = -1,0,1 where

-1 = Above
0 = Middle
1 = Below

Justification = 0,1,2 where

0 = Left
1 = Center
2 = Right

Defaults are
/TPAB=5
/TPAV=-1
/TPAJ=1
/TPPB=5
/TPPV=0
/TPPJ=1
/TPTB=5
/TPTV=0
/TPTJ=0

There are also several miscellaneous Text Positioning Flags

/TPAF=n

For Arcs Text can aligned Horizontally, or along the Arc

0=Horizontal
1=Horizontal, moving text next to Arc (default)
2=Align along arc

/TPPF=n

For Polygons, Center text within polygon boundary, where


0=off
1=on
STYLES:
-------

Note that Stylenames in AutoCAD must be unique. ie it is not possible to


have 2 identically named Styles with different fonts. For example the
following 4 lines in a command file would be invalid.

/G
/T=1 /TS=STANDARD /TF=txt C:\city\sreets.shp
/C=0 /C0=2 /TS=STANDARD /TF=complex C:\city\parks.shp
/O C:\dxfs\city.dxf

The Style STANDARD is first defined as using the font txt, and then as using
the font complex. Currently Arcv2CAD will just use the first definition.

<End Document switches.txt, Last updated 16 Oct 1998 >