A CAD method for multi-parameter design of complex tools (2)


Examples of program statements are as follows

@5,12 say"...worm wheel hob menu selection..."

@7,12 prompt "1. Archimedes worm gear hob"

@9,12 prompt“2. Cogging normal straight worm gear hob”

@11,12 prompt“3.ZC1 arc cylindrical worm gear hob”

@12,13 prompt "4. Exit"

4. Data communication between Foxbase+ and VC++

The calculation of the hob structure parameters in this software uses VC++ language, and the data communication between Foxbase+ and high-level language is realized by means of data files.

Foxbase+'s COPY TO command converts database files into data files that can be accepted by high-level language programs (text files with the extension *.TXT), while the APPEND FROM command transfers data from high-level language data files to database files. To complete data communication between Foxbase+ and high-level languages.

5. Data communication between Foxbase+ and Autolisp

In computer-aided design, the data information is closely related to the graphical information. After using the Foxbase+ menu to design the number table query and calling the VC++ program to calculate the hob design structure parameters, the data information needs to be transmitted to the Autolisp program for parameter drawing.

Autolisp language is an intelligent design language embedded in AutoCAD content. It is a powerful tool for secondary development of AutoCAD. The language runs in AutoCAD environment and can directly call AutoCAD drawing commands.

In this software design, Autolisp's input/output (I/O) function is used to realize data communication with Foxbase+. In Autolisp's I/O functions, Read-line can read data from an ASCII text file, one line at a time, and each line as a processing unit. The final calculation result of the hob design structure parameters is stored in a text file (*.TXT) by Foxbase+ language, and then called by the Autolisp interface program to read the data in the text file (*.TXT) and perform parameter drawing.

For example: read the point coordinates Pt1 at both ends of the line, Pt2 draw a line Pt1Pt2, the procedure is as follows:

Previous page next page

UPVC Fitting

Upvc Fitting,Bs Pvc Tee Back Door,Sewage Pvc Reducing Tee,Drainage Grey Color Side Door

Zhejiang Huangyan Minghua Plastic Pipe Fitting CO.,LTD , https://www.pipefitting-mh.com

Posted on