Embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings, the content of embodiment is not as to this
The limitation of the protection domain of invention.
Unified Modeling platform of the present invention can provide a unified communication for different Engineering Modeling software and connect
Mouth (i.e. Modeling engine calls in interface) and development environment, it is to avoid because repeating to model caused by Engineering Modeling software is different, carry
High product versatility, reduces manpower demand.
Fig. 1 shows the schematic diagram of the unified Modeling platform of the present invention.As shown in figure 1, the unified Modeling platform of the present invention
Including unified Modeling engine and unified interactive interface.Wherein, the unified Modeling engine includes modeling functions storehouse, modeling process note
Record device and driving parser.The modeling functions storehouse includes the various functions used in modeling.In the present invention, it is described to build
Modular function storehouse includes multiple shared functions and multiple non-shared functions.
The shared function refers to the function all in all kinds of Engineering Modeling softwares with the function corresponding with its title.Example
Such as, in all kinds of Engineering Modeling softwares, in CATIA, UG, Pro/E etc., all including create point function, create line function,
The function in establishment face etc., then shared function in the modeling functions storehouse just include creating the function of point, the function for creating line,
The function in establishment face etc..The function all included for this all kinds of Engineering Modeling softwares, in the present invention by encapsulating all kinds of works
The respective function of journey modeling software and form shared function accordingly, for example, the shared function " establishment point " in modeling functions storehouse
Function be the function for the establishment point for encapsulating CATIA, also encapsulate UG establishment point function, also encapsulate PRO/E wound
Function laid foundations etc.;The function of shared function " establishment line " in modeling functions storehouse be encapsulate CATIA establishment line function,
Also the function of UG establishment line, the function of establishment line for also encapsulating PRO/E etc. are encapsulated;Shared function in modeling functions storehouse
The function in " establishment face " is the function in the establishment face for encapsulating CATIA, also encapsulate UG establishment face function, also encapsulate
PRO/E function in establishment face etc..In specific modeling, if user passes through " software merit rating option " described later configuration modeling institute
Engineering Modeling software is CATIA, by clicking on " point " that the follow-up Modeling engine is called in interface, is calling in the system
During the function of " establishment point " in the modeling functions storehouse of one Modeling engine, it can call CATIA's as shown in Figure 3 automatically
Create the function of point.If the Engineering Modeling software that user configures used in modeling by " software merit rating option " described later is UG,
By clicking on " point " that the follow-up Modeling engine is called in interface, in the modeling functions storehouse for calling in the unified Modeling engine
" establishment point " function when, the function of the establishment point of UG as shown in Figure 4 can be called automatically.Similarly, if user
It is PRO/E that the Engineering Modeling software used in modeling is configured by " software merit rating option " described later, by clicking on subsequently described build
" point " that mould engine is called in interface, the function of " establishment point " in the modeling functions storehouse for calling in the unified Modeling engine
When, the function of PRO/E establishment point can be called automatically.To put it more simply, no longer listing the letter of PRO/E establishment point in the present invention
Number.
The non-shared function refers to there is function corresponding with its title, another part in a part of Engineering Modeling software
Do not have the function of function corresponding with its title in Engineering Modeling software.For example, including the function for creating body, user in UG
The function for creating body need to be only called in when body is created in UG, and inputs the establishment that body can be achieved in length.And in CATIA and
The function for creating body is then not present in PRO/E etc., it is necessary to elder generation's skeletonizing when user creates body in CATIA and PRO/E etc.,
Then redraw.Therefore, the function for creating body just belongs to non-shared function.Have for this part of Engineering Modeling software but
The function that another part Engineering Modeling software does not have, in the present invention, for the engineering with function corresponding with its title
The function of modeling software, the non-shared function pair its be packaged;For the engineering without function corresponding with its title
Modeling software, carries out secondary development, so that secondary development function is formed, two described in the non-shared function pair to its modeling process
Secondary exploitation function is packaged.For example, the function of the establishment body in modeling functions storehouse be encapsulate UG establishment body function,
Encapsulate the secondary development function of the establishment body for exploitations such as CATIA and PRO/E.In specific modeling, if user pass through it is rear
The Engineering Modeling software used in " software merit rating option " configuration modeling stated is UG, is called in by clicking on the follow-up Modeling engine
" body " in interface, during the function of " establishment body " in the modeling functions storehouse for calling in the unified Modeling engine, can be adjusted automatically
With the function of the establishment body of UG as shown in Figure 5.In the function shown in Fig. 5, represent that creating length, width and height is respectively
100mm square.Certainly, if creating the body of other sizes, the numeral in the function shown in Fig. 5 need to only be changed.Such as
The Engineering Modeling software that fruit user configures used in modeling by " software merit rating option " described later is CATIA, follow-up by clicking on
" body " that the Modeling engine is called in interface, " establishment body " in the modeling functions storehouse for calling in the unified Modeling engine
During function, the secondary development function for the CATIA establishment bodies developed as shown in Fig. 6 .1-6.3 can be called automatically.Its
In, because the code of the secondary development function for the CATIA establishment bodies developed is longer, therefore schemed in the accompanying drawings by Fig. 6 .1-
6.3 show, the content that these three accompanying drawings are shown is complete generation of the secondary development function for the CATIA establishment bodies developed
Code.Similarly, if the Engineering Modeling software that user configures used in modeling by " software merit rating option " described later is PRO/E, lead to
Cross and click on " body " that the follow-up Modeling engine is called in interface, in the modeling functions storehouse for calling in the unified Modeling engine
During the function of " establishment body ", it can call automatically as the secondary development function of the PRO/E establishment bodies developed.To put it more simply, in this hair
The secondary development function of the establishment body of PRO/E exploitations is no longer listed as in bright.
In addition, the efficiency in order to improve modeling, in the present invention, the modeling functions storehouse further comprise multiple modularizations
Function.The function that the modularization function is not included in itself by all kinds of Engineering Modeling softwares, its be obtained by exploitation,
The secondary development function of the modeling of the figure of given shape can be realized.For example, in all kinds of Engineering Modeling softwares, such as CATIA,
Do not include the function for creating multilayer stretched body as shown in Figure 7 in UG, PRO/E etc., and this multilayer stretched body exists
Right and wrong usually, in order to improve modeling efficiency, can develop establishment respectively for CATIA, UG, PRO/E etc. in some industry
The secondary development function of multilayer stretched body.For this all kinds of Engineering Modeling software functions all not to be covered, in the present invention, divide
Safety pin is to all kinds of Engineering Modeling softwares, and the modeling process such as CATIA, UG, PRO/E carries out secondary development, forms secondary open
Send a letter number, secondary development function described in the modularization function pair is packaged.For example, the establishment multilayer in modeling functions storehouse is drawn
The function for stretching body encapsulates the secondary development function of the multilayer stretched body of establishment for exploitations such as CATIA, UG and PRO/E.Specific
During modeling, if the Engineering Modeling software that user configures used in modeling by " software merit rating option " described later is UG, pass through point
" multilayer stretched body " that the follow-up Modeling engine is called in interface is hit, the modeling functions storehouse of the unified Modeling engine is being called in
In " create multilayer stretched body " function when, can call automatically as the secondary development letter of the UG multilayer stretched bodies of establishment developed
Number.If the Engineering Modeling software that user configures used in modeling by " software merit rating option " described later is CATIA, by clicking on
" multilayer stretched body " that the follow-up Modeling engine is called in interface, in the modeling functions storehouse for calling in the unified Modeling engine
" create multilayer stretched body " function when, can call automatically as the secondary development letter of the CATIA multilayer stretched bodies of establishment developed
Number.Similarly, if the Engineering Modeling software that user configures used in modeling by " software merit rating option " described later is PRO/E, lead to
Cross and click on " multilayer stretched body " that the follow-up Modeling engine is called in interface, calling in the modeling letter of the unified Modeling engine
During the function of " creating multilayer stretched body " in number storehouse, it can call automatically as the secondary of the PRO/E multilayer stretched bodies of establishment developed
Develop function.Because the secondary development function for CATIA, UG and PRO/E multilayer stretched body of establishment developed is long, for letter
Change, the secondary development function of the establishment polylayer forest of CATIA, UG and PRO/E exploitation is no longer listed as in the present invention.But, this
Art personnel pass through the language such as C according to the shape of the multilayer stretched body, it is easy to which ground is with regard to that can develop the function.
The particular content of secondary development function and how specifically to work out secondary development function be not the present invention emphasis where.
In addition, in order that the unified Modeling platform have opening, be easy to different users to enter the Modeling Platform
Row secondary development, so that the unified Modeling platform more meets the demand of user, the unified Modeling engine further comprises
Com interface.User can utilize different development languages by the com interface, and such as VBS, Python etc. is described to operate
Function in modeling functions storehouse, such as each non-shared function, and modularization function etc., and secondary open is carried out on this basis
Hair;Or user directly can develop oneself with a variety of development languages needed for modularization function so that unified
Modeling Platform more meets the demand of user.
Basic model unit and the basic model unit in modeling process logger record modeling process it
Between relation so as to forming neutral model file.Specifically, the neutral model file is unified Modeling platform oneself rule
The file of fixed form, for describing a model.The neutral model file includes two kinds of content, a type of
The basic model unit being related in content record modeling process, such as point, line, surface, node, body;In another type of
Hold the relation between basic model unit involved in record modeling process, that is, record the pedigree between the basic model
Relation, such as some point are the starting points of certain line, and another point is terminal of this bar line etc..Fig. 8 shows a kind of exemplary
Neutral model file.In the neutral model file shown in Fig. 8, wherein, " Configure:Configure in CATIA "
The information of configuration is represented, the keyword configured here is CATIA, i.e., the engineering configured by " software merit rating option " described later is built
Mould software is CATIA.“Model:What the Model table in TestModel1 " showed is model, model it is entitled
“TestModel1”." Geometry " represents set graphical-set, and point, line, surface described below are all preserved herein.“Point:
Start1100, the Point in 200 " represents that a little the entitled start1 of point has numeral 100 and 200 to represent the two of the point below
Individual coordinate.“Line:Line in line1 start1, end1 " represents line, and the entitled line1 of line has two points below
Start1 and end1 represent to constitute two coordinate points of the line.“Surface:In sur1 start1, end1, plane1 "
Surface represents face, the entitled sur1 in face, and three points start1, end1 and plane1 below represent to determine needed for the face
Three points wanted.In this neutral model file, the basic model unit recorded include point start1, end1 and
Plane1, line line1 and face sur1.Relation between the basic model unit recorded is that point start1 is line line1
Starting point, point end1 be line line1 terminal;Point start1, end1 and plane1 are determination face sur1 three points.In this hair
In bright, the data in neutral model file are preserved in the form of object class, are saved in object-oriented database, neutral text
Part is a binary file.
The driving parser is used to parse the neutral model file and based on the letter in the modeling functions storehouse
Number performs the neutral model file in the Modeling interface of the Engineering Modeling software of configuration.Specifically, for example, using
CATIA is created after some model, if subsequently needing to use UG to show above-mentioned model, now, it is not necessary to the weight in UG
The model is newly created, and UG need to be only configured by " the software merit rating option " in unified interactive interface, and passes through system described later
Open button in one interactive interface opens the neutral model file shown in Fig. 7.So, in the driving parser meeting
According to point, line and the function in face is created in the UG as the automatic calling figure 9 of the neutral model file Suo Shi, so as to load
Above-mentioned model is shown in the Modeling interface of UG in " graphical display area ".So, set up in a kind of Engineering Modeling software
Model, can be used in different Engineering Modeling software, without being repeated in every kind of Engineering Modeling software
Modeling, alleviates workload, reduces cost, while improving the versatility of unified Modeling platform.
The driving parser can be developed using a variety of methods.For example, using Python the script such as TCL
Develop the driving parser, due to Python the script such as TCL inherently there is resolver, so this kind of method
Advantage be without writing resolver, but its have the disadvantage the interfaces of various Engineering Modeling softwares to Python TCL support compared with
It is weak.Further, it is also possible to which using document analysis+COM methods, this method Consumer's Experience is good, it is allowed to using different tool software come
Do.In a word, can develop the driving parser using a variety of existing methods, which kind of specifically chosen method and how
The exploitation driving parser is that the technology that those skilled in the art are grasped according to oneself is selectable, is not done herein
It is discussed in detail.
Fig. 2 shows the schematic diagram of the unified interactive interface of the unified Modeling platform of the present invention.As shown in Fig. 2 the system
One interactive interface includes software merit rating option, Modeling engine and calls in interface and graphical display area.Wherein, the software merit rating option
For configuring the Engineering Modeling software used in modeling, for example, user is according to oneself familiarity to various Engineering Modeling softwares,
The Engineering Modeling software of oneself can be used as using softwares such as option and installment CATIA, UG, PRO/E.The graphical display area is used to load
The Modeling interface of the Engineering Modeling software configured, if for example, user by the software merit rating option configuration CATIA,
CATIA Modeling interface will be loaded into so described graphical display area;If user passes through the software merit rating option configuration
UG, then will be loaded into UG Modeling interface, etc. in the graphical display area.The Modeling engine call in interface be used for
Each function in the modeling functions storehouse of the unified Modeling engine is connect relatively, and realization is called to each function.By clicking on
The Modeling engine calls in interface, can call in being adjusted with the Modeling engine in the modeling functions storehouse of the unified Modeling engine
The corresponding function of incoming interface, for example, interface " point " is called in by clicking on Modeling engine, it is soft according to the Engineering Modeling that user is configured
Part, can correspondingly call in the function of the establishment point of the Engineering Modeling software such as CATIA, UG or PRO/E, and in corresponding Modeling interface
Upper establishment point;Equally, interface " line " is called in by clicking on Modeling engine, the Engineering Modeling software configured according to user, accordingly
Ground can call in the function of the establishment line of the Engineering Modeling software such as CATIA, UG or PRO/E, and be created on corresponding Modeling interface
Line;Etc..
In the present invention, as shown in Figure 2, unified interactive interface is divided into menu bar and key frame.The menu bar
On be provided with buttons such as " software merit rating options ", " newly-built ", " preservation " and " opening ".By " newly-built ", " preservation " and " beat
Open " button, it is possible to achieve the newly-built of file, preservation and opening.Meanwhile, key frame is divided into left and right two parts.Left lateral
It is that Modeling engine calls in interface to divide, and interface is called in by clicking on these Modeling engines, can easily call in corresponding modeling letter
Number, so as to easily be created that the model oneself needed.The right is graphical display area, the Engineering Modeling software of its load configurations
Modeling interface, facilitates user modeling and observation.
In the present invention, the design of whole unified interactive interface uses Microsoft Visual Studio.Menu bar makes
The menu bar control carried with software, some push button function oneself needed are configured to menu bar, such as newly-built, are opened, are preserved
Etc..Picture is divided into two parts, the left side shows that modeling is drawn using a tree control by key frame from a segmentation control
Hold up and call in interface, the right is embedded in the Modeling interface of (loading) Engineering Modeling software using a container.When configuring completion
Complete the insertion of the Modeling interface of the Engineering Modeling software of configuration on the right in the container that time just can be.
The selection Engineering Modeling software in " software merit rating option ", can be by corresponding software such as CATIA, UG or PRO/E
Startup program be configured in software.After runs software configurator when needing to be embedded in, wait program start completion,
Software handle is obtained by software process, software child form is obtained by software handle, the parent form handle of child form is set
For the software embedded part of modeling software, the Modeling interface of the Engineering Modeling software of configuration can be just embedded into figure by adjustment position
In shape viewing area.
When specifically used unified Modeling platform of the invention creates model, user is soft to various Engineering Modelings according to oneself
The familiarity of part selects Engineering Modeling software known to oneself by " the software merit rating option ".By the institute in modeling
The Modeling interface used is the Modeling interface of user's known Engineering Modeling software in itself, and used modeling functions are most of
All it is the function of user's known Engineering Modeling software in itself, therefore, user uses easily, is familiar with the absence of user
CATIA, and the problem of the Modeling interface and modeling functions of use UG or other Engineering Modeling softwares, it is convenient for users to use,
The requirement of various engineering modeling software can be used user by reducing.
Create after model, the unified Modeling platform can produce two kinds of destination files, and a kind of is the result of configuration software
File, if for example, configuration is CATIA, then produce CATIA modeling result software, if that configuration is UG, then production
Raw UG modeling result software.Another is neutral model file, and neutral model file is as defined in unified Modeling platform oneself
The file of form, for describing a model.Later if necessary to using another type of model when, only need to open it is described in
Property model file, without modeling again, expands the versatility of model.
The use process of the unified Modeling platform of the present invention is described in detail with an example below.
In this example embodiment, it is assumed that user can use CATIA, and entitled TestModel1 mould is set up
Type.The model includes three point start1, end1, plane1, a line line1, and a face sur1.Wherein, point
Start1 two coordinates are respectively 100 and 200, and point end1 two coordinates are respectively 200 and 200, two of point plane1
Coordinate is respectively 300 and 300, and line line1 starting point is point start1, and terminal is point end1, determines three of the face sur1
Point is respectively point start1, point end1 and point plane1.
Now, user begins to use the unified Modeling platform of the present invention to create above-mentioned model.User is using the present invention's
When unified Modeling platform creates above-mentioned model TestModel1, by described on unified interactive interface, " software merit rating is selected first
" selection CATIA.By selecting CATIA, CATIA Modeling interface automatic can be loaded into the graphical display area.
Then, the Modeling engine that user is clicked on unified interactive interface calls in interface " point ", and CATIA wound can be called in automatically
The function laid foundations, user only need in the user interface of the function title " start1 " of input point and two Hes of coordinate 100
200, the establishment with regard to first point start1 can be completed;Then, the Modeling engine that user continues to click on unified interactive interface is adjusted
Incoming interface " point ", can call in automatically CATIA establishment point function, user only need in the user interface of the function input point
Title " end1 " and two coordinates 200 and 200, the establishment with regard to second point end1 can be completed;Similarly, user continues to click on unification
Modeling engine on interactive interface calls in interface " point ", the function of CATIA establishment point can be called in automatically, user only need to be in the letter
The title " plane1 " of input point and two coordinates 300 and 300 in several user interfaces, with regard to that can complete the 3rd point plane1's
Create.So far, three points start1, end1 and plane1 establishment are completed.
Next, the Modeling engine that user is clicked on unified interactive interface calls in interface " line ", CATIA can be called in automatically
Create line function, user only need in the user interface of the function title " line1 " and starting point start1 of input line and
Terminal end1, the establishment with regard to line line1 can be completed.
Finally, the Modeling engine that user is clicked on unified interactive interface calls in interface " face ", and CATIA wound can be called in automatically
Build the function in face, user only the title " sur1 " of input face and need to determine three of the face in the user interface of the function
Coordinate points start1, end1 and plane1, just can complete the establishment of the face sur1.So far, the establishment of whole model is completed.
Create after above-mentioned model, the unified Modeling platform can produce two kinds of destination files, and a kind of is configuration software
Destination file, i.e., by the result software of the CATIA above-mentioned models of establishment produced, it is produced in itself by CATIA softwares, Yi Houke
To be opened in CATIA softwares, the model is shown by CATIA Modeling interface.Another is by unified Modeling platform
Modeling process logger record, being described according to form as defined in unified Modeling platform oneself as shown in Figure 8
Neutral model file.
If follow-up CAE analysis instrument needs to use the model of UG forms, now, it is not necessary to set up again using UG
Above-mentioned model.User selects UG by " software merit rating option " described on unified interactive interface.By selecting UG, it can exist automatically
UG Modeling interface is loaded into the graphical display area.Then, the neutral mould shown in Fig. 8 is opened by the open button
Type file, now, the driving parser can parse the neutral model file automatically, and according to neutral model text
Point, line and the function in face are created in UG as shown in the automatic calling figure 9 of part, so that the UG loaded in " graphical display area "
Modeling interface in show above-mentioned model.Due to being the above-mentioned model opened in UG, so UG can save as above-mentioned model
The file of UG forms, consequently facilitating follow-up CAE analysis instrument is used.
In the present invention, can be different by the encapsulation and secondary development of the function to different Engineering Modeling softwares
Engineering Modeling software provides unified a communication interface (i.e. Modeling engine calls in interface) and development environment, it is to avoid because engineering
Repeat to model caused by modeling software is different, improve product versatility, reduce manpower demand.Meanwhile, by modeling process
Record and its neutral model file to record parsing and execution, it is possible to achieve the automatic conversion of isomery model, so as to carry
The high versatility of model.Moreover, the foundation of isomery model conversion is neutral model file and non-source modeling result file, and by
The relation between basic modeling unit and basic modeling unit is only have recorded in neutral model file, so in isomery model
The problem of distortion is not present in automatic conversion process, so as to the correctness for the analysis result for ensureing follow-up CAE analysis instrument.