Analysis of the framework of gasket standard parts based on two types of frame parameters

First select the washer type, then select the main parameters of the washer. The user dialog box is used to create the slide file. In order to realize the image display of the four types of washers in the user dialog box, firstly draw these four types in the drawing area of ​​the AutoCAD software. Washer, then enter the "mslide" command on the command line, respectively

First select the washer type, then select the main parameters of the washer. The user dialog box is used to create the slide file. In order to realize the image display of the four types of washers in the user dialog box, firstly draw these four types in the drawing area of ​​the AutoCAD software. Washer, then enter the "mslide" command on the command line, create the slide files of these four washers, the files are named ypdq.sld, thdq.sld, fdq.sld, fxdq.sld. I think, make slides Try to center each type of washer pattern and fill the drawing area before the file, so that the image button display is more clear and decent.

Write the LISP program. After the preview of the user dialog of the DCL programming is completed and the slide file is created, the LISP program is started. The LISP program developed in this paper consists of a main program and five subroutines. The main program file is named dq.lsp. The main program is used to drive the user dialog and call the subroutine; one of the five subroutines is used to drive the user dialog. Four image button areas display four slide files, and the remaining four subroutines are used to draw four types of washers. The flow chart of the whole main program is as shown, the main program and related comments are as follows: (defundq(/keyimage_nameindex); The new command name for defining the drawing washer is dq(setqindex(load_dialog"dq.dcl")); loading the dialog file ( If(not(new_dialog"dq"index))(exit))(image"dq1""ypdq"); Call the slide show subroutine (image"dq2""thdq")(image"dq3""fdq")( Image"dq4""fxdq")(action_tile"dq1""(setqdq1)"); defines the action of the user response (action_tile"dq2""(setqdq2)")(action_tile"dq3""(setqdq3)")(action_tile" Dq4""(setqdq4)")(action_tile"accept""(done_dialog)")(start_dialog)(unload_dialogindex)(princ)(cond((=dq1)(draw_dq1))); call the drawing subroutine of the washer ((=dq2 )(draw_dq2))((=dq3)(draw_dq3))((=dq4)(draw_dq4)))) The flow chart of the four drawing subroutines is as shown, the development of the standard library of washers, the key is to follow the mechanical design manual Construct a parameter table for the gasket standard, the rest of the program is simple In this paper, taking the flat washer as an example, the parameter function table b is constructed by using the list function, and the main program flow chart of the block in the drawing subroutine is constructed.

The program runs the above two program files dq.dcl, dq.lsp and four slide files ypdq.sld, thdq.sld, fdq.sld, fxdq.sld all in the support folder of the AutoCAD software installation path. Next, after loading the dq.lsp program successfully, enter a new command (dq) in the command line of the AutoCAD software to drive the user dialog box as shown, and the user selects the type of washer (round flat washer, spring washer, according to the dialog box prompt). Square washer or square washer), at the command line prompt, enter the main parameter value of this type of washer, AutoCAD software can quickly draw the washer pattern and center line in the drawing screen.

Conclusion Using the DCL and AutoLISP languages, you can develop a library of standard mechanical parts. When drawing, just enter the new command name of the corresponding standard part defined in the development program, and then select the type of the standard part, input the main parameter value, you can quickly draw various standard parts, thus improving the drawing efficiency.

Hebei Xinteli offers a wide selection of woven and welded Wire Mesh Fence products with various mesh size, openings, thickness, heights, colors and materials. The categary includes several kinds of products, such as Chain link fence; Field Fence; Euro Fence; Rabbit Fence; Border Fence; 3d Bending Fence...   Wire Mesh Fence is great to use in your garden, pool, farm or for deer control.  



Wire Mesh Fence

Wire Mesh Fence,Galvanized Wire Mesh Fence,Welded Wire Mesh Fence,Metal Wire Mesh Fence,Holland Fence,Chain link fence

Hebei Xinteli Co., Ltd. , http://www.sinohardwares.com