CN103729465B - three-dimensional file processing method and device - Google Patents

three-dimensional file processing method and device Download PDF

Info

Publication number
CN103729465B
CN103729465B CN201410018272.4A CN201410018272A CN103729465B CN 103729465 B CN103729465 B CN 103729465B CN 201410018272 A CN201410018272 A CN 201410018272A CN 103729465 B CN103729465 B CN 103729465B
Authority
CN
China
Prior art keywords
data object
file
database
existing
dimensional
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.)
Active
Application number
CN201410018272.4A
Other languages
Chinese (zh)
Other versions
CN103729465A (en
Inventor
韦延民
付德平
桓永兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN201410018272.4A priority Critical patent/CN103729465B/en
Publication of CN103729465A publication Critical patent/CN103729465A/en
Application granted granted Critical
Publication of CN103729465B publication Critical patent/CN103729465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a three-dimensional file processing method and device. The three-dimensional file processing method comprises the steps that a plurality of three-dimensional files are obtained, wherein the three-dimensional files comprise various file formats; a result set is generated through the three-dimensional files, and the result set comprises a plurality of data objects; the data objects in the result set are matched with existing objects in a database; and the data objects are processed according to the matching results. According to the three-dimensional file processing method and device, the effect of 3D file processing efficiency improving is achieved.

Description

Three dimensional file treating method and apparatus
Technical field
The present invention relates to data processing field, in particular to a kind of three dimensional file treating method and apparatus.
Background technology
In three-dimensional(Three Dimensions, abbreviation 3D)In file handling procedure, generally require to the number in 3D file Extracted according to object.Inventor finds, in existing extracting mode, the different corresponding extracting mode of 3D file also phase not to the utmost Same, different extracting methods will be write to every kind of file format, finally need by the extraction result of different file formats respectively Processed, caused that the 3D file handling procedure to different-format is loaded down with trivial details, the efficiency of process is low.In addition, to different-format 3D What file carried out information extraction leads to application development cycle stretch-out, improves application development cost;Produce many simultaneously Application version, brings the burden of release maintenance it is often more important that it is impossible to meeting the individual character of user to software company and user Change demand, have impact on the flexibility of application program.
Need to write different codes currently for different 3D files, extract and generate different data objects, finally deposit Store up in database.This scheme needs application program and different 3D file tight association, significantly reduces application program Flexibility, lead to that function of application customization difficulty is big, stability is poor.
For needing in prior art to be respectively processed the extraction result of different file formats, cause to different-format 3D file the loaded down with trivial details problem of processing procedure, effective solution is not yet proposed at present.
Content of the invention
Present invention is primarily targeted at providing a kind of three dimensional file treating method and apparatus, to solve to need in prior art The extraction result of different file formats is respectively processed, causes the processing procedure of the 3D file to different-format loaded down with trivial details Problem.
To achieve these goals, according to an aspect of the invention, it is provided a kind of three dimensional file processing method.According to The three dimensional file processing method of the present invention includes:Obtain multiple three dimensional file, wherein, multiple three dimensional file are including multiple files Multiple three dimensional file of form;Generate result set by multiple three dimensional file, result set includes multiple data objects;By in result set Data object mated with the existing object in database;And according to matching result, data object is processed.
Further, generate result set by multiple three dimensional file to include:Obtain each of multiple three dimensional file three Balakrishnan The filename of part;The corresponding data object of multiple three dimensional file is extracted based on the extraction function that filename passes through to be pre-configured with, its In, be pre-configured with extracts the function that function is for extracting the corresponding data object of multiple three dimensional file;And by extracting Data object generates result set.
Further, extract the corresponding data of multiple three dimensional file in the extraction function passing through to be pre-configured with based on filename Before object, three dimensional file processing method also includes:Judge to whether there is and the extraction letter being pre-configured with multiple file formats The unmatched file format of number;And if it is judged that exist in multiple file format and the extraction Functions mismatch being pre-configured with File format, then configure extraction function corresponding with unmatched file format.
Further, by the data object in result set and the existing object in database carry out mating including:Obtain There is object;Judge to whether there is the existing object with data object identical in database, according to matching result to data object Carry out processing and include:If it is judged that there is the existing object with data object identical in database, then set up data object Borrow relation with the existing object of data object identical;If it is judged that not existing in database and data object identical Existing object, then store data object in database.
Further, judge that whether there is the existing object with data object identical in database includes:Obtain data The attribute information of object;Obtain the attribute information of existing object;By in the attribute information of data object in result set and database The attribute information of existing object is contrasted;And judged in database with the presence or absence of identical with data object by comparing result Existing object.
To achieve these goals, according to a further aspect in the invention, there is provided a kind of three dimensional file processing meanss.According to The three dimensional file processing meanss of the present invention include:Acquiring unit, for obtaining multiple three dimensional file, wherein, multiple three dimensional file It is the multiple three dimensional file including multiple file formats;Signal generating unit, for generating result set, result set by multiple three dimensional file Including multiple data objects;Matching unit, for carrying out the existing object in the data object in result set and database Join;And processing unit, for being processed to data object according to matching result.
Further, signal generating unit includes:First acquisition module, for obtaining each of multiple three dimensional file three Balakrishnan The filename of part;Extraction module, corresponds to for extracting multiple three dimensional file based on the extraction function that filename passes through to be pre-configured with Data object, wherein, the function that extracts being pre-configured with is function for extracting the corresponding data object of multiple three dimensional file; And generation module, for result set is generated by the data object extracting.
Further, signal generating unit also includes:First judge module, for based on filename pass through be pre-configured with carry Before taking function to extract the corresponding data object of multiple three dimensional file, judge to whether there is in multiple file formats and be pre-configured with Extraction Functions mismatch file format;And configuration module, judge exist with advance in multiple file formats for working as During the file format of extraction Functions mismatch of configuration, configure extraction function corresponding with unmatched file format.
Further, matching unit includes:Second acquisition module, for obtaining existing object;Second judge module, is used for Judge to whether there is the existing object with data object identical in database, processing unit includes:Set up module, sentence for working as Break and when there is the existing object with data object identical in database, set up data object existing with data object identical The borrow relation of object;Memory module, judges there is not the existing object with data object identical in database for working as When, data object is stored in database.
Further, the second judge module includes:First acquisition submodule, for obtaining the attribute information of data object; Second acquisition submodule, for obtaining the attribute information of existing object;Comparison sub-module, for by data object in result set Attribute information is contrasted with the attribute information of object existing in database;And judging submodule, for being sentenced by comparing result Break and whether there is the existing object with data object identical in database.
According to the present invention, by obtaining multiple 3D files, wherein, multiple 3D files include the 3D literary composition of multiple file formats Part, the result set being uniformly processed by multiple 3D file generateds, by the data object in result set and database Data object carries out the process such as mating, it is to avoid by data results different for different 3D file generateds, to different data results It is respectively processed, solve and need in prior art to be respectively processed the extraction result of different file formats, it is right to cause The loaded down with trivial details problem of the processing procedure of the 3D file of different-format, has reached the effect improving 3D file activity.
Brief description
The accompanying drawing constituting the part of the application is used for providing a further understanding of the present invention, the schematic reality of the present invention Apply example and its illustrate, for explaining the present invention, not constituting inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of three dimensional file processing meanss according to a first embodiment of the present invention;
Fig. 2 is the schematic diagram of three dimensional file processing meanss according to a second embodiment of the present invention;
Fig. 3 is the schematic diagram of three dimensional file processing meanss according to a third embodiment of the present invention;
Fig. 4 is the flow chart of three dimensional file processing method according to a first embodiment of the present invention;
Fig. 5 is the flow chart of three dimensional file processing method according to a second embodiment of the present invention;And
Fig. 6 is the flow chart of three dimensional file processing method according to a third embodiment of the present invention.
Specific embodiment
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases Mutually combine.To describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is only The embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of not making creative work, all should belong to the model of present invention protection Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that such use Data can exchange in the appropriate case, so that embodiments of the invention described herein.Additionally, term " inclusion " and " tool Have " and their any deformation it is intended that covering non-exclusive comprising, for example, contain series of steps or unit Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear Listing to Chu or for these processes, method, product or the intrinsic other steps of equipment or unit.
Embodiments provide a kind of three dimensional file processing meanss, this device can realize it by computer equipment Function.
Fig. 1 is the schematic diagram of three dimensional file processing meanss according to a first embodiment of the present invention.As shown in figure 1, this three-dimensional Document handling apparatus includes acquiring unit 10, signal generating unit 30, matching unit 50 and processing unit 70.
Acquiring unit 10 is used for obtaining multiple three dimensional file, and wherein, multiple three dimensional file are including multiple file formats Multiple three dimensional file.
Three dimensional file is 3D file, can be the forms such as SldPrt, SldDrw, Sldasm SolidWorks file or It is the Proe file of the forms such as Prt, ASM, obtain multiple 3D files, the 3D file of the plurality of 3D file can be including multiple literary compositions Part form.For example, when getting 3 3D files, can include a SldPrt form SolidWorks file, one The Proe file of the SolidWorks file of SldDrw form and a Prt form, or two SldPrt forms The Proe file of SolidWorks file and a Prt form.Can there is the 3D file of same format in multiple 3D files.
Signal generating unit 30 is used for generating result set by multiple three dimensional file, and result set includes multiple data objects.
After getting multiple 3D files, multiple data objects can be included by the multiple 3D file generateds getting Result set, specifically, can be to extract multiple data objects from multiple 3D files, then by the multiple data objects extracting Form enterprise's application platform(Enterprise Application Platform, abbreviation EAP)The result that can be uniformly processed Collection.
In the embodiment of the present invention, can be to be used for extracting in this 3D file to the 3D file configuration one of each form The extraction function of data object, forms the extractor for extracting different-format 3D file, using the filename of 3D file as carrying Take the |input paramete of function, extract the data object of 3D file by extracting function, by extracting function by the data pair extracted As output, form result set.Wherein, result set can include one or more sub- result set, and sub- result set can be array Object.For example, when getting the 3D file of " automobile ", " wheel ", " rotating shaft ", " vehicle window " can be extracted by extracting function Etc. data object, then " wheel ", " rotating shaft ", " vehicle window " etc. data object form result set, wherein, data is to as " wheel " Such as data objects such as " screws " can also be extracted, then these data objects form the sub- result set of the above results collection.Preferably, When extracting 3D file, duplicate removal process can be carried out to the data object repeating, for example, " the vapour of two kinds of different-format 3D files Car one " and " automobile two ", when extracting data to picture generation result set, the gauge size of the data object such as " wheel " of extracting Etc. all same, result set then can only retain one " wheel ", it is to avoid data heavy burden leads to EAP platform that result set is carried out The burden processing.
Matching unit 50 is used for being mated the data object in result set with the existing object in database.
After generating result set, the data object in result set is mated with the existing object in database, its In, database can be drawing and document system such as product data management(Product Data Management, abbreviation PDM)System In database, in database, existing object is the data having existed in PDM system.Specifically, by data object with By the data object in the determined property result set of data object whether the existing object in database carries out coupling can be Have stored in database, in order to be uniformly processed to the data object extracting.
Processing unit 70 is used for according to matching result, data object being processed.
After data object in result set is mated with the existing object in database, if in database It is fitted on the data object in result set, i.e. there is the existing object with the data object identical in result set in data, then with number Form borrow relation according to the object that has accordingly in storehouse, in order to can directly use in database when using this data object Existing object.If not matching the data object in result set in database, i.e. do not exist in data with result set in The existing object of data object identical, then with new Object, this data object can be stored in database.
According to embodiments of the present invention, by obtaining multiple 3D files, wherein, multiple 3D files include multiple file formats 3D file, the result set being uniformly processed by multiple 3D file generateds, by the data object in result set and database In data object carry out the process such as mating, it is to avoid by data results different for different 3D file generateds, to different data Result is respectively processed, and solves and needs in prior art to be respectively processed the extraction result of different file formats, makes The loaded down with trivial details problem of the processing procedure of the 3D file of different-format in pairs, has reached the effect improving 3D file activity.
Fig. 2 is the schematic diagram of three dimensional file processing meanss according to a second embodiment of the present invention.Three Balakrishnans of this embodiment Part processing meanss can be used as a kind of preferred embodiment of three dimensional file processing meanss of above-described embodiment.As shown in Fig. 2 this three Dimension document handling apparatus includes acquiring unit 10, signal generating unit 30, matching unit 50 and processing unit 70, wherein, signal generating unit 30 include the first acquisition module 301, extraction module 303 and generation module 305.
First acquisition module 301 is used for obtaining the filename of each of multiple three dimensional file three dimensional file.
Extraction module 303 is used for corresponding by the multiple three dimensional file of extraction function extraction being pre-configured with based on filename Data object, wherein, be pre-configured with extracts the function that function is for extracting the corresponding data object of multiple three dimensional file.
After obtaining multiple 3D files, the filename of 3D file can be extracted, using the filename of 3D file as in advance The |input paramete of the extraction function of configuration.Wherein, the function that extracts being pre-configured with can be pre-configured with for extracting 3D literary composition The function of the data object of part, for example, the SolidWorks literary composition being SldPrt, SldDrw, Sldasm corresponding to 3D file format Part, using the Retrieve3D function in dll file ReadSolidWorks.dll, corresponding to Prt, ASM, Proe file, Using the Retrieve function in dll file ReadProE5.dll.
Generation module 305 is used for generating result set by the data object extracting.
The embodiment of the present invention, can be using the filename of 3D file as the |input paramete extracting function, by being pre-configured with Extraction function, extract multiple 3D files data object, by extract function output parameter generate result set, wherein, extract The output parameter of function is the data object of 3D file.
According to embodiments of the present invention, by being pre-configured with extraction function corresponding with 3D file format, by this extraction letter Number extracts the data object of the 3D file of different-format, and generates result set by the data object extracting, and further increases 3D The efficiency of file process.
Preferably, signal generating unit 30 also includes the first judge module and configuration module.
The extraction function that first judge module is used for passing through to be pre-configured with based on filename extracts multiple three dimensional file pair Before the data object answered, judge to whether there is the tray with the extraction Functions mismatch being pre-configured with multiple file formats Formula.Configuration module is used for the file format extracting Functions mismatch existing in multiple file formats when judging and being pre-configured with When, configure extraction function corresponding with unmatched file format.
Judge that the file format extracting Functions mismatch that whether there is in multiple file formats be pre-configured with can be Determine whether extraction function corresponding with the file format of 3D file.Because a kind of file format of 3D file needs to configure one Individual corresponding extraction function, therefore failing to when matching the extraction function being consistent with the file format of 3D file, needing to join Put extraction function corresponding with the file format of this 3D file.For example, when increased a kind of new 3D file format, such as SolidEdge file format, it is only necessary to increase a dll file ReadSolidEdge.dll, writes function ReadFrom3D, SolidEge file is converted into Result result set.If it is judged that not existing in multiple file formats and carrying of being pre-configured with Take the file format of Functions mismatch, then can be directly based upon the extraction function pair 3D file being pre-configured with and be extracted.
According to embodiments of the present invention, by judging to whether there is with the extraction function being pre-configured with not in multiple file formats The file format of coupling, the tray of the extraction Functions mismatch existing in multiple file formats when judging and being pre-configured with Formula, configures extraction function corresponding with unmatched file format, enhances the flexibility of 3D file extraction.
It should be noted that in the embodiment of the present invention, extractor can be packaged into by extracting function, civilian when new 3D occurs During part form, can be to configuration extraction function in extractor, such that it is able to neatly extract the data pair of any one 3D file As.
Fig. 3 is the schematic diagram of three dimensional file processing meanss according to a third embodiment of the present invention.Three Balakrishnans of this embodiment Part processing meanss can be used as a kind of preferred embodiment of three dimensional file processing meanss of above-described embodiment.As shown in figure 3, this three Dimension document handling apparatus includes acquiring unit 10, signal generating unit 30, matching unit 50 and processing unit 70, wherein, matching unit 50 include the second acquisition module 501 and the second judge module 503, and processing unit 70 includes setting up module 701, memory module 703.
Second acquisition module 501 is used for obtaining existing object.
Existing object can data object to have existed in the data of drawing and document system such as PDM system, obtained this existing Object, in order to judge to whether there is the existing object with the data object identical extracted in database.
Second judge module 503 is used for judging to whether there is the existing object with data object identical in database.
In the embodiment of the present invention, data object in data object result set, can be by extracting the number that function extracts According to object.Judge that whether there is the existing object with data object identical in database can be that retrieval is extracted in database Data object, judge this data object whether Already in database or by the data object extracting and number Contrasted according to the existing object in storehouse, judged whether the data object extracting is identical with the existing object in database.So that Process in the data object to extraction.
Preferably, the second judge module 503 include the first acquisition submodule, the second acquisition submodule, comparison sub-module and Judging submodule.
First acquisition submodule is used for obtaining the attribute information of data object.Data object is the data pair in result set As being by extracting the data object that function extracts, attribute information can be the letter such as the filename of data object, code name Breath, the information such as code name GB1234 of such as data object.
Second acquisition submodule is used for obtaining the attribute information of existing object.Because existing object is to have deposited in database Existing data object, therefore, the attribute information of existing object can also be filename, code name etc..
Comparison sub-module is used for the attribute letter of the attribute information of data object in result set and object existing in database Breath is contrasted.Specifically, can be by the attribute informations such as the code name of data object in result set and object existing in database The attribute information such as code name contrasted.
Judging submodule is used for being judged in database with the presence or absence of right with data object identical by comparing result As.
Specifically, the attribute information of object existing in the attribute information of data object in result set and database is carried out right Ratio afterwards, if the attribute information of data object is identical with the attribute information of object existing in database, shows in database Middle have the existing object with data object identical;If the attribute of existing object in the attribute information of data object and database Information is different, then show there is not the existing object with data object identical in database.For example, the data object of extraction Code name is GB1234, matches the existing object with this code name identical, then show exist and data in database in database The existing object of object identical.
Set up module 701 for when judging to exist object existing with data object identical in database, setting up Data object has the borrow relation of object with data object identical.
Memory module 703 is used for when judging not existing object existing with data object identical in database, will Data object stores in database.
During by EAP platform processes Result result set, for each Result result set, can be by wherein data object Mated with object existing in database, if match in storehouse there is same object, setting up data object and having The borrow relation of object, thus borrow existing object in database, if do not match in storehouse deposited when using data object In same object, then new object can be created based on data object and store in database.At the unification of EAP platform Reason is it is achieved that the 3D file extraction to different-format carries out storage being uniformly processed in system.
The embodiment of the present invention additionally provides a kind of three dimensional file processing method.The method is run on a computing device.Need It is noted that the three dimensional file that the three dimensional file processing method of the embodiment of the present invention can be provided by the embodiment of the present invention Executing, the three dimensional file processing meanss of the embodiment of the present invention can be used for executing the embodiment of the present invention and provided processing meanss Three dimensional file processing method.
Fig. 4 is the flow chart of three dimensional file processing method according to a first embodiment of the present invention.As shown in figure 4, this three-dimensional It is as follows that document handling method includes step:
Step S402, obtains multiple three dimensional file.Wherein, multiple three dimensional file are multiple three including multiple file formats Balakrishnan part.
Three dimensional file is 3D file, can be the forms such as SldPrt, SldDrw, Sldasm SolidWorks file or It is the Proe file of the forms such as Prt, ASM, obtain multiple 3D files, the 3D file of the plurality of 3D file can be including multiple literary compositions Part form.For example, when getting 3 3D files, can include a SldPrt form SolidWorks file, one The Proe file of the SolidWorks file of SldDrw form and a Prt form, or two SldPrt forms The Proe file of SolidWorks file and a Prt form.Can there is the 3D file of same format in multiple 3D files.
Step S404, generates result set by multiple three dimensional file.Result set includes multiple data objects.
After getting multiple 3D files, multiple data objects can be included by the multiple 3D file generateds getting Result set, specifically, can be to extract multiple data objects from multiple 3D files, then by the multiple data objects extracting Form enterprise's application platform(Enterprise Application Platform, abbreviation EAP)The result that can be uniformly processed Collection.
In the embodiment of the present invention, can be to be used for extracting in this 3D file to the 3D file configuration one of each form The extraction function of data object, forms the extractor for extracting different-format 3D file, using the filename of 3D file as carrying Take the |input paramete of function, extract the data object of 3D file by extracting function, by extracting function by the data pair extracted As output, form result set.Wherein, result set can include one or more sub- result set, and sub- result set can be array Object.For example, when getting the 3D file of " automobile ", " wheel ", " rotating shaft ", " vehicle window " can be extracted by extracting function Etc. data object, then " wheel ", " rotating shaft ", " vehicle window " etc. data object form result set, wherein, data is to as " wheel " Such as data objects such as " screws " can also be extracted, then these data objects form the sub- result set of the above results collection.Preferably, When extracting 3D file, duplicate removal process can be carried out to the data object repeating, for example, " the vapour of two kinds of different-format 3D files Car one " and " automobile two ", when extracting data to picture generation result set, the gauge size of the data object such as " wheel " of extracting Etc. all same, result set then can only retain one " wheel ", it is to avoid data heavy burden leads to EAP platform that result set is carried out The burden processing.
Step S406, the data object in result set is mated with the existing object in database.
After generating result set, the data object in result set is mated with the existing object in database, its In, database can be drawing and document system such as product data management(Product Data Management, abbreviation PDM)System In database, in database, existing object is the data having existed in PDM system.Specifically, by data object with By the data object in the determined property result set of data object whether the existing object in database carries out coupling can be Have stored in database, in order to be uniformly processed to the data object extracting.
Step S408, is processed to data object according to matching result.
After data object in result set is mated with the existing object in database, if in database It is fitted on the data object in result set, i.e. there is the existing object with the data object identical in result set in data, then with number Form borrow relation according to the object that has accordingly in storehouse, in order to can directly use in database when using this data object Existing object.If not matching the data object in result set in database, i.e. do not exist in data with result set in The existing object of data object identical, then with new Object, this data object can be stored in database.
According to embodiments of the present invention, by obtaining multiple 3D files, wherein, multiple 3D files include multiple file formats 3D file, the result set being uniformly processed by multiple 3D file generateds, by the data object in result set and database In data object carry out the process such as mating, it is to avoid by data results different for different 3D file generateds, to different data Result is respectively processed, and solves and needs in prior art to be respectively processed the extraction result of different file formats, makes The loaded down with trivial details problem of the processing procedure of the 3D file of different-format in pairs, has reached the effect improving 3D file activity.
Fig. 5 is the flow chart of three dimensional file processing method according to a second embodiment of the present invention.Three Balakrishnans of this embodiment Part processing method can be a kind of preferred embodiment of the three dimensional file processing method of above-described embodiment.As shown in figure 5, this three It is as follows that dimension document handling method includes step:
Step S502 is identical with step S402 shown in Fig. 4, but is not limited to step S402, does not repeat here.
Step S504, obtains the filename of each of multiple three dimensional file three dimensional file.
Step S506, extracts the corresponding data pair of multiple three dimensional file based on the extraction function that filename passes through to be pre-configured with As.Wherein, be pre-configured with extracts the function that function is for extracting the corresponding data object of multiple three dimensional file.
After obtaining multiple 3D files, the filename of 3D file can be extracted, using the filename of 3D file as in advance The |input paramete of the extraction function of configuration.Wherein, the function that extracts being pre-configured with can be pre-configured with for extracting 3D literary composition The function of the data object of part, for example, the SolidWorks literary composition being SldPrt, SldDrw, Sldasm corresponding to 3D file format Part, using the Retrieve3D function in dll file ReadSolidWorks.dll, corresponding to Prt, ASM, Proe file, Using the Retrieve function in dll file ReadProE5.dll.
Preferably, before step S506, three dimensional file processing method includes:Judge to whether there is in multiple file formats File format with the extraction Functions mismatch being pre-configured with;And if it is judged that exist in multiple file format and join in advance The file format of the extraction Functions mismatch put, then configure extraction function corresponding with unmatched file format.
Judge that the file format extracting Functions mismatch that whether there is in multiple file formats be pre-configured with can be Determine whether extraction function corresponding with the file format of 3D file.Because a kind of file format of 3D file needs to configure one Individual corresponding extraction function, therefore failing to when matching the extraction function being consistent with the file format of 3D file, needing to join Put extraction function corresponding with the file format of this 3D file.For example, when increased a kind of new 3D file format, such as SolidEdge file format, it is only necessary to increase a dll file ReadSolidEdge.dll, writes function ReadFrom3D, SolidEge file is converted into Result result set.If it is judged that not existing in multiple file formats and carrying of being pre-configured with Take the file format of Functions mismatch, then can be directly based upon the extraction function pair 3D file being pre-configured with and be extracted.
According to embodiments of the present invention, by judging to whether there is with the extraction function being pre-configured with not in multiple file formats The file format of coupling, the tray of the extraction Functions mismatch existing in multiple file formats when judging and being pre-configured with Formula, configures extraction function corresponding with unmatched file format, enhances the flexibility of 3D file extraction.
It should be noted that in the embodiment of the present invention, extractor can be packaged into by extracting function, civilian when new 3D occurs During part form, can be to configuration extraction function in extractor, such that it is able to neatly extract the data pair of any one 3D file As.
Step S508, generates result set by the data object extracting.
The embodiment of the present invention, can be using the filename of 3D file as the |input paramete extracting function, by being pre-configured with Extraction function, extract multiple 3D files data object, by extract function output parameter generate result set, wherein, extract The output parameter of function is the data object of 3D file.
Step S510, step S512 are identical with step S406 shown in Fig. 4, step S408 successively, but are not limited to step S406, step S408, do not repeat here.
According to embodiments of the present invention, by being pre-configured with extraction function corresponding with 3D file format, by this extraction letter Number extracts the data object of the 3D file of different-format, and generates result set by the data object extracting, and further increases 3D The efficiency of file process.
Fig. 6 is the flow chart of three dimensional file processing method according to a third embodiment of the present invention.Three Balakrishnans of this embodiment Part processing method can be a kind of preferred embodiment of the three dimensional file processing method of above-described embodiment.As shown in fig. 6, this three It is as follows that dimension document handling method includes step:
Step S602, step S604 are identical with step S402 shown in Fig. 4, step S404, but are not limited to and step S402, step S404, do not repeat here.
Step S606, obtains existing object.
Existing object can data object to have existed in the data of drawing and document system such as PDM system, obtained this existing Object, in order to judge to whether there is the existing object with the data object identical extracted in database.
Step S608, judges to whether there is the existing object with data object identical in database.
In the embodiment of the present invention, data object in data object result set, can be by extracting the number that function extracts According to object.Judge that whether there is the existing object with data object identical in database can be that retrieval is extracted in database Data object, judge this data object whether Already in database or by the data object extracting and number Contrasted according to the existing object in storehouse, judged whether the data object extracting is identical with the existing object in database.So that Process in the data object to extraction.
Preferably, step S608 may comprise steps of:
Step one, obtains the attribute information of data object.Data object is the data object in result set, can be to pass through Extract the data object that function extracts, attribute information can be the information such as the filename of data object, code name, such as data object The information such as code name GB1234.
Step 2, obtains the attribute information of existing object.Because existing object is existing for existed in database Data object, therefore, the attribute information of existing object can also be filename, code name etc..
Step 3, it is right that the attribute information of the attribute information of data object in result set and object existing in database is carried out Than.Specifically, can be by code name of object existing in the attribute informations such as the code name of data object in result set and database etc. Attribute information is contrasted.
Step 4, is judged to whether there is the existing object with data object identical in database by comparing result.Specifically Ground, after the attribute information of the attribute information of data object in result set and object existing in database is contrasted, if The attribute information of data object is identical with the attribute information of object existing in database, then show exist and data in database The existing object of object identical;If the attribute information of data object is different from the attribute information of object existing in database, Show there is not the existing object with data object identical in database.For example, the code name of the data object of extraction is GB1234, matches the existing object with this code name identical in database, then shows exist and data object phase in database Same existing object.
Step S610, if it is judged that there is the existing object with data object identical in database, then sets up data Object has the borrow relation of object with data object identical.
, if it is judged that there is not the existing object with data object identical in database, then by data in step S612 Object stores in database.
During by EAP platform processes Result result set, for each Result result set, can be by wherein data object Mated with object existing in database, if match in storehouse there is same object, setting up data object and having The borrow relation of object, thus borrow existing object in database, if do not match in storehouse deposited when using data object In same object, then new object can be created based on data object and store in database.At the unification of EAP platform Reason is it is achieved that the 3D file extraction to different-format carries out storage being uniformly processed in system.
Description according to above-described embodiment is it can be seen that the effect that can all reach of the present invention is as follows:
By configuring different extraction functions, and it is packaged into extractor, it is possible to achieve the extraction configuration to different 3D files Different processing methods, generates unified Result result set, finally by EAP platform, Result result set is unified Process is stored in PDM system.Greatly improve the customizable of abstraction function process realization by the different configurations of extractor Property, flexibility, finally by stability, unification that considerably increase system is uniformly processed to Result result set for the EAP platform Property, fall below development difficulty.
It should be noted that the step that illustrates of flow process in accompanying drawing can be in such as one group of computer executable instructions Execute in computer system, and although showing logical order in flow charts, but in some cases, can be with not It is same as the step shown or described by order execution herein.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general Computing device realizing, they can concentrate on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the executable program code of computing device, it is thus possible to they are stored To be executed by computing device in the storage device, or they be fabricated to each integrated circuit modules respectively, or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention be not restricted to any specific Hardware and software combines.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (8)

1. a kind of three dimensional file processing method is it is characterised in that include:
Obtain multiple three dimensional file, wherein, the plurality of three dimensional file is the multiple three dimensional file including multiple file formats;
Result set is generated by the plurality of three dimensional file, described result set includes multiple data objects;
Data object in described result set is mated with the existing object in database;And
According to matching result, described data object is processed;
Wherein, by the data object in described result set and the existing object in database carry out mating including:Described in acquisition There is object;Judge to whether there is the existing object with described data object identical in the database,
Described data object is carried out process according to matching result and include:If it is judged that in the database exist with described The existing object of data object identical, then set up described data object and have borrowing of object described in described data object identical With relation;If it is judged that there is not the existing object with described data object identical in the database, then by described number Store in described database according to object.
2. three dimensional file processing method according to claim 1 is it is characterised in that generate knot by the plurality of three dimensional file Fruit collection includes:
Obtain the filename of each of the plurality of three dimensional file three dimensional file;
The corresponding data object of the plurality of three dimensional file is extracted based on the extraction function that described filename passes through to be pre-configured with, its In, the described function that extracts being pre-configured with is function for extracting the corresponding data object of the plurality of three dimensional file;And
Described result set is generated by the described data object extracting.
3. three dimensional file processing method according to claim 2 is it is characterised in that passed through in advance based on described filename Before the extraction function of configuration extracts the corresponding data object of the plurality of three dimensional file, described three dimensional file processing method is also wrapped Include:
Judge to whether there is the file format with the described extraction Functions mismatch being pre-configured with described multiple file format;With And
If it is judged that there is the file format with the described extraction Functions mismatch being pre-configured with described multiple file format, Then configuration extraction function corresponding with described unmatched file format.
4. three dimensional file processing method according to claim 1 is it is characterised in that judge whether deposit in the database Include in object existing with described data object identical:
Obtain the attribute information of described data object;
Obtain the attribute information of described existing object;
The attribute information of the attribute information of data object in described result set and object existing in described database is contrasted; And
Judge to whether there is the existing object with described data object identical in the database by comparing result.
5. a kind of three dimensional file processing meanss are it is characterised in that include:
Acquiring unit, for obtaining multiple three dimensional file, wherein, the plurality of three dimensional file is many including multiple file formats Individual three dimensional file;
Signal generating unit, for generating result set by the plurality of three dimensional file, described result set includes multiple data objects;
Matching unit, for being mated the data object in described result set with the existing object in database;
And
Processing unit, for processing to described data object according to matching result;
Wherein, described matching unit includes:Second acquisition module, for obtaining described existing object;Second judge module, is used for Judge to whether there is the existing object with described data object identical in the database,
Described processing unit includes:Set up module, judge exist in the database and described data object phase for working as With existing object when, set up the borrow relation of existing object described in described data object and described data object identical;Deposit Storage module, for when judging not exist in the database object existing with described data object identical, will be described Data object stores in described database.
6. three dimensional file processing meanss according to claim 5 are it is characterised in that described signal generating unit includes:
First acquisition module, for obtaining the filename of each of the plurality of three dimensional file three dimensional file;
Extraction module, corresponds to for extracting the plurality of three dimensional file based on the extraction function that described filename passes through to be pre-configured with Data object, wherein, the described extraction function being pre-configured with is for extracting the corresponding data pair of the plurality of three dimensional file The function of elephant;And
Generation module, for generating described result set by the described data object extracting.
7. three dimensional file processing meanss according to claim 6 are it is characterised in that described signal generating unit also includes:
First judge module, for extracting the plurality of three Balakrishnans in the extraction function passing through to be pre-configured with based on described filename Before the corresponding data object of part, judge to whether there is with the described extraction function being pre-configured with not in described multiple file format The file format of coupling;And
Configuration module, judges exist and the described extraction Functions mismatch being pre-configured with described multiple file format for working as File format when, configuration extraction function corresponding with described unmatched file format.
8. three dimensional file processing meanss according to claim 5 are it is characterised in that described second judge module includes:
First acquisition submodule, for obtaining the attribute information of described data object;
Second acquisition submodule, for obtaining the attribute information of described existing object;
Comparison sub-module, for having the genus of object in the attribute information of data object in described result set and described database Property information is contrasted;And
Judging submodule, for being judged to whether there is with described data object identical in the database by comparing result There is object.
CN201410018272.4A 2014-01-15 2014-01-15 three-dimensional file processing method and device Active CN103729465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410018272.4A CN103729465B (en) 2014-01-15 2014-01-15 three-dimensional file processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410018272.4A CN103729465B (en) 2014-01-15 2014-01-15 three-dimensional file processing method and device

Publications (2)

Publication Number Publication Date
CN103729465A CN103729465A (en) 2014-04-16
CN103729465B true CN103729465B (en) 2017-02-15

Family

ID=50453539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410018272.4A Active CN103729465B (en) 2014-01-15 2014-01-15 three-dimensional file processing method and device

Country Status (1)

Country Link
CN (1) CN103729465B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930483B (en) * 2016-04-29 2019-08-16 北京数码大方科技股份有限公司 Format Object generation method, apparatus and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063478A (en) * 2010-12-22 2011-05-18 张丛喆 Three-dimensional file format conversion method and search engine suitable for Internet search
CN102486873A (en) * 2010-12-01 2012-06-06 财团法人资讯工业策进会 Digital three-dimensional object processing device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486873A (en) * 2010-12-01 2012-06-06 财团法人资讯工业策进会 Digital three-dimensional object processing device and method
CN102063478A (en) * 2010-12-22 2011-05-18 张丛喆 Three-dimensional file format conversion method and search engine suitable for Internet search

Also Published As

Publication number Publication date
CN103729465A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
US9824068B2 (en) Methods and apparatus for sorting data
EP3674914A1 (en) Multi-party data joint query method, device, server and storage medium
US9785649B1 (en) Hue-based color naming for an image
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
CN105389402A (en) Big-data-oriented ETL (Extraction-Transformation-Loading) method and device
CN104657396A (en) Data migration method and device
CN112948427B (en) Data query method, device, equipment and storage medium
CN108228754A (en) flow generation method and terminal device
CN106067132A (en) The method to set up of item property and device
CN111327607A (en) Security threat information management method, system, storage medium and terminal based on big data
CN102486748A (en) Method and device for performance test
CN111736922A (en) Plug-in calling method and device, electronic equipment and storage medium
CN103729465B (en) three-dimensional file processing method and device
CN109542398B (en) Business system generation method and device and computer readable storage medium
CN107729487A (en) Topic searching method, topic searcher and electric terminal
CN103034504A (en) Application method and device of template website
CN103593441B (en) Method and device for obtaining maximum conversion step number of session
CN104573132A (en) Method and device for finding songs
CN101908174A (en) Method, device and EAP (Enterprise Application Platform) system for processing part object information in drawing file
CN107491460A (en) The data mapping method and device of adaption system
CN105512270A (en) Method and device for determining related objects
CN105468936B (en) The reinforcement means and device of application
CN103745071B (en) Data processing method and device for labeled product manufacturing information
CN108694205B (en) Method and device for matching target field
CN109101641A (en) Form processing method, device, system and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant