CN103729465A - Three-dimensional file processing method and device - Google Patents

Three-dimensional file processing method and device Download PDF

Info

Publication number
CN103729465A
CN103729465A CN201410018272.4A CN201410018272A CN103729465A CN 103729465 A CN103729465 A CN 103729465A CN 201410018272 A CN201410018272 A CN 201410018272A CN 103729465 A CN103729465 A CN 103729465A
Authority
CN
China
Prior art keywords
file
data object
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.)
Granted
Application number
CN201410018272.4A
Other languages
Chinese (zh)
Other versions
CN103729465B (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

Images

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 disposal route and device
Technical field
The present invention relates to data processing field, in particular to a kind of three dimensional file disposal route and device.
Background technology
In three-dimensional (Three Dimensions is called for short 3D) file handling procedure, generally need to extract the data object in 3D file.Inventor finds, in existing extracting mode, different extracting modes corresponding to 3D file are also not quite similar, to every kind of file layout, all to write different extracting method, finally need the extraction result of different file layouts to process respectively, cause the 3D file handling procedure of different-format loaded down with trivial detailsly, the efficiency of processing is low.In addition, what different-format 3D file is carried out to information extraction, cause application development cycle stretch-out, improve application development cost; Produce many application versions simultaneously, bring the burden of release maintenance to software company and user, the more important thing is, can not meet user's individual demand, affected the dirigibility of application program.
At present, for different 3D files, need to write different codes, extract and generate different data objects, finally store in database.This scheme needs application program closely associated from different 3D files, has greatly reduced the dirigibility of application program, causes function of application customization difficulty large, poor stability.
For needing the extraction result by different file layouts to process respectively in prior art, cause the loaded down with trivial details problem of processing procedure of the 3D file to different-format, effective solution is not yet proposed at present.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of three dimensional file disposal route and device, to solve in prior art, needs the extraction result of different file layouts to process respectively, causes the loaded down with trivial details problem of processing procedure of the 3D file to different-format.
To achieve these goals, according to an aspect of the present invention, provide a kind of three dimensional file disposal route.Three dimensional file disposal route according to the present invention comprises: obtain multiple three dimensional file, wherein, multiple three dimensional file are the multiple three dimensional file that comprise multiple file layout; By multiple three dimensional file, generate result set, result set comprises multiple data objects; Data object in result set is mated with the existing object in database; And according to matching result, data object is processed.
Further, by multiple three dimensional file, generating result set comprises: the filename that obtains each three dimensional file in multiple three dimensional file; Based on filename, by pre-configured extraction function, extract data object corresponding to multiple three dimensional file, wherein, pre-configured extraction function is the function for extracting data object corresponding to multiple three dimensional file; And generate result set by the data object extracting.
Further, before extracting data object corresponding to multiple three dimensional file based on filename by pre-configured extraction function, three dimensional file disposal route also comprises: judge the file layout whether existing in multiple file layout with pre-configured extraction Functions mismatch; And if judge in multiple file layout the file layout existing with pre-configured extraction Functions mismatch, the configuration extraction function corresponding with unmatched file layout.
Further, the data object in result set is mated and comprised with the existing object in database: obtain existing object; Whether judgement there is the existing object identical with data object in database, according to matching result, data object is processed and comprised: if judge the existence existing object identical with data object in database, set up the relation of using of the existing object that data object is identical with data object; If judged, in database, there is not the existing object identical with data object, data object is stored in database.
Further, judge and in database, whether exist the existing object identical with data object to comprise: the attribute information that obtains data object; Obtain the attribute information of existing object; The attribute information of existing object in the attribute information of data object in result set and database is contrasted; And judge in database, whether there be the existing object identical with data object by comparing result.
To achieve these goals, according to a further aspect in the invention, provide a kind of three dimensional file treating apparatus.Three dimensional file treating apparatus according to the present invention comprises: acquiring unit, and for obtaining multiple three dimensional file, wherein, multiple three dimensional file are the multiple three dimensional file that comprise multiple file layout; Generation unit, for generating result set by multiple three dimensional file, result set comprises multiple data objects; Matching unit, for mating the data object of result set with the existing object in database; And processing unit, for data object being processed according to matching result.
Further, generation unit comprises: the first acquisition module, for obtaining the filename of multiple each three dimensional file of three dimensional file; Extraction module, for extracting data object corresponding to multiple three dimensional file based on filename by pre-configured extraction function, wherein, pre-configured extraction function is the function for extracting data object corresponding to multiple three dimensional file; And generation module, for the data object by extracting, generate result set.
Further, generation unit also comprises: the first judge module, for before extracting data object corresponding to multiple three dimensional file based on filename by pre-configured extraction function, judge the file layout whether existing in multiple file layout with pre-configured extraction Functions mismatch; And configuration module, for when judging multiple file layout and exist with the file layout of pre-configured extraction Functions mismatch, configure the extraction function corresponding with unmatched file layout.
Further, matching unit comprises: the second acquisition module, for obtaining existing object; The second judge module, for judging at database whether have the existing object identical with data object, processing unit comprises: set up module, for when judging when database exists the existing object identical with data object, set up the relation of using of the existing object that data object is identical with data object; Memory module, for when judging when database does not exist the existing object identical with data object, stores data object in database into.
Further, the second judge module comprises: first obtains submodule, for obtaining the attribute information of data object; Second obtains submodule, for obtaining the attribute information of existing object; Comparison sub-module, for contrasting the attribute information of existing object in the attribute information of result set data object and database; And judgement submodule, for judged at database whether have the existing object identical with data object by comparing result.
According to the present invention, by obtaining multiple 3D files, wherein, multiple 3D files comprise the 3D file of multiple file layout, by multiple 3D file generateds, can be unified the result set of processing, by the data object in result set and the processing such as the data object in database mates, avoid data results different different 3D file generateds, different data results is processed respectively, having solved the extraction result needing in prior art different file layouts processes respectively, cause the loaded down with trivial details problem of processing procedure of the 3D file to different-format, reached the effect that improves 3D file activity.
Accompanying drawing explanation
The accompanying drawing that forms the application's a part is used to provide a further understanding of the present invention, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the schematic diagram of the three dimensional file treating apparatus of first embodiment of the invention;
Fig. 2 is according to the schematic diagram of the three dimensional file treating apparatus of second embodiment of the invention;
Fig. 3 is according to the schematic diagram of the three dimensional file treating apparatus of third embodiment of the invention;
Fig. 4 is according to the process flow diagram of the three dimensional file disposal route of first embodiment of the invention;
Fig. 5 is according to the process flow diagram of the three dimensional file disposal route of second embodiment of the invention; And
Fig. 6 is according to the process flow diagram of the three dimensional file disposal route of third embodiment of the invention.
Embodiment
It should be noted that, in the situation that not conflicting, the feature in embodiment and embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
In order to make those skilled in the art person understand better the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, should belong to the scope of protection of the invention.
It should be noted that, term " first " in instructions of the present invention and claims and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, and needn't be used for describing specific order or precedence.Should be appreciated that the data of such use are suitably exchanging in situation, so that embodiments of the invention described herein.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, for example, those steps or unit that process, method, system, product or the equipment that has comprised series of steps or unit is not necessarily limited to clearly list, but can comprise clearly do not list or for these processes, method, product or equipment intrinsic other step or unit.
The embodiment of the present invention provides a kind of three dimensional file treating apparatus, and this device can be realized its function by computer equipment.
Fig. 1 is according to the schematic diagram of the three dimensional file treating apparatus of first embodiment of the invention.As shown in Figure 1, this three dimensional file treating apparatus comprises acquiring unit 10, generation unit 30, matching unit 50 and processing unit 70.
Acquiring unit 10 is for obtaining multiple three dimensional file, and wherein, multiple three dimensional file are the multiple three dimensional file that comprise multiple file layout.
Three dimensional file is 3D file, can be the SolidWorks file of the forms such as SldPrt, SldDrw, Sldasm or the Proe file of the form such as Prt, ASM, obtains multiple 3D files, and the 3D file of the plurality of 3D file can be to comprise multiple file layout.For example, when getting 3 3D files, can comprise the SolidWorks file of the SolidWorks file of a SldPrt form, a SldDrw form and the Proe file of a Prt form, or the SolidWorks file of two SldPrt forms and the Proe file of a Prt form.In multiple 3D files, can there is the 3D file of same format.
Generation unit 30 is for generating result set by multiple three dimensional file, and result set comprises multiple data objects.
After getting multiple 3D files, can be comprised by the multiple 3D file generateds that get the result set of multiple data objects, particularly, can be to extract multiple data objects from multiple 3D files, then by the multiple data objects that extract, form enterprise's application platform (Enterprise Application Platform is called for short EAP) and can unify the result set of processing.
In the embodiment of the present invention, can be for extracting the extraction function of data object of this 3D file to one of the 3D file configuration of each form, be formed for extracting the extraction apparatus of different-format 3D file, using the filename of 3D file as the input parameter that extracts function, by extracting function, extract the data object of 3D file, by extracting function, the data object extracting is exported, formed result set.Wherein, result set can comprise one or more sub-result set, and sub-result set can be array object.For example, when getting the 3D file of " automobile ", by extracting function, can extract " wheel ", " rotating shaft ", " vehicle window " etc. data object, " wheel ", " rotating shaft ", " vehicle window " etc. data object forms result set, wherein, data can also extract as data objects such as " screws " picture " wheel ", and these data objects form the sub-result set of the above results collection.Preferably, when extracting 3D file, can carry out duplicate removal processing to the data object repeating, for example, " automobile one " of two kinds of different-format 3D files and " automobile two ", when extracting data to picture generation result set, the gauge size of data objects such as " wheels " that extract etc. are all identical, in result set, can only retain one " wheel ", the burden of avoiding data heavy burden to cause EAP platform to be processed result set.
Matching unit 50 is for mating the data object of result set with the existing object in database.
After generating result set, data object in result set is mated with the existing object in database, wherein, database can be that drawing and document system is as product data management (Product Data Management, be called for short PDM) database in system, in database, existing object is the data that existed in PDM system.Particularly, it can be whether data object by the determined property result set of data object is stored in database that data object is mated with the existing object in database, so that the data object extracting is unified to process.
Processing unit 70 is for processing data object according to matching result.
After data object in result set is mated with the existing object in database, if match the data object in result set in database,, in data, there is the existing object identical with data object in result set, with database in corresponding existing object form the relation of using so that can be directly with the existing object in database when using this data object.If do not match the data object in result set in database, that is, in data, there is not the existing object identical with data object in result set, can new Object, this data object is stored in database.
According to the embodiment of the present invention, by obtaining multiple 3D files, wherein, multiple 3D files comprise the 3D file of multiple file layout, by multiple 3D file generateds, can be unified the result set of processing, by the data object in result set and the processing such as the data object in database mates, avoid data results different different 3D file generateds, different data results is processed respectively, having solved the extraction result needing in prior art different file layouts processes respectively, cause the loaded down with trivial details problem of processing procedure of the 3D file to different-format, reached the effect that improves 3D file activity.
Fig. 2 is according to the schematic diagram of the three dimensional file treating apparatus of second embodiment of the invention.The three dimensional file treating apparatus of this embodiment can be used as a kind of preferred implementation of three dimensional file treating apparatus of above-described embodiment.As shown in Figure 2, this three dimensional file treating apparatus comprises acquiring unit 10, generation unit 30, matching unit 50 and processing unit 70, and wherein, generation unit 30 comprises the first acquisition module 301, extraction module 303 and generation module 305.
The first acquisition module 301 is for obtaining the filename of multiple each three dimensional file of three dimensional file.
Extraction module 303 is for extracting data object corresponding to multiple three dimensional file based on filename by pre-configured extraction function, and wherein, pre-configured extraction function is the function for extracting data object corresponding to multiple three dimensional file.
After obtaining multiple 3D files, can extract the filename of 3D file, the input parameter using the filename of 3D file as pre-configured extraction function.Wherein, pre-configured extraction function can be pre-configured for extracting the function of data object of 3D file, for example, it corresponding to 3D file layout, is the SolidWorks file of SldPrt, SldDrw, Sldasm, use the Retrieve3D function in dll file ReadSolidWorks.dll, corresponding to Prt, ASM, Proe file, use the Retrieve function in dll file ReadProE5.dll.
Generation module 305 generates result set for the data object by extracting.
The embodiment of the present invention, can be using the filename of 3D file as the input parameter that extracts function, by pre-configured extraction function, extract the data object of multiple 3D files, by the output parameter that extracts function, generate result set, wherein, the output parameter of extraction function is the data object of 3D file.
According to the embodiment of the present invention, by the pre-configured extraction function corresponding with 3D file layout, by this extraction function, extract the data object of the 3D file of different-format, and generate result set by the data object extracting, further improved the efficiency of 3D file processing.
Preferably, generation unit 30 also comprises the first judge module and configuration module.
The first judge module is for before extracting data object corresponding to multiple three dimensional file based on filename by pre-configured extraction function, judges the file layout whether existing in multiple file layout with pre-configured extraction Functions mismatch.Configuration module is for when judging that multiple file layout exists and during the file layout of pre-configured extraction Functions mismatch, configuring the extraction function corresponding with unmatched file layout.
Judge that in multiple file layout, whether existing with the file layout of pre-configured extraction Functions mismatch can be to judge whether the extraction function corresponding with the file layout of 3D file.Because a kind of file layout of 3D file need to configure a corresponding extraction function, if while therefore failing to match the extraction function conforming to the file layout of 3D file, need the configuration extraction function corresponding with the file layout of this 3D file.For example, when having increased a kind of new 3D file layout, as SolidEdge file layout, only need to increase a dll file ReadSolidEdge.dll, write function ReadFrom3D, convert SolidEge file to Result result set.If judge the file layout not existing in multiple file layout with pre-configured extraction Functions mismatch, directly the extraction function based on pre-configured extracts 3D file.
According to the embodiment of the present invention, by judging the file layout whether existing in multiple file layout with pre-configured extraction Functions mismatch, when judging in multiple file layout the file layout existing with pre-configured extraction Functions mismatch, configure the extraction function corresponding with unmatched file layout, strengthened the dirigibility that 3D file extracts.
It should be noted that, in the embodiment of the present invention, can be packaged into extraction apparatus by extracting function, when there is new 3D file layout, can be to configuration extraction function in extraction apparatus, thus can extract neatly the data object of any one 3D file.
Fig. 3 is according to the schematic diagram of the three dimensional file treating apparatus of third embodiment of the invention.The three dimensional file treating apparatus of this embodiment can be used as a kind of preferred implementation of three dimensional file treating apparatus of above-described embodiment.As shown in Figure 3, this three dimensional file treating apparatus comprises acquiring unit 10, generation unit 30, matching unit 50 and processing unit 70, wherein, matching unit 50 comprises the second acquisition module 501 and the second judge module 503, and processing unit 70 comprises sets up module 701, memory module 703.
The second acquisition module 501 is for obtaining existing object.
Existing object can drawing and document system as the data object having existed in the data of PDM system, obtain this existing object, so that judge whether there be the existing object identical with the data object extracting in database.
The second judge module 503 is for judging at database whether have the existing object identical with data object.
In the embodiment of the present invention, the data object in data object result set, can be the data object extracting by extracting function.Whether judgement exists the existing object identical with data object in database can be the data object that retrieval is extracted in database, judge that whether Already in this data object in database, also can be that the existing object in the data object of extraction and database is contrasted, judge that whether the data object extracting is identical with the existing object in database.So that the data object extracting is processed.
Preferably, the second judge module 503 comprises that first obtains submodule, second and obtain submodule, comparison sub-module and judgement submodule.
First obtains submodule for obtaining the attribute information of data object.Data object is the data object in result set, can be the data object extracting by extracting function, and attribute information can be the information such as the filename, code name of data object, the information such as the code name GB1234 of such as data object.
Second obtains submodule for obtaining the attribute information of existing object.Because existing object is the existing data object having existed in database, therefore, the attribute information of existing object can be also filename, code name etc.
Comparison sub-module is for contrasting the attribute information of existing object in the attribute information of result set data object and database.Particularly, can be that the attribute informations such as the code name of existing object in the attribute informations such as the code name of data object in result set and database are contrasted.
Judge submodule is for judging at database whether have the existing object identical with data object by comparing result.
Particularly, after the attribute information of existing object in the attribute information of data object in result set and database is contrasted, if the attribute information of data object is identical with the attribute information of existing object in database, show to exist the existing object identical with data object in database; If the attribute information of data object is different from the attribute information of existing object in database, show not exist the existing object identical with data object in database.For example, the code name of the data object of extraction is GB1234, matches the existing object identical with this code name in database, shows the existence existing object identical with data object in database.
Set up module 701 for when judging when database exists the existing object identical with data object, set up the relation of using of the existing object that data object is identical with data object.
Memory module 703, for when judging when database does not exist the existing object identical with data object, stores data object in database into.
During by EAP platform processes Result result set, for each Result result set, wherein data object mates with existing object in database, if match and had same object in storehouse, set up the relation of using of data object and existing object, thereby use database when usage data object in, there is same object if do not matched in storehouse in existing object, can create new object based on data object and store in database.By the unified of EAP platform, process, realized the 3D file of different-format to extract to unify to process and stored in system.
The embodiment of the present invention also provides a kind of three dimensional file disposal route.The method operates on computer equipment.It should be noted that, the three dimensional file treating apparatus that the three dimensional file disposal route of the embodiment of the present invention can provide by the embodiment of the present invention is carried out, the three dimensional file disposal route that the three dimensional file treating apparatus of the embodiment of the present invention also can provide for carrying out the embodiment of the present invention.
Fig. 4 is according to the process flow diagram of the three dimensional file disposal route of first embodiment of the invention.As shown in Figure 4, this three dimensional file disposal route comprises that step is as follows:
Step S402, obtains multiple three dimensional file.Wherein, multiple three dimensional file are the multiple three dimensional file that comprise multiple file layout.
Three dimensional file is 3D file, can be the SolidWorks file of the forms such as SldPrt, SldDrw, Sldasm or the Proe file of the form such as Prt, ASM, obtains multiple 3D files, and the 3D file of the plurality of 3D file can be to comprise multiple file layout.For example, when getting 3 3D files, can comprise the SolidWorks file of the SolidWorks file of a SldPrt form, a SldDrw form and the Proe file of a Prt form, or the SolidWorks file of two SldPrt forms and the Proe file of a Prt form.In multiple 3D files, can there is the 3D file of same format.
Step S404, generates result set by multiple three dimensional file.Result set comprises multiple data objects.
After getting multiple 3D files, can be comprised by the multiple 3D file generateds that get the result set of multiple data objects, particularly, can be to extract multiple data objects from multiple 3D files, then by the multiple data objects that extract, form enterprise's application platform (Enterprise Application Platform is called for short EAP) and can unify the result set of processing.
In the embodiment of the present invention, can be for extracting the extraction function of data object of this 3D file to one of the 3D file configuration of each form, be formed for extracting the extraction apparatus of different-format 3D file, using the filename of 3D file as the input parameter that extracts function, by extracting function, extract the data object of 3D file, by extracting function, the data object extracting is exported, formed result set.Wherein, result set can comprise one or more sub-result set, and sub-result set can be array object.For example, when getting the 3D file of " automobile ", by extracting function, can extract " wheel ", " rotating shaft ", " vehicle window " etc. data object, " wheel ", " rotating shaft ", " vehicle window " etc. data object forms result set, wherein, data can also extract as data objects such as " screws " picture " wheel ", and these data objects form the sub-result set of the above results collection.Preferably, when extracting 3D file, can carry out duplicate removal processing to the data object repeating, for example, " automobile one " of two kinds of different-format 3D files and " automobile two ", when extracting data to picture generation result set, the gauge size of data objects such as " wheels " that extract etc. are all identical, in result set, can only retain one " wheel ", the burden of avoiding data heavy burden to cause EAP platform to be processed result set.
Step S406, mates the data object in result set with the existing object in database.
After generating result set, data object in result set is mated with the existing object in database, wherein, database can be that drawing and document system is as product data management (Product Data Management, be called for short PDM) database in system, in database, existing object is the data that existed in PDM system.Particularly, it can be whether data object by the determined property result set of data object is stored in database that data object is mated with the existing object in database, so that the data object extracting is unified to process.
Step S408, processes data object according to matching result.
After data object in result set is mated with the existing object in database, if match the data object in result set in database,, in data, there is the existing object identical with data object in result set, with database in corresponding existing object form the relation of using so that can be directly with the existing object in database when using this data object.If do not match the data object in result set in database, that is, in data, there is not the existing object identical with data object in result set, can new Object, this data object is stored in database.
According to the embodiment of the present invention, by obtaining multiple 3D files, wherein, multiple 3D files comprise the 3D file of multiple file layout, by multiple 3D file generateds, can be unified the result set of processing, by the data object in result set and the processing such as the data object in database mates, avoid data results different different 3D file generateds, different data results is processed respectively, having solved the extraction result needing in prior art different file layouts processes respectively, cause the loaded down with trivial details problem of processing procedure of the 3D file to different-format, reached the effect that improves 3D file activity.
Fig. 5 is according to the process flow diagram of the three dimensional file disposal route of second embodiment of the invention.The three dimensional file disposal route of this embodiment can be a kind of preferred implementation of the three dimensional file disposal route of above-described embodiment.As shown in Figure 5, this three dimensional file disposal route comprises that step is as follows:
Step S502 is identical with the step S402 shown in Fig. 4, but is not limited to step S402, does not repeat here.
Step S504, obtains the filename of each three dimensional file in multiple three dimensional file.
Step S506, extracts data object corresponding to multiple three dimensional file based on filename by pre-configured extraction function.Wherein, pre-configured extraction function is the function for extracting data object corresponding to multiple three dimensional file.
After obtaining multiple 3D files, can extract the filename of 3D file, the input parameter using the filename of 3D file as pre-configured extraction function.Wherein, pre-configured extraction function can be pre-configured for extracting the function of data object of 3D file, for example, it corresponding to 3D file layout, is the SolidWorks file of SldPrt, SldDrw, Sldasm, use the Retrieve3D function in dll file ReadSolidWorks.dll, corresponding to Prt, ASM, Proe file, use the Retrieve function in dll file ReadProE5.dll.
Preferably, before step S506, three dimensional file disposal route comprises: judge the file layout whether existing in multiple file layout with pre-configured extraction Functions mismatch; And if judge in multiple file layout the file layout existing with pre-configured extraction Functions mismatch, the configuration extraction function corresponding with unmatched file layout.
Judge that in multiple file layout, whether existing with the file layout of pre-configured extraction Functions mismatch can be to judge whether the extraction function corresponding with the file layout of 3D file.Because a kind of file layout of 3D file need to configure a corresponding extraction function, if while therefore failing to match the extraction function conforming to the file layout of 3D file, need the configuration extraction function corresponding with the file layout of this 3D file.For example, when having increased a kind of new 3D file layout, as SolidEdge file layout, only need to increase a dll file ReadSolidEdge.dll, write function ReadFrom3D, convert SolidEge file to Result result set.If judge the file layout not existing in multiple file layout with pre-configured extraction Functions mismatch, directly the extraction function based on pre-configured extracts 3D file.
According to the embodiment of the present invention, by judging the file layout whether existing in multiple file layout with pre-configured extraction Functions mismatch, when judging in multiple file layout the file layout existing with pre-configured extraction Functions mismatch, configure the extraction function corresponding with unmatched file layout, strengthened the dirigibility that 3D file extracts.
It should be noted that, in the embodiment of the present invention, can be packaged into extraction apparatus by extracting function, when there is new 3D file layout, can be to configuration extraction function in extraction apparatus, thus can extract neatly the data object of any one 3D file.
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 parameter that extracts function, by pre-configured extraction function, extract the data object of multiple 3D files, by the output parameter that extracts function, generate result set, wherein, the output parameter of extraction function is the data object of 3D file.
Step S510, step S512 are identical with the step S406 shown in Fig. 4, step S408 successively, but are not limited to step S406, step S408, do not repeat here.
According to the embodiment of the present invention, by the pre-configured extraction function corresponding with 3D file layout, by this extraction function, extract the data object of the 3D file of different-format, and generate result set by the data object extracting, further improved the efficiency of 3D file processing.
Fig. 6 is according to the process flow diagram of the three dimensional file disposal route of third embodiment of the invention.The three dimensional file disposal route of this embodiment can be a kind of preferred implementation of the three dimensional file disposal route of above-described embodiment.As shown in Figure 6, this three dimensional file disposal route comprises that step is as follows:
Step S602, step S604 are identical with the 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 drawing and document system as the data object having existed in the data of PDM system, obtain this existing object, so that judge whether there be the existing object identical with the data object extracting in database.
Step S608, judges in database, whether there be the existing object identical with data object.
In the embodiment of the present invention, the data object in data object result set, can be the data object extracting by extracting function.Whether judgement exists the existing object identical with data object in database can be the data object that retrieval is extracted in database, judge that whether Already in this data object in database, also can be that the existing object in the data object of extraction and database is contrasted, judge that whether the data object extracting is identical with the existing object in database.So that the data object extracting is processed.
Preferably, step S608 can comprise the following steps:
Step 1, obtains the attribute information of data object.Data object is the data object in result set, can be the data object extracting by extracting function, and attribute information can be the information such as the filename, code name of data object, the information such as the code name GB1234 of such as data object.
Step 2, obtains the attribute information that has object.Because existing object is the existing data object having existed in database, therefore, the attribute information of existing object can be also filename, code name etc.
Step 3, contrasts the attribute information of existing object in the attribute information of data object in result set and database.Particularly, can be that the attribute informations such as the code name of existing object in the attribute informations such as the code name of data object in result set and database are contrasted.
Step 4, judges in database, whether there be the existing object identical with data object by comparing result.Particularly, after the attribute information of existing object in the attribute information of data object in result set and database is contrasted, if the attribute information of data object is identical with the attribute information of existing object in database, show to exist the existing object identical with data object in database; If the attribute information of data object is different from the attribute information of existing object in database, show not exist the existing object identical with data object in database.For example, the code name of the data object of extraction is GB1234, matches the existing object identical with this code name in database, shows the existence existing object identical with data object in database.
Step S610, if judge the existence existing object identical with data object in database, sets up the relation of using of the existing object that data object is identical with data object.
, there is not the existing object identical with data object if judged in step S612, data object is stored in database in database.
During by EAP platform processes Result result set, for each Result result set, wherein data object mates with existing object in database, if match and had same object in storehouse, set up the relation of using of data object and existing object, thereby use database when usage data object in, there is same object if do not matched in storehouse in existing object, can create new object based on data object and store in database.By the unified of EAP platform, process, realized the 3D file of different-format to extract to unify to process and stored in system.
According to the description of above-described embodiment, can find out that the effect that the present invention can reach is as follows:
By configuring different extraction functions, and be packaged into extraction apparatus, can realize the extraction of different 3D files is configured to different disposal routes, generate unified Result result set, finally by EAP platform, Result result set be carried out to unified processing and deposit in PDM system.Difference by extraction apparatus configures the customizability, the dirigibility that have improved greatly abstraction function process implementation, and finally the unified stability, the unitarity that have greatly increased system processed to Result result set by EAP platform, has dropped to development difficulty.
It should be noted that, in the step shown in the process flow diagram of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
Obviously, those skilled in the art should be understood that, above-mentioned of the present invention each module or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that multiple calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in memory storage and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or the multiple modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a three dimensional file disposal route, is characterized in that, comprising:
Obtain multiple three dimensional file, wherein, described multiple three dimensional file are the multiple three dimensional file that comprise multiple file layout;
By described multiple three dimensional file, generate result set, described result set comprises 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.
2. three dimensional file disposal route according to claim 1, is characterized in that, generates result set comprise by described multiple three dimensional file:
Obtain the filename of each three dimensional file in described multiple three dimensional file;
Based on described filename, by pre-configured extraction function, extract data object corresponding to described multiple three dimensional file, wherein, described pre-configured extraction function is the function for extracting data object corresponding to described multiple three dimensional file; And
By the described data object extracting, generate described result set.
3. three dimensional file disposal route according to claim 2, is characterized in that, before extracting data object corresponding to described multiple three dimensional file based on described filename by pre-configured extraction function, described three dimensional file disposal route also comprises:
Judge the file layout whether existing in described multiple file layout with described pre-configured extraction Functions mismatch; And
If judge in described multiple file layout the file layout existing with described pre-configured extraction Functions mismatch, the configuration extraction function corresponding with described unmatched file layout.
4. three dimensional file disposal route according to claim 1, is characterized in that,
Data object in described result set is mated and comprised with the existing object in database: obtain described existing object; Whether judgement there is the existing object identical with described data object in described database,
According to matching result, described data object is processed and comprised: if judge the existence existing object identical with described data object in described database, set up the relation of using of the described existing object that described data object is identical with described data object; If judged, in described database, there is not the existing object identical with described data object, described data object is stored in described database.
5. whether three dimensional file disposal route according to claim 4, is characterized in that, judge and in described database, exist the existing object identical with described data object to comprise:
Obtain the attribute information of described data object;
Obtain the attribute information of described existing object;
The attribute information of existing object in the attribute information of data object in described result set and described database is contrasted; And
By comparing result, judge in described database, whether there be the existing object identical with described data object.
6. a three dimensional file treating apparatus, is characterized in that, comprising:
Acquiring unit, for obtaining multiple three dimensional file, wherein, described multiple three dimensional file are the multiple three dimensional file that comprise multiple file layout;
Generation unit, for generating result set by described multiple three dimensional file, described result set comprises multiple data objects;
Matching unit, for mating the data object of described result set with the existing object in database; And
Processing unit, for processing described data object according to matching result.
7. three dimensional file treating apparatus according to claim 6, is characterized in that, described generation unit comprises:
The first acquisition module, for obtaining the filename of described multiple each three dimensional file of three dimensional file;
Extraction module, for extracting data object corresponding to described multiple three dimensional file based on described filename by pre-configured extraction function, wherein, described pre-configured extraction function is the function for extracting data object corresponding to described multiple three dimensional file; And
Generation module, for generating described result set by the described data object extracting.
8. three dimensional file treating apparatus according to claim 7, is characterized in that, described generation unit also comprises:
The first judge module, for based on described filename by data object corresponding to the described multiple three dimensional file of pre-configured extraction function extraction before, judge the file layout whether existing in described multiple file layout with described pre-configured extraction Functions mismatch; And
Configuration module, for when judging the file layout of described multiple file layout existence and described pre-configured extraction Functions mismatch, configures the extraction function corresponding with described unmatched file layout.
9. three dimensional file treating apparatus according to claim 6, is characterized in that,
Described matching unit comprises: the second acquisition module, for obtaining described existing object; The second judge module, for judging at described database whether have the existing object identical with described data object,
Described processing unit comprises: set up module, for when judging when described database exists the existing object identical with described data object, set up the relation of using of the described existing object that described data object is identical with described data object; Memory module, for when judging when described database does not exist the existing object identical with described data object, stores described data object in described database into.
10. three dimensional file treating apparatus according to claim 9, is characterized in that, described the second judge module comprises:
First obtains submodule, for obtaining the attribute information of described data object;
Second obtains submodule, for obtaining the attribute information of described existing object;
Comparison sub-module, for contrasting the attribute information of existing object in the attribute information of described result set data object and described database; And
Judge submodule, for judged at described database whether have the existing object identical with described data object by comparing result.
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 true CN103729465A (en) 2014-04-16
CN103729465B 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)

Cited By (1)

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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102486873B (en) * 2010-12-01 2014-06-18 财团法人资讯工业策进会 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN103729465B (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN104657396A (en) Data migration method and device
CN102236672A (en) Method and device for importing data
CN107679208A (en) A kind of searching method of picture, terminal device and storage medium
CN104462307A (en) Searching method and device for object in terminal
WO2022134583A1 (en) Insurance data information generation method, apparatus, server, and storage medium
US10776313B2 (en) Converting source objects to target objects
CN116975010B (en) Electronic material library sharing method and system
CN104077727A (en) Substation electric equipment machine account intelligent type-in method and system
CN110400201A (en) Information displaying method, device, electronic equipment and medium
CN112231417A (en) Data classification method and device, electronic equipment and storage medium
US20170199912A1 (en) Behavior topic grids
AL-Msie'deen et al. Detecting commonality and variability in use-case diagram variants
CN114493799A (en) Method and system for managing special vehicle order data in warehouse and table dividing manner
CN103729465A (en) Three-dimensional file processing method and device
CN104714983B (en) The generation method and device of distributed index
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
CN106843956A (en) The generation method and device of system firmware bag
CN107491460A (en) The data mapping method and device of adaption system
CN110019225A (en) Method, apparatus, equipment and the medium of data processing
CN112463785B (en) Data quality monitoring method and device, electronic equipment and storage medium
CN116055144A (en) Data security analysis method, device, equipment and storage based on Internet of things
CN106610899B (en) Test case generation method and device
CN105138606A (en) Server log management method and system
CN103631797A (en) Operation method and device used for data lists

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