In view of p/e and standard gear software development


It has powerful 3D modeling capabilities, but it is a general-purpose software. For professionally demanding designs, Pro/E can't meet the requirements, and there is a lot of repetitive work. If you take full advantage of Pro/E's secondary development tool Pro/Toolkit, you can easily realize the parametric design of the gears, thereby improving design efficiency and quality.
Using object-oriented technology, parametric modeling of involute cylindrical spur gear, cylindrical helical gear and cylindrical bevel gear, respectively, using Pro/TOOLKTI for secondary development, and using SQLServer2000 to establish a database to store parameters, thus establishing A parametric CAD system for gears.
1 key technology of gear CAD parameterization system Visual C 6.0 is an interactive visual integrated development environment running on Windows. It integrates program code editing, compilation, connection debugging, and provides programmers with a complete and convenient development interface. Many effective auxiliary development tools.
SQLServer2000 is a RDBMS (Relational Database Management System) released by Microsoft. It is a very important place for the development of large and medium-sized databases due to its tight integration with Microsoft operating system and easy-to-use graphical interface. platform. Therefore, use it as a back-end support platform.
Pro/TOOLKIT is a custom development toolkit provided by PTC for Pro/E software that provides a seamless connection to Pro/E for user programs and third-party programs. The typical development process of Pro/TOOLKIT includes writing source files (Pro/TOOLKIT programs, menu resource files, information resource files, etc.), program compilation and connection, and program registration and operation. By comparison, the DLL synchronous development mode is adopted.
In summary, Visual C 6.0 is used to create a graphical user interface that is associated with the SQL Server 2000 database. The ADO technology is used to manipulate and control the data source. Users can select or add data through this interface.
2MFC, DLL basic theory and database interface technology use MFC developed by Visual C 6.0 to develop human-computer interaction interface, which can provide users with a visual environment where graphics and text coexist. The operation is natural, simple and fast, and the design, debugging and modification are more convenient. More mature.
A DLL is a library file that is built on the concept of client/server communication. It contains several libraries of functions, classes, or resources. The functions and data are stored on a DLL (server) and imported by one or more clients. These clients can be Application or other DLL.
The relationship between Pro/TOOLKIT, MFC and SQLServer2000 databases.
Using the SQLServer2000 database as the data source of the gear CAD system, after the database is built, it is not necessary to set the environment for the Windows system before starting the part library system. To use ADO in Visual C6.0, you need to do the following work in the SQLKit project: first use Visual C to generate the library files: AdoC.lib and AdoC.dll; then add the header file ado.h and the library file AdoC.lib in the SQLKit project. , AdoC.dll; finally establish a connection with the SQLServer2000 database.
Declare a smart pointer to the ADO object to be created CADODatabasem_connection; / / establish a connection with the SQLServer2000 database m_connection.ConnectSQLServer (" (local)", "SQLKit", "sa", "sa"); where local is the SQLServer2000 database server Name, SQLKit is the database name, the first sa is the login database username, and the second sa is the login database password. After this operation, you can access the SQLServer2000 database.
3 Gear CAD system construction 3.1 Parametric programming method of 3D model In 3D design, the creation of parts involves various features such as sketches, datums, surfaces and solids. It is very difficult and cumbersome to use the program to generate 3D models directly. complex. The basic principle of the three-dimensional parametric programming method is to combine the three-dimensional model with program control. Based on the 3D model of the created part, a set of design parameters that can fully control the shape and size of the 3D model are further established according to the design requirements of the part. The parameterization program programs the design parameters of the part to realize the retrieval, modification of the design parameters and the generation of a new three-dimensional model function according to the new parameter values.
3.2 System Run Interface After the interface is written, the program source file is written. The parameters entered in the dialog box are passed to the Pro/E parameterized 3D model file to generate the corresponding model. After the program source file is written, compile and connect to generate an executable file.
Register in Pro/E to run the gear CAD system.
The main interface of the program execution. Select the gear type to be created from the menu, pop up the parameter input dialog box, input the basic design parameters, or directly select the data in the SQLServer2000 database from the data parameter table to generate the corresponding model. For example, select the type of involute cylindrical spur gear to be created from the menu, and immediately pop up the involute cylindrical spur gear design dialog box. After inputting the parameters, click the Generate Model button to generate the corresponding 3D model.
4 Conclusion Using VisualC 6.0., SQLServer2000 and Pro/TOOKLIT key technologies, the interface between Pro/TOOLKIT and MFC is solved, and the secondary development of Pro/E by Visual C 6.0 is realized. Create a parametric model in Pro/Program.

Scrap Recycling Machine

Ecohydraulic Recycling Machine includes Metal Baler, metal Briquette Machine and metal shear.



All kinds of metal scraps, waste steel, copper, aluminum shavings, car shells, etc., is produced every day of production, our metal recycling machines can deal with your chips, no matter aluminum, iron, copper or steel, after processing, the scraps will help you to earn more money.



Metal Recycling Machine, Iron Recycling Machine

Jiangyin Metallurgy Hydraulic Machinery Factory , https://www.jiangyinyeya.com