Method and device for writing law and regulation standards into design file, equipment and storage medium
By obtaining and updating the list of regulations and standards for nuclear power design documents, the problems of errors and omissions in the citation of regulations and standards in the nuclear power design documents are solved, and the safety and quality of nuclear power engineering projects are improved.
Patent Information
- Application Number
- CN202411020772.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-12
AI Technical Summary
The citation errors and omissions of the regulations and standards in the nuclear power design documents lead to the inadequate implementation of nuclear safety regulations and standards, which affects the safety and quality of nuclear power engineering projects.
By obtaining the file encoding information and project information of the design documents, filter out the list of documents, regulations and standards, and obtain the version information of each regulation and standard based on the project information, write the version information into the list of documents, regulations and standards to form the first target, regulations and standards list. And automatically write the design file to realize automatic reading and update.
It solves the errors and omissions of citations of regulations and standards caused by manual filling by designers, and improves the efficiency of writing regulations and standards into design documents and the safety and quality of nuclear power engineering projects.
Smart Images

Figure CN118939613A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and apparatus, device and storage medium for writing regulatory standards into design files. Background Art
[0002] As one of the important inputs of nuclear power design documents, nuclear safety regulations and standards are characterized by large number, scattered information, and difficulty in collection. At present, in the process of publishing nuclear power design documents, it is required to write regulations and standards into the design documents to ensure that the requirements of nuclear safety regulations and standards can be effectively implemented in the process of designing nuclear power projects according to the design documents. In related technologies, designers need to manually select the regulations and standards referenced by the design documents from the regulations and standards database one by one and write them into the design documents. Due to the lack of skills and experience of designers, or lack of self-consciousness in filling in the system, there are widespread problems of errors and omissions in the reference of regulations and standards in design documents, which in turn leads to the untimely and inadequate implementation of nuclear safety regulations and standards, affecting the safety quality of nuclear power projects. Therefore, how to solve the problem of errors and omissions in the reference of regulations and standards in design documents has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a method, apparatus, device and storage medium for writing regulatory standards into design documents, aiming to solve the problem of incorrect and missing references to regulatory standards in design documents.
[0004] To achieve the above-mentioned purpose, a first aspect of an embodiment of the present application proposes a method for writing regulatory standards into a design file, the method comprising:
[0005] Obtain file coding information and project information of design files;
[0006] Filtering a list of document regulations and standards from a preset standard document reference library according to the document coding information; wherein the list of document regulations and standards includes multiple regulations and standards;
[0007] Obtain the version information of each regulatory standard according to the project information;
[0008] Writing the version information into the document regulations and standards list to obtain a first target regulations and standards list;
[0009] The first target regulatory standards list is written into the design document.
[0010] In some embodiments, obtaining the version information of each regulatory standard according to the project information includes:
[0011] Filtering a list of project regulations and standards from a preset project regulations and standards library according to the project information; wherein the list of project regulations and standards includes version information of each of the regulations and standards;
[0012] Obtain the version information of each regulation and standard according to the project regulation and standard list.
[0013] In some embodiments, after writing the first target regulatory standards list into the design file, the method further includes:
[0014] Obtaining update information of the standard document benchmark library and / or the project regulation standard library;
[0015] Reacquire the first target regulations and standards list according to the update information to obtain a second target regulations and standards list;
[0016] Comparing the first target regulations and standards list with the second target regulations and standards list to obtain a first comparison result; wherein the first comparison result is used to characterize the difference between the first target regulations and standards list and the second target regulations and standards list;
[0017] The first target regulations and standards list is updated according to the first comparison result to obtain a third target regulations and standards list; wherein the third target regulations and standards list is the same as the second target regulations and standards list.
[0018] In some embodiments, the project information includes a project name, a professional name, and a department name, and obtaining the version information of each regulatory standard according to the project information includes:
[0019] Filtering a list of project regulations and standards from a preset project regulations and standards library according to the project name; wherein the list of project regulations and standards includes version information of each of the regulations and standards;
[0020] Screening out a candidate list of regulations and standards from the list of project regulations and standards according to the professional name;
[0021] Filtering a selected list of regulations and standards from the list of candidate regulations and standards according to the name of the department;
[0022] The version information of each regulatory standard is obtained according to the selected regulatory standard list.
[0023] In some embodiments, after writing the first target regulatory standards list into the design file, the method further includes:
[0024] Get automatic write instructions;
[0025] Reacquire the first target regulatory standards list according to the automatic write instruction to obtain a fourth target regulatory standards list;
[0026] Comparing the first target regulations and standards list with the fourth target regulations and standards list to obtain a second comparison result; wherein the second comparison result is used to characterize the difference between the first target regulations and standards list and the fourth target regulations and standards list;
[0027] The first target list of regulations and standards is updated according to the second comparison result to obtain a fifth target list of regulations and standards; wherein the fifth target list of regulations and standards is the same as the fourth target list of regulations and standards.
[0028] In some embodiments, after writing the first target regulatory standards list into the design file, the method further includes:
[0029] Reacquire the first target regulations and standards list according to a preset period to obtain a sixth target regulations and standards list;
[0030] Comparing the first target regulations and standards list with the sixth target regulations and standards list to obtain a third comparison result; wherein the third comparison result is used to characterize the difference between the first target regulations and standards list and the sixth target regulations and standards list;
[0031] The first target list of regulations and standards is updated according to the third comparison result to obtain a seventh target list of regulations and standards; wherein the seventh target list of regulations and standards is the same as the sixth target list of regulations and standards.
[0032] In some embodiments, after writing the first target regulatory standards list into the design file, the method further includes:
[0033] A click instruction is obtained; wherein the click instruction indicates that the regulatory standard on the design document is clicked;
[0034] Acquire the clicked regulatory standard based on the click instruction to obtain the selected regulatory standard;
[0035] Filter the target clause content of the selected regulatory standard from the standard document base according to the selected regulatory standard;
[0036] The target clause content is displayed.
[0037] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application proposes a device for writing regulatory standards into a design file, the device comprising:
[0038] The first acquisition module is used to acquire file coding information and project information of the design file;
[0039] A screening module, used to screen out a list of document regulations and standards from a preset standard document reference library according to the document coding information; wherein the list of document regulations and standards includes multiple regulations and standards;
[0040] A second acquisition module is used to acquire version information of each regulatory standard according to the project information;
[0041] An updating module, configured to write the version information into the file regulations and standards list to obtain a first target regulations and standards list;
[0042] A writing module is used to write the first target regulatory standards list into the design file.
[0043] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0044] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0045] The method, device, equipment and storage medium for writing regulations and standards into design files proposed in this application obtain the file coding information and project information of the design file, and filter out a list of file regulations and standards from a preset standard file reference library according to the file coding information; wherein the list of file regulations and standards includes multiple regulations and standards. The version information of each regulation and standard is obtained according to the project information, and the version information is written into the list of file regulations and standards to obtain a first target list of regulations and standards, and the first target list of regulations and standards is written into the design file. Thereby, the first target list of regulations and standards is automatically read and automatically written into the design file. The problem of incorrect and missing references to regulations and standards caused by manual filling by designers is solved, and the efficiency of writing regulations and standards into design files is also improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is an optional flow chart of the method for writing regulatory standards into design files provided in an embodiment of the present application;
[0047] Figure 2 yes Figure 1 A first flow chart of step S103 in FIG. 1 ;
[0048] Figure 3 is a flow chart of a method for writing regulatory standards into design documents provided by another embodiment of the present application;
[0049] Figure 4 yes Figure 1 A second flow chart of step S103 in FIG. 1 ;
[0050] Figure 5 It is a flow chart of a method for writing regulatory standards into design documents provided by the third embodiment of the present application;
[0051] Figure 6 is a flow chart of a method for writing regulatory standards into design files provided by a fourth embodiment of the present application;
[0052] Figure 7 is a flow chart of a method for writing regulatory standards into design documents provided by a fifth embodiment of the present application;
[0053] Figure 8 It is a schematic diagram of the structure of a device for writing regulatory standards into design files provided in an embodiment of the present application;
[0054] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0056] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0058] First, some nouns involved in this application are analyzed:
[0059] Design documents: The design documents of a nuclear power plant are essential documents in the construction and operation of a nuclear power plant. They are the basis and foundation for formulating design requirements and design plans in the construction and operation of a nuclear power plant.
[0060] Regulatory standards: The construction, operation and management of nuclear power plants must strictly comply with a series of regulatory standards to ensure the safe and reliable operation of nuclear power plants, including the Nuclear Safety Law, Nuclear Power Plant Safety Regulations and Nuclear Power Plant General Layout Standards.
[0061] At present, during the publication of nuclear power design documents, it is required to write regulations and standards into the design documents to ensure that the requirements of nuclear safety regulations and standards are effectively implemented in the process of designing nuclear power projects according to the design documents. In related technologies, designers need to manually select the regulations and standards referenced in the design documents from the regulations and standards database one by one and write them into the design documents. Due to the lack of skills and experience of designers, or lack of self-consciousness in filling in the system, there are widespread problems of incorrect and missing references to regulations and standards in design documents, which in turn leads to untimely and inadequate implementation of nuclear safety regulations and standards, affecting the safety quality of nuclear power projects.
[0062] Based on this, the embodiments of the present application provide a method and apparatus, device and storage medium for writing regulations and standards into design files, which is intended to obtain the file regulations and standards list of the design file and the version information of each regulation and standard in the file regulations and standards list according to the file coding information and project information of the design file. After writing the version information of each regulation and standard into the file regulations and standards list, a first target regulations and standards list is obtained, and then the first target regulations and standards list is written into the design file. Thereby, the first target regulations and standards list is automatically read and automatically written into the design file. The problem of incorrect and missing references to regulations and standards caused by manual filling by designers is solved, and the safety quality of nuclear power engineering projects is improved.
[0063] The method, apparatus, device and storage medium for writing regulatory standards into design files provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the method for writing regulatory standards into design files in the embodiments of the present application is described.
[0064] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0065] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0066] The method for writing regulatory standards into design files provided in the embodiments of the present application can be applied to the terminal, can also be applied to the server side, and can also be software running in the terminal or the server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application of the method for writing regulatory standards into design files, etc., but is not limited to the above forms.
[0067] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0068] Please refer to Figure 1 , Figure 1 is an optional flowchart of the method for writing regulatory standards into design files provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.
[0069] Step S101, obtaining file coding information and project information of a design file;
[0070] Step S102, filtering out a list of document regulations and standards from a preset standard document reference library according to the document coding information; wherein the list of document regulations and standards includes a plurality of regulations and standards;
[0071] Step S103, obtaining version information of each regulatory standard according to the project information;
[0072] Step S104, writing the version information into the file regulations and standards list to obtain a first target regulations and standards list;
[0073] Step S105, writing the first target regulatory standards list into the design file.
[0074] In step S101 of some embodiments, a nuclear power plant project usually includes multiple design files, each of which has unique file coding information. After the designer enters the file coding information and project information into the design file publishing system, the design file publishing system obtains the file coding information and project information of the design file. The project information may be a project name.
[0075] In step S102 of some embodiments, a standard file reference library is pre-constructed, and a list of file regulations and standards corresponding to each file encoding information is saved in the standard file reference library. For example, if the file encoding information of a design file is design file 1, and the regulatory standards required to be written into the design file are regulatory standards 1, regulatory standards 2, and regulatory standards 3, then the list of file regulations and standards including regulatory standards 1, regulatory standards 2, and regulatory standards 3 is screened out from the standard file reference library according to design file 1.
[0076] In step S103 of some embodiments, since different engineering projects contain the same design file, but the version information of the regulatory standards that need to be written into the design file in different engineering projects is different, it is necessary to obtain the version information of each regulatory standard according to the project information.
[0077] In some embodiments, in steps S104 to S105, the regulatory standards in the document regulatory standards list do not have specific version information. In order to know the version of the regulatory standards, the version information is written into the document regulatory standards list to obtain a first target regulatory standards list. The first target regulatory standards list is written into the design file.
[0078] In steps S101 to S105 shown in the embodiment of the present application, by obtaining the file coding information and project information of the design file, a list of file regulations and standards is screened out from a preset standard file reference library according to the file coding information; wherein the list of file regulations and standards includes multiple regulations and standards. The version information of each regulation and standard is obtained according to the project information, and the version information is written into the list of file regulations and standards to obtain a first target list of regulations and standards, and the first target list of regulations and standards is written into the design file. Thereby, the first target list of regulations and standards is automatically read and automatically written into the design file. The problem of incorrect and missing references to regulations and standards caused by manual filling by designers is solved, and the efficiency of writing regulations and standards into design files is also improved.
[0079] In some embodiments, if they are the same type of design files, the keywords of the file names are the same, and the same type of design files use the same list of file regulations and standards. The file name of the same type of design files can be xxx system power failure analysis report, and the keyword is "system power failure analysis report".
[0080] If both the design files with the file names of the first system power failure analysis report and the second system power failure analysis report need to be published, then after filtering out the file regulations and standards list A from the preset standard file reference library based on the file encoding information of the first system power failure analysis report, the file name of the design file and the corresponding file regulations and standards list will be cached in the cache of the design file publishing system. When publishing the design file with the file name of the second system power failure analysis report, it can be matched in advance in the cache based on the file name of the second system power failure analysis report. If the keywords of the first system power failure analysis report are the same as those of the second system power failure analysis report, the file regulations and standards list A can be directly obtained from the cache. Through the keyword matching of this embodiment, there is no need to match in the standard file reference library, which improves the matching efficiency. When no match is found in the cache, a match is performed in the standard file reference library.
[0081] See also Figure 2 In some embodiments, step S103 may include but is not limited to steps S201 to S202:
[0082] Step S201, screening out a list of project regulations and standards from a preset project regulations and standards library according to project information; wherein the list of project regulations and standards includes version information of each regulation and standard;
[0083] Step S202: Obtain the version information of each regulation or standard according to the project regulation or standard list.
[0084] In step S201 of some embodiments, the document regulations and standards list includes the regulations and standards that the design documents need to reference, and the engineering project includes multiple design documents, and the corresponding project regulations and standards list includes the regulations and standards that these design documents need to reference and the corresponding version information. Each engineering project has a corresponding project regulations and standards list, and a project regulations and standards library is pre-built. The project regulations and standards library stores the mapping relationship between the project information and the project regulations and standards list. Therefore, the project regulations and standards list can be screened out from the project regulations and standards library according to the project information.
[0085] In step S202 of some embodiments, the project regulatory standards list is searched according to the regulatory standards in the document regulatory standards list, so as to obtain the version information of each regulatory standard. For example, if the document regulatory standards list includes regulatory standards 1, regulatory standards 2 and regulatory standards 3, the version information corresponding to regulatory standards 1, regulatory standards 2 and regulatory standards 3 is searched according to the project regulatory standards list.
[0086] In the steps S201 to S202 shown in this embodiment, a mapping relationship between project information and a list of project regulations and standards is saved by pre-building a project regulations and standards library. Thus, the list of project regulations and standards can be quickly screened out from the project regulations and standards library according to the project information, and the version information of each regulation and standard can be quickly obtained according to the list of project regulations and standards, thereby improving the efficiency of writing the first target list of regulations and standards into the design file.
[0087] See also Figure 3 In some embodiments, after step S105, the method for writing regulatory standards into the design file may also include but is not limited to steps S301 to S304:
[0088] Step S301, obtaining update information of a standard document base library and / or a project regulation standard library;
[0089] Step S302, reacquiring the first target regulations and standards list according to the updated information to obtain a second target regulations and standards list;
[0090] Step S303, comparing the first target list of regulations and standards with the second target list of regulations and standards to obtain a first comparison result; wherein the first comparison result is used to characterize the difference between the first target list of regulations and standards and the second target list of regulations and standards;
[0091] Step S304: update the first target regulatory standards list according to the first comparison result to obtain a third target regulatory standards list; wherein the third target regulatory standards list is the same as the second target regulatory standards list.
[0092] In step S301 of some embodiments, when the standard file base library and / or the project regulatory standard library are updated, the regulatory standards written into the design file may also need to be updated. Therefore, after obtaining the update information of the standard file base library and / or the project regulatory standard library, it is necessary to determine whether the first target regulatory standard list has changed, so as to determine whether the first target regulatory standard list written into the design file needs to be updated.
[0093] In step S302 of some embodiments, the step of re-obtaining the first target regulatory standards list is to re-execute steps S101 to S104 to obtain the second target regulatory standards list. After the standard document base library and / or the project regulatory standards library is updated, if the updated content involves the content in the first target regulatory standards list, the second target regulatory standards list is different from the first target regulatory standards list. If the updated content does not involve the content in the first target regulatory standards list, the second target regulatory standards list is the same as the first target regulatory standards list.
[0094] In step S303 of some embodiments, the first target regulatory standards list and the second target regulatory standards list are compared to obtain a first comparison result; the first comparison result represents the difference between the first target regulatory standards list and the second target regulatory standards list. If the second target regulatory standards list is the same as the first target regulatory standards list, the first comparison result is that there is no difference between the second target regulatory standards list and the first target regulatory standards list.
[0095] In one example, the second target regulatory standards list may include new, modified, or deleted regulatory standards compared to the first target regulatory standards list. For example, if the first target regulatory standards list includes regulatory standards 1, regulatory standards 2, and regulatory standards 3, and the second target regulatory standards list includes regulatory standards 1 and regulatory standards 3, then the regulatory standards are deleted. Modifying a regulatory standard may be modifying the version information of the regulatory standard.
[0096] In step S304 of some embodiments, if the first target regulatory standard list includes regulatory standard 1, regulatory standard 2, and regulatory standard 3, and the second target regulatory standard list includes regulatory standard 1, regulatory standard 3, and regulatory standard 4, then the first comparison result is to change regulatory standard 2 to regulatory standard 4. Then, the first target regulatory standard list is updated according to the first comparison result, and the third target regulatory standard list includes regulatory standard 1, regulatory standard 3, and regulatory standard 4.
[0097] It should be noted that if the second target list of regulations and standards is the same as the first target list of regulations and standards, then when the first target list of regulations and standards is updated according to the first comparison result, the first target list of regulations and standards does not change, that is, the third target list of regulations and standards is also the same as the first target list of regulations and standards.
[0098] In steps S301 to S304 shown in this embodiment, when the standard document base library and / or the project regulatory standard library are updated, the first target regulatory standard list is re-acquired to obtain the second target regulatory standard list. The first target regulatory standard list is compared with the second target regulatory standard list, and the first target regulatory standard list written into the design file is updated according to the first comparison result. This prevents the design document publishing process from being stagnant in the compilation stage for a long time, resulting in the first target regulatory standard list being automatically written out of date or inaccurate.
[0099] In step S201 to step S202, different project names correspond to different versions of regulatory standards. Therefore, the project regulatory standards list is screened out from the project regulatory standards library according to the project name, and the version information of each regulatory standard can be obtained according to the project regulatory standards list. However, in some embodiments, if different majors and departments of the same engineering project have different version information of regulatory standards, then the project information includes the project name, major name and department name. Please refer to Figure 4 Step S103 may also include but is not limited to steps S401 to S404:
[0100] Step S401, filtering out a list of project regulations and standards from a preset project regulations and standards library according to the project name; wherein the list of project regulations and standards includes version information of each regulation and standard;
[0101] Step S402, screening out a candidate list of regulations and standards from the project regulations and standards list according to the professional name;
[0102] Step S403, screening out a selected list of regulations and standards from the list of candidate regulations and standards according to the department name;
[0103] Step S404: Obtain the version information of each regulatory standard according to the selected regulatory standard list.
[0104] In steps S401 to S404 of some embodiments, the project regulations and standards list is divided into multiple candidate regulations and standards lists according to different professional names, and each candidate regulations and standards list is divided into multiple selected regulations and standards lists according to different department names. After the project regulations and standards list is screened out from the preset project regulations and standards library according to the project name, since the version information of regulations and standards of different professions may be different, the candidate regulations and standards list is screened out from the project regulations and standards list according to the professional name. Since the version information of regulations and standards of different departments may be different, the selected regulations and standards list is screened out from the candidate regulations and standards list according to the department name. Finally, the version information of each regulation and standard is obtained according to the selected regulations and standards list.
[0105] Specifically, the selected regulatory standards list is searched according to the regulatory standards in the document regulatory standards list, so as to obtain the version information of each regulatory standard. For example, if the document regulatory standards list includes regulatory standards 1, regulatory standards 2 and regulatory standards 3, the version information corresponding to regulatory standards 1, regulatory standards 2 and regulatory standards 3 is searched according to the selected regulatory standards list.
[0106] Steps S401 to S404 shown in this embodiment can gradually filter out a list of selected regulations and standards based on project information, and quickly obtain version information of each regulation and standard based on the list of selected regulations and standards, thereby improving the efficiency of writing the first target regulation and standard list into the design file.
[0107] See also Figure 5 In some embodiments, after step S105, the method for writing regulatory standards into the design file further includes but is not limited to steps S501 to S504:
[0108] Step S501, obtaining an automatic write instruction;
[0109] Step S502, reacquiring the first target regulatory standards list according to the automatic writing instruction to obtain a fourth target regulatory standards list;
[0110] Step S503, comparing the first target list of regulations and standards with the fourth target list of regulations and standards to obtain a second comparison result; wherein the second comparison result is used to characterize the difference between the first target list of regulations and standards and the fourth target list of regulations and standards;
[0111] Step S504: update the first target regulations and standards list according to the second comparison result to obtain a fifth target regulations and standards list; wherein the fifth target regulations and standards list is the same as the fourth target regulations and standards list.
[0112] In step S501 of some embodiments, an automatic write button can be added to the design file publishing system, and when the designer clicks the automatic write button, the automatic write instruction is obtained. Among them, when the publishing process of the design file is stagnant in the compilation stage for a long time, the designer can update the first target regulatory standards list in the design file before starting the publishing process, so as to avoid updating the first target regulatory standards list in the design file every time the standard file base library and / or the project regulatory standards library is updated, thereby reducing the number of updates.
[0113] In steps S502 to S504 of some embodiments, the first target regulatory standard list is reacquired according to the automatic write instruction to obtain a fourth target regulatory standard list. The first target regulatory standard list and the fourth target regulatory standard list are compared to obtain a second comparison result. The first target regulatory standard list is updated according to the second comparison result to obtain a fifth target regulatory standard list. The specific implementation steps are similar to steps S301 to S304 and are not repeated here.
[0114] After the first target regulations and standards list is written into the design file, and before the design file publishing process is restarted, if the standard file benchmark library and / or the project regulations and standards library are updated three times, the first target regulations and standards list in the design file needs to be updated three times. In steps S501 to S503 shown in this embodiment, if the designer clicks the automatic write button before the design file publishing process is restarted, the first target regulations and standards list in the design file only needs to be updated once. Therefore, this embodiment can not only avoid the long-term stagnation of the design file publishing process in the compilation stage, resulting in the automatic writing of the first target regulations and standards list being out of date or inaccurate, but also reduce the number of updates of the first target regulations and standards list in the design file, and can more flexibly update the first target regulations and standards list in the design file.
[0115] See also Figure 6 In some embodiments, after step S105, the method for writing regulatory standards into the design file may also include but is not limited to steps S601 to S603:
[0116] Step S601, reacquiring the first target regulations and standards list according to a preset period to obtain a sixth target regulations and standards list;
[0117] Step S602, comparing the first target list of regulations and standards with the sixth target list of regulations and standards to obtain a third comparison result; wherein the third comparison result is used to characterize the difference between the first target list of regulations and standards and the sixth target list of regulations and standards;
[0118] Step S603: update the first target list of regulations and standards according to the third comparison result to obtain a seventh target list of regulations and standards; wherein the seventh target list of regulations and standards is the same as the sixth target list of regulations and standards.
[0119] In step S601 of some embodiments, in order to prevent the designer from forgetting to click the automatic write button, the first target regulatory standard list may be re-acquired every preset period to obtain the sixth target regulatory standard list.
[0120] In steps S602 to S603 of some embodiments, the first target regulatory standards list and the sixth target regulatory standards list are compared to obtain a third comparison result. The first target regulatory standards list is updated according to the third comparison result to obtain a seventh target regulatory standards list. The specific implementation steps are similar to steps S301 to S304 and are not repeated here.
[0121] Steps S601 to S603 shown in this embodiment update the first target regulatory standards list in the design file at a preset period to prevent the designer from forgetting to click the automatic write button, causing the automatically written first target regulatory standards list to become outdated or inaccurate.
[0122] Please refer to Figure 7 In some embodiments, after step S105, the method for writing regulatory standards into the design file may also include but is not limited to steps S701 to S704:
[0123] Step S701, obtaining a click instruction; wherein the click instruction indicates that a regulatory standard on a design document is clicked;
[0124] Step S702, obtaining the clicked regulatory standard based on the click instruction to obtain the selected regulatory standard;
[0125] Step S703, filtering the target clause contents of the selected regulatory standards from the standard document base library according to the selected regulatory standards;
[0126] Step S704: display the target clause content.
[0127] In step S701 of some embodiments, after the first target regulatory standards list is written into the design file, if the designer wants to view the specific terms and contents of the regulatory standards, the designer can click on the regulatory standards in the design file. When the designer clicks on the regulatory standards in the design file, a click instruction is obtained.
[0128] In steps S702 to S704 of some embodiments, the standard document base library also stores the clause contents corresponding to each regulatory standard. The clicked regulatory standard is obtained based on the click instruction to obtain the selected regulatory standard; the target clause contents of the selected regulatory standard are filtered from the standard document base library according to the selected regulatory standard, and the target clause contents are displayed. When a cancel instruction is obtained, the target clause contents can also be hidden.
[0129] In steps S701 to S704 shown in this embodiment, after obtaining the click instruction, the specific target clause content of the clicked regulatory standard is displayed, so as to facilitate the designer to view.
[0130] See also Figure 8The embodiment of the present application also provides a device for writing regulatory standards into design files, which can implement the method for writing regulatory standards into design files, and the device includes:
[0131] The first acquisition module 801 is used to acquire file coding information and project information of the design file;
[0132] A screening module 802 is used to screen out a list of document regulations and standards from a preset standard document reference library according to the document coding information; wherein the list of document regulations and standards includes multiple regulations and standards;
[0133] The second acquisition module 803 is used to acquire the version information of each regulatory standard according to the project information;
[0134] An updating module 804 is used to write the version information into the file regulations and standards list to obtain a first target regulations and standards list;
[0135] The writing module 805 is used to write the first target regulatory standard list into the design file.
[0136] The specific implementation of the device for writing regulatory standards into design files is basically the same as the specific implementation of the method for writing regulatory standards into design files mentioned above, and will not be repeated here.
[0137] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the method of writing the above regulatory standards into the design file when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.
[0138] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0139] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0140] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other applications. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the method of writing the regulatory standards into the design file in the embodiment of this application;
[0141] Input / output interface 903, used to implement information input and output;
[0142] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WI FI, Bluetooth, etc.);
[0143] A bus 905 that transmits information between the various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0144] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0145] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of writing the above-mentioned regulatory standards into the design file is implemented.
[0146] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0147] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0148] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0149] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0151] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0152] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0153] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0154] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0155] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0157] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for writing regulatory standards into design documents, characterized in that: The method comprises: Obtain file coding information and project information of design files; Filtering a list of document regulations and standards from a preset standard document reference library according to the document coding information; wherein the list of document regulations and standards includes multiple regulations and standards; Obtain the version information of each regulatory standard according to the project information; Writing the version information into the document regulations and standards list to obtain a first target regulations and standards list; The first target regulatory standards list is written into the design document.
2. The method according to claim 1, characterized in that The obtaining of the version information of each regulatory standard according to the project information includes: Filtering a list of project regulations and standards from a preset project regulations and standards library according to the project information; wherein the list of project regulations and standards includes version information of each of the regulations and standards; Obtain the version information of each regulation and standard according to the project regulation and standard list.
3. The method according to claim 2, characterized in that After writing the first target regulatory standards list into the design file, the method further includes: Obtaining update information of the standard document benchmark library and / or the project regulation standard library; Reacquire the first target regulations and standards list according to the update information to obtain a second target regulations and standards list; Comparing the first target regulations and standards list with the second target regulations and standards list to obtain a first comparison result; wherein the first comparison result is used to characterize the difference between the first target regulations and standards list and the second target regulations and standards list; The first target regulations and standards list is updated according to the first comparison result to obtain a third target regulations and standards list; wherein the third target regulations and standards list is the same as the second target regulations and standards list.
4. The method according to claim 1, characterized in that: The project information includes the project name, professional name and department name, and the version information of each regulatory standard is obtained according to the project information, including: Filtering a list of project regulations and standards from a preset project regulations and standards library according to the project name; wherein the list of project regulations and standards includes version information of each of the regulations and standards; Screening out a candidate list of regulations and standards from the list of project regulations and standards according to the professional name; Filtering a selected list of regulations and standards from the list of candidate regulations and standards according to the name of the department; The version information of each regulatory standard is obtained according to the selected regulatory standard list.
5. The method according to claim 1, characterized in that After writing the first target regulatory standards list into the design file, the method further includes: Get automatic write instructions; Reacquire the first target regulatory standards list according to the automatic write instruction to obtain a fourth target regulatory standards list; Comparing the first target regulations and standards list with the fourth target regulations and standards list to obtain a second comparison result; wherein the second comparison result is used to characterize the difference between the first target regulations and standards list and the fourth target regulations and standards list; The first target list of regulations and standards is updated according to the second comparison result to obtain a fifth target list of regulations and standards; wherein the fifth target list of regulations and standards is the same as the fourth target list of regulations and standards.
6. The method according to claim 1, characterized in that After writing the first target regulatory standards list into the design file, the method further includes: Reacquire the first target regulations and standards list according to a preset period to obtain a sixth target regulations and standards list; Comparing the first target regulations and standards list with the sixth target regulations and standards list to obtain a third comparison result; wherein the third comparison result is used to characterize the difference between the first target regulations and standards list and the sixth target regulations and standards list; The first target list of regulations and standards is updated according to the third comparison result to obtain a seventh target list of regulations and standards; wherein the seventh target list of regulations and standards is the same as the sixth target list of regulations and standards.
7. The method according to any one of claims 1 to 6, characterized in that: After writing the first target regulatory standards list into the design file, the method further includes: A click instruction is obtained; wherein the click instruction indicates that the regulatory standard on the design document is clicked; Acquire the clicked regulatory standard based on the click instruction to obtain the selected regulatory standard; Filter the target clause content of the selected regulatory standard from the standard document base according to the selected regulatory standard; The target clause content is displayed.
8. A device for writing regulatory standards into design documents, characterized in that: The device comprises: The first acquisition module is used to acquire file coding information and project information of the design file; A screening module, used to screen out a list of document regulations and standards from a preset standard document reference library according to the document coding information; wherein the list of document regulations and standards includes multiple regulations and standards; A second acquisition module is used to acquire version information of each regulatory standard according to the project information; An updating module, configured to write the version information into the document regulations and standards list to obtain a first target regulations and standards list; A writing module is used to write the first target regulatory standards list into the design file.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of writing regulatory standards into design files as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method of writing regulatory standards into design files according to any one of claims 1 to 7 is implemented.
