Welding practice of standard parts warehouse

Compared with the above-mentioned database construction method, the author uses the KF language for secondary development to establish a standard parts library. The KF language is a KBE language with different characteristics from other languages. <1>: 1) Good at processing Geometric objects, models generated using KF have the same underlying object model as interactively generated models; 2) rules can include rules that cannot be expressed by UG expressions, such as custom functions or conditionally controlled attribute expressions. 3) Explanatory and non-procedural, KF programs do not need to be compiled, can be directly executed in the UG environment, the order of the rules is irrelevant, the order of program execution is completely determined by the internal dependency of the class. Therefore, the standard parts library built by KF has the characteristics of small programming workload and small memory space.

The model of the standard part modeling standard is dynamically generated by the program. One class completes the modeling of a standard part, and the standard part model is generated by instantiating the class. When building a model class, the following basic principles <5> should be followed: a) Each standard part should have a central reference (such as a reference point, a reference axis or a reference plane, mainly using a three-sided reference). The coordinate system (relative coordinates and absolute coordinates) should be at the center of symmetry of the standard part; b) the number of features should be minimized, the size between features is represented by a relational expression, and the characteristic parameters are divided into main parameters and secondary parameters. Primary parameter control and constraint secondary parameters; c) For a standard component consisting of several standard parts assembled together, care should be taken to establish parameter value transfer between standard parts within the standard component, ie establish between standard parts The size of the link relationship, and a major standard part to control and constrain other minor standard parts.

For structural changes caused by different main parameters, modeling can be done by corresponding rules. For example, when the chuck body (1Q3A96B3-2001) has the specification parameter D=150, there are 4 equally divided thread holes on one end surface. When the specification parameters are changed, the number of equally divided thread holes becomes three, as follows: Solving the problem of different shapes caused by the change of parameters of the same part, and solving the problem by using the part family method <2> and UG/OPENAPI development <3> is much more complicated.

Graphical User Interface The graphical user interface provides tools for user interaction with KF programs. It is generated by UG/MenuScript and UG/OPENUIStyler: MenuScript can be edited to modify the UG main menu interface. Users can add their own drop-down menus and toolbars in UG. The user-defined drop-down menu or toolbar can be used to call the dialog box controlled by KF; UIStyler can be used to create a dialog box consistent with the UGII style. The DFA file generated by KF and the UG dialog box can be used with the same file name. Realize KF on mechanical manufacturing and research Gao Shencun, UG dialog call, the connection between KF attribute and dialog control identifier is realized by name matching (name2matching), that is, the identifier of the control is set to corresponding Attribute name, the two can achieve value transfer, through the graying, hidden controls and other functions provided by KF, you can achieve complete control of the dialog box. The main dialog of the standard parts library is as shown: Figure 1 standard parts library call dialog should provide a friendly interface when generating standard parts, the user enters the parameters, so that the program can obtain complete parameter information. Generate standard parts that can be completely controlled by the parameters input by the user. In the common method of building a library, the standard parts are divided into several categories, each of which has the same number of parameters and similar specification parameters to solve different standards. A problem with different parameters. Because the standard parts library established in this paper has the characteristics of classification difficulty, the sub-dialog method is adopted to complete the parameter input of different standard parts. Each standard part has a customized parameter input dialog box, thus solving different parameters. The standard component parameter input problem. Parameter input dialog box for the carriage weight (Q/3A96B1-2001): Figure 2 Parameter input dialog box 2.4 Standard parts library realization Through the graphical user interface, the user selects the standard parts to be generated, input parameters, KF program is based on The user's choice, call the corresponding parameters and instantiate the corresponding class to implement the call of the standard parts library. The generation process is as shown: Figure 3 The standard application creation process The final application includes the KF file (3.dfa), the dialogue Box resource file (3.dlg), bitmap resource file (3.bmp), menu script file (3.men) and other help files, they should be placed in the directory structure as shown in the figure: Figure 4 The application structure is in the created directory. The subdirectories Startup, DFA, and Appli2cation should be fixed names. Only the UG can identify, load, and initialize the application. Other subdirectories store help files, development documents, maintenance information, and so on. Finally, modify the customdirs.dat file in the $UGBASEDIR/UGII/menus directory, register the developed standard library with UG, and debug the program and complete the final work.

The contents of the standard parts library The standard parts library established in this paper is the standard parts used in the typical fixture design extracted according to the specific conditions of the enterprise, including the national standard parts and the enterprise standard parts. Unlike the commonly used database construction methods, the author does not use the commonly used According to the actual application situation, the standard parts are first divided into enterprise standard parts and national standard parts. The enterprise standard parts are managed by the numbering order in the enterprise standard catalogue, and the national standard parts are also produced according to the national label. . This is because the standard parts used in typical fixtures are mostly enterprise standard parts, and these enterprise standard parts are very different in shape and specifications, and the national standard parts are concentrated on the fasteners, and classification is difficult. Moreover, this article does not use external data, there is no management of external data, and therefore there is no need to classify these standard parts in more detail.

Conclusion The author researches and implements the standard parts library of typical fixtures, and uses KF technology to build standard parts library. Different from other commonly used technologies, it has the characteristics of simple use, no need to compile, and less machine resources. The standard parts library established in this paper. It is applied to the fixture design process to improve the efficiency of the fixture design and shorten the design cycle.

Screws

roofing screws,screws and anchors,screws for concrete,screws for metal studs

NINGBO TAURUS INDUSTRY CO.,LTD. , https://www.taurushardware.com

Posted on