Batch processing method of nuclear power process system flowchart data

CN115391580BActive Publication Date: 2026-09-29CHINA NUCLEAR POWER DESIGN COMPANY +3
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211053221.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2026-09-29
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

[0005]上述五种功能的操作方法中,对于数据删除,只能一张图一张图删除,且删除图面信息的同时,管道数据层不能被删除,需要对所有管道一一执行删除操作,操作方式复杂,效率低

Benefits of technology

[0073]实施本发明的核电工艺系统流程图数据的批量处理方法,具有以下有益效果:包括以下步骤:获取整个项目的数据;对整个项目的数据进行筛选,获得流程图数据;根据流程图数据进行预定功能的数据处理,以完成系统流程图数据的批量处理;预定功能包括:数据删除功能、数据导出功能、机组号修改功能、图纸属性拷贝功能、接口关联关系拷贝功能以及系统号修改功能。本发明可以实现对流程图数据高效修改、数据导出、数据删除等,不仅丰富了初始流程图设计数据修改的手段,更重要的是提升了机组/项目间流程图复用设计效率,规避传统零星数据人工修改方式可能产生的人因失误风险。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115391580B_ABST
    Figure CN115391580B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of nuclear power process system flow chart data batch processing method, comprising the following steps: obtaining the data of entire project;The data of entire project is filtered, and flow chart data is obtained;According to the data processing of predetermined function according to flow chart data, to complete the batch processing of system flow chart data;Predetermined function includes: data deletion function, data export function, unit number modification function, drawing attribute copy function, interface association relationship copy function and system number modification function.The present application can realize the efficient modification of flow chart data, data export, data deletion etc., not only enriches the means of initial flow chart design data modification, more importantly, improves the flow chart reuse design efficiency between unit / project, avoids the risk of human error that may be generated by traditional sporadic data manual modification mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of process flow diagram data processing, and more specifically, to a method for batch processing of process flow diagram data for nuclear power processes. Background Technology

[0002] With the widespread implementation of system design work in various nuclear power plants, the task of designing flowcharts for various professional systems in the nuclear island and conventional island has increased dramatically. In order to reduce the duplication of design content between units and simplify the design process, designers can currently reuse the flowchart of another corresponding model when drawing a flowchart for a new type of unit, and then modify the drawing attributes, data object unit number, interface association information, system number, etc. However, since it can only be modified manually and the amount of data in the drawings is large, it takes about half a day to complete a single drawing, resulting in very low work efficiency.

[0003] Therefore, while ensuring the reuse of drawing data between projects or units, how to minimize the workload of modifying drawing data and improve design efficiency to meet schedule requirements has become a widely concerned issue for designers.

[0004] Currently, deleting data in flowcharts designed using Diagrams (process system flow diagram design software) involves three steps: opening the flowchart to be deleted, selecting all information, and using the delete command; deleting each pipe data object contained in the flowchart one by one in the data hierarchy browser window; and finally deleting the flowchart data. When exporting data, use Diagrams' built-in data export function to export the entire project data by type. When modifying unit numbers, manually modify the unit number attribute for each item in a single flowchart. For flowchart attributes, manual input is required. When creating a new flowchart using the "Save As" method, pipe interface associations are automatically disconnected, requiring individual interface associations to be re-established; for modifying system numbers, modify the system number in the corresponding property window for each individual data object.

[0005] Of the five functions mentioned above, only one data deletion can be performed. Figure 1 Deleting a single diagram, especially the piping data layer, requires complex and inefficient operations because it necessitates deleting all pipes individually. Data export is limited to the entire project, not individual diagrams or arbitrary flowcharts. Modifying unit numbers requires manual modification of data objects within each diagram, resulting in significant inefficiency. Furthermore, modifying flowchart attributes, piping interface associations, and system numbers necessitates manual modification or association of individual attribute fields or data objects, further complicating the process and increasing the risk of human error. Summary of the Invention

[0006] The technical problem to be solved by the present invention is to provide a batch processing method for nuclear power process system flow chart data, in order to address the deficiencies of the prior art.

[0007] The technical solution adopted by this invention to solve its technical problem is: to construct a batch processing method for nuclear power process system flow chart data, including the following steps:

[0008] Get the data for the entire project;

[0009] The data for the entire project is filtered to obtain flowchart data;

[0010] Based on the flowchart data, data processing is performed for predetermined functions to complete the batch processing of system flowchart data; the predetermined functions include: data deletion function, data export function, unit number modification function, drawing attribute copy function, interface association relationship copy function, and system number modification function.

[0011] In the batch processing method for nuclear power process system flow chart data described in this invention, the step of filtering the data of the entire project to obtain flow chart data includes:

[0012] The data of the entire project is filtered to obtain the systems in the entire project whose data is not empty, and the non-empty systems are saved in the system list;

[0013] The data in the system list is filtered by flowchart objects to obtain flowchart object data, and the flowchart object data is saved in the flowchart list;

[0014] Select a flowchart from the flowchart list to obtain a specified flowchart, and retrieve the data object associated with the specified flowchart;

[0015] The data objects associated with the specified flowchart are categorized, and the categorized data is stored in a data list.

[0016] In the batch processing method for nuclear power process system flow chart data described in this invention, the step of filtering the data of the entire project to obtain flow chart data further includes:

[0017] Select a system from the system list to obtain the specified system;

[0018] Obtain the flowchart folder of the specified system;

[0019] Save the flowchart folder in the drawing folder list.

[0020] In the batch processing method for nuclear power process system flowchart data according to the present invention, if the predetermined function is a data deletion function, then the step of performing the predetermined function data processing based on the flowchart data to complete the batch processing of the system flowchart data includes:

[0021] Based on the flowchart list, obtain the fittings contained in the flowcharts to be deleted;

[0022] Determine whether the pipe fitting is a tee;

[0023] If so, then delete the tee connection of the pipe fitting;

[0024] Based on the data list, obtain the data object associated with the flowchart to be deleted;

[0025] Locate and delete the data objects associated with the flowchart to be deleted;

[0026] Determine whether the flowchart folder containing the flowchart to be deleted contains only flowchart objects;

[0027] If the document only contains flowchart objects, then delete the flowchart to be deleted.

[0028] If the object contains more than just flowchart objects, an error message will be displayed.

[0029] In the batch processing method for nuclear power process system flowchart data according to the present invention, the step of performing predetermined data processing based on the flowchart data to complete the batch processing of the system flowchart data further includes:

[0030] Based on the data list, obtain the data objects to be deleted;

[0031] Determine whether the data object to be deleted is pipeline data;

[0032] If so, determine whether the pipe contains a tee fitting;

[0033] If the pipe contains a tee fitting, then the tee connection should be removed;

[0034] Locate and delete the data object to be deleted;

[0035] If the pipe does not contain a tee fitting, the data object to be deleted is located and deleted directly.

[0036] In the batch processing method for nuclear power process system flowchart data according to the present invention, if the predetermined function is a data export function, then the step of performing data processing based on the flowchart data to complete the batch processing of the system flowchart data includes:

[0037] The data to be exported was selected using flowcharts and data filtering methods.

[0038] Set the header of the data report according to the data type to generate the corresponding data report;

[0039] Set the path for automatic generation of data reports;

[0040] The data to be exported is saved in the corresponding data report, and a data export file is generated.

[0041] In the batch processing method for nuclear power process system flowchart data according to the present invention, if the predetermined function is a unit number modification function, then the step of performing data processing based on the flowchart data to complete the batch processing of the system flowchart data includes:

[0042] Flowchart for obtaining the unit number to be modified;

[0043] Obtain the data object, folder, and fields of the unit number to be modified from the flowchart of the process;

[0044] Get the number of digits in the unit number field, the field of the unit number to be modified, and the number of digits in the folder name;

[0045] The data objects, flowcharts, and arrays corresponding to the flowchart folders for the unit number to be modified are traversed and located, and then processed according to the newly entered unit number.

[0046] Write it into the corresponding field position or unit number field of the located object.

[0047] In the batch processing method for nuclear power process system flowchart data according to the present invention, if the predetermined function is a drawing attribute copying function, then the data processing based on the flowchart data to complete the batch processing of the system flowchart data includes:

[0048] Obtain the target drawing;

[0049] The target drawing is traversed to obtain the copy location of the target drawing;

[0050] Obtain the reference drawing settings;

[0051] Based on the reference drawing settings, obtain the attribute field values ​​corresponding to the reference drawing;

[0052] Write the corresponding attribute field value into the copy location.

[0053] In the batch processing method for nuclear power process system flowchart data according to the present invention, if the predetermined function is an interface association copying function, then the data processing based on the flowchart data to complete the batch processing of the system flowchart data includes:

[0054] Get the interface data for the reuse flowchart and the interface data for the reference flowchart;

[0055] Determine whether the hierarchical structure data of the interfaces of the reused flowchart is consistent with the hierarchical structure data of the interfaces of the reference flowchart.

[0056] If not, output an error message;

[0057] If so, check if the pipe code exists;

[0058] If it exists, proceed to the second sub-process; if it does not exist, proceed to the third sub-process.

[0059] The second sub-process includes: calculating the pipe code to be connected to the current interface according to the numbering rules; obtaining the pipe code to be connected to the current interface; determining whether the pipe code to be connected exists, and if it exists, proceeding to the fifth sub-process; if it does not exist, outputting an error message.

[0060] The third sub-process includes: determining whether the pipe head or pipe tail is connected to equipment or a pipe nozzle; if yes, proceeding to the fourth sub-process; if no, outputting an error message.

[0061] The fourth sub-process includes: obtaining the device or nozzle code connected to the pipe head or pipe tail; calculating the device or nozzle code to be connected to the current interface according to the numbering rule; determining whether the device or nozzle code to be connected exists; if it exists, proceeding to the fifth sub-process; if it does not exist, outputting an error message.

[0062] The fifth sub-process includes: determining whether an interface object at the same level as the reference interface exists; if it exists, obtaining the interface object at the same level, writing the unique database identifier of the interface object at the same level into the interface association field of the current interface, and completing the association; if it does not exist, outputting an error message.

[0063] In the batch processing method for nuclear power process system flowchart data according to the present invention, if the predetermined function is a system number modification function, then the step of performing data processing based on the flowchart data to complete the batch processing of the system flowchart data includes:

[0064] Retrieve the data object containing the system number to be modified;

[0065] Obtain system parameters;

[0066] Determine whether the data object containing the system number to be modified is a pipe;

[0067] If so, locate the pipe whose system number needs to be modified;

[0068] Write the system parameters into the field corresponding to the pipe of the system number to be modified;

[0069] Sub-name the pipe with the system number to be modified;

[0070] If it is not a pipe, then locate the data object of the system number to be modified;

[0071] Write the new system code into the corresponding fields;

[0072] Name the sub-items of the data object whose system number is to be modified.

[0073] The batch processing method for nuclear power process system flowchart data according to the present invention has the following beneficial effects: It includes the following steps: acquiring data for the entire project; filtering the data for the entire project to obtain flowchart data; and performing predetermined data processing functions based on the flowchart data to complete the batch processing of the system flowchart data. The predetermined functions include: data deletion, data export, unit number modification, drawing attribute copying, interface association copying, and system number modification. This invention enables efficient modification, export, and deletion of flowchart data, enriching the means of modifying initial flowchart design data and, more importantly, improving the efficiency of flowchart reuse design between units / projects, avoiding the risk of human error that may arise from traditional sporadic manual data modification methods. Attached Figure Description

[0074] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings:

[0075] Figure 1 This is a schematic diagram of the batch processing method for nuclear power process system flow chart data provided by the present invention;

[0076] Figure 2 This is a schematic diagram of the process for deleting flowchart data provided by the present invention;

[0077] Figure 3 This is a schematic diagram of the process for deleting partial data provided by the present invention;

[0078] Figure 4 This is a schematic diagram of the data export process provided by the present invention;

[0079] Figure 5 This is a schematic diagram of the process for modifying the unit number provided by the present invention;

[0080] Figure 6This is a flowchart illustrating the process of copying drawing attributes provided by the present invention;

[0081] Figure 7 This is a schematic diagram of the process for copying the interface association relationship provided by the present invention;

[0082] Figure 8 This is a schematic diagram of the system number modification process provided by the present invention. Detailed Implementation

[0083] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0084] refer to Figure 1 This is a schematic diagram of an optional embodiment of the batch processing method for nuclear power process system flow chart data provided by the present invention.

[0085] like Figure 1 As shown, the batch processing method for the nuclear power process system flow chart data includes the following steps:

[0086] Step S101: Obtain the data for the entire project.

[0087] In this step, all the data for the entire project can be obtained directly from the project database.

[0088] Step S102: Filter the data of the entire project to obtain flowchart data.

[0089] In some embodiments, filtering the data of the entire project to obtain flowchart data includes: filtering the data of the entire project to obtain the systems under the entire project whose data is not empty, and storing the non-empty systems in a system list; filtering the data in the system list for flowchart objects to obtain flowchart object data, and storing the flowchart object data in a flowchart list; selecting flowcharts in the flowchart list to obtain a specified flowchart, and obtaining the data objects associated with the specified flowchart; classifying the data objects associated with the specified flowchart, and storing the classified data in a data list.

[0090] Furthermore, this step of filtering the data for the entire project to obtain flowchart data also includes: selecting systems from the system list to obtain a specified system; obtaining the flowchart folder for the specified system; and saving the flowchart folder in the drawing folder list.

[0091] Specifically, the data for the entire project is statistically analyzed and organized to filter out systems (Groups) with non-empty data, and these systems are then added to a system list for storage. Next, flowchart objects are collected from the specified systems in the system list to obtain flowchart object data, which is then added to a flowchart list for storage. Then, for the selected flowchart in the flowchart list, the associated data objects are collected to obtain the data objects associated with the specified flowchart. These data objects are then categorized by type and filtered by type, and added to a data list for storage. Additionally, sub-systems (flowchart folders) within the specified systems in the system list need to be collected to obtain the flowchart folders for the specified systems, and these flowchart folders are added to a drawing folder list for storage.

[0092] Step S103: Perform data processing for the predetermined functions based on the flowchart data to complete the batch processing of the system flowchart data.

[0093] The pre-defined functions include: data deletion, data export, unit number modification, drawing attribute copying, interface association copying, and system number modification.

[0094] Specifically, if the pre-defined function is data deletion, then the pre-defined function's data processing is performed based on the flowchart data to complete the batch processing of the system flowchart data. For example... Figure 2 As shown, the following steps may be included:

[0095] Step S201: Based on the flowchart list, obtain the fittings contained in the flowchart to be deleted.

[0096] Step S202: Determine whether the pipe fitting is a tee. If the pipe fitting is not a tee, proceed directly to step S204.

[0097] Step S203: If yes, then delete the tee connection of the pipe fitting.

[0098] Step S204: Based on the data list, obtain the data object associated with the flowchart to be deleted.

[0099] The data objects associated with the flowchart to be deleted include, but are not limited to, data on pipelines, equipment, instruments, and actuators.

[0100] Step S205: Locate and delete the data objects associated with the flowchart to be deleted.

[0101] Step S206: Determine whether the flowchart folder containing the flowchart to be deleted contains only flowchart objects.

[0102] Step S207: If it only contains flowchart objects, then delete the flowchart to be deleted.

[0103] Step S208: If it contains more than just flowchart objects, output an error message.

[0104] Furthermore, such as Figure 3 As shown, when deleting data, the data processing for predetermined functions based on the flowchart data to complete the batch processing of system flowchart data also includes the following steps:

[0105] Step S301: Obtain the data object to be deleted based on the data list.

[0106] Step S302: Determine whether the data object to be deleted is pipe data. If the data object to be deleted is not a pipe, proceed directly to step S306.

[0107] Step S303: If yes, determine whether the pipe contains a tee component.

[0108] Step S304: If the pipeline contains a tee fitting, then clear the tee connection.

[0109] Step S305: Locate and delete the data object to be deleted.

[0110] Step S306: If the pipeline does not contain a tee component, locate and delete the data object to be deleted directly.

[0111] Furthermore, the data deletion function also includes the ability to delete flowchart folders. Specifically, the method for deleting a flowchart folder is as follows: it determines whether the flowchart folder under the specified system contains data objects. If it does not contain data objects, the deletion command can be executed to directly delete the flowchart folder; otherwise, if the flowchart folder contains data objects, a message indicating that deletion is not possible is output, and the deletion operation is exited.

[0112] like Figure 4 As shown, if the predefined function is a data export function, then the data processing for the predefined function based on the flowchart data to complete the batch processing of the system flowchart data includes the following steps:

[0113] Step S401: Use flowcharts and data filtering methods to filter out the data to be exported.

[0114] Step S402: Set the header of the data report according to the data type to generate the corresponding data report.

[0115] Step S403: Set the path for automatic generation of data reports.

[0116] Step S404: Save the data to be exported in the corresponding data report and generate the data export file.

[0117] The flowchart and data filtering method can be adopted from step S102. Furthermore, in step S404, the file is automatically opened while the file is being generated to automate the data export process.

[0118] like Figure 5 As shown, if the pre-defined function is the unit number modification function, then the data processing for the pre-defined function is performed according to the flowchart data to complete the batch processing of the system flowchart data, including the following steps:

[0119] Step S501: Flowchart for obtaining the unit number to be modified.

[0120] Step S502: Obtain the data object, folder, and fields of the flowchart for the unit number to be modified.

[0121] Step S503: Obtain the number of digits in the group number of each field, the field of the group number to be modified, and the number of digits in the folder name.

[0122] Step S504: Traverse and locate the data object, flowchart, and array corresponding to the unit number to be modified, and write the new input unit number into the corresponding field position of the located object or the unit number field.

[0123] Specifically, based on the professional and system-based selection, the flowchart for the unit number to be modified is obtained. The data objects contained in the flowchart for the unit number to be modified, the fields of the unit number to be modified, and the folder of the unit number to be modified are obtained. Then, the number of digits of the unit number in each field, the field of the unit number to be modified, and the number of digits in the folder name are determined. Next, the flowchart, data objects, or folders are located. Based on the new unit number setting value (i.e., the newly entered unit number) and the specific position of the unit number in each field, the modification rules are determined to achieve batch modification of the unit number.

[0124] like Figure 6 As shown, if the predefined function is the drawing attribute copy function, then the data processing for the predefined function based on the flowchart data to complete the batch processing of the system flowchart data includes the following steps:

[0125] Step S601: Obtain the target drawing.

[0126] Step S602: Traverse the target drawing to obtain the copy location of the target drawing.

[0127] Step S603: Obtain the reference drawing settings.

[0128] Step S604: Obtain the attribute field values ​​corresponding to the reference drawing based on the set values ​​in the reference drawing.

[0129] Step S605: Write the corresponding attribute field value into the copy location.

[0130] like Figure 7 As shown, if the predefined function is an interface association copy function, then the data processing for the predefined function is performed based on the flowchart data to complete the batch processing of the system flowchart data, including the following steps:

[0131] Step S701: Obtain the interface data of the reuse flowchart and the interface data of the reference flowchart.

[0132] The interface data for the reused flowchart includes: pipeline interface data of the reused flowchart and hierarchical structure data of the pipeline interfaces of the reused flowchart. The interface data for the reference flowchart includes: pipeline interface data of the reference flowchart, hierarchical structure data of the pipeline interfaces of the reference flowchart, pipeline data associated with the pipeline interfaces of the reference flowchart, and interface hierarchical structure data of the pipelines associated with the pipeline interfaces of the reference flowchart.

[0133] Step S702: Determine whether the hierarchical data of the interface of the reused flowchart is consistent with the hierarchical data of the interface of the reference flowchart.

[0134] Step S703: If not, output an error message.

[0135] Step S704: If yes, determine if the pipe code exists. If it exists, proceed to the second sub-process; if it does not exist, proceed to the third sub-process.

[0136] Among them, such as Figure 7 As shown, the second sub-process S705 includes: calculating the pipe code to be connected to the current interface according to the numbering rules; obtaining the pipe code to be connected to the current interface; determining whether the pipe code to be connected exists, and if it exists, proceeding to the fifth sub-process; if it does not exist, outputting an error message.

[0137] The third sub-process S706 includes: determining whether the pipe head or pipe tail is connected to equipment or a nozzle; if yes, proceeding to the fourth sub-process; if no, outputting an error message.

[0138] The fourth sub-process S707 includes: obtaining the device or nozzle code connected to the pipe head or pipe tail; calculating the device or nozzle code to be connected to the current interface according to the numbering rules; determining whether the device or nozzle code to be connected exists; if it exists, proceeding to the fifth sub-process; if it does not exist, outputting an error message.

[0139] The fifth sub-process S708 includes: determining whether an interface object at the same level as the reference interface exists; if it exists, obtaining the interface object at the same level, writing the unique database identifier (refno value) of the interface object at the same level into the interface association field (opcref field) of the current interface, and completing the association; if it does not exist, outputting an error message.

[0140] like Figure 8 As shown, if the pre-defined function is a system number modification function, then the data processing for the pre-defined function is performed based on the flowchart data to complete the batch processing of the system flowchart data, including the following steps:

[0141] Step S801: Obtain the data object of the system number to be modified.

[0142] Step S802: Obtain system parameters.

[0143] In this step, the new system number is first obtained, and it is then checked whether the new system number exists in the coefficient database. If it does not exist, an error message is output; if it exists, the system parameters are extracted. Optionally, system parameters include, but are not limited to: system code, description, and function.

[0144] Step S803: Determine whether the data object of the system number to be modified is a pipe.

[0145] Step S804: If yes, locate the pipe whose system number is to be modified.

[0146] Step S805: Write the system parameters into the corresponding fields (such as system code, description, function) of the pipe with the system number to be modified.

[0147] Step S806: Name the sub-items of the pipe whose system number is to be modified. That is, perform automatic sub-item naming three times.

[0148] Step S807: If it is not a pipe, locate the data object whose system number is to be modified.

[0149] Step S808: Write the new system code into the corresponding field (i.e., the system code field to be modified).

[0150] Step S809: Name the sub-items of the data object whose system number is to be modified. That is, execute the automatic sub-item naming three times.

[0151] Retrieve the function value and description value corresponding to the system settings.

[0152] Step S803: Traverse the data object whose system number is to be modified to locate the data object whose system number is to be modified.

[0153] Step S804: Write the function value and description value into the corresponding fields of the data object.

[0154] The batch data processing method of this invention enables batch modification of data for single or multiple flowcharts, such as unit number, system, interface, and flowchart attributes, which can be executed with a single click. It effectively solves the problem of asynchronous deletion of pipeline diagrams and adds the function of batch deletion of any flowchart data. It also solves the problem of the inability to export part / all data of a single or any number of final flowcharts, improving user applicability.

[0155] The comparison with traditional methods is shown in Table 1 below:

[0156] Deleting drawing data 10 minutes Within 1 minute Data export Single image cannot be exported 5 seconds Unit number modification 15 minutes Within 1 minute System number modification 20 minutes Within 1 minute Copy drawing properties 5 minutes 10 seconds Reuse drawing interface association 30 minutes or more Within 1 minute

[0157] Table 1

[0158] As can be seen from Table 1, the present invention can achieve efficient modification, data export, and deletion of Diagrams flowchart data.

[0159] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0160] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0161] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0162] The above embodiments are only for illustrating the technical concept and features of the present invention, and are intended to enable those skilled in the art to understand the content of the present invention and implement it accordingly. They do not limit the scope of protection of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should fall within the scope of the claims of the present invention.

Claims

1. A method for batch processing of nuclear power process system flow diagram data, characterized in that, Includes the following steps: Step S1: Obtain data for the entire project; Step S2: Filter the data for the entire project to obtain flowchart data; including: Step S21: Filter the data of the entire project to obtain the systems with non-empty data, and save the non-empty systems in the system list; Step S22: Filter the data in the system list for flowchart objects to obtain flowchart object data, and save the flowchart object data in the flowchart list; Step S23: Select the flowcharts in the flowchart list to obtain a specified flowchart, and obtain the data objects associated with the specified flowchart; Step S24: Classify the data objects associated with the specified flowchart, and save the classified data in the data list; Step S3: Perform data processing for predetermined functions based on the flowchart data to complete the batch processing of system flowchart data; the predetermined functions include: data deletion function, data export function, unit number modification function, drawing attribute copy function, interface association copy function, and system number modification function; wherein, the interface association copy function includes: Step S31: Obtain the interface data of the reused flowchart and the interface data of the reference flowchart; Step S32: Determine whether the hierarchical structure data of the interfaces of the reused flowchart is consistent with the hierarchical structure data of the interfaces of the reference flowchart; if inconsistent, output an error message; Step S33: If consistent, calculate the object code to be connected to the current interface based on the pipe code or the equipment / nozzle code of the pipe head and tail connection, and determine whether it exists; if it exists, obtain the interface object at the same level as the reference interface, write its database unique identification code into the interface association field of the current interface, and complete the association; including: determining whether the pipe code exists; If the pipe code exists, proceed to the second sub-process; if the pipe code does not exist, proceed to the third sub-process. The second sub-process includes: calculating the pipe code to be connected to the current interface according to the numbering rules; obtaining the pipe code to be connected to the current interface; determining whether the pipe code to be connected exists, and if it exists, proceed to the fifth sub-process; if it does not exist, output an error message. The third sub-process includes: determining whether the pipe head or pipe tail is connected to a device or nozzle; if yes, proceed to the fourth sub-process; if no, output an error message. The fourth sub-process includes: obtaining the device or nozzle code connected to the pipe head or pipe tail; calculating the device or nozzle code to be connected to the current interface according to the numbering rules; determining whether the device or nozzle code to be connected exists, and if it exists, proceed to the fifth sub-process; if it does not exist, output an error message. The fifth sub-process includes: determining whether an interface object at the same level as the reference interface exists; if it exists, obtain the interface object at the same level as the reference interface, write its unique database identifier into the interface association field of the current interface to complete the association; if it does not exist, output an error message.

2. The method for batch processing nuclear power process system flow chart data according to claim 1, characterized in that, The process of filtering the data for the entire project to obtain flowchart data also includes: Select a system from the system list to obtain the specified system; Obtain the flowchart folder of the specified system; Save the flowchart folder in the drawing folder list.

3. The method for batch processing nuclear power process system flow chart data according to claim 1, characterized in that, If the predetermined function is a data deletion function, then the data processing based on the flowchart data to complete the batch processing of the system flowchart data includes: Based on the flowchart list, obtain the fittings contained in the flowcharts to be deleted; Determine whether the pipe fitting is a tee; If so, then delete the tee connection of the pipe fitting; Based on the data list, obtain the data object associated with the flowchart to be deleted; Locate and delete the data objects associated with the flowchart to be deleted; Determine whether the flowchart folder containing the flowchart to be deleted contains only flowchart objects; If the document only contains flowchart objects, then delete the flowchart to be deleted. If the object contains more than just flowchart objects, an error message will be displayed.

4. The batch processing method for nuclear power process system flow chart data according to claim 3, characterized in that, If the data processing based on the flowchart data to perform predetermined functions to complete the batch processing of the system flowchart data further includes: Based on the data list, obtain the data objects to be deleted; Determine whether the data object to be deleted is pipeline data; If so, determine whether the pipe contains a tee fitting; If the pipe contains a tee fitting, then the tee connection should be removed; Locate and delete the data object to be deleted; If the pipe does not contain a tee fitting, the data object to be deleted is located and deleted directly.

5. The method for batch processing nuclear power process system flow chart data according to claim 1, characterized in that, If the predetermined function is a data export function, then the data processing of the predetermined function based on the flowchart data to complete the batch processing of the system flowchart data includes: The data to be exported was selected using flowcharts and data filtering methods. Set the header of the data report according to the data type to generate the corresponding data report; Set the path for automatic generation of data reports; The data to be exported is saved in the corresponding data report, and a data export file is generated.

6. The method for batch processing nuclear power process system flow chart data according to claim 1, characterized in that, If the predetermined function is a unit number modification function, then the data processing of the predetermined function based on the flowchart data to complete the batch processing of the system flowchart data includes: Flowchart for obtaining the unit number to be modified; Obtain the data object, folder, and fields of the unit number to be modified from the flowchart of the process; Get the number of digits in the unit number field, the field of the unit number to be modified, and the number of digits in the folder name; The system iterates through and locates the data objects, flowcharts, and arrays corresponding to the flowchart folders whose unit numbers are to be modified, and writes the newly entered unit number into the corresponding field position of the located object or into the unit number field.

7. The method for batch processing nuclear power process system flow chart data according to claim 1, characterized in that, If the predetermined function is a drawing attribute copying function, then the data processing of the predetermined function based on the flowchart data to complete the batch processing of the system flowchart data includes: Obtain the target drawing; The target drawing is traversed to obtain the copy location of the target drawing; Obtain the reference drawing settings; Based on the settings of the reference drawing, obtain the attribute field values ​​corresponding to the reference drawing; Write the corresponding attribute field value into the copy location.

8. The method for batch processing nuclear power process system flow chart data according to claim 1, characterized in that, If the predetermined function is a system number modification function, then the data processing of the predetermined function based on the flowchart data to complete the batch processing of the system flowchart data includes: Retrieve the data object containing the system number to be modified; Obtain system parameters; Determine whether the data object containing the system number to be modified is a pipe; If so, locate the pipe whose system number needs to be modified; Write the system parameters into the field corresponding to the pipe of the system number to be modified; Sub-name the pipe with the system number to be modified; If it is not a pipe, then locate the data object of the system number to be modified; Write the new system code into the corresponding fields; Name the sub-items of the data object whose system number is to be modified.

Citation Information

Patent Citations

  • Nuclear power project flow chart management terminal and method

    CN114037402A