Development process of parameterized standard parts library This parameterized standard parts library uses Visual Basic 6.0 (VB6.0) to realize communication with SolidWorks2000 using OLE technology <5,6>. The specific development process is as follows: application VB6.0 as background control SolidWorks2000 is used as the front-end graphic display. SolidWorks2000 is used as the link object of VB6.0. After the VB6.0 application processes the data in the feature parameter library, various methods of the SolidWorks2000 object (ie API function) are called, and the SolidWorks2000 object will process it. The post-data is modeled as a solid modeling parameter to enable the display of solid graphics. Flow chart of the development program of the gear entity parameterized standard parts library.
The key technology system structure of system development The standard parts library system in this paper is mainly composed of three parts: three-dimensional parameterized standard part graph library, standard part characteristic parameter library, user interface and management system.
The establishment of 3D parametric standard parts library is based on international standards (DIN or ISO) and national standards (GB). It is built using feature modeling technology. The storage in the library is not specific. A solid model of geometric data, but a parametric pattern of various dimensionally driven standard parts.
(1) Description of the geometric constraint relationship of the standard parts. The geometrical relationship of the standard parts is defined by geometric relations such as horizontal, vertical, orthogonal, tangent, and concentric (ie, topological relationship), thereby obtaining a geometric constraint relationship description of the standard parts.
(2) The size parameter name of the standard part. The size parameter name consists of letters, numbers, and underscores, such as D1, d2, and so on. Once the parameter name is determined, it should be consistent throughout the use.
(3) Description of the relationship between the size parameters of the standard parts. The algebraic expression or data relation table is used to define the parameter relationship between the basic dimensions of the standard parts, and the correspondence between the size parameter (variable) and the size is generated into an external parameter file associated with the standard parts library. When the value of the variable in the parameter file is changed, the standard size of the standard size can be generated by the size driving process.
(4) Construction of the standard parts library. The entity model of the standard part is constructed interactively. The model utilizes various solid models in the feature modeling technique, and uses the dimension parameter name and size parameter relationship description of the standard parts defined above to generate an entity without specific geometric data. model.
Standard component characteristic parameter library The standard parameter library of the standard component mainly stores various parameters of the standard component, including the geometric feature parameters of the standard component, and stores these geometric feature parameters in the database, and queries the main parameter from the database. The relevant feature parameters are queried, and these feature parameters are passed to the three-dimensional standard piece library. This paper selects the Microsoft Access database to build a feature parameter library of 3D standard parts.
The application program is firstly designed by the CAD software to forward the part base and convert the whole process of the part base generation into a macro file through the macro record, and then compile the macro file to get the part generation application. Replace the key constants of the parts in the program with variables, that is, the procedure for parameterizing the reverse modeling of the three-dimensional parts.
Since the macro file is generated by automatic recording, there are some statements in the macro file that have no practical effect. Deleting it does not affect the execution result of the program. In order to refine the application, these statements should be removed. Some difficult sentences in the macro file use the method of test parameters (changing the value of a constant multiple times and observing the change of the entity) to find the key constants and compiling the macro files according to the key constants.
Use ActiveX to operate it outside of the 3D mechanical CAD software SolidWorks2000 software runtime environment. The type library of SolidWorks2000 software is referenced in the VB6.0 environment, which enables VB6.0 to identify the SolidWorks2000 software object types, attributes and methods, and realize the operation of VB6.0 on SolidWorks2000 software.
Operation example gear body design example Gear body parameterization standard parts library consists of three parts: spur gear design, helical gear design, straight bevel gear design, which can separately parameterize these three standard involute gears design. The system runs the window and generates the gear standard part model.
Bearing Solid Design Example The bearing entity parameterized standard parts library can complete the parametric design of the bearing. The resulting bearing standard piece solid model.
Ac Fan,Wireless Fan,Air Purifier Fan,Centrifugal Blower
Crown Electronics CO., LTD , https://www.crownelectronicstw.com