CN106372280A - Method for converting RVM files into CATIA models - Google Patents
Method for converting RVM files into CATIA models Download PDFInfo
- Publication number
- CN106372280A CN106372280A CN201610705507.6A CN201610705507A CN106372280A CN 106372280 A CN106372280 A CN 106372280A CN 201610705507 A CN201610705507 A CN 201610705507A CN 106372280 A CN106372280 A CN 106372280A
- Authority
- CN
- China
- Prior art keywords
- rvm
- model
- file
- catia
- solid
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/178—Techniques for file synchronisation in file systems
- G06F16/1794—Details of file format conversion
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method for converting RVM files into CATIA models. The method comprises the following steps of analyzing an RVM file, wherein the analysis step comprises recording a nest relation of CNTB-CNTE, namely, a hierarchical relation of models, extracting parameters in a PRIM field, and storing the parameters in a corresponding data structural body; and constructing a CATIA model, wherein the CATIA model comprises a geometry type which is obtained in the analysis of RVM file. According to the method for converting RVM files into CATIA models, the hierarchical relation of the models in the RVM files, namely, a model structure tree, and the geometric parameter information of the models can be recorded, and the models are reconstructed in CATIA environment by utilizing a secondary development tool CAA (Component Application Architecture) of CATIA. Through the method, the converted models contain all the geometry information and model hierarchical relations in the original RVM file.
Description
Technical field
The present invention relates to Design of digital, virtual emulation with nuclear engineering field and in particular to rvm file translations are become by one kind
The method of catia model.
Background technology
Pdms Three-dimensional Design Software is applied widely in fields such as electric power, chemical industry, the energy and nuclear engineerings.Pdms software can
Carry out data exchange by rvm and other three dimensional design simulation softwares.But rvm file can not be by most of Three-dimensional Design Software
Compatibility, that is, enable compatibility and there is also various problems, such as: in rvm, the hierarchical relationship of model cannot be rebuild, solid information exists
Disappearance etc..Such issues that lead to open rvm file in other three-dimensional softwares after again it cannot be measured, position etc. and to need
Want the operation of model accurate coordinates, and lose it is desirable to the model adeditive attribute after conversion due to what hierarchical relationship tied by model
Existing problems.
Content of the invention
The present invention is directed to the deficiencies in the prior art, proposes a kind of method that rvm file is converted into catia model.
The method that rvm file is converted into catia model includes:
Parsing rvm file, it includes the hierarchical relationship that the nest relation of record cntb-cnte is model, by prim field
In parameter extraction and be stored in corresponding data structure;
Construction catia model, it is included according to the solid type obtaining in the parsing of described rvm word, prior pin
Each type is set up in catia with a udf (user defined feature) model, then utilizes visual
Studio+caa+rade development environment, in described parsing rvm file according to model parameter letter specific in the rvm getting
Breath, these parameter informations are changed into the information needed for udf, then udf example is melted into model corresponding with rvm.
Preferably, the keyword in rvm includes head, modl, cntb, cnte, prim, end.
Preferably, described cntb and described cnte occurs in pairs, between described cntb and described cnte can nesting at least
One described cntb and described cnte.
Preferably, deposit solid information in described prim field.
Preferably, described solid information includes solid type, and solid rotates and skew, and solid enveloping solid is several
What shape parameter.
Preferably, the corresponding solid information of described prim field is inserted in part model.
Preferably, described prim field can be inserted into new product under product model and may be inserted into part mould again
Type.
Preferably, described prim field inserts solid information under part model.
Compared with prior art, the method have the advantages that
1st, the method that rvm file is converted into catia model that the present invention provides, is able to record that model in rvm file
Hierarchical relationship is the geometry parameter information of Model Structure Tree and model, then utilizes secondary development tool caa of catia
It is reconstructed in catia environment by (component application architecture).By this method migration
Model contains all solid information and model hierarchical relationship in former rvm file.
2nd, the method that rvm file is converted into catia model that the present invention provides, soft as three dimensional design to pdms is used
Using softwares such as the emulation of Da Suo company, checking, model data management, the user of part solves the problems, such as that model is incompatible.
Brief description
The structural representation of Fig. 1 prim proposed by the present invention field;
Fig. 2 is the flow chart of the method that rvm file is converted into catia model proposed by the present invention.
Specific embodiment
Understandable for enabling the above objects, features and advantages of the present invention to become apparent from, below in conjunction with the accompanying drawings and specifically real
The present invention is further detailed explanation to apply mode.
The method that rvm file is converted into catia model includes: parsing rvm file and construction catia model two parts.
Parsing rvm file groundwork is: the nest relation of record cntb-cnte is the hierarchical relationship of model, by prim
Parameter extraction in field is simultaneously stored in corresponding data structure.Keyword in rvm have head, modl, cntb,
Cnte, prim, end etc..Each keyword represents beginning or the end of a field, and wherein head, modl and end only goes out
Now once, respectively in the beginning and end of file.Head represents file header;End represents the whole end of file;Modl key table
Show the beginning of solid in whole file;The beginning of cntb representative model, cnte representative model terminates, and both of which goes out in pairs
Existing, again can nested cntb-cnte between cntb-cnte;Solid information is deposited in prim field, such as solid type, several
What body rotation and skew, solid enveloping solid, geometry shape parameter.
Construction catia model includes: according to the solid type obtaining in rvm, is directed to each type in advance in catia
In set up a udf (user defined feature) model.It is development environment using visual studio+caa+rade,
When parsing rvm file according to model parameter information specific in the rvm getting, these parameter informations are changed into udf institute
The information needing, then udf example is melted into model corresponding with rvm.
In catia, product represents assembling model, and part represents part model, and the corresponding solid of prim field is all
It is inserted in part model;Not only can be inserted into new product under product model but also may be inserted into part model, but part
Only pluggable solid under model.
In rvm file, the parameter information of solid leaves in prim field, no matter for which kind of type solid, its lattice
Formula is basically identical, and the structure of prim field is as shown in Figure 1: s11 represents solid type;S12 is the matrix of three rows and four columns,
The 0th of matrix, 1,2 row represent solid centers with respect to coordinate axess spin matrix, the 3rd row represent solid center with respect to
The offset vector of zero;S13 is the local coordinate with upper right corner Liang Ge summit for the lower left corner of enveloping solid;S14 form parameter,
Can determine that the shape of solid according to form parameter.In confirmable rvm file, solid type is as shown in table 1 at present, in table 1
" form parameter in rvm " hurdle represents the geometry shape parameter that can obtain from rvm file, can in conjunction with solid type
To determine geometry shape.
Table 1 rvm solid parameter declaration
Udf model manual creation in catia according to the information in table 1, udf can regard a template, Yong Huke as
It is variable to define which parameter in udf, these variable elements pass through the input of caa program and determine.Automatically create model in caa
When for same type of solid, the udf parameter of input is different, just can obtain different solid examples.Each type of
As shown in table 2, the udf parameter in table 2 all can obtain on " form parameter in the rvm " hurdle from table 1 the udf parameter of solid
Arrive.Thus establish the corresponding relation between the form parameter in rvm and udf parameter.It should be noted that acquiescence udf model
All in initial position, its central point is overlapped with zero.First the parameter determining solid must be carried out coordinate in instantiation
Convert, then parameter is passed to udf and carry out instantiation, thus obtaining the shape solid all consistent with rvm file with coordinate.Table
In 1,116 types represent that 115 types represent band knuckle radius without knuckle radius (knuckle radius).
Table 2 udf parameter declaration
Caa Automatic Program parsing rvm file simultaneously constructs specifically comprising the following steps that of catia model
(1) open rvm file, obtaining its file header is head field, mainly comprises the creation time of file in this field,
Founder, the information such as coded format;
(2) create root product file, (s21) is named with modl field name;
(3) read the data line (s22) of rvm file;
(4) judge whether this is cntb keyword (s25), if then obtaining the title of this field;
(5) judge that this cntb represents product or part (s26);
(6) if product, then thereon under a level a newly-built empty product model (s23) to obtain in step 4
The name nominating taking, obtains the pointer of this product and is stored in stack list (s24), the step that then program continues s22;
(7) if part, then newly-built one empty part model (s27), Ran Houcheng under the product level of current active
The step that sequence continues s22;
(8) in step (4), if it is otherwise, continuing to determine whether is prim keyword (s28), if so, then first determining should
Which part model (s29) is prim field be belonging to, then a newly-built solid (s210), journey under corresponding part model
The step that sequence continues s22.
(9) if not prim keyword, then judge whether it is cnte keyword (s212), if so, then will judge and be somebody's turn to do
The cntb-cnte of cnte composition to whether being part model (s213),
(10) if part model then preserves this part model (s211), and continue s22 step
(11) if the Top Of of product model then pop-up a stack, and assign it to the pointer of current product
, and the step that continues s22 (s214).
(12) if not cnte keyword, then judge whether it is end keyword, if otherwise continuing s22 step (s215);
(13) if end keyword, represent the rvm end of file, preserve the newly-built product mould of each level, and exit
Program (s216).
S210 detailed process is: first obtains the data such as table 1 of each field under prim, is determined according to solid type and call
Which udf, the data of acquisition is changed into the parameter such as table 2 needed for udf, finally udf example is melted into solid.
Compared with prior art, the present embodiment has the advantages that
1st, the method that rvm file is converted into catia model that the present embodiment provides, is able to record that model in rvm file
Hierarchical relationship be Model Structure Tree and model geometry parameter information, then utilize catia secondary development tool caa by its
Catia environment reconstructs.All solid information and model layer in former rvm file are contained by the model of this method migration
Level relation.
2nd, the method that rvm file is converted into catia model that the present embodiment provides, to being used pdms as three dimensional design
Using softwares such as the emulation of Da Suo company, checking, model data management, the user of software solves the problems, such as that model is incompatible.
In this specification, each embodiment is described by the way of going forward one by one, and what each embodiment stressed is and other
The difference of embodiment, between each embodiment identical similar portion mutually referring to.For system disclosed in embodiment
For, due to corresponding to the method disclosed in Example, so description is fairly simple, referring to method part illustration in place of correlation
?.
Those skilled in the art can use different methods to each specific application realize described function, but
It is this realization it is not considered that beyond the scope of this invention.
Obviously, those skilled in the art can carry out the various changes and modification spirit without deviating from the present invention to invention
And scope.So, if these modifications of the present invention and modification belong to the claims in the present invention and its equivalent technologies scope it
Interior, then the present invention is also intended to including these changes and modification.
Claims (8)
1. a kind of by rvm file be converted into catia model method it is characterised in that include:
Parsing rvm file, it includes the hierarchical relationship that the nest relation of record cntb-cnte is model, by prim field
Parameter extraction is simultaneously stored in corresponding data structure;
Construction catia model, it includes according to the solid type obtaining in the parsing of described rvm word, is directed to every in advance
One type sets up a udf model in catia, then utilizes visual studio+caa+rade (rapid
Development environment) development environment, in described parsing rvm file according to mould specific in the rvm getting
Shape parameter information, these parameter informations are changed into the information needed for udf, then udf example is melted into mould corresponding with rvm
Type.
2. according to claim 1 rvm file is converted into the method for catia model it is characterised in that pass in rvm
Key word includes head, modl, cntb, cnte, prim, end.
3. according to claim 2 by rvm file be converted into catia model method it is characterised in that described cntb and
Described cnte occurs in pairs, being capable of nested at least one described cntb and described cnte between described cntb and described cnte.
4. according to claim 2 rvm file is converted into the method for catia model it is characterised in that described prim word
Solid information is deposited in section.
5. according to claim 4 rvm file is converted into the method for catia model it is characterised in that described solid
Information includes solid type, solid rotation and skew, solid enveloping solid, geometry shape parameter.
6. according to claim 4 rvm file is converted into the method for catia model it is characterised in that described prim word
The corresponding solid information of section is inserted in part model.
7. according to claim 4 rvm file is converted into the method for catia model it is characterised in that described prim word
Section not only can be inserted into new product under product model but also may be inserted into part model.
8. according to claim 4 rvm file is converted into the method for catia model it is characterised in that described prim word
Section inserts solid information under part model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610705507.6A CN106372280A (en) | 2016-08-22 | 2016-08-22 | Method for converting RVM files into CATIA models |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610705507.6A CN106372280A (en) | 2016-08-22 | 2016-08-22 | Method for converting RVM files into CATIA models |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106372280A true CN106372280A (en) | 2017-02-01 |
Family
ID=57878222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610705507.6A Pending CN106372280A (en) | 2016-08-22 | 2016-08-22 | Method for converting RVM files into CATIA models |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106372280A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122524A (en) * | 2017-03-30 | 2017-09-01 | 上海核工程研究设计院 | A kind of method that mechanics of piping analysis result is converted into threedimensional model |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130076518A (en) * | 2011-12-28 | 2013-07-08 | 현대중공업 주식회사 | Method for automatic conversion from piping modeling program |
CN104794252A (en) * | 2014-01-17 | 2015-07-22 | 中国石油集团工程设计有限责任公司 | Three-dimensional model data processing method and electronic terminal |
CN104915216A (en) * | 2015-07-03 | 2015-09-16 | 中国电力工程顾问集团东北电力设计院有限公司 | System and method for converting data from PDMS software to MIDAS software |
-
2016
- 2016-08-22 CN CN201610705507.6A patent/CN106372280A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130076518A (en) * | 2011-12-28 | 2013-07-08 | 현대중공업 주식회사 | Method for automatic conversion from piping modeling program |
CN104794252A (en) * | 2014-01-17 | 2015-07-22 | 中国石油集团工程设计有限责任公司 | Three-dimensional model data processing method and electronic terminal |
CN104915216A (en) * | 2015-07-03 | 2015-09-16 | 中国电力工程顾问集团东北电力设计院有限公司 | System and method for converting data from PDMS software to MIDAS software |
Non-Patent Citations (1)
Title |
---|
彭锐 等: "PDMS数据转换应用研究", 《天然气与石油》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122524A (en) * | 2017-03-30 | 2017-09-01 | 上海核工程研究设计院 | A kind of method that mechanics of piping analysis result is converted into threedimensional model |
CN107122524B (en) * | 2017-03-30 | 2023-04-14 | 上海核工程研究设计院股份有限公司 | Method for converting pipeline mechanics analysis result into three-dimensional model |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
McDonald et al. | The history of MODFLOW | |
US6339836B1 (en) | Automated design partitioning | |
Isikdag et al. | Building information models: a review on storage and exchange mechanisms | |
CN107491555A (en) | Knowledge mapping construction method and system | |
CN112445876B (en) | Entity alignment method and system for fusing structure, attribute and relationship information | |
CN113052023A (en) | CAD drawing analysis method, device, equipment and storage medium | |
CN105975723B (en) | A kind of method for interchanging data for heterogeneous CAD model in spacecraft development process | |
CN106709980A (en) | Complex three-dimensional scene modeling method based on formalization | |
US7013468B2 (en) | Method and apparatus for design and manufacturing application associative interoperability | |
CN110659317A (en) | BIM data lightweight method | |
CN114116668A (en) | Data storage method and device for equipment model | |
CN109033523A (en) | A kind of Assembly process specification generation System and method for based on three-dimensional CAD model | |
CN106126789A (en) | Monitoring Data based on Revit Yu Matlab updates and the integrated system processed and method | |
Pan et al. | A novel hdf-based data compression and integration approach to support bim-gis practical applications | |
Chung et al. | MCML: motion capture markup language for integration of heterogeneous motion capture data | |
Shin et al. | Data enhancement for sharing of ship design models | |
CN106372280A (en) | Method for converting RVM files into CATIA models | |
CN111709601B (en) | Data processing method and device | |
Tierney et al. | Using mesh-geometry relationships to transfer analysis models between CAE tools | |
CN116756338A (en) | AR assembly guidance-oriented process knowledge graph construction method and system | |
CN110489740A (en) | Semantic analytic method and Related product | |
CN105869213B (en) | A kind of multistage FDTD mesh modeling method | |
Rowe et al. | Acquisition, representation, query and analysis of spatial data: a demonstration 3D digital library | |
Bigvand et al. | Concept and development of a semantic based data hub between process design and automation system engineering tools | |
CN113238743B (en) | Virtual-real hybrid control method for simulation training system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170201 |