
*****************************************************************************
*****************************************************************************
***                       D B <--> A C A D                                ***
***       A dBASE III/IV interface for AutoCAD/AutoLISP                   ***
*****************************************************************************
*****************************************************************************
    SHAREWARE | SHAREWARE | SHAREWARE | SHAREWARE | SHAREWARE | SHAREWARE

DB-ACAD is written using the AutoCAD Development system(ADS). It's
available for R11 DOS 386, R12 DOS 386 and R12 Windows in a single or
multi-user form. Don't forget it's shareware so PLEASE register your
copy if you want to use it.

         THIS VERSION IS FOR AutoCAD R11/R12 DOS 386 ONLY

DB-ACAD is just 1 file and very easy to load, at the AutoCAD command prompt
type:-

        (XLOAD "dbr11")

Remember it's (XLOAD <filename>)

Once loaded DB-ACAD offers over 40 commands to interface to any dBASE database
file. Upto 10 database files can be open at once.

The commands and AutoLISP function have been designed to work as you would
expect.

Some commands listed below may be accessed from either AutoCAD or AutoLISP,
the AutoLISP function have the parameters explain in < >.


DB_USE / (DB_USE <filename>)
This will open a database file for access

DB_SELECT / (DB_SELECT <num>)
This sets the current active Select area, only 1 to 10 are allowed

DB_CLOSE / (DB_CLOSE)
This will close the database in the current Select area only

DB_STATUS
This shows the status of the database open and the current active select area

DB_STRUCT
This shows the struct of the current database file

DB_DISPLAY
This display the current record in the database

DB_GO / (DB_GO <number>)
This allows the current database to go to a particular record number

DB_EOF / (DB_EOF)
This tells the user if the EOF has been set, by returning T otherwise Nil

DB_TOP / (DB_TOP)
Sets the record pointer to top of database, record 1

DB_BOTTOM / (DB_BOTTOM)
Sets the record pointer to last record in database

DB_SKIP / (DB_SKIP <number>)
This will skip the database record pointer forwards or backwards

(DB_GETFIELD <fieldname>)
This AutoLISP function will return the contents of a specific database field
i.e. (SETQ name (DB_GETFIELD "SURNAME"))

(DB_REPLACE <fieldname> <new value>)
This AutoLISP function will replace the existing value in the database field
with a new one

DB_RECNO / (DB_RECNO)
Tells the user the currect record number

DB_APPEND / (DB_APPEND)
This append a new record at the end of database filling all fields with blank

DB_DELETE / (DB_DELETE)
Flags a record for deletion

DB_RECALL / (DB_RECALL)
Unflags a deleted record

DB_DELETED / (DB_DELETED)
Tells the user if the current record is flagged as deleted

(DB_LTRIM <string>)
Remove leading spaces from a text string

(DB_RTRIM <string>)
Remove trailing spaces from a text string

DB_ZAP / (DB_ZAP <code>)
Deletes and packs all records in a database
Not available in demo version

DB_GOHANDLE / (DB_GOHANDLE <entity handle>)
This will search a field in the database called ACADHANDLE (character 12)
for the value passed. This has been designed when a entity handle is stored
in the database and the user wishes to find the database record quickly for
the entity handle in question

ABOUT_DBACAD
Informs user of version of software



                       DEMO AutoLISP Program

Ths demo AutoLISP add 3 command to AutoCAD:-

DISP - Lets the user select any AutoCAD entity and then tries to find it
the database, if so display data

ADD - Lets the user add a AutoCAD entity into the database

VALVELIST - Display all records in database

The databse has been design for simple storage of Valve data i.e. Type,
Class, Rating and some notes.

The unique link is performed by entity handles, hence HANDLES are switched
on.

The AutoLISP file (DEMO.LSP) will give a rough idea of how the database
can be linked to AutoCAD entities.


*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

For technical support, please contact CADology either by :


Electronic Mail :
	Compuserve EMAIL : 72357,1330

Technical Fax Line :
	(International) 81 661 0674

Fax :
	(International) 81 786 7775

Post : 
	CADology Limited
	Meach House,
	71 Nonsuch Walk,
	Cheam, Surrey. SM2 7LF
	Great Britain
