CN105005642B - A kind of threedimensional model batch format conversion and light weight method - Google Patents
A kind of threedimensional model batch format conversion and light weight method Download PDFInfo
- Publication number
- CN105005642B CN105005642B CN201510358737.5A CN201510358737A CN105005642B CN 105005642 B CN105005642 B CN 105005642B CN 201510358737 A CN201510358737 A CN 201510358737A CN 105005642 B CN105005642 B CN 105005642B
- Authority
- CN
- China
- Prior art keywords
- file
- model
- conversion
- batch
- forms
- 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.)
- Expired - Fee Related
Links
Landscapes
- Processing Or Creating Images (AREA)
Abstract
The present invention is a kind of threedimensional model batch format conversion and light weight method, belongs to Computer Simulation field.The flow of the inventive method is:The Batch conversion of stp forms is carried out to three-dimensional entity model file with CATIA softwares;Batch format conversion and light-weight technologg are carried out to gained stp forms model using the program 3DVIA Sync in 3DVIA Composer, obtain 3ds form models;The three-dimensional entity model imported with Unity3D after lightweight.Whether the present invention considers model conversion effect, can the index such as batch processing and input/output call format, using suitable processing software and the conversion of reasonable form and light-weight technologg mode, on the premise of model display effect is ensured, effectively reduce file size, reduce the model conversion time, reduce cost.
Description
Technical field
The present invention is a kind of threedimensional model batch format conversion and light weight method, and in particular to the export of model, model
The processes such as form is changed and model imports again, belong to Computer Simulation field.
Background technology
It is at present in correlation computer Autocad in Computer Simulation field, a vital job
Threedimensional model enters row format conversion and light-weight technologg, by reasonable, practical, efficient processing mode, realizes threedimensional model etc.
The cross-platform operation of multimedia object, and then be combined with using increasingly extensive mobile platform.Among these, threedimensional model form
The quality of conversion and light-weight technologg mode just seems increasingly important, because threedimensional model contains many parameter informations, it
File size is generally very big, and just the model cross-platform interchange equipment for the later stage proposes very high requirement, while causes at model
The efficiency of reason reduces.
The form conversion of high quality and light-weight technologg mode can both support satisfactory input, output format, again
The batch processing of data can be carried out, must additionally take into account display effect and light weight degree after model conversion.With correlation
The development of technology, model to be dealt with is bound to more complicated various in Computer Simulation field, and this requires three-dimensional mould
Type form is changed and lightweight mode has more optimal effect.
The content of the invention
The invention provides a kind of conversion of threedimensional model form and light weight method, is ensureing the premise of model display effect
It is lower effectively to reduce file size, reduce the model conversion time, reduce cost.Through experimental test verification, present invention selection is based on
CATIA, the batch format conversion of two kinds of softwares of 3DVIA Composer and lightweight scheme, so as to reach Efficient Conversion and light weight
The adjustable purpose of change degree.
The threedimensional model form conversion of the present invention and light weight method, implementation steps are as follows:
Step 1, CATIA is called using script, batch processing is carried out to catproduct and catpart forms model, separately deposited
For stp form models;
Step 1.1, the store path of the file of format transformation needed for script acquisition is write;
Step 1, CATIA is called using script, batch processing is carried out to catproduct and catpart forms model, separately deposited
For stp form models;
Step 1.1, the store path of the file of format transformation needed for script acquisition is write;
Step 1.1.1, notepad is opened, is incorporated into code " dir/b/s*.catpart>File.txt " is used to obtain currently
The path of the entitled catpart of suffix file in file, or it is incorporated into code " dir/b/s*.catproduct>file.txt”
For obtain current file folder in the entitled catproduct of suffix file path, by be incorporated into code notepad preserve into
Bat formatted files;
Step 1.1.2, the file of format transformation needed for arrangement, it is placed in same file folder, in step 1.1.1
Bat formatted files are put into this document folder;
Step 1.1.3, double-clicks operation bat files, and generation one includes all txt forms for meeting to require the path of model
File;
Step 1.1.4, with the txt file generated in excel opening steps 1.1.3, the first row of blank is added, first
The sum for meeting to require model is filled in row first row form, preserves into xls forms;
Step 1.2, write script and call CATIA, the files in batch of required format transformation is converted into stp forms;
Step 1.2.1, notepad is opened, batch format transcode is incorporated into, writes and finish, preserve into catvbs forms;
Step 1.2.2, catvbs formatted files being run, realization automatically opens up CATIA and form conversion one by one is carried out to model,
Stp form models after conversion are stored in original folder.
Step 2, enter row format to gained stp form models using the program 3DVIA Sync in 3DVIA Composer to turn
Change and light-weight technologg, obtain 3ds form models.
Step 3, it will handle in the 3ds forms model importing Unity3D that completion obtains, three done to model using Unity3D
Dimension displaying.
The advantages and positive effects of the present invention are:The inventive method considers model after a variety of conversions for handling softwares
Effect, whether can the index such as batch processing and input/output call format, select most suitable processing software, there is provided suitable
Form is changed and light-weight technologg mode, on the premise of model display effect is ensured, effectively reduces file size, reduces model
Conversion time, reduce cost.The present invention devises script and calls CATIA to enter catproduct and catpart form models
Row batch processing, the files in batch conversion for treating format transformation is realized, reduces the model conversion time.
Brief description of the drawings
Fig. 1 is the threedimensional model form conversion of the present invention and light-weighted overall flow schematic diagram;
Fig. 2 is the CATIA batch processing modular concept flows of the present invention.
Embodiment
Threedimensional model batch format proposed by the present invention conversion and light weight method are carried out specifically below in conjunction with the accompanying drawings
It is bright.It should be noted that the file path of this patent meaning is the path not comprising Chinese.
Software used in the inventive method is illustrated first.CATIA is French Da Suo companies (Dassault)
Product development flagship solution.As an important component of PLM collaboration solutions, it can help manufactory
Business designs their following products, and supports from item current stage, specific design and analysis, simulates, is assembled into being maintained in
Whole industrial design flows.The embodiment of the present invention is based on CATIA V5R19 versions.3DVIA Composer are public up to rope by France
Department (Dassault) is proposed a graphics software for the issue of 3D product documentations, and 3DVIA Sync are its subsidiary program, this
Inventive embodiments are based on 2013 simplified form of Chinese Character versions.Unity3D be by Unity Technologies companies exploitation can be light
Pine create 3 D video game, building visualization, the type interaction content such as realtime three dimensional animation it is multi-platform comprehensive
Instrument.Unity3D of the embodiment of the present invention based on 4.6.3 versions.
The present invention considers four aspect factors first:Input/output format meets to require;Model display effect after conversion;
Light weight degree;Batch processing etc. can be carried out.From common 5 kinds of forms conversion and lightweight instrument Deep
3DVIA is selected in Exploration, NGRAIN, Inventor Publisher, GPure, 3DVIA Composer
Composer is as fundamental operating software.
The present invention is a kind of threedimensional model batch format conversion and light weight method, and flow is as shown in figure 1, explanation is each below
Step.
Step 1:CATIA is called using script, batch processing is carried out to catproduct and catpart forms model, separately deposited
For stp form models.This step realizes the Batch conversion for carrying out stp forms to three-dimensional entity model file with CATIA softwares, main
Want flow as shown in Figure 2.
Step 1.1, the store path of the file of format transformation needed for script acquisition is write.
Step 1.1.1, notepad is opened, is incorporated into code " dir/b/s*.catpart>File.txt ", function are to obtain to work as
The path of the entitled catpart of suffix file in preceding document folder;Or it is incorporated into code " dir/b/s*.catproduct>
File.txt ", function are to obtain the path of the entitled catproduct of suffix file in current file folder, and input finishes, and preserves
Into bat formatted files.
Order dir is for the file in Display directory and subdirectory list, and/b represents to use space formula, and/s represents display
File in assigned catalogue and all subdirectories.Catpart and catproduct represents file suffixes type.
Step 1.1.2, the file of format transformation needed for arrangement, it is placed in same file folder, bat in step 1.1.1
Formatted file is put into this document folder.
Step 1.1.3, double-clicks operation bat files, and generation one includes all txt forms for meeting to require the path of model
File.
Step 1.1.4, with txt file in excel opening steps 1.1.3, the first row of blank is added, in its first list
The sum for meeting to require model is filled in lattice, preserves into xls forms;
Step 1.2, write script and call CATIA, the files in batch of format transformation needed for step 1.1 is converted into stp
Form.
Step 1.2.1, notepad is opened, batch format transcode is write, writes and finish, preserve into catvbs forms.
The function that batch format transcode is realized is the xls formatted files that read step 1.1.4 is obtained, and obtains model sum, successively
The store path of the file of format transformation needed for acquisition, entered using movable assembly corresponding under CATIA software acquisition approachs
Row format is changed, and exports the assembly of stp forms.
Following batch format transcodes are incorporated into notepad:
After writing, notepad is preserved into catvbs formatted files.
Catvbs formatted files in step 1.2.2, operating procedure 1.2.1, that is, automatically open up CATIA and model is carried out one by one
Form is changed, and the stp form models after conversion are stored in the file needed residing for format transformation file.
Step 2:Step 1 gained stp forms model is carried out using the program 3DVIA Sync in 3DVIA Composer
Batch format is changed and light-weight technologg, obtains 3ds form models.
Step 2.1,3DVIA Sync programs are opened.
Step 2.2, the Section 1 " file " in the menu bar of the interface left side is clicked on, selection is local to want light-weighted stp lattice
Formula file or the file for including stp formatted files, click on " being added to list " button.Such as need batch-processed files or file
Folder, repeat this step.
Step 2.3, the Section 2 " issue " in the menu bar of the interface left side is clicked on, selection or input in " destination folder "
File storage path after converting.The selection " 3D studio Mesh (.3ds) " in " CAD output formats ".
Step 2.4, the Section 4 " repair/refine " in the menu bar of the interface left side is clicked on, selects lightweight journey as needed
Degree, there are " relative to refine " and " definitely refining " two ways to select.
Step 2.5, " conversion " button is clicked on, program brings into operation, and end of run completes second step of the present invention.
Step 3:The three-dimensional entity model imported with Unity3D after lightweight.
Unity3D softwares are run, " Asset/Import New Asset ", in the alternative column of ejection are selected in main menu
The 3ds files to be imported are selected in table, click on " Import " button, that is, complete the conversion of threedimensional model batch format and light weight
Change mode.
The output format that the present invention is supported the 3DVIA Composer pattern of the inputs supported and CATIA contrasts,
Shared part is chosen, that is, forms the mode of three kinds of form conversions.Three kinds of schemes are respectively:(a) 3DVIA is directly used
Composer is handled catproduct/catpart form models;(b) model is saved as into 3dxml lattice using CATIA
Formula model, reuse 3DVIA Composer and 3dxml form models are handled;(c) model is saved as using CATIA
Stp form models, reuse 3DVIA Composer and stp form models are handled.
For above-mentioned three kinds of schemes, size is 248M Flight Control System Model as example before being changed using one, passes through test
Compare three's quality.Test result shows that conversion time needed for (a), (b), (c) three kinds of schemes is respectively:More than two hours, 9
Points 32 seconds, 11 points 21 seconds;Size after model conversion is respectively:It is unknown, 79.4M, 26.4M;B, model is shown after the conversion of c schemes
Effect is preferable;A, c schemes can adjust light weight degree.In summary, not only light weight degree can be adjusted by scheme c,
It is also shorter in conversion time.The present invention calls CATIA to carry out catproduct and catpart forms model by writing script
Batch processing Batch conversion, decrease the model conversion time.
Claims (2)
1. a kind of threedimensional model form conversion and light weight method, it is characterised in that this method realizes that step is as follows:
Step 1:CATIA is called using script, batch processing is carried out to catproduct and catpart forms model, saves as stp
Form model;
Step 1.1, the store path of the file of format transformation needed for script acquisition is write;
Step 1.1.1, notepad is opened, is incorporated into code " dir/b/s*.catpart>File.txt " is used to obtain current file
The path of the entitled catpart of suffix file in folder, or it is incorporated into code " dir/b/s*.catproduct>File.txt " is used for
The path of the entitled catproduct of suffix file in current file folder is obtained, the notepad for being incorporated into code is preserved into bat lattice
Formula file;
Step 1.1.2, the file of format transformation needed for arrangement, it is placed in same file folder, the bat lattice in step 1.1.1
Formula file is put into this document folder;
Step 1.1.3, double-clicks operation bat files, and generation one includes all txt forms texts for meeting to require the path of model
Part;
Step 1.1.4, with the txt file generated in excel opening steps 1.1.3, the first row of blank is added, in the first row
The sum for meeting to require model is filled in one list lattice, preserves into xls forms;
Step 1.2, write script and call CATIA, the files in batch of required format transformation is converted into stp forms;
Step 1.2.1, notepad is opened, batch format transcode is incorporated into, writes and finish, preserve into catvbs forms;
Described batch format transcode, the function of realization are:The xls formatted files that read step 1.1.4 is obtained, obtain mould
Type sum, the store path of the file of format transformation needed for acquisition, utilizes work corresponding under CATIA software acquisition approachs successively
Dynamic assembly enters row format conversion, exports the assembly of stp forms;
Step 1.2.2, runs catvbs formatted files, and realization automatically opens up CATIA and form conversion one by one, conversion are carried out to model
Stp form models afterwards are stored in original folder;
Step 2:Batch is carried out to step 1 gained stp forms model using the program 3DVIA Sync in 3DVIA Composer
Form is changed and light-weight technologg, obtains 3ds form models;
Step 3:It will handle in the 3ds forms model importing Unity3D that completion obtains, three-dimensional exhibition done to model using Unity3D
Show.
2. a kind of threedimensional model form conversion according to claim 1 and light weight method, it is characterised in that described step
Rapid 2 when using 3DVIA Sync, and selection is locally all in the File Options of menu bar wants light-weighted stp formatted files
Or the file of stp formatted files is included, and in the Publish option in menu bar, selection or the file inputted after converting
Path is stored, the selection " 3D studio Mesh (.3ds) " in " CAD output formats ".
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510358737.5A CN105005642B (en) | 2015-06-25 | 2015-06-25 | A kind of threedimensional model batch format conversion and light weight method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510358737.5A CN105005642B (en) | 2015-06-25 | 2015-06-25 | A kind of threedimensional model batch format conversion and light weight method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105005642A CN105005642A (en) | 2015-10-28 |
CN105005642B true CN105005642B (en) | 2017-11-21 |
Family
ID=54378318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510358737.5A Expired - Fee Related CN105005642B (en) | 2015-06-25 | 2015-06-25 | A kind of threedimensional model batch format conversion and light weight method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105005642B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106844453B (en) * | 2016-12-20 | 2020-09-08 | 江苏瀚远科技股份有限公司 | Electronic file format conversion method |
CN106970804A (en) * | 2017-05-12 | 2017-07-21 | 泰华智慧产业集团股份有限公司 | A kind of method and device for the webpage loading for realizing threedimensional model |
CN108597032B (en) * | 2018-04-27 | 2022-03-25 | 北京唐吉诃德科技有限公司 | Method and system for importing building information model into Unity3D for display |
CN108682047B (en) * | 2018-05-23 | 2022-04-12 | 北京唐吉诃德科技有限公司 | Three-dimensional building model file conversion method and system |
CN108920432B (en) * | 2018-06-25 | 2022-07-05 | 广州文冲船厂有限责任公司 | Method and device for converting 3D PDF file, terminal equipment and storage medium |
CN109684656B (en) * | 2018-11-06 | 2020-12-25 | 南方电网调峰调频发电有限公司 | Assembly constraint inheritance method based on SolidWorks |
CN110059121B (en) * | 2019-03-12 | 2021-09-03 | 广州明珞汽车装备有限公司 | Method, system, device and storage medium for rapidly exporting bill of materials |
CN110096773A (en) * | 2019-04-17 | 2019-08-06 | 中广核工程有限公司 | Threedimensional model batch processing method and system for the exploitation of nuclear power station virtual emulation |
CN110507986B (en) * | 2019-08-30 | 2023-08-22 | 网易(杭州)网络有限公司 | Animation information processing method and device |
CN111783318B (en) * | 2019-10-15 | 2023-03-24 | 上海大学 | Assembly quality data analysis and visualization method based on three-dimensional model |
CN112052224B (en) * | 2020-08-17 | 2023-12-01 | 腾讯科技(上海)有限公司 | File export method and device |
CN112163295B (en) * | 2020-09-28 | 2023-08-18 | 上海卫星装备研究所 | Creo software-based three-dimensional assembly model version comparison system and method |
CN114547744A (en) * | 2022-02-24 | 2022-05-27 | 清华大学 | Model derivation method and device, electronic equipment and storage medium |
CN115080512A (en) * | 2022-08-22 | 2022-09-20 | 南京国睿信维软件有限公司 | Method for quickly converting three-dimensional model format into lightweight data format |
CN116991795B (en) * | 2023-06-27 | 2024-05-17 | 中国船舶集团有限公司第七一九研究所 | Automatic light-weight processing method and system for three-dimensional model |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253981A (en) * | 2011-06-24 | 2011-11-23 | 上海市公安局 | Method for rapidly displaying and browsing massive models of three-dimensional geographic information system |
CN102609991A (en) * | 2012-01-19 | 2012-07-25 | 北京航空航天大学 | Volume-reduction optimization method for three-dimensional solid model |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7797381B2 (en) * | 2003-09-19 | 2010-09-14 | International Business Machines Corporation | Methods and apparatus for information hyperchain management for on-demand business collaboration |
JP5414191B2 (en) * | 2007-04-27 | 2014-02-12 | 株式会社日立ソリューションズ | Document conversion system and document conversion control program |
-
2015
- 2015-06-25 CN CN201510358737.5A patent/CN105005642B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253981A (en) * | 2011-06-24 | 2011-11-23 | 上海市公安局 | Method for rapidly displaying and browsing massive models of three-dimensional geographic information system |
CN102609991A (en) * | 2012-01-19 | 2012-07-25 | 北京航空航天大学 | Volume-reduction optimization method for three-dimensional solid model |
Non-Patent Citations (3)
Title |
---|
以批处理模式运行CATIA宏脚本应用初探;周大伟;《计算机光盘软件与应用》;20121231;全文 * |
批量转换iges或CATIA的方法;ferrarish;《https://wenku.baidu.com/view/56af144be45c3b3567ec8bc7.html》;20110223;全文 * |
面向数字化技术支援的数字样机逐层轻量化技术;白金鹏等;《北京航空航天大学学报》;20140831;第40卷(第8期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN105005642A (en) | 2015-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105005642B (en) | A kind of threedimensional model batch format conversion and light weight method | |
CN103885788B (en) | Dynamic WEB 3D virtual reality scene construction method and system based on model componentization | |
Fan et al. | The application of computer graphics processing in visual communication design | |
CN103309904B (en) | A kind of method and device generating data warehouse ETL code | |
CN110334332A (en) | A kind of PowerPoint generation method, device, storage medium and electronic equipment | |
CN106528684A (en) | Method and system for establishing engineering material database | |
CN107943773B (en) | Interactive electronic technical manual development system and method for aerospace products | |
Kuroczyński et al. | 3D models on triple paths-new pathways for documenting and visualizing virtual reconstructions | |
CN110543303A (en) | Visual business platform | |
CN105528418A (en) | Design document generation method and apparatus | |
CN105975446A (en) | Method and system for displaying word document content by modules in mobile phone terminal | |
Shen et al. | Data player: Automatic generation of data videos with narration-animation interplay | |
CN108170855A (en) | A kind of CityGML and IFC data unified query and data pick-up method | |
CN105912723A (en) | Storage method of custom field | |
Chung et al. | Directions for AI-based Tools to support Designers’ Work Process | |
CN116954438A (en) | Portal whiteboard device based on file bottom plate | |
Salimbeni et al. | A machine learning Application based on giorgio morandi Still-life paintings to Assist Artists in the Choice of 3d Compositions | |
CN101441645A (en) | System and method of technical data analysis | |
KR101087197B1 (en) | The method of linking computer aided design system with product data management system in real time | |
Luo | Digital Art Design Effectiveness Model System Based on K-Medoids Algorithm. | |
CN101251839A (en) | Conversing method between ancient characters and modern Chinese characters | |
CN104166950A (en) | Information interaction system based on hypermedia technology | |
Bergonzoni et al. | Assessing residential buildings compliance with sustainability rating systems through a BIM-Based approach | |
Shi et al. | Designing an interactive platform for intangible cultural heritage knowledge of Taoyuan woodcarving craft | |
CN107204043A (en) | A kind of distributed design approach of feature based mapping |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171121 |