CORE ARC/INFO COMMANDS

UNIX| Arc| Arcedit| INFO| Arcplot| AML

UNIX:


man		Manual page				example: man ls

clear		Clear the screen/window

ls		List files/directories			ex: ls -Flag

pwd		Print working directory

date		System date and time

cd		Change directory			ex: cd /export/home/work

cat		Concatonate and print to screen		ex: cat <file>

more		Page output on screen			ex: more <file>

vi		Visual interface (text edit)		ex: vi <file>

			There are two modes in vi:

			  I) Command mode (esc)
				Delete present letter 	- x
				Delete present line	- dd
				Delete # lines below	- d#d
				Undo last action	- u
				Yank/copy present line  - yy
				Yank/copy # lines below	- y#y
				Paste yanked lines here	- p
			    a) File commands 
				Write to <new_file>	- :w <new_file>
				Write file and quit	- :wq
				Quit ignoring changes	- :q!
			    b) Page movement
				Up   - j	Down  - k
				Left - h	Right - l
				Page up   - cntl-u or cntl-b
				Page down - cntl-d or cntl-f

			 II) Edit mode
				To insert - i
				To append - a

chmod		Change permissions on file or directory	ex: chmod 744 <file|dir>

mv		Move or rename a file or directory	ex: mv <old_file> <new_file>

cp		Copy a file				ex: cp <file> <new_copy>

rm		Remove a file or directory		ex: rm <file>
				 (with recursion)	ex: rm -r <dir>

mkdir		Make directory				ex: mkdir <dir>

rmdir		Remove dir (must be empty)		ex: rmdir <dir>

ps		Process status (running jobs)		ex: ps -e

kill		Terminate a process (Process ID)	ex: kill <PID>

sort		Sorts input

find		Find a directory or file		ex: find . -name <name> -print

history		List your recient commands		ex: history 10

alias		Create a command abreviation		ex: alias ll 'ls - l'

|		Pipe to channel output as input		ex: ls -Flag | sort | more

>		Direct standard output (screen)		ex: cat file1 file2 > file3

<		Direct standard input (keyboard)	ex: sort < file3

;		Command seperator for several commands on one line

arc		Run Arc/Info

Arc:


w or &workspace	The present workspace - where you are

c or commands	List all the arc commands and atools

usage		Shows the usage of a command		example: usage lc

lc or listcover	List coverages in the workspace		ex: lc precision

describe	Describe a coverage			ex: describe <cover>

ae or arcedit	Run arcedit to edit a coverage

ap or arcplot	Run arcplot to display coverages for output to screen or printer

INFO		Run INFO (note: must be UPPERCASE) to modify the database

tables		Similar to INFO with fewer commands

generate	Run generate

arctools	Run arctools

copy		Copy a coverage				ex: copy <cover> <new_cover>

build		Build an attribute table		ex: build <cover> {poly | line | node}

clean		Clean & build cover attributes		ex: clean <cover> {poly | line | node}

kill		Remove/delete a coverage		ex: kill <cover>

formedit	Run the menu for making menus

&terminal	Set the terminal Arc uses for menus	ex: &terminal 9999

&station	Set the station (terminal and display)	ex: &station 9999

Arcedit:


commands		Show all the Arcedit commands

usage			Show the usage of a command	ex: usage <command>

display 9999		Open the display window		ex: display 9999 {1..4}

mape or mapextent	Set the map boundary		ex: mape <cover>

ec or editcoverage	Set the cover to be edited	ex: ec <cover>

de or drawenvironment	Choose display features shown	ex: de arc tic ids nodes
							    de all off

ef or editfeature	What feature will be edited	ex: ef arc

bc or backcoverage	Show (only) an added cover	ex: bc primrd_ap <symbol#>

be or backenvironment	Choose back features shown	ex: be arc

rc or removecover	Remove a background coverage	ex: rc <cover|all> back yes

sel or select		Selecting feature(s) to edit (use mouse)

list			List INFO values of selected features

items			List INFO data items

draw			Draw present coverages and environments

delete			Delete a selected feature

oops			Undo last command

clear			Clear the display

symbolset		Set the symbology family to be use

lineset			Set the line symbology

markerset		Set the marker symbology

shadeset		Set the polygon shade symbology

textset			Set the text symbololgy

symboldump		Dump the symbols to the display	ex: symboldump line screen


			Symbolset Color (Arcedit default)

 1 - white	5 - lt blue		 9 - lt green	13 - magenta	17 - white,dotted
 2 - red	6 - lt purple		10 - green	14 - grey	18 - red, dotted
 3 - green	7 - yellow		11 - dark blue	15 - dark grey	19 - green, dotted
 4 - blue	8 - brown/orange	12 - purple	16 - black	20 - blue, dotted

INFO (use uppercase)


ENTER USER NAME>  ARC		Always is ARC
ENTER COMMAND>

HELP			Command usage			example: HELP SELECT

SEL or SELECT		Select Feature Attribute Table	ex: SEL ECABL.AAT

RESEL or RESELECT	Subselection (  =,<>, <, >,>=,<= ) contains,in
				     ( EQ,NE,LT,GT,GE,LE,CN,IN {#->#} )
							ex: RESEL LINE = 42

ASEL or ASELECT		Add (all) to selected		ex: ASEL LINE <> 71

NSELECT			Select all unselected and unselect all selected

LI or LIST		List (all) current records							ex: LI <record number>

IT or ITEM		List (all) current data items							ex: IT

CALC or CALCULATE	Do operation (**,*,/,+.-)	ex: CALC <cover> = <feature> * 2

MOVE			Enter character data in item	ex: MOVE <string> TO <item>

UPDATE			Update/change existing record	ex: UPDATE <record number>

Q or QUIT		End the INFO session


ENTER USER NAME>  STOP		End ARC user to exit INFO

Arcplot:


commands		List the Arcplot commands

usage			Command usage				example: usage <command>

display			Set up display window			ex: display 9999

clear			Clear display window

mapinfo			List present map settings

mapextent		Set extent of cover area to display	ex: mape <cover>

pagesize		Set the size of the physical page

pageunits		Set the page units to be used		ex: pageunits cm

map			Creates, modifies, opens a map composition

				malign	maselect	mbegin	mcopy
				mdelete	mend	menvironment
				mfresh	mgroup	minfo	mmask
				mmove	mnselect	morder	mposition
				mrotate	mscale	mselect	mtolerance
				munselect	mwho

map end			Closes a map composition

plot			Plots a map composition

windows			

killmap			Delete a map composition

maplimits		Set where cover features are drawn

mappos or mappossition	Position coverage features within map limit

mapunits		Set measurement unit for map features	ex: mapunits meters

mapscale		Set the scale of the map		ex: mapscale <number>


Point	pointmarkers	Draw a point cover with symbol	ex: pointmarkers <cover> <symbol#>

	markerfont	Set the marker font		ex: markerfont <symbol#>

	markerpattern	Set the marker pattern		ex: markerpattern <symbol#>

	points		Draw a point cover		ex: points <cover>

Line	arclines	Draw a line cover with symbol	ex: arclines <cover> <symbol#>

	linesymbol	Set the current line symbol	ex: linesymbol <symbol#>

	arcs		Draw an arc/line cover		ex: arcs <cover>

Polygon	polygonshades	Fill a polygon coverage		ex: polygonshades <cover> <shade#>

	linesize	Set linesize			ex: linesize 0.01

	linecolor	Set the line color/symbol	ex: linecolor red

	polygons	Draw polgon outlines		ex: polygons <cover>

Text	annotext	Draw coverage annotation	ex: annotext <cover>

	polygontext	Label polygons with attributes	ex: labels <cover>

	labeltext	Label polygons at label point

	move		Move print point to location	ex: move <x> <y>

	textsize	Set current symbol size		ex: textsize 0.2

	textquality	Set symbol character spacing	ex: textquality preportional

	textfont 	Set the font of the current text symbol

	text		Draw descriptive text on the map

	textfile	Draw an ASCII text file on a map

	textfit		Adjust text spacing between two points

	units		Set coordinates as map or page	ex: units <map | page>

AMLs | Menus (see Arc: formedit)


AML Directives

   Arc:	&watch		Copies Arc session to file	ex: &watch <file>.wat

	&watch &off	Stops watch file

	&cwta		Converts watch to AML		ex: &cwta <file>.wat <file>.aml

	&run		Run an AML			ex: &r <file>.aml

	&menu		Run a menu			ex: &m <file>.menu

	&args

	&type						ex: &type Hello

	&pause

	&setvar or &sv or &s				ex: &s j = %j% + 1

	&if <expression> &then <expr|statement> &else <expr|statmt>

	&do ... &end

	&do <var> &list {item...item} &end

	&do &while <expression> &end			ex: &do &while j < 4

	&call <routine>

	&routine <name>

	&return

	&dv

AML Functions

	[response 'Input stuff']

	[calc <expression>]


Chris Hanson (html 09/25/96)Rev: 9 - 13 NOV 95