Method for establishing modular design module library for special container

文档序号:1521154 发布日期:2020-02-11 浏览:24次 中文

阅读说明:本技术 一种针对特种集装箱模块化设计模块库建立方法 (Method for establishing modular design module library for special container ) 是由 张梅生 王烨 于 2019-10-25 设计创作,主要内容包括:本发明公开了一种针对特种集装箱模块化设计模块库建立方法,包括先将零件按照类别分为按照标准件和非标准件,非标准件再按照特种集装箱部位进行模块划分,再将各个非标准件归类到对应的部位模块中。然后使用Creo软件进行零件模型创建,根据标准手册规定的尺寸建立标准件各个规格的标准件模型,非标准件模型创建时选择此类零件的其中一种作为模板结构建立并进行参数设定和参数关联。之后在计算机中按照零件类别和所属部位建立零件模型存放文件夹并存入零件。最后编写C++程序,实现通过Creo菜单调用各个零件模型。本发明具有零件模型导入方便、新模型生成速度快的优点。(The invention discloses a method for establishing a modular design module library for a special container, which comprises the steps of firstly dividing parts into standard parts and non-standard parts according to categories, then carrying out module division on the non-standard parts according to positions of the special container, and then classifying all the non-standard parts into corresponding position modules. And then, creating a part model by using Creo software, creating standard part models of various specifications of standard parts according to the dimensions specified by a standard manual, and selecting one of the parts as a template structure to be created and carrying out parameter setting and parameter association when a non-standard part model is created. And then establishing a part model storage folder in the computer according to the part types and the parts and storing the part model storage folder in the computer. And finally, writing a C + + program to call each part model through a Creo menu. The invention has the advantages of convenient part model introduction and high new model generation speed.)

1. A method for establishing a modular design module library for a special container is characterized by comprising the following steps:

step one, establishing a part library of a special container, wherein the part library comprises a standard part library and a non-standard part library;

step two, using Creo Parametric software to create three-dimensional models of each standard part and each non-standard part and setting model parameters;

the standard part establishes a model of each specification of the standard part according to the size specified by a standard manual;

if the same part has multiple parts with different specifications and sizes, selecting one of the parts as a template structure and establishing a part model during model creation, then setting initial size parameters, and simultaneously performing size association on the sizes with constraint relation by using a function expression;

step three, establishing a part model storage folder in a computer according to the classification category of the parts in the step one, and placing each part model into a corresponding folder;

step four, establishing an MFC dynamic link library project by using Microsoft VS2010, writing a C + + program in the project by using a Pro/TOOLKIT function, acquiring part information and manufacturing a Creo menu bar, wherein the specific process is as follows:

the method comprises the following steps that firstly, a Protoolkit function is adopted to compile a C + + program, a pointer object is created for each part, and a computer memory space is allocated for each part and used for storing part name information, model file path information and size information parameters;

secondly, filling all part model file paths in the third step into a memory space corresponding to the pointer object established in the first step one by one, and for the non-standard part, except for storing part model file path information, additionally applying a Protoolkit function to obtain the name and size parameter information of each non-standard part model and storing the information in a computer memory space;

thirdly, compiling a C + + program by adopting a Protoolkit function, creating a Creo menu program for calling the parts, creating a corresponding menu button for each part in the part library, associating the button with the object in the first step in the step, and realizing that the part information is obtained by clicking the menu button;

fourthly, running and debugging the C + + program compiled in the first step to the third step in the step, generating a dll file by the MFC dynamic link library item, establishing a registration file protk.dat in a main folder of the MFC dynamic link library item, and writing registration information of the MFC dynamic link library item in the protk.dat file;

step five, loading the registration file protk.dat in the step four in the Creo software tool menu, and displaying a part model calling menu on a toolbar;

the part calling process is as follows:

when the standard component is called, directly selecting a corresponding specification component from the menu bar and importing the model in the component library folder in the third step into Creo software; when the non-standard part is called, the required part is selected in the menu, a part parameter input window is popped up, and after the parameter input is completed, the import of the non-standard part model is completed.

2. The method for building a special container modular design module library according to claim 1, wherein: the standard component library comprises a screw, an angle component, a lock rod, a bracket, a lock head, a lock seat, a positioning ring and a positioning pin; the nonstandard part library is divided into a front end module, a top module, a side module, an underframe module, a door frame module and a window module according to the positions of the special containers, and then all the nonstandard parts are classified into the corresponding modules.

Technical Field

The invention relates to a method for establishing a module library, in particular to a method for establishing a module library aiming at the modular design of a special container.

Background

The design and production of a special container, namely a nonstandard container, is customized based on the requirements of customers. The individual requirements of different customers on the aspects of the overall dimension, the material, the shape, the function and the like of the container are different, so that the structure and the function of the special container are also various.

At present, the common design method of the domestic container industry is as follows: the standard container product type is used as a reference, and the standard container product type is modified on the basis of a standard container structure through common three-dimensional design software such as SolidWorks, Por/ENGINEER, UG, Creo and the like. The main process is that the design and improvement work of the special container is carried out by combining with the personalized requirements proposed by the client, after the design is completed, the enterprise submits the product design data to the client for inspection, then further optimization is carried out according to the modification suggestions and suggestions, and finally, after the client approves, the special container is put into production according to the design drawing. This design mode results in an extremely inefficient design of special containers.

Disclosure of Invention

The invention aims to break through the traditional design method of the traditional special container and provide a new design method, namely a method for establishing a special container design module library and calling modules, and the design efficiency is improved through the modular design of the special container.

In order to achieve the purpose, the invention adopts the technical scheme that:

the invention relates to a method for establishing a modular design module library for a special container, which comprises the following steps:

step one, establishing a part library of a special container, wherein the part library comprises a standard part library and a non-standard part library;

step two, using Creo Parametric software to create three-dimensional models of each standard part and each non-standard part and setting model parameters;

the standard part establishes a model of each specification of the standard part according to the size specified by a standard manual;

if the same part has multiple parts with different specifications and sizes, selecting one of the parts as a template structure and establishing a part model during model creation, then setting initial size parameters, and simultaneously performing size association on the sizes with constraint relation by using a function expression;

step three, establishing a part model storage folder in a computer according to the classification category of the parts in the step one, and placing each part model into a corresponding folder;

step four, establishing an MFC dynamic link library project by using Microsoft VS2010, writing a C + + program in the project by using a Pro/TOOLKIT function, acquiring part information and manufacturing a Creo menu bar, wherein the specific process is as follows:

the method comprises the following steps that firstly, a Protoolkit function is adopted to compile a C + + program, a pointer object is created for each part, and a computer memory space is allocated for each part and used for storing part name information, model file path information and size information parameters;

secondly, filling all part model file paths in the third step into a memory space corresponding to the pointer object established in the first step one by one, and for the non-standard part, except for storing part model file path information, additionally applying a Protoolkit function to obtain the name and size parameter information of each non-standard part model and storing the information in a computer memory space;

thirdly, compiling a C + + program by adopting a Protoolkit function, creating a Creo menu program for calling the parts, creating a corresponding menu button for each part in the part library, associating the button with the object in the first step in the step, and realizing that the part information is obtained by clicking the menu button;

fourthly, running and debugging the C + + program compiled in the first step to the third step in the step, generating a dll file by the MFC dynamic link library item, establishing a registration file protk.dat in a main folder of the MFC dynamic link library item, and writing registration information of the MFC dynamic link library item in the protk.dat file;

step five, loading the registration file protk.dat in the step four in the Creo software tool menu, and displaying a part model calling menu on a toolbar;

the part calling process is as follows:

when the standard component is called, directly selecting a corresponding specification component from the menu bar and importing the model in the component library folder in the third step into Creo software; when the non-standard part is called, the required part is selected in the menu, a part parameter input window is popped up, and after the parameter input is completed, the import of the non-standard part model is completed.

Compared with the prior art, the invention has the following beneficial effects:

the method solves the problem of low design efficiency caused by the fact that the special container design needs to be modified on the basis of a standard container structure, realizes direct calling and parameter setting of parts in a component library on a Creo software menu by establishing a special container module library, combining parametric design and utilizing ProTookit secondary development, thereby improving the design efficiency of the special container, and has the advantages of convenience in importing part models and high generation speed of new models.

Drawings

FIG. 1 is a partition diagram of a special container parts library;

FIG. 2 is a standard part 34 lock rod model view;

FIG. 3 is a diagram illustrating initial template constraint parameters and initial value definitions of a nonstandard front threshold;

FIG. 4 is a schematic illustration of a dimensional parameter relationship definition for a non-standard front threshold;

FIG. 5 is a schematic diagram of a locking bar in Creo software calling a standard component through a menu;

FIG. 6 is a diagram of a call to a nonstandard front threshold module in Creo software;

FIG. 7 is a schematic diagram of parameter identification and model generation for a non-standard front threshold.

Detailed Description

The invention will be described in detail below with reference to the drawings and specific embodiments for how the invention can be used to create a library of special container modules.

The invention relates to a method for establishing a modular design module library for a special container, which comprises the following steps:

step one, establishing a part library of the special container, wherein the part library comprises a standard part library and a non-standard part library. The standard component library comprises a screw, an angle component, a lock rod, a bracket, a lock head, a lock seat, a positioning ring, a positioning pin and the like; the nonstandard component library is divided into a front end module, a top module, a side module, an underframe module, a door frame module and a window module according to the positions of the special container, and then each nonstandard component is classified into the corresponding module, as shown in the attached figure 1.

And step two, using Creo Parametric software to create three-dimensional models of each standard part and each non-standard part and setting model parameters.

The standard parts are modeled according to the sizes specified by the standard manual. The lock rod diameter used for the container is

Figure BDA0002247796430000032

Three specifications, respectively establishing three specifications of lock rod models, and figure 2 shows 34 locking the rod model.

If the same part has multiple parts with different specifications and sizes, the non-standard part model selects one of the parts as a template structure and establishes a part model during model creation, then initial size parameter setting is carried out, and size correlation is carried out on the sizes with constraint relation by using a functional expression.

For example, using the container front door sill as an example, an initial part template is created, as shown in fig. 3, with the part fully defined by 13 feature sizes d1-d13, and given an initial value for the module size. Then, the relation between the sizes of the parts is determined, and in the Creo 'parameter' option, a size function expression related to the parts is input to correlate the sizes of the parts. Fig. 4 shows the parameter relationship between the dimensional threshold heights d6 and d8 of the front threshold part, d8 being d6-122 (mm).

Step three, establishing a part model storage folder in a computer according to the classification category of the parts in the step one, and placing each part model into a corresponding folder;

such as: a folder name "TZJZXJK" ("Special Container parts library" acronym) is created in the hard disk of the computer, and then a secondary folder "BZJK" ("standards library" acronym) and "FBZJK" ("non-standards library" alphabetical abbreviation) are created in the folder. And putting the standard component model created in the step two into a 'BJZK' folder. And creating a three-level folder with each module as a name under the FBZJK folder, such as QDMK (front end module acronym), DBSK (top module acronym) and the like, and respectively placing the non-standard part models created in the step two into the corresponding module folders.

Step four, establishing an MFC (Microsoft basic library) dynamic link library project by using Microsoft VS2010, compiling a C + + program in the project by using a Pro/TOOLKIT function, acquiring part information and manufacturing a Creo menu bar, wherein the specific process is as follows:

the method comprises the following steps of firstly, compiling a C + + program by adopting a Protoolkit function, respectively creating a pointer object for each part, and allocating a computer memory space for each part for storing part name information, model file path information and size information parameters.

And secondly, filling all the part model file paths in the third step into the memory space corresponding to the pointer object established in the first step one by one, and for the non-standard part, except for storing the part model file path information, additionally applying a Protoolkit function to obtain the name and the size parameter information of each non-standard part model and storing the name and the size parameter information in the memory space of the computer.

And thirdly, compiling a C + + program by adopting a Protoolkit function, creating a Creo menu program for calling the parts, creating a corresponding menu button for each part in the part library, associating the button with the object in the first step in the step, and realizing that the part information is obtained by clicking the menu button.

And fourthly, running and debugging the C + + program compiled from the first step to the third step in the step, generating a dll (dynamic link library) file by the MFC dynamic link library item, establishing a registration file protk.

And step five, loading the registration file protk.dat in the step four in the Creo software tool menu, and displaying a part model calling menu in a toolbar.

The part calling process is as follows:

when the standard component is called, the corresponding specification component is directly selected from the menu bar, that is, the model in the component library folder in the third step can be imported into the Creo software, and FIG. 5 is a lock bar model calling example. When the non-standard part is called, a required part is selected in a menu, a part parameter input window is popped up, and after parameter input is completed, the importing of a non-standard part model can be completed, as shown in fig. 6 and 7, a non-standard part front threshold module calling example is shown.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:模型的出图方法、装置、计算机设备及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类