Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the first objective of the present invention is to provide a dynamic data extraction and sharing method, which can export data in a database into intermediate files of various CAX software by parsing an XML file again, and load the data files into the CAX software conveniently and quickly.
The second objective of the present invention is to provide a dynamic data extracting and sharing device.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a computer storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a dynamic data extracting and sharing method, including the following steps: acquiring engine data in a research and development process; re-analyzing the XML file for the engine data to obtain intermediate data files of various CAX software; and importing the intermediate data file into CAX software to obtain a format file required by the current application program.
The dynamic data extraction and sharing method of the embodiment of the invention can export the data in the database into intermediate files of various CAX software by one key through re-analyzing the XML file, and the data file is put into the CAX software, thereby being convenient and fast, and CAD and CAE tools used for design and simulation all need the information in the database, and format files required by the application programs can be generated very conveniently by utilizing the technology, and the files can be directly transmitted to the application programs for use.
In addition, the dynamic data extraction and sharing method according to the above embodiment of the present invention may further have the following additional technical features:
further, in an embodiment of the present invention, the method further includes: establishing a plurality of data interfaces associated with CAD/CAE software, wherein each data interface is configured according to different performance indicators of the engine data, and modifying data of an interface template file.
Further, in an embodiment of the present invention, the importing the intermediate data file into CAX software includes: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
Further, in one embodiment of the present invention, the operation modes of the plurality of data interfaces include a text import mode, a text load mode, and a script mode.
Further, in an embodiment of the present invention, in the text import mode, after exporting the basic information through a text format, clicking a corresponding button in the CAX software in a direct import manner to import the basic data attribute; in the text loading mode, after preset basic information is exported through a text format, when the CAX software is loaded, the preset basic information is directly linked into the software database so as to directly select target data in a list and obtain the target data; and in the script mode, exporting the preset basic information through a preset format, and loading the preset basic information into the calculation of an application through a script language of the CAX software.
In order to achieve the above object, a second aspect of the present invention provides a dynamic data extracting and sharing apparatus, including: the first acquisition module is used for acquiring engine data in a research and development process; the analysis module is used for re-analyzing the XML file for the engine data to obtain intermediate data files of various CAX software; and the import module is used for importing the intermediate data file into CAX software to obtain a format file required by the current application program.
The dynamic data extraction and sharing device of the embodiment of the invention can export the data in the database into intermediate files of various CAX software by one key through re-analyzing the XML file, and the data file is put into the CAX software, thereby being convenient and fast, and CAD and CAE tools used for designing and simulating all need the information in the database.
In addition, the dynamic data extraction and sharing device according to the above embodiment of the present invention may further have the following additional technical features:
further, in an embodiment of the present invention, the method further includes: and the establishing module is used for establishing a plurality of data interfaces related to CAD/CAE software, wherein each data interface is configured according to different performance indexes of the engine data, and the data of the interface template file is modified.
Further, in an embodiment of the present invention, the import module is specifically configured to: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
To achieve the above object, a third aspect of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions configured to perform the above-described dynamic data fetching and sharing method.
To achieve the above object, a fourth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is executed by a processor for implementing the above dynamic data extracting and sharing method.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a dynamic data extracting and sharing method and steps according to an embodiment of the present invention with reference to the drawings, and first, the dynamic data extracting and sharing method according to an embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a flowchart of a dynamic data extraction and sharing method according to an embodiment of the present invention.
As shown in fig. 1, the dynamic data extracting and sharing method includes the following steps:
in step S101, engine data in the development process is acquired.
It is understood that the manner of acquiring the engine data in the development process may adopt an acquisition method in the related art, and details are not described herein to avoid redundancy.
In step S102, the XML file is re-parsed for the engine data to obtain intermediate data files for various CAX software.
It can be understood that after the engine data is obtained, the embodiment of the invention can re-parse the XML file, so that the data in the database can be exported as an intermediate file of various CAX software, i.e. an intermediate data file
And the data file is conveniently and quickly loaded into CAX software. The CAD and CAE tools used for design and simulation all need information in a database, format files required by the application programs can be conveniently generated by using the technology, and the files can be directly transmitted to the application programs for use.
In step S103, the intermediate data file is imported into the CAX software, and a format file required by the current application program is obtained.
Further, in an embodiment of the present invention, importing the intermediate data file into the CAX software includes: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
It can be understood that, when the intermediate data file is imported into the CAX software, the embodiment of the present invention may find corresponding data in the basic database software according to the requirement for the data attribute, output the corresponding file through the software interface module, and then import the data file in the application software for application. The introduction method may be as shown in fig. 2.
Further, in an embodiment of the present invention, the method further includes: establishing a plurality of data interfaces associated with the CAD/CAE software, wherein each data interface is configured according to different performance indexes of the engine data, and modifying the data of the interface template file. Wherein, the interface style can be as shown in figure 3,
it can be understood that the embodiment of the present invention may first establish a plurality of data interfaces with the CAD/CAE software, so that the data can be directly associated with the software, and seamless data connection application is realized. And each interface can be configured according to different performance indexes of the basic data to modify the data of the interface template file. Different English code names in the data template file correspond to different performance indexes, database fields corresponding to the performance indexes are configured in the configuration file, and the collaborative map can be shown as 4.
Further, in one embodiment of the present invention, the operating modes of the plurality of data interfaces include a text import mode, a text load mode, and a script mode.
Further, in an embodiment of the present invention, in the text import mode, after exporting the basic information through the text format, clicking a corresponding button in the CAX software in a direct import manner to import the basic data attribute; in a text loading mode, after preset basic information is exported through a text format, when CAX software is loaded, the preset basic information is directly linked into a software database so as to directly select target data in a list and obtain the target data; in the script mode, preset basic information is exported through a preset format, and the preset basic information is loaded into the calculation of the application through the script language of CAX software.
It can be understood that the working modes of the plurality of data interfaces are determined by combing and analyzing the mature commercial software, and mainly comprise a text import mode, a text loading mode and a script mode.
Specifically, the text import mode is to import the basic data attribute by directly importing basic information in CAX software by clicking a corresponding button after exporting the basic information in a text format; the text loading mode is that after basic information is exported through a text format, the basic information is directly linked into a software database when CAX software is loaded, so that data can be directly selected from a list during setting, and the data is obtained; the script mode is to export basic information through a special format and load the information into the applied calculation through the script language of CAX software, so that the flexibility is very high, and the requirements of various special formats and special types can be basically met.
According to the dynamic data extraction and sharing method provided by the embodiment of the invention, the XML file is re-analyzed, the data in the database can be exported into intermediate files of various CAX software by one key, the data file is put into the CAX software conveniently and quickly, CAD and CAE tools used for design and simulation all need information in the database, format files required by application programs can be generated very conveniently by using the technology, and the files can be directly transmitted to the application programs for use.
Next, a dynamic data extracting and sharing apparatus according to an embodiment of the present invention will be described with reference to the accompanying drawings.
FIG. 5 is a block diagram of a dynamic data fetching and sharing device according to an embodiment of the invention.
As shown in fig. 5, the dynamic data extracting and sharingdevice 10 includes: afirst acquisition module 100, aparsing module 200 and animport module 300.
Thefirst acquisition module 100 is used for acquiring engine data in a development process. Theparsing module 200 is used for parsing the XML file again for the engine data to obtain intermediate data files of various CAX software. Theimport module 300 is configured to import the intermediate data file into the CAX software, so as to obtain a format file required by the current application program.
Further, in an embodiment of the present invention, the method further includes: the establishing module is used for establishing a plurality of data interfaces related to CAD/CAE software, wherein each data interface is configured according to different performance indexes of the engine data, and the data of the interface template file is modified.
Further, in an embodiment of the present invention, theimport module 300 is specifically configured to: and finding corresponding data in the basic database software according to the requirement of the data attribute, outputting a corresponding file through a corresponding data interface module, importing the data file in the application software, and applying the current application program.
It should be noted that the foregoing explanation of the embodiment of the dynamic data extracting and sharing method is also applicable to the dynamic data extracting and sharing device of the embodiment, and is not repeated herein.
According to the dynamic data extraction and sharing device provided by the embodiment of the invention, the XML file is re-analyzed, the data in the database can be exported into intermediate files of various CAX software by one key, the data file is put into the CAX software conveniently and quickly, CAD and CAE tools used for design and simulation all need information in the database, format files required by application programs can be generated very conveniently by using the technology, and the files can be directly transmitted to the application programs for use.
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, the instructions configured to perform the dynamic data fetching and sharing method.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, so as to implement the above dynamic data extracting and sharing method.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.