Interconnection technology with database in AutoCAD environment (3)

4 example description

This example shows a sequence valve database file SXFLIB.DBF in the design of the hydraulic system software package established by Visual Foxpro3.0 environment. The data structure is shown in the following table.

Name Type Diameter Pressure Flux Scale
Sequence valve XF * 10D3-P- * 10.0 20.0 40.0 0.5
Sequence valve 2X-F * 10D3-AB/BA- * 10.0 20.0 40.0 1.0
One-way sequence valve XA-F * 10D3-B- * 10.0 20.0 40.0 0.7
One-way sequence valve XA-F * 10D3-B(A)- * 10.0 20.0 40.0 0.5


Develop an ASI application to achieve the required functionality:

(1) Compile the ins-rowvalue command to insert the data and name on the AutoCAD drawing into the record of the database.

(2) Prepare the get-rowvalue command to read the data from the selected row of the database, display it in the software dialog box, and draw the graph according to the ratio provided by the data.

(3) Compile the fetch-dallue command to read all the records from the database and display them in the list box of the dialog box for the user to call and insert into the graph.

Because AutoCAD can access the database through ASI/ASE and DBMS, the design ideas of many application projects are greatly expanded, which saves the designer's working time, improves the work efficiency, reduces the input cost, and is beneficial to the realization of the integrated system.

Previous page

Iron Gates Decorations

Iron Gates Decorations,Iron Gates Decorative,Decorative Iron Gates Designs,Decorative Cast Iron Gates

Xiamen XMillion Co.,Ltd. , https://www.xmilliondoor.com

Posted on