Model Data Extraction Method, System, Electronic Device, and Computer Storage Medium

By configuring project reading setting information in Windows services and using http port listener for model data extraction, the problem of high complexity and low efficiency of model data extraction in the existing technology is solved, and efficient data extraction and convenient docking without plug-in are realized.

CN114595115BActive Publication Date: 2025-07-29CHINA NUCLEAR POWER ENGINEERING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210194101.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-01
Publication Date
2025-07-29
Estimated Expiration
2042-03-01

AI Technical Summary

Technical Problem

The data extraction methods of existing models are complex and inefficient, especially in large-scale projects that affect the system response speed and are difficult to directly connect with other platforms.

Method used

By establishing Windows services, configuring project reading settings information, judging model data extraction requests, and using http port listener and JSON format conversion, implementing plug-in-free model data extraction.

Benefits of technology

It can quickly extract model data without developing and installing plug-ins, reducing costs, improving efficiency, and making it easy to connect with other platforms to meet the needs of real-time data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114595115B_ABST
    Figure CN114595115B_ABST
Patent Text Reader

Abstract

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 in the current model data extraction method. Among them, the method includes: establishing a Windows service; configuring project reading setting information about model data in the Windows service; determining whether a model data extraction request is received from a calling party; if a model data extraction request is received, reading the model data information corresponding to the model data extraction request based on the project reading setting information; and feeding back the model data information to the calling party. The present disclosure can quickly extract model data without developing and installing any plug-ins, effectively reducing costs and operation complexity, and improving efficiency and operation convenience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of model data transmission, and particularly to a model data extraction method, a model data extraction system, an electronic device, and a computer-readable storage medium. Background Art

[0002] In industrial design, 3D modeling plays an important role. How to conveniently and efficiently extract model data from an industrial design system has also become an issue of concern to users. However, the current model data extraction methods usually require developing a plug-in for the industrial design system and installing the plug-in on the client side to extract model data. Moreover, when the amount of data in a project is huge, it will inevitably cause the industrial design system to respond slowly, ultimately affecting the extraction efficiency of model data. Summary of the Invention

[0003] 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 methods.

[0004] To achieve the above object, the present disclosure provides a model data extraction method, including:

[0005] Establish a Windows service;

[0006] Configure project reading setting information about model data in the Windows service;

[0007] Determine whether a model data extraction request from a caller is received;

[0008] If a model data extraction request is received, read model data information corresponding to the model data extraction request based on the project reading setting information; and

[0009] Feedback the model data information to the caller.

[0010] In an implementation, the model data is Plant Design Management System Engineering (PDMS Engineering) model data, and the project reading setting information includes PDMS location path information, Engineering location path information, and Engineering project data path information.

[0011] In an implementation, after configuring project reading setting information about model data in the Windows service and before determining whether a model data extraction request from a caller is received, it further includes:

[0012] Create an HTTP port and an HTTP port listener within the Windows service; and continuously monitor the call status of the HTTP port based on the HTTP port listener to obtain monitoring information;

[0013] Determine whether a model data extraction request from a caller is received, including:

[0014] Determine whether a model data extraction request from a caller is received based on the monitoring information.

[0015] In one implementation, the model data extraction request carries a model data name parameter,

[0016] Read the model data information corresponding to the model data extraction request based on the project reading setting information, including:

[0017] Query the data node corresponding to the model data name parameter based on the project reading setting information; and read the model data information corresponding to the model data extraction request from the data node.

[0018] In one implementation, after reading the model data information corresponding to the model data extraction request based on the project reading setting information and before feeding back the model data information to the caller, it further includes:

[0019] Convert the model data information into JSON format to obtain JSON-formatted model data information;

[0020] Feed back the model data information to the caller, including: feeding back the JSON-formatted model data information to the caller.

[0021] To achieve the above object, the present disclosure further provides a model data extraction system, including:

[0022] A establishment module configured to establish a Windows service;

[0023] A configuration module configured to configure project reading setting information about model data within the Windows service;

[0024] A judgment module configured to judge whether a model data extraction request from a caller is received;

[0025] An extraction module configured to, when the judgment module determines that a model data extraction request is received, read the model data information corresponding to the model data extraction request based on the project reading setting information; and

[0026] A feedback module configured to feed back the model data information to the caller.

[0027] In one embodiment, the model data is PDMS Engineering model data of a factory design management system, and the project reading setting information includes PDMS location path information, Engineering location path information, and Engineering project data path information.

[0028] In one embodiment, the establishing module is further configured to create an http port and an http port listener within the windows service after the configuration module configures the project reading setting information regarding the model data and before the judging module determines whether a model data extraction request from a calling party is received; and,

[0029] A listening module, which is configured to continuously listen to the call status of the http port based on the http port listener to obtain listening information;

[0030] The judging module is specifically configured to determine whether a model data extraction request from a calling party is received based on the listening information.

[0031] To achieve the above object, the present disclosure also provides an electronic device, including a memory and a processor. A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the model data extraction method described above.

[0032] To achieve the above object, the present disclosure also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the model data extraction method described above.

[0033] According to the model data extraction method, system, electronic device, and computer-readable storage medium provided by the present disclosure, by establishing a windows service, configuring project reading setting information regarding model data within the windows service, then determining whether a model data extraction request from a calling party is received. If a model data extraction request is received, the 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. It is possible to quickly extract model data without developing and installing any plugins, effectively reducing costs and the complexity of model data extraction, and improving the efficiency and operation convenience of users in extracting model data.

[0034] Other features and advantages of the present disclosure will be set forth in the following description, and in part will be obvious from the description, or may be learned by practice of the present disclosure. The objectives and other advantages of the present disclosure may be realized and attained by the structure particularly pointed out in the specification, claims as well as the drawings. Description of the Drawings

[0035] The drawings are used to provide a further understanding of the technical solutions of the present disclosure, and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solutions of the present disclosure, and do not constitute a limitation to the technical solutions of the present disclosure.

[0036] Figure 1 It is a schematic flowchart of a method for extracting model data provided by an embodiment of the present disclosure;

[0037] Figure 2 It is an example diagram of project data of the Engineering module of the present disclosure;

[0038] Figure 3 It is a schematic flowchart of another method for extracting model data provided by an embodiment of the present disclosure;

[0039] Figure 4 It is an example diagram of data query and reading using the GetAttributesByName method of the present disclosure;

[0040] Figure 5 It is one of the schematic flowcharts of yet another method for extracting model data provided by an embodiment of the present disclosure;

[0041] Figure 6 It is the second of the schematic flowcharts of yet another method for extracting model data provided by an embodiment of the present disclosure;

[0042] Figure 7 It is an example diagram of converting Engineering data into JSON format by the present disclosure;

[0043] Figure 8 It is an example diagram of the calling party extracting and displaying model data information of the present disclosure;

[0044] Figure 9 It is a schematic structural diagram of a model data extraction system provided by an embodiment of the present disclosure;

[0045] Figure 10 It is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed Embodiments

[0046] To make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the following describes the specific embodiments of the present disclosure in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for the purpose of illustrating and explaining the present disclosure, and are not intended to limit the present disclosure.

[0047] It should be noted that the terms "first", "second", etc. in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence; and, without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other arbitrarily.

[0048] Among them, the terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments, and are not intended to limit the present disclosure. The singular forms "a", "the", and "said" used in the embodiments of the present disclosure and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise.

[0049] In the subsequent description, the suffixes such as "module", "component", or "unit" used to represent elements are only for the convenience of describing the present disclosure, and have no specific meaning in themselves. Therefore, "module", "component", or "unit" can be used interchangeably.

[0050] Taking the industrial design system (Plant Design Management System, abbreviated as PDMS) of AVEVA as an example, because it has a powerful 3D modeling function, it is widely loved by users. Currently, the methods used to extract the model data of PDMS in the existing methods at home and abroad usually extract and use device attributes by developing plug-ins in PDMS, that is, it is necessary to develop an internal plug-in of PDMS Engineering separately to extract data. Such a method has the following disadvantages when used for non-online design model requirements: end users must install the client design software PDMS, and then manually start and run PDMS to use the plug-in to extract data under the design and editing model. If the project capacity is large, opening the PDMS project will be very slow, which requires high machine performance. At the same time, it cannot directly perform data docking with other platforms.

[0051] To solve the above problems, the embodiments of the present disclosure provide a model data extraction method, which can automatically and real-time extract the (AVEVA) PDMS Engineering model data, and realize the function of reading the real-time model data of the third party without dependence on the Engineering project data. This embodiment takes the extraction of PDMS Engineering model data as an example, as Figure 1 shown, the method includes steps S101-S105.

[0052] In step S101, a Windows service is established.

[0053] In this embodiment, a Windows service for model data extraction is established. Specifically, a Windows service for Engineering data extraction is established. Among them, the Engineering module is mainly used for engineering design and computer-aided design (CAD for short). Among them, the project data of the Engineering module is taken as Figure 2 an example.

[0054] In this embodiment, according to the stable and reliable characteristics of the Windows service, it does not need to be manually started by humans in case of system power failure or accidental restart. The deployment method of the Windows service can effectively solve the inconvenient problems such as installing plugins and requiring manual startup in the prior art. In one implementation manner, using the NET C# language to establish the Windows service can achieve greater compatibility and stability.

[0055] In step S102, project reading setting information about model data is configured within the Windows service.

[0056] In this embodiment, the model data is the PDMS Engineering model data of the factory design management system project. The project reading setting information includes PDMS location path information, Engineering location path information, and Engineering project data path information.

[0057] In this embodiment, before starting the Windows service, configure the project reading setting information about the model data in the Windows service. That is, if it is necessary to extract the model data of a certain project in this Windows service, it is necessary to pre-configure the project reading setting information in the Windows service. Taking the extraction of the model data of the Sample project in PDMS Engineering as an example, configure the reading setting information of the Engineering Sample project in the config file within the Windows service, including the PDMS location path information, the Engineering location path information, and the Engineering Sample project data path information. For example: the PDMS installation location (D:\AVEVA\Plant\PDMS12.1.SP4\\D:\AVEVA\Plant\PDMS12~1.SP4\PML LIB\), the Engineering Sample project data location (D:\AVEVA\Plant\PROJEC~1.SP4\Sample\sampsi\), the Engineering module location (D:\AVEVA\Plant\PDMS12.1.SP4\\tags), and other relevant parameters.

[0058] In step S103, determine whether a model data extraction request is received from the caller. If a model data extraction request is received, execute step S104; otherwise, end the process.

[0059] In this embodiment, after configuring the project reading setting information, start the Windows service and determine whether a model data extraction request is received from the caller by listening to the Windows service.

[0060] In one embodiment, to minimize dependencies and deployment complexity, a micro HTTP (Hyper Text Transport Protocol) port service function is set up within the service for external calls, and a thread is used to monitor the HTTP parameter entry in real time to receive parameter transfers from the caller at any time. Specifically, an HTTP web service is created in the Windows service. The HTTP web service is a small HTTP website published using the HTTP protocol, which can receive parameters on a specified port and return data information to the caller. Further, using the HTTP port of the HTTP web service, the user can send a model data extraction request to the HTTP port within the Windows service. By creating an HTTP web service listener (i.e., listening on the HTTP port) to monitor the invocation of the service, it can be quickly determined whether a model data extraction request from the caller has been received.

[0061] In step S104, based on the project reading setting information, the model data information corresponding to the model data extraction request is read.

[0062] Specifically, according to the configured project reading setting information, that is, the location information of the PDMS-related program, the following components can be introduced: AVEVA.ApplicationFramework.dll, AVEVA.PDMS.dll, AVEVA.PDMS.Database.dll. Data query and reading are performed based on the configuration information according to the model data extraction request. Among them, the model data extraction request carries corresponding query conditions. For example, the model data name parameter. The above components can perform data query and reading according to the name parameter using the GetAttributesByName method to obtain attributes by name. This is described in detail in the following embodiments and will not be elaborated here.

[0063] In step S105, the model data information is fed back to the caller.

[0064] Compared with the related art, in which the model data parameters are extracted by developing and installing a PDMS plug-in, the process of extracting model data is complex and inefficient. In this embodiment, in the form of establishing a Windows service, there is no need to develop a PDMS plug-in additionally, saving the cost and cumbersome process of development and client installation of the plug-in. At the same time, the client does not need to install the PDMS design software. The Windows service can integrate the data into the existing WEB system to view information quickly and without dependence, effectively avoiding the problem of slow response of the industrial design system when the project data is huge. At the same time, it can be conveniently docked with any platform, facilitating the access and information extraction requirements of any platform, and meeting the user's need to obtain the latest PDMS Engineering design model project data information in real time.

[0065] Please refer to Figure 3 , Figure 3 Another model data extraction method provided by an embodiment of the present disclosure. On the basis of the previous embodiment, in this embodiment, a service call and feedback function are implemented by creating an HTTP port and an HTTP port listener. The user can send a model data extraction request based on this HTTP port. After the system monitors the call situation of the HTTP port, it then quickly feedbacks the corresponding model data information to the user, improving the extraction efficiency of model data at a lower cost and having general applicability. Specifically, after configuring the project reading setting information about model data in the Windows service (step S102) and before determining whether a model data extraction request is received from the calling party (step 103), steps S301 and S302 are further included, and step S103 is further divided into step S303.

[0066] In step S301, an HTTP port and an HTTP port listener are created in the Windows service.

[0067] Specifically, an HTTP API port service function is created by constructing an HTTP web service, and the HTTP port listener can directly monitor the call situation of this HTTP API.

[0068] In step S302, the call status of the HTTP port is continuously monitored based on the HTTP port listener to obtain monitoring information.

[0069] In step S303, it is determined whether a model data extraction request is received from the calling party based on the monitoring information.

[0070] Taking the calling party as a third - party application and the query parameter (model data name parameter) being carried in the model data extraction request as an example, the third - party application can perform parameter passing in the form of http + port. The http port listener will then monitor the parameter passing information. This project takes the query based on the element attribute information of Name: M1501A in Figure 2 as an example. The third - party initiates a request URL: http: / / 127.0.0.1:8088 / select?name = M1501A, and it can be determined that the calling party has sent a model data extraction request to the system. In some embodiments, to improve the efficiency and security of model data extraction, the legality of the model data extraction request will be further verified. For example, whether the query parameter is legal, whether the project contains this query parameter, etc. Further, the model data extraction request carries a model data name parameter, and based on the project reading the setting information, the model data information corresponding to the model data extraction request is read (step S104), including the following steps:

[0071] Query the data node corresponding to the model data name parameter based on the project reading the setting information; and, read the model data information corresponding to the model data extraction request from the data node.

[0072] Continuing to take the query based on the element attribute information of Name: M1501A in Figure 2 as an example, after the user calls the http port and the http port listener monitors http: / / 127.0.0.1:8088 / select?name = M1501A and obtains that the Name parameter is M1501A, the legality of the parameter is verified and judged. After verification, the data node corresponding to M1501A is queried, and then the node data query for this project is started to obtain the corresponding model data information. Further, call the AVEVA.PDMS interface according to the configured PDMS - related program location information, and introduce the following necessary components: AVEVA.ApplicationFramework.dll, AVEVA.PDMS.dll, AVEVA.PDMS.Database.dll. Through the received NAME parameter value M1501A, use the Figure 4 GetAttributesByName method in

[0073] for data query and reading. Figure 5 , Figure 5Another model data extraction method provided by the embodiments of the present disclosure. On the basis of the previous embodiment, considering that the data read through the API is in the format of long strings of characters and it is not easy to distinguish data classification and professional information, and the information needs to be split and reassembled after the data is obtained. For the convenience of returning and using the model data, in this embodiment, after the model data information is extracted, it is first converted into the JSON format and then fed back to the caller. Specifically, after reading the model data information corresponding to the model data extraction request based on the project reading setting information (step S104), and before feeding back the model data information to the caller (step S105), step S501 is further included, and step S105 is further divided into step S502.

[0074] In step S501, the model data information is converted into the JSON format to obtain the model data information in the JSON format.

[0075] In step S502, the model data information in the JSON format is fed back to the caller.

[0076] It can be understood that JSON (JavaScript Object Notation) is a lightweight data exchange format. The JSON format is only a text format and can be used as the data format of any programming language. JSON files based on the JSON format can be used to store simple data structures and objects and can be used for data exchange in web applications.

[0077] In this embodiment, by converting the model data information into the JSON format and then feeding it back to the caller, the caller can directly identify the model data attribute type and the value information corresponding to the type according to the names in the JSON format, such as Name, Type, ActType, etc., which is convenient for the caller to use the model data.

[0078] For the convenience of understanding this embodiment, in combination with Figure 6 as shown, the data process of extracting the data node NAME = M1501A in the Sample project in PDMS Engineering is used to further illustrate the embodiments of the present disclosure in detail.

[0079] Step 1: Establish a windows service for Engineering data extraction.

[0080] According to the characteristics of the windows service, such as stability and reliability, and the characteristic that it does not need to be manually started when the system powers off or restarts unexpectedly, the deployment method of the windows service is adopted. The windows service outputs call record information, exception information, etc. by means of the system log and the log interface built by the service itself.

[0081] Step 2: Configure the Sample project information of PDMS Engineering.

[0082] Before starting the Windows service, configure the reading settings of the Engineering Sample project in the config file within the service, including the PDMS installation location path information (D:\AVEVA\Plant\PDMS12.1.SP4\\D:\AVEVA\Plant\PDMS12~1.SP4\PML LIB\), Engineering project location path information (D:\AVEVA\Plant\PROJEC~1.SP4\Sample\sampsi\), Engineering module location path (D:\AVEVA\Plant\PDMS12.1.SP4\\tags), and other related parameters.

[0083] Step 3: Build the http webservice.

[0084] In order to minimize dependencies and deployment complexity, a micro HTTP API service function is set up within the service for external calls, and a thread is used to monitor the HTTP parameter entry in real time to receive the parameters passed by the caller at any time.

[0085] Step 4: The external program sends the request query parameters.

[0086] Third-party applications (such as Figure 3 ) can pass parameters through http+port. In this project, we use the transfer data according to the attached Figure 2 To query the element attribute information of Name:M1501A in the query, the third party initiates the request URL: http: / / 127.0.0.1:8088 / select?name=M1501A. Generally, the model node name is used as the query condition.

[0087] Step 5: Receive HTTP parameters.

[0088] Listen to the HTTP service http: / / 127.0.0.1:8088 / select?name=M1501A and obtain the Name parameter as M1501A. Verify the validity of the parameter and proceed to the next step to query node data for the Sample project.

[0089] Step 6: Call the AVEVA.PDMS interface.

[0090] According to the PDMS - related program location information configured in Step 2, the following components can be introduced: AVEVA.ApplicationFramework.dll, AVEVA.PDMS.dll, AVEVA.PDMS.Database.dll. Using the received NAME parameter value M1501A, use the Figure 3 GetAttributesByName method in to perform data query and reading on the corresponding data nodes.

[0091] Step 7: Read the Engineering model data information.

[0092] Through the data read in Step 6, the default data read is in the form of a long string. It is necessary to identify the model attribute types and the corresponding value information, such as Name, Type, ActType, etc.

[0093] Step 8: Model attribute data conversion.

[0094] After identifying the data queried according to the query conditions, convert and assemble the result data into a common JSON format, including whether the query result is successful, and data is used to display the Engineering data information, such as Figure 7 shown.

[0095] Step 9: The third - party (caller) receives the JSON result.

[0096] The result is obtained through query within the service and the final result is returned in JSON format. The third - party simultaneously receives the JSON result and applies it to its own application platform, such as Figure 8 shown, and finally completes the Engineering data call process.

[0097] The program developed in the.NET C# language in this embodiment of the disclosure uses a Windows service as the Engineering data reading medium. On the one hand, it realizes plugin - free: it is not necessary to develop a separate PDMS plugin to read the data within the Engineering module. On the other hand, it realizes real - time data reading. By connecting the background service to the underlying Engineering project interface data, the latest data can be obtained. The third - party application has no dependency program for reading the Engineering and only needs to send a web request to obtain the data. This program can be widely applied to system software projects that have no dependencies, have extremely low requirements for the user's computer performance, and are under non - editing design conditions, and can quickly, automatically, and real - time read the Engineering. Obviously, using the data reading method of the present invention will obtain higher convenience, lower dependency than the traditional data extraction method, enabling the data to be more widely spread and collaboratively shared.

[0098] Based on the same inventive concept, an embodiment of the present disclosure further provides a model data extraction system, as Figure 9 shown, including:

[0099] A creation module 91, which is configured to create a Windows service;

[0100] A configuration module 92, which is configured to configure item reading setting information about model data in the Windows service;

[0101] A judgment module 93, which is configured to judge whether a model data extraction request from a calling party is received;

[0102] An extraction module 94, which is 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,

[0103] A feedback module 95, which is configured to feedback the model data information to the calling party.

[0104] In an implementation manner, 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 project data path information.

[0105] In an implementation manner, the creation module 91 is further configured to, after the configuration module configures item reading setting information about model data and before the judgment module judges whether a model data extraction request from a calling party is received, create an http port and an http port listener in the Windows service; and,

[0106] A listening module, which is configured to continuously listen to the call status of the http port based on the http port listener to obtain listening information;

[0107] The judgment module 93 is specifically configured to judge whether a model data extraction request from a calling party is received based on the listening information.

[0108] In an implementation manner, a model data name parameter is carried in the model data extraction request,

[0109] The extraction module 94 is specifically configured to query a data node corresponding to the model data name parameter based on the item reading setting information; and read model data information corresponding to the model data extraction request from the data node.

[0110] In one embodiment, the system further includes:

[0111] A format conversion module, configured to perform JSON format conversion on the model data information after the extraction module extracts the corresponding model data information and before the feedback module feeds back the model data information to the caller, so as to obtain model data information in JSON format;

[0112] The feedback module 95 is specifically configured to feed back the model data information in JSON format to the caller.

[0113] Based on the same technical concept, an embodiment of the present disclosure correspondingly further provides an electronic device. As Figure 10 shown, the electronic device includes a memory 101 and a processor 102. A computer program is stored in the memory 101. When the processor 102 runs the computer program stored in the memory 101, the processor 102 executes the model data extraction method described above.

[0114] Based on the same technical concept, an embodiment of the present disclosure correspondingly further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the model data extraction method described above.

[0115] Those of ordinary skill in the art will understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations. In the hardware implementation, the division between the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be executed by several physical components in cooperation. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or can be implemented as hardware, or can be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory, or other memory technologies, CD-ROM, digital versatile disk (DVD), or other optical disk storage, magnetic cassettes, tapes, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0116] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, and are not intended to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A method for extracting model data, characterized in that, Including: Establish a Windows service; Configure item reading setting information about model data within the Windows service; Determine whether a model data extraction request is received from a caller; If a 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 Feed back the model data information to the caller; After configuring the item reading setting information about model data within the Windows service and before determining whether a model data extraction request is received from a caller, it further includes: Create a Hypertext Transfer Protocol (HTTP) port and an HTTP port listener within the Windows service; and continuously monitor the call status of the HTTP port based on the HTTP port listener to obtain monitoring information; Determining whether a model data extraction request is received from a caller includes: Determine whether a model data extraction request is received from a caller based on the monitoring information.

2. The method according to claim 1, wherein The model data is Plant 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 project data path information.

3. The method according to claim 1 or 2, characterized in that, 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 includes: Query the data node corresponding to the model data name parameter based on the item reading setting information; and read the model data information corresponding to the model data extraction request from the data node.

4. The method according to claim 1, characterized in that 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, it further includes: Convert the model data information into JSON format to obtain JSON-formatted model data information; Feeding back the model data information to the caller includes: feeding back the JSON-formatted model data information to the caller.

5. A model data extraction system, characterized in that, Including: An establishment module configured to establish a Windows service; A configuration module configured to configure item reading setting information about model data within the Windows service; A determination module configured to determine whether a model data extraction request is received from a caller; An extraction module configured to, when the determination module determines that a 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 A feedback module configured to feed back the model data information to the caller; The establishment module is further configured to create an HTTP port and an HTTP port listener within the Windows service after the configuration module configures the item reading setting information about model data and before the determination module determines whether a model data extraction request is received from a caller. And, a monitoring module, which is configured to continuously monitor the call status of the http port based on the http port monitoring program to obtain monitoring information; The judgment module is specifically configured to judge whether a model data extraction request from a caller is received based on the monitoring information.

6. The system according to claim 5, characterized in that, The model data is the PDMS Engineering model data of the factory design management system project, and the project reading setting information includes PDMS location path information, Engineering location path information, and Engineering project data path information.

7. An electronic device, characterized in that, It includes a memory and a processor. A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the model data extraction method according to any one of claims 1 to 4.

8. A computer-readable storage medium, characterized in that, A computer program is stored thereon. When the computer program is executed by the processor, the processor executes the model data extraction method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data format automatic conversion method and device, electronic equipment and storage medium

    CN113934684A