CN114595115A - Model data extraction method, system, electronic device and computer storage medium - Google Patents
Model data extraction method, system, electronic device and computer storage medium Download PDFInfo
- Publication number
- CN114595115A CN114595115A CN202210194101.1A CN202210194101A CN114595115A CN 114595115 A CN114595115 A CN 114595115A CN 202210194101 A CN202210194101 A CN 202210194101A CN 114595115 A CN114595115 A CN 114595115A
- Authority
- CN
- China
- Prior art keywords
- model data
- information
- data extraction
- extraction request
- engineering
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3471—Address tracing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Stored Programmes (AREA)
Abstract
The present disclosure provides a model data extraction method, a system, an electronic device, and a computer-readable storage medium, to at least solve the problems of high complexity and low efficiency of the current model data extraction method, wherein the method includes: establishing windows service; configuring item reading setting information about model data in the windows service; judging whether a model data extraction request from a calling party is received; if a model data extraction request is received, reading model data information corresponding to the model data extraction request based on the item reading setting information; and feeding back the model data information to the calling party. According to the method and the device, model data can be extracted quickly without developing and installing any plug-in, the cost and the operation complexity are effectively reduced, and the efficiency and the operation convenience are improved.
Description
Technical Field
The present disclosure relates to the field of model data transmission, and in particular, to a model data extraction method, a model data extraction system, an electronic device, and a computer-readable storage medium.
Background
In industrial design, three-dimensional modeling plays an important role, and how to extract model data in an industrial design system conveniently and efficiently also becomes a problem concerned by users, however, in the current model data extraction mode, a plug-in of the industrial design system is usually required to be developed and installed in a client to extract the model data, and when the data volume of a project is huge, the reaction of the industrial design system is inevitably slow, and the extraction efficiency of the model data is finally influenced.
Disclosure of Invention
The present disclosure provides a model data extraction method, system, electronic device, and computer-readable storage medium, to at least solve the problems of high complexity and low efficiency of the current model data extraction method.
In order to achieve the above object, the present disclosure provides a model data extraction method, including:
establishing windows service;
configuring item reading setting information about model data in the windows service;
judging whether a model data extraction request from a calling party is received;
if a model data extraction request is received, reading model data information corresponding to the model data extraction request based on the item reading setting information; and the number of the first and second groups,
and feeding back the model data information to the calling party.
In an embodiment, the model data is PDMS Engineering model data, and the item reading setting information includes PDMS location path information, Engineering location path information, and Engineering item data path information.
In one embodiment, after configuring item reading setting information about model data in the windows service and before determining whether a model data extraction request is received from a caller, the method further includes:
creating an http port and an http port monitoring program in the windows service; continuously monitoring the calling state of the http port based on the http port monitoring program to obtain monitoring information;
judging whether a model data extraction request from a calling party is received or not, wherein the judging step comprises the following steps:
and judging whether a model data extraction request from a calling party is received or not based on the monitoring information.
In one embodiment, the model data extraction request carries a model data name parameter,
reading the model data information corresponding to the model data extraction request based on the item reading setting information, including:
querying a data node corresponding to the model data name parameter based on the item reading setting information; and reading the model data information corresponding to the model data extraction request from the data node.
In one embodiment, after reading the model data information corresponding to the model data extraction request based on the item reading setting information and before feeding back the model data information to the caller, the method further includes:
performing JSON format conversion on the model data information to obtain JSON format model data information;
feeding back the model data information to the calling party, including: and feeding back the model data information in the JSON format to the calling party.
To achieve the above object, the present disclosure also provides a model data extraction system, including:
the system comprises an establishing module, a setting module and a setting module, wherein the establishing module is used for establishing windows service;
a configuration module configured to configure item reading setting information on model data within the windows service;
a judging module configured to judge whether a model data extraction request from a caller is received;
an extraction module configured to, when the judgment module judges that a model data extraction request is received, read model data information corresponding to the model data extraction request based on the item reading setting information; and the number of the first and second groups,
a feedback module configured to feed back the model data information to the caller.
In an embodiment, the model data is PDMS Engineering model data, and the item reading setting information includes PDMS location path information, Engineering location path information, and Engineering item data path information.
In an embodiment, the establishing module is further configured to create an http port and an http port listener in the windows service after the configuring module configures the item reading setting information about the model data and before the determining module determines whether the model data extraction request from the caller is received; and the number of the first and second groups,
the monitoring module is set to continuously monitor the calling state of the http port based on the http port monitoring program to obtain monitoring information;
the judging module is specifically configured to judge whether a model data extraction request from a calling party is received or not based on the monitoring information.
In order to achieve the above object, the present disclosure further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the model data extraction method.
To achieve the above object, the present disclosure also provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor executes the model data extraction method.
According to the model data extraction method, the system, the electronic device and the computer-readable storage medium provided by the disclosure, by establishing a windows service, project reading setting information about model data is configured in the windows service, then whether a model data extraction request from a calling party is received is judged, if the model data extraction request is received, model data information corresponding to the model data extraction request is read based on the project reading setting information, and finally the model data information is fed back to the calling party, so that the model data can be extracted quickly without developing and installing any plug-in, the cost and the complexity of model data extraction are effectively reduced, and the efficiency and the operation convenience of extracting the model data by a user are improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the disclosure. The objectives and other advantages of the disclosure may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosed embodiments and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the example serve to explain the principles of the disclosure and not to limit the disclosure.
Fig. 1 is a schematic flow chart of a model data extraction method provided in an embodiment of the present disclosure;
FIG. 2 is an exemplary diagram of project data for the Engineering module of the present disclosure;
FIG. 3 is a schematic flow chart diagram illustrating another method for extracting model data according to an embodiment of the present disclosure;
FIG. 4 is an exemplary diagram of a GetAttributes ByName method employed by the present disclosure for data query reading;
FIG. 5 is a schematic flow chart diagram illustrating another method for extracting model data according to an embodiment of the present disclosure;
FIG. 6 is a second flowchart illustrating another method for extracting model data according to the second embodiment of the present disclosure;
FIG. 7 is an exemplary diagram of JSON format conversion of Engineering data by the present disclosure;
FIG. 8 is an exemplary diagram of a caller extracting and displaying model data information in accordance with the present disclosure;
FIG. 9 is a schematic structural diagram of a model data extraction system according to an embodiment of the present disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, specific embodiments of the present disclosure are described below in detail with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order; also, the embodiments and features of the embodiments in the present disclosure may be arbitrarily combined with each other without conflict.
In which the terminology used in the embodiments of the disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in the disclosed embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the following description, suffixes such as "module", "component", or "unit" used to indicate elements are used only for facilitating the explanation of the present disclosure, and have no particular meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
Taking an industrial Design System (PDMS for short) of the avava company as an example, because it has a powerful three-dimensional modeling function, and is popular with a wide range of users, the method adopted by the existing method for extracting model data of the PDMS at home and abroad at present usually extracts and uses device attributes in a way of developing plug-in the PDMS, that is, it is necessary to develop a PDMS Engineering internal plug-in separately to extract data, and if such a method is used for a non-online model Design requirement, the following disadvantages also exist: a terminal user needs to install client design software PDMS, then the PDMS is started and operated manually, the plug-in can be used for extracting data under a design editing model, if the project capacity is large, the PDMS project is opened slowly, the requirement on the performance of a machine is met, and meanwhile, data can not be directly connected with other platforms in an abutting mode.
In order to solve the above problems, the embodiment of the present disclosure provides a model data extraction method, which can automatically extract (AVEVA) PDMS Engineering model data in real time, and implement a function of performing independent third-party real-time model data reading on Engineering project data, in this embodiment, the PDMS Engineering model data is extracted, as shown in fig. 1, and the method includes steps S101 to S105.
In step S101, a windows service is established.
In this embodiment, a windows service related to model data extraction is established, and specifically, the windows service related to Engineering data extraction is established, where the Engineering module is mainly used for Engineering Design and Computer Aided Design (CAD), and project data of the Engineering module is illustrated in fig. 2.
In the embodiment, according to the stable and reliable characteristics of the windows service, manual starting is not needed when the system is powered off or is restarted accidentally, the problem that plug-ins are installed and the problem that manual starting is needed in the prior art are inconvenient can be effectively solved by adopting the deployment mode of the windows service, and in one implementation mode, the windows service is established by using NET C # language, so that the greater compatibility and stability can be achieved.
In step S102, item reading setting information on model data is configured within the windows service.
In this embodiment, the model data is factory design management system Engineering PDMS Engineering model data, and the item reading setting information includes PDMS location path information, Engineering location path information, and Engineering item data path information.
In this embodiment, before starting the windows service, the item reading setting information about the model data is configured in the windows service, that is, if the model data of each item needs to be extracted from the windows service, the item reading setting information needs to be configured in the windows service in advance. Taking extracting the Sample item in PDMS Engineering as an example, configuring the read setting information of the Engineering Sample item in the configuration config file in the windows service, including PDMS location path information, Engineering location path information, and Engineering Sample item data path information, for example: PDMS installation position (D: \ \ AVEVA \ Plant \ PDMS12.1.SP4\ D: \ \ AVEVA \ Plant \ PDMS 12-1. SP4\ PML LIB \ Engineering Sample project data position (D: \ \ AVEVA \ Plant \ PROJEC-1. SP4\ Sample \ sampling), Engineering module position (D: \ \ AVEVA \ Plant \ PDMS12.1.SP4\ tags) and other related parameters.
In step S103, it is determined whether a model data extraction request from the caller is received, if the model data extraction request is received, step S104 is executed, otherwise, the process is ended.
In this embodiment, after the configured items read the setting information, the windows service is started, and whether a model data extraction request from a caller is received is determined by monitoring the windows service.
In one embodiment, to minimize dependency and deployment complexity. A micro http (hypertext transfer protocol) port service function is erected in a service for external calling, a thread is used for monitoring an http parameter entry in real time to receive parameter transmission of a calling party at any time, specifically, an http webservice is created in a windows service, wherein the http webservice is a small http website issued by using an http protocol, and parameters can be received by a specified port and data information can be returned to the calling party. Further, by using the http port of the http web service, the user may send a model data extraction request to the http port in the windows service, and monitor the calling condition of the service by creating an http web service monitor (i.e., monitoring the http port), so as to quickly determine whether the model data extraction request from the calling party is received.
In step S104, the model data information corresponding to the model data extraction request is read based on the item reading setting information.
Specifically, reading the setting information, i.e. the position information of the PDMS related program, according to the configured items, the following components may be introduced: the components may acquire the attribute GetAttributesByName method according to the name parameter to perform data query and reading, and details are described in the following embodiments, and details are not repeated here.
In step S105, the model data information is fed back to the caller.
Compared with the prior art, the model data parameters are extracted in a mode of developing and installing the PDMS plug-in, so that the complexity of the model data extraction process is high and the efficiency is low, the PDMS plug-in is not required to be additionally developed through the form of establishing the windows service, and the cost and the complexity of developing and installing the plug-in at a client side are saved; meanwhile, the client does not need to install PDMS design software, and can integrate data into the existing WEB system by using windows service to check information quickly and independently, so that the problem of slow reaction of an industrial design system when project data is huge is effectively solved; meanwhile, any platform can be conveniently and fast docked, the access and information extraction requirements of any platform are facilitated, and the requirement that a user acquires the latest PDMS Engineering design model project data information in real time is met.
Referring to fig. 3, fig. 3 is another model data extraction method provided by the embodiment of the present disclosure, based on the previous embodiment, in the embodiment, a service invocation and feedback function is implemented by creating an http port and an http port listener, a user may send a model data extraction request based on the http port, and after the system monitors the invocation condition of the http port, the system further feeds back corresponding model data information to the user quickly, so as to improve the extraction efficiency of the model data at a lower cost, and has general applicability, specifically, after the item reading setting information about the model data is configured in the windows service (step S102), and before determining whether the model data extraction request from the caller is received (step S103), the method further includes step S301 and step S302, and step S103 is further divided into step S303.
In step S301, an http port and an http port listener are created in the windows service.
Specifically, the http api port service function is created by constructing an http webservice, where the http port listener may directly monitor the call condition of the http api.
In step S302, the call state of the http port is continuously monitored based on the http port monitor, so as to obtain monitoring information.
In step S303, it is determined whether a model data extraction request from a caller is received based on the listening information.
Taking a calling party as a third party application program, taking an example that a model data extraction request carries query parameters (model data Name parameters), the third party application program can perform parameter transmission in a http + port mode, a http port monitoring program monitors parameter transmission information, the item takes the example that transmission data is queried according to element attribute information of Name: M1501A in fig. 2, and the third party initiates a request URL: http://127.0.0.1:8088/selectname ═ M1501A, it can be determined that the caller sent the model data extraction request to the system, and in some embodiments, in order to improve the efficiency and security of the model data extraction, the validity of the model data extraction request may be further verified, for example, whether the query parameter is valid, whether the query parameter is included in the item, and the like. Further, the model data extraction request carries model data name parameters, and the model data information corresponding to the model data extraction request is read based on the item reading setting information (step S104), including the following steps:
querying a data node corresponding to the model data name parameter based on the item reading setting information; and reading the model data information corresponding to the model data extraction request from the data node.
Continuing to take the example that the transmitted data is queried according to the element attribute information of the Name: M1501A in fig. 2, after the user calls the http port and the http port monitoring program monitors http://127.0.0.1:8088/selectname ═ M1501A, the user obtains that the Name parameter is M1501A, verifies the validity of the judgment parameter, and after the verification is legal, queries the data node corresponding to M1501A, namely starts to perform node data query on the item, and obtains corresponding model data information. And further, calling the AVEVA and PDMS interface, and introducing the following necessary components according to the configured PDMS-related program position information: aveva, applicationframework, aveva, pdms, dll, aveva, pdms, database, dll query and read data using the GetAttributesByName method in fig. 4, through the received NAME parameter value M1501A.
Referring to fig. 5, fig. 5 is a further model data extraction method provided by the embodiment of the present disclosure, based on the previous embodiment, considering that data read through an API is in a long string character format, and data classification and professional information are not easily distinguished, after the data is obtained, information needs to be split and reassembled, and in order to facilitate returning and using model data, in this embodiment, after the model data information is extracted, JSON format conversion is performed first, and then the model data information is fed back to a caller, specifically, after the model data information corresponding to the model data extraction request is read based on the item reading setting information (step S104), and before the model data information is fed back to the caller (step S105), step S501 is further included, and step S105 is further divided into step S502.
In step S501, JSON format conversion is performed on the model data information to obtain model data information in a JSON format;
in step S502, the model data information in the JSON format is fed back to the caller.
It is understood that JSON (javascript Object notification) is a lightweight data exchange format, the JSON format is only a text format, and can be used as a data format of any programming language, and JSON files based on the JSON format can be used for storing simple data structures and objects, and can exchange data in web applications.
In this embodiment, the model data information is subjected to JSON format conversion and then fed back to the caller, and the caller can directly identify the model data attribute Type and the value information corresponding to the Type, such as Name, Type, ActType and the like, according to the Name of the JSON format, so that the caller can use the model data conveniently.
To facilitate understanding of the embodiment, the embodiment of the present disclosure is further described in detail with reference to fig. 6, which is a process for extracting data node NAME of M1501A in Sample entry in PDMS Engineering.
Step 1: and establishing a windows service for Engineering data extraction.
According to the characteristics, stability and reliability of the windows service and the characteristic that manual starting is not needed when the system is powered off or restarted accidentally, a deployment mode of the windows service is adopted. The windows service outputs calling record information, abnormal information and the like by means of a system log and a log interface built by the service.
Step 2: and configuring the Sample project information of PDMS Engineering.
Before the windows service is started, reading setting information of an Engineering Sample project is configured in a config file in the service, and the reading setting information specifically comprises PDMS installation position path information (D: \ \ AVEVA \ Plant \ PDMS12.1.SP4\ D: \ \ AVEVA \ Plant \ PDMS 12-1. SP4\ PML LIB \), Engineering project position path information (D: \ \ AVEVA \ Plant \ PROJEC-1. SP4\ Sample \ sampling), Engineering module position path (D: \ \ AVEVA \ Plant PDMS12.1.SP4\ tags), and related parameters.
And step 3: and (5) constructing http webservice.
To minimize dependency and deployment complexity. And a micro http api service function is erected in the service for external calling, and a http parameter inlet is monitored in real time by using a thread to receive parameter transmission of a calling party at any time.
And 4, step 4: the external program sends a request query parameter.
The third party application (as shown in fig. 3) can perform parameter transmission in a http + port mode, in the item, we query by using transmission data according to the element attribute information of Name: M1501A in fig. 2, and the third party initiates a request URL: http://127.0.0.1:8088/selectname ═ M1501A, general parameters are used as query conditions by model node name.
And 5: and receiving an http parameter.
And monitoring http://127.0.0.1: 8088/selectrname ═ M1501A through an http service to acquire a Name parameter of M1501A, verifying the legality of the judgment parameter, and entering the next step to start node data query on the Sample project.
Step 6: call aveva. pdms interface.
According to the PDMS related program location information configured in step 2, the following components can be introduced: aveva, applicationframe.dll, aveva, pdms.dll, aveva, pdms.database.dll performs data query and reading on the corresponding data node through the received NAME parameter value M1501A using the GetAttributesByName method in fig. 3.
And 7: and reading the Engineering model data information.
Through the data read in the step 6, the default read data is character string format data of a long string, and the data needs to be identified with model attribute types and value information corresponding to the types, such as Name, Type, ActType and the like.
And 8: and converting model attribute data.
After the data queried according to the query conditions are identified, the result data are converted and assembled into a general JSON format, including whether the query result is successful or not, and the data are used for displaying the Engineering data information, as shown in FIG. 7.
And step 9: the third party (caller) receives the JSON result.
And inquiring in the service to obtain a result and returning the final result in a JSON format, and simultaneously receiving the JSON result by a third party and applying the JSON result to an application platform where the third party is located, as shown in figure 8, and finally completing an Engineering data calling process.
The embodiment of the disclosure uses a program developed by NET C # language as an Engineering data reading medium based on windows service, so as to realize no plug-in on one hand: the method has the advantages that the method can read the data of the Engineering internal module without independently developing a PDMS plug-in, on the other hand, the real-time reading of the data is realized, the bottom-layer Engineering project interface data is butted through background service, the latest data can be obtained, the third-party application reading Engineering does not have any dependent program, and the data can be obtained only by sending a web request. The program can be widely applied to the system software project which has no dependence, has extremely low requirement on the performance of a user computer and can quickly and automatically read Engineering in real time under the non-editing design condition. Obviously, the data reading mode of the invention can obtain higher convenience, lower dependence, wider data dissemination and cooperative data sharing compared with the traditional data extracting mode.
Based on the same technical concept, the embodiment of the present disclosure correspondingly provides a model data extraction system, as shown in fig. 9, including:
an establishing module 91 configured to establish a windows service;
a configuration module 92 configured to configure item reading setting information on model data within the windows service;
a judging module 93 configured to judge whether a model data extraction request from a caller is received;
an extraction module 94 configured to, when the judgment module judges that the model data extraction request is received, read the model data information corresponding to the model data extraction request based on the item reading setting information; and the number of the first and second groups,
a feedback module 95 configured to feed back the model data information to the caller.
In an embodiment, the model data is PDMS Engineering model data, and the item reading setting information includes PDMS location path information, Engineering location path information, and Engineering item data path information.
In an embodiment, the establishing module 91 is further configured to create an http port and an http port listener in the windows service after the configuring module configures the item reading setting information about the model data and before the determining module determines whether the model data extracting request from the caller is received; and the number of the first and second groups,
the monitoring module is set to continuously monitor the calling state of the http port based on the http port monitoring program to obtain monitoring information;
the determining module 93 is specifically configured to determine whether a model data extraction request from a caller is received based on the monitoring information.
In one embodiment, the model data extraction request carries a model data name parameter,
the extraction module 94 is specifically configured to query the data node corresponding to the model data name parameter based on the item reading setting information; and reading model data information corresponding to the model data extraction request from the data node.
In one embodiment, the system further comprises:
the format conversion module is used for performing JSON format conversion on the model data information after the model data information corresponding to the bumpiness of the extraction module is set and before the feedback module feeds the model data information back to the calling party to obtain the JSON format model data information;
the feedback module 95 is specifically configured to feed back the model data information in the JSON format to the caller.
Based on the same technical concept, the embodiment of the present disclosure correspondingly provides an electronic device, as shown in fig. 10, the electronic device includes a memory 101 and a processor 102, the memory 101 stores a computer program, and when the processor 102 runs the computer program stored in the memory 101, the processor 102 executes the model data extraction method.
Based on the same technical concept, embodiments of the present disclosure correspondingly provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processor executes the model data extraction method.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications or substitutions do not depart from the scope of the embodiments of the present disclosure by the essence of the corresponding technical solutions.
Claims (10)
1. A method of extracting model data, comprising:
establishing windows service;
configuring item reading setting information about model data in the windows service;
judging whether a model data extraction request from a calling party is received;
if a model data extraction request is received, reading model data information corresponding to the model data extraction request based on the item reading setting information; and the number of the first and second groups,
and feeding back the model data information to the calling party.
2. The method according to claim 1, wherein the model data is factory design management system Engineering PDMS Engineering model data, and the project reading setting information includes PDMS position path information, Engineering position path information, and Engineering project data path information.
3. The method according to claim 1 or 2, after configuring item reading setting information on model data in the windows service and before determining whether a model data extraction request from a caller is received, further comprising:
creating a hypertext transfer protocol http port and an http port monitoring program in the windows service; continuously monitoring the calling state of the http port based on the http port monitoring program to obtain monitoring information;
judging whether a model data extraction request from a calling party is received or not, wherein the judging step comprises the following steps:
and judging whether a model data extraction request from a calling party is received or not based on the monitoring information.
4. The method according to claim 1 or 2, wherein the model data extraction request carries a model data name parameter,
reading model data information corresponding to the model data extraction request based on the item reading setting information, including:
querying a data node corresponding to the model data name parameter based on the item reading setting information; and reading the model data information corresponding to the model data extraction request from the data node.
5. The method according to claim 1, further comprising, after reading the model data information corresponding to the model data extraction request based on the item reading setting information and before feeding back the model data information to the caller:
performing JSON format conversion on the model data information to obtain JSON format model data information;
feeding back the model data information to the calling party, including: and feeding back the model data information in the JSON format to the calling party.
6. A model data extraction system, comprising:
the system comprises an establishing module, a setting module and a setting module, wherein the establishing module is used for establishing windows service;
a configuration module configured to configure item reading setting information on model data within the windows service;
a judging module configured to judge whether a model data extraction request from a caller is received;
an extraction module configured to, when the judgment module judges that a model data extraction request is received, read model data information corresponding to the model data extraction request based on the item reading setting information; and the number of the first and second groups,
a feedback module configured to feed back the model data information to the caller.
7. The system of claim 6, wherein the model data is a factory design management system Engineering (PDMS) Engineering model data, and the item reading setting information includes PDMS position path information, Engineering position path information, and Engineering item data path information.
8. The system of claim 6 or 7,
the establishing module is further configured to establish an http port and an http port monitoring program in the windows service after the configuration module configures the item reading setting information about the model data and before the judging module judges whether the model data extracting request from the caller is received; and the number of the first and second groups,
the monitoring module is set to continuously monitor the calling state of the http port based on the http port monitoring program to obtain monitoring information;
the judging module is specifically configured to judge whether a model data extraction request from a calling party is received or not based on the monitoring information.
9. An electronic device comprising a memory and a processor, the memory having a computer program stored therein, the processor performing the model data extraction method of any one of claims 1 to 5 when the processor executes the computer program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when executed by a processor, performs the model data extraction method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210194101.1A CN114595115A (en) | 2022-03-01 | 2022-03-01 | Model data extraction method, system, electronic device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210194101.1A CN114595115A (en) | 2022-03-01 | 2022-03-01 | Model data extraction method, system, electronic device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114595115A true CN114595115A (en) | 2022-06-07 |
Family
ID=81807431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210194101.1A Pending CN114595115A (en) | 2022-03-01 | 2022-03-01 | Model data extraction method, system, electronic device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114595115A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116596395A (en) * | 2023-05-29 | 2023-08-15 | 深圳市中联信信息技术有限公司 | Operation quality control platform for engineering project evaluation unit guidance and detection |
-
2022
- 2022-03-01 CN CN202210194101.1A patent/CN114595115A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116596395A (en) * | 2023-05-29 | 2023-08-15 | 深圳市中联信信息技术有限公司 | Operation quality control platform for engineering project evaluation unit guidance and detection |
CN116596395B (en) * | 2023-05-29 | 2023-12-01 | 深圳市中联信信息技术有限公司 | Operation quality control platform for engineering project evaluation unit guidance and detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106484611B (en) | Fuzzy test method and device based on automatic protocol adaptation | |
US20050149564A1 (en) | Remote management and access of databases, services and devices associated with a mobile terminal | |
CN111683066B (en) | Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium | |
CN101894059B (en) | A kind of detection method of running status and system | |
CN110932918B (en) | Log data acquisition method and device and storage medium | |
CN111756674A (en) | Network communication method, system, device and computer readable storage medium | |
CN110347747A (en) | Database data synchronic method, system, computer equipment and storage medium | |
CN112988485A (en) | Simulation test method and device for power Internet of things equipment | |
CN109391673A (en) | A kind of method, system and the terminal device of management update file | |
CN111711533B (en) | Fault diagnosis method, fault diagnosis device, electronic device and storage medium | |
CN112153152A (en) | Management method and system of algorithm service interface | |
CN108804399B (en) | Form verification method and device | |
CN111224797B (en) | Equipment access method and device and electronic equipment | |
CN105099769A (en) | Method, device and system for processing abnormal operations of service platform | |
CN113760730A (en) | Automatic testing method and device | |
CN114595115A (en) | Model data extraction method, system, electronic device and computer storage medium | |
CN114172978B (en) | Multi-protocol equipment access method and related device | |
CN107509097B (en) | Video sharing method and device and sharing server | |
CN113377682A (en) | Service testing method and device | |
CN111930625B (en) | Log acquisition method, device and system based on cloud service platform | |
CN115174340B (en) | Communication method supporting interaction of multiple protocol types and Internet of things operating system | |
CN114554618B (en) | Wireless access point device, equipment access method, equipment and storage medium | |
CN113434190B (en) | Data processing method and device, storage medium and electronic equipment | |
CN110071921B (en) | Internet of things platform access method, device, computer readable storage medium and system | |
CN115412920A (en) | Internet of things equipment binding system, method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |