Cable sleeve detail editing method and device and electronic equipment

By automatically generating cable casing details, using dialogue windows and cable information arrays, the inefficiency and error problems caused by manual editing in the prior art are solved, and more efficient and accurate cable casing book editing is achieved.

CN120012193APending Publication Date: 2025-05-16CSSC HUANGPU WENCHONG SHIPBUILDING CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510086672.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the prior art, the generation of cable casing details relies on manual editing, resulting in low design efficiency and error-prone.

Method used

By establishing a dialogue window, generating a cable information array in response to the editing operation, and determining whether it is necessary to prepare a cable casing detail based on the cable information array, and automatically generating a cable casing detail.

Benefits of technology

Improves the editing efficiency and quality of cable casing books, reduces design workload, and reduces manual errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012193A_ABST
    Figure CN120012193A_ABST
Patent Text Reader

Abstract

The invention discloses a cable sleeve detail editing method and device and electronic equipment, and the method comprises the steps: building a dialogue window based on a cable information grade, and setting a data editing region and a data display region; generating a cable information array in response to an editing operation for the dialogue window, and displaying data in the cable information array in a data display area; determining whether cable sleeve details need to be compiled according to the cable information array; and when cable sleeve details need to be braided, determining the number of core wires and the diameter of the core wires according to the cable information array, and generating the cable sleeve details according to the number of the core wires, the diameter of the core wires and the cable information array. According to the method, the data required for compiling the cable sleeve details are acquired through the dialogue window, and the cable sleeve details are automatically generated according to the acquired data, so that the editing efficiency and quality of the cable sleeve book are improved, and the design workload is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided design, and in particular to a cable sheath detail editing method, device and electronic equipment. Background Art

[0002] Cable is a carrier used to transmit energy or signals. In the field of industrial manufacturing (such as shipbuilding), the correct connection of cables is the basis for the normal operation of equipment. Cable sheath is a sheath with wire number, wire diameter or other identification information recorded. It is installed on the cable to realize cable identification, which is convenient for equipment assembly, verification and maintenance.

[0003] In the prior art, the generation of cable conduit details mainly relies on manual editing methods. When making a cable conduit detail list, designers copy and paste the required data from the CAD wiring diagram, such as equipment name, wire number, wire diameter, etc., and manually classify and edit the data, which is inefficient and prone to errors. Summary of the invention

[0004] The present invention provides a cable sheath detail editing method, device and electronic equipment, which can automatically compile cable sheath details to solve the problem that the existing cable sheath details are manually edited, resulting in low design efficiency and prone to errors, and improve editing efficiency and quality.

[0005] According to one aspect of the present invention, a cable sheath detail editing method is provided, comprising: establishing a dialog window based on the cable information level, the dialog window at least comprising: a data editing area and a data display area; generating a cable information array in response to an editing operation on the dialog window, and displaying the data in the cable information array on the

[0006] The data display area; determining whether it is necessary to compile the cable sheath details according to the cable information array; when it is necessary to compile the cable sheath details, determining the number of core wires and the core wire diameter according to the cable information array, and generating the cable sheath details according to the number of core wires, the core wire diameter and the cable information array.

[0007] Optionally, when it is necessary to compile the cable sheath details, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array, including: identifying the number of core wires and the core wire diameter corresponding to each element in turn based on the sorting of elements in the cable information array, and saving the data stored in the element and the number of core wires and the core wire diameter corresponding to the element in an output array; obtaining the number of elements with the same cable name in the cable information array; when the number of elements is less than the number of core wires corresponding to the cable name, completing the data in the output array based on the difference between the number of elements and the number of core wires; when the number of elements is more than the number of core wires corresponding to the cable name, issuing a quantity recognition abnormality warning message.

[0008] Optionally, when it is necessary to compile the cable sheath details, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array, including: sorting the elements in the output array based on the core wire diameter; creating a corresponding worksheet based on the sorting result; copying the data in the output array to the corresponding worksheet based on the core wire diameter and data editing rules to generate the cable sheath details.

[0009] Optionally, generating a cable information array in response to an editing operation on the dialog window and displaying the data in the cable information array in the data display area includes: generating data to be edited in response to an entry operation on the data editing area, and storing the data to be edited in the cable information array; and at least partially deleting the cable information array in response to a deletion operation on the data editing area or the data display area.

[0010] Optionally, the data to be edited is generated in response to an entry operation for the data editing area, and the data to be edited is stored in the cable information array, including: obtaining a target check box that changes in response to the entry operation; identifying subsidiary check boxes whose cable information levels are lower than the target check box, and clearing initial data in the subsidiary check boxes; after the target check box is filled with data, generating the data to be edited corresponding to the subsidiary check box according to the data filled in the target check box.

[0011] Optionally, the response to the deletion operation on the data editing area or the data display area is to at least partially delete the cable information array, including: writing all the data in the cable information array into an auxiliary array; when the data of any element in the cable information array is the same as the data to be deleted, copying the data of the next element corresponding to the element in the auxiliary array to the position of the element in the cable information array, and copying the data of the remaining elements in the auxiliary array to the position of the previous element corresponding to the remaining elements in the cable information array in sequence.

[0012] Optionally, determining whether it is necessary to compile the cable sheath details based on the cable information array includes: obtaining cable specification strings of all cables based on the cable information array; when there is no characteristic character in any of the cable specification strings, issuing a prompt message that it is not necessary to compile the cable sheath details; when the characteristic character exists in all of the cable specification strings, determining that the cable sheath details need to be compiled.

[0013] Optionally, the cable information level satisfies: the information level of the cable device name is higher than the information level of the cable name; the information level of the cable name is higher than the information level of the cable specification; the information level of the cable specification is higher than the information level of the cable core number; the information level of the cable core number is higher than the information level of the terminal number.

[0014] According to another aspect of the present invention, there is provided a cable sheath detail editing device, comprising: an interactive module, for establishing a dialog window based on the cable information level, the dialog window comprising at least: a data editing area and a data display area; a data processing module, for generating a cable information array in response to an editing operation on the dialog window, and displaying the data in the cable information array in the data display area; a judgment module, for determining whether it is necessary to compile a cable sheath detail based on the cable information array; an output module, for determining the number of core wires and the core wire diameter based on the cable information array when it is necessary to compile the cable sheath detail, and generating the cable sheath detail based on the number of core wires, the core wire diameter and the cable information array.

[0015] According to another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned cable sheath detail editing method.

[0016] The technical solution of the embodiment of the present invention establishes a dialog window, generates a cable information array in response to the editing operation on the dialog window, and displays the data in the cable information array in the data display area; when it is necessary to compile the cable sheath details, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are automatically generated according to the number of core wires, the core wire diameter and the cable information array, thereby solving the problem that the existing cable sheath details are manually edited, resulting in low design efficiency and prone to errors, improving the editing efficiency and quality of the cable sheath book, and reducing the design workload.

[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A flowchart of a cable sheath detail editing method provided by an embodiment of the present invention;

[0020] Figure 2 A schematic diagram of a dialog window provided by an embodiment of the present invention;

[0021] Figure 3 A schematic diagram of a cable information array provided by an embodiment of the present invention;

[0022] Figure 4 A flowchart of a method for automatically generating cable sheath details provided by an embodiment of the present invention;

[0023] Figure 5 A schematic diagram of an output array provided by an embodiment of the present invention;

[0024] Figure 6 A schematic diagram of a quantity recognition abnormal warning information provided by an embodiment of the present invention;

[0025] Figure 7 A schematic diagram of a worksheet provided by an embodiment of the present invention;

[0026] Figure 8 A schematic diagram of another worksheet provided by an embodiment of the present invention;

[0027] Fig. 9A flowchart of a method for obtaining a cable information array provided by an embodiment of the present invention;

[0028] Fig.10 A schematic diagram of obtaining input data based on a drop-down list provided by an embodiment of the present invention;

[0029] Fig.11 A schematic diagram of abnormal prompt information of cable ownership provided by an embodiment of the present invention;

[0030] Fig.12 A schematic diagram of an abnormal data input prompt information provided by an embodiment of the present invention;

[0031] Fig.13 A flow chart of a method for entering data required for a cable information array provided by an embodiment of the present invention;

[0032] Fig.14 A schematic diagram of selecting and deleting data based on a cable list provided by an embodiment of the present invention;

[0033] Fig.15 A schematic diagram of deleting data provided by an embodiment of the present invention;

[0034] Fig.16 A schematic diagram of another method for deleting data provided by an embodiment of the present invention;

[0035] Fig.17 A schematic diagram of another method of deleting data provided by an embodiment of the present invention;

[0036] Fig.18 A flow chart of a method for deleting data in a cable information array provided by an embodiment of the present invention;

[0037] Fig.19 A schematic diagram of prompt information that does not require the preparation of a cable bushing book provided by an embodiment of the present invention;

[0038] Fig. 20 A schematic structural diagram of a cable sheath detail editing device provided by an embodiment of the present invention;

[0039] Fig.21 A schematic structural diagram of an electronic device for implementing the cable sheath detail editing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention 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 interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0042] Figure 1 This is a flowchart of a cable sheath detail editing method provided by an embodiment of the present invention. This embodiment can be applied to the application scenario of automatically exporting a cable sheath list based on an electrical wiring diagram. The method can be executed by a cable sheath detail editing device. The cable sheath detail editing device can be implemented in the form of hardware and / or software. The cable sheath detail editing device can be configured in an electronic device with a mapping function. Figure 1 As shown, the cable sheath detail editing method of the present application includes the following steps:

[0043] S1: Create a dialog window based on the cable information level.

[0044] Among them, the cable information level can be understood as a level sequence established based on the mutual subordination and association relationship between different cable information (including but not limited to cable ownership information, cable name information, cable specification information, cable core wire information and cable terminal information).

[0045] Optionally, the cable information level satisfies: the information level of the cable belonging device name is higher than the information level of the cable name; the information level of the cable name is higher than the information level of the cable specification; the information level of the cable specification is higher than the information level of the cable core number; the information level of the cable core number is higher than the information level of the terminal number. In this embodiment, when the cable information with a relatively high level changes, the associated cable information with a relatively low level automatically performs adaptive adjustment.

[0046] In this embodiment, the dialog window at least includes: a data editing area and a data display area. The data editing area can be understood as a configuration and editing operation area for cable information; the data display area can be understood as a display area for the entered cable information.

[0047] For example, Figure 2 A schematic diagram of a dialog window provided by an embodiment of the present invention. Figure 2 As shown, in the data editing area, sub-editing areas for different cable information can be set, and the check boxes corresponding to each sub-editing area are arranged in order from high to low based on the information level, and different check boxes are set with corresponding drop-down menus. Taking the cable information including device name, cable name, cable specification, cable core number and terminal number as an example, the check box for the device name is set at the top layer of the data editing area, the check box for the cable name is set at the second layer of the data editing area, the check box for the cable specification is set at the third layer of the data editing area, the check box for the cable core number is set at the fourth layer of the data editing area, and the check box for the terminal number is set at the fifth layer of the data editing area. The data display area is used to display the list of cables that have been entered.

[0048] See also Figure 2 As shown, the dialog window is also provided with a function area, which can be understood as an option area for realizing functions such as data entry, data deletion, data saving and ending. Typically, the function area can be provided with "input information" option, "delete information" option, "complete input" option and "end program" option. If the program is running and the designer wants to exit, he can click the "end program" option and click the "OK" button in the prompt dialog box to end the cable conduit detail compilation program.

[0049] S2: Generate a cable information array in response to the editing operation on the dialog window, and display the data in the cable information array in the data display area.

[0050] The cable information array can be understood as a data structure containing detailed cable information (including but not limited to cable ownership information, cable name information, cable specification information, cable core wire information and cable terminal information). In this embodiment, the cable information array can be an array of multiple rows and columns, which can be recorded as a dlxxsz array.

[0051] For example, Figure 3 A schematic diagram of a cable information array provided by an embodiment of the present invention. Figure 3As shown, the cable information array of the present application can be a two-dimensional array with 5 columns and multiple rows. The elements in the first column are used to record the device name to which the cable belongs, the elements in the second column are used to record the cable name, the elements in the third column are used to record the cable specifications, the elements in the fourth column are used to record the cable core number, and the elements in the fifth column are used to record the terminal number. It should be noted that in the cable information array of the present application, the numbering of each element can start from 0.

[0052] Specifically, after the designer selects the "Enter Information" option, the data entry operation is performed, and the cable data to be entered is generated based on the designer's editing operations in the check boxes corresponding to different cable information. After the designer selects the "Delete Information" option, the data deletion operation is performed. Data that does not meet the requirements is deleted based on the designer's editing operations in the check boxes corresponding to different cable information. In this embodiment, the newly entered cable data is added to the drop-down lists of the check boxes corresponding to the device name, cable name, cable specification, cable core number and terminal number. When generating the cable information array, the data in the cable information array is sorted to facilitate the user to search in the data display area of ​​the dialog window. It should be noted that when sorting the data in the cable information array, it is sorted in the order of data entry. First, the data with the same device name is sorted together, and after the device name is sorted, the data with the same cable name is sorted together.

[0053] Optionally, the dialog window of the present application is also provided with a label box, and each time a piece of information is successfully entered, the label box below the dialog window will prompt the successful entry information.

[0054] S3: Determine whether it is necessary to compile the cable sheath details according to the cable information array.

[0055] The cable sheath details can be understood as a file recording the cable sheath data. In this embodiment, the cable sheath details can be in a spreadsheet format, such as a cable sheath book in EXCEL format.

[0056] Specifically, the cable types that need to prepare the cable sheath details can be pre-set, and the cable types can be identified according to the cable information recorded in the cable information array, including but not limited to single-core cable, multi-core cable, twisted pair cable or variable frequency cable. If the cable type belongs to the cable type that needs to prepare the cable sheath details (for example, multi-core cable, twisted pair cable or variable frequency cable), the cable sheath details editing strategy is executed; if the cable type does not belong to the cable type that needs to prepare the cable sheath details (for example, single-core cable), a prompt message is given that the cable sheath details do not need to be prepared.

[0057] S4: When it is necessary to compile the cable sheath details, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array.

[0058] Among them, the number of core wires can be understood as the number of all independent core wires contained in the cable that have the function of signal or energy transmission; the core wire diameter can be understood as the diameter of any core wire inside the cable.

[0059] In this embodiment, the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array, including but not limited to: sorting and / or classifying the data in the cable information array according to the core wire diameter, and checking and verifying the data in the cable sheath details according to the number of core wires.

[0060] Specifically, the number of core wires and the core wire diameter of the cable can be identified by reading the cable name or cable specification in the cable information array retained in the dialogue window, and the cable core wires with the same device name, the same cable name and the same diameter are counted in the same worksheet, and all worksheets are integrated into the cable sheath details. Thus, by establishing a dialogue window, and generating a cable information array in response to the editing operation on the dialogue window, the data in the cable information array is displayed in the data display area; when it is necessary to compile the cable sheath details, the number of core wires and the core wire diameter are identified according to the cable information array, and the cable sheath details are automatically generated and derived according to the number of core wires, the core wire diameter and the cable information array, which solves the problem that the existing cable sheath details are manually edited, resulting in low design efficiency and prone to errors, improves the editing efficiency and quality of the cable sheath book, and reduces the design workload.

[0061] Figure 4 A flowchart of a method for automatically generating cable sheath details provided by an embodiment of the present invention. Figure 4 As shown, in the above step S4, when it is necessary to compile the cable sheath details, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array, including:

[0062] S401: Based on the order of the elements in the cable information array, the number of core wires and the diameter of the core wires corresponding to each element are identified in turn, and the data stored in the element and the number of core wires and the diameter of the core wires corresponding to the element are saved in an output array.

[0063] Among them, the elements in the cable information array can be understood as a piece of cable information corresponding to a single core wire in the cable information array, and the output array can be understood as a data structure that records the cable information in the cable information array (including but not limited to cable ownership information, cable name information, cable specification information, cable core wire information and cable terminal information), the number of core wires and the core wire diameter. In this embodiment, the output array can be an array of multiple rows and columns, which can be recorded as an shcsz array.

[0064] For example, Figure 5 A schematic diagram of an output array provided by an embodiment of the present invention. Figure 5 As shown, the output array is a two-dimensional array with 6 columns and multiple rows. The elements in the first column are used to record the device name, the elements in the second column are used to record the cable name, the elements in the third column are used to record the cable specifications, the elements in the fourth column are used to record the cable core number, the elements in the fifth column are used to record the terminal number, and the elements in the sixth column are used to record the cable core diameter. It should be noted that in the output array of this application, the numbering of each element can start from 0.

[0065] S402: Obtain the number of elements with the same cable name in the cable information array or the output array.

[0066] In this embodiment, the number of elements with the same cable name can be understood as the sum of elements with the same cable name in the cable information array or the output array. Optionally, the number of terminals with the same cable name can be used to represent the number of elements with the same cable name.

[0067] S403: Determine whether the number of elements corresponding to the same cable name is consistent with the number of core wires.

[0068] If the number of elements corresponding to the same cable name is consistent with the number of core wires corresponding to the cable name, execute step S404; if the number of elements corresponding to the same cable name is inconsistent with the number of core wires corresponding to the cable name, execute step S405.

[0069] S404: Sort and organize the data in the output array.

[0070] S405: Determine whether the number of elements corresponding to the same cable name is less than the number of core wires.

[0071] If the number of elements corresponding to the same cable name is less than the number of core wires corresponding to the cable name, execute step S4061; if the number of elements corresponding to the same cable name is more than the number of core wires corresponding to the cable name, execute step S4062.

[0072] S4061: Complete the data in the output array based on the difference between the number of elements and the number of cores.

[0073] S4062: Issue a quantity recognition abnormality warning message.

[0074] For example, Figure 6 A schematic diagram of a quantity recognition abnormal warning message provided by an embodiment of the present invention. Figure 6 As shown in the figure, when the number of elements with the cable name of 1G1A is greater than the number of cores corresponding to the cable name, "The number of cable 1G1A terminals is greater than the number of cores" can be issued to remind designers to confirm whether they need to check and modify. It should be noted that when compiling cable sheath details, it is generally not allowed that the number of elements is greater than the number of cores, but there may be special circumstances. Therefore, no mandatory modification is given, and only abnormal warning information is given.

[0075] Specifically, based on the order of the elements in the cable information array, the core wire diameter and the number of core wires of each element in the cable information array (recorded as the dlxxsz array) are determined in turn to generate an output array (recorded as the shcsz array). The data of each element in the cable information array (recorded as the dlxxsz array), as well as the corresponding core wire diameter and the number of core wires are saved in the output array (recorded as the shcsz array). It is determined whether the number of elements with the same cable name in the cable information array (recorded as the dlxxsz array) or the output array (recorded as the shcsz array) is consistent with the number of core wires of the cable name. If the number of elements with the same cable name is less than the number of core wires, it is completed in the shcsz array; if the number of elements with the same cable name is more than the number of core wires, an abnormal prompt is given.

[0076] See also Figure 4 As shown, in the above step S4, when it is necessary to compile the cable sheath details, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array, and further comprising:

[0077] S407: Sort the elements in the output array based on the core wire diameter.

[0078] In this embodiment, since the elements in the output array are sorted by device name and cable name, after sorting the elements in the output array by core wire diameter, the device name and cable name are also sorted in the elements with the same core wire diameter.

[0079] S408: Create a corresponding worksheet based on the sorting result.

[0080] In this embodiment, the worksheet includes but is not limited to: a cable information table recording different cable specifications and a worksheet named cable core diameter. Specifically, based on the sorting result of the core diameter, the worksheet named cable core diameter can be created by sequentially using different cable core diameters in the output array.

[0081] S409: Based on the core wire diameter and data editing rules, the data in the output array is copied to the corresponding worksheet to generate the cable sheath details.

[0082] Among them, the data editing rules can be understood as the specifications and guidelines that need to be followed in the process of editing the cable sheath details. Typically, the data editing rules include but are not limited to: elements with the same device name need to present several device names, and which column different cable information is recorded in. Exemplarily, the data editing rules of the present application include: elements with the same device name only copy one device name in the first row and first column of the worksheet, copy the terminal number and cable name in sequence below the first row and first column, and copy the cable specifications in sequence below the first row and second column.

[0083] S410: Export cable conduit details.

[0084] In this embodiment, the cable sheath details that have completed data replication are automatically saved in the folder where the corresponding electrical schematic diagram or electrical wiring diagram is located. If a file with the same name has already been saved in the folder where the current electrical schematic diagram or electrical wiring diagram is located, a prompt will be given to remind the designer to confirm whether to replace the original file. If the designer selects "Yes", the latest exported cable sheath details will replace the original file; if the designer selects "No", the designer can enter the name of the file in the dialog box of the current electrical schematic diagram or electrical wiring diagram and save it; if the designer chooses to cancel, the currently exported cable sheath details are not saved and need to be manually saved in the electronic spreadsheet.

[0085] Specifically, the elements in the output array are sorted by core wire diameter, and the sorted elements are filled into the created worksheet.

[0086] For example, Figure 7 A schematic diagram of a worksheet provided in an embodiment of the present invention, Figure 7 The worksheet shown is a cable information sheet for recording different cable specifications. Figure 7 As shown, open the spreadsheet workbook, create a worksheet named "Cable Information Table", and enter "Device Name", "Cable Name", "Cable Specification", "Cable Core Number", "Terminal Number", and "Cable Core Diameter" in the cells of the first row of the worksheet. Starting from the second row, copy the elements of each column in the output array to the worksheet in sequence.

[0087] For example, Figure 8 A schematic diagram of another worksheet provided in an embodiment of the present invention, Figure 8 The worksheets shown are named after the cable core diameter. Figure 8As shown, based on the sorting results of the core wire diameters, a worksheet named Cable Core Wire Diameter is created with different cable core wire diameters in the output array in sequence. For example, "1.5" represents a worksheet with a cable core wire diameter of 1.5 mm, and based on the data editing rules, the elements with the same diameter as the current cable core wire are copied to the worksheet named Current Cable Core Wire Diameter. After copying one worksheet, the next worksheet is created.

[0088] Therefore, by creating worksheets in different forms, a detailed general table of cable sheathing and sub-tables corresponding to different core wire diameters are formed, which is easy to use.

[0089] Fig. 9 A flowchart of a method for obtaining a cable information array provided by an embodiment of the present invention. Fig. 9 As shown, in the above step S2, in response to the editing operation on the dialog window, a cable information array is generated, and the data in the cable information array is displayed in the data display area, including:

[0090] S201: generating data to be edited in response to an input operation on a data editing area, and storing the data to be edited into a cable information array.

[0091] Specifically, see Figure 2 and Figure 3 As shown, after the designer selects the "Enter Information" option, the data entry operation is performed. Entering data in the check boxes corresponding to the device name, cable name, cable specification, cable core number and terminal number includes but is not limited to the following three methods: the first is keyboard input, specifically, the designer can enter the corresponding cable information in the check box through the keyboard according to the electrical schematic diagram or electrical wiring diagram; the second is feature picking input, specifically, the designer can double-click the left mouse button to select any check box, then click the left mouse button in the electrical schematic diagram or electrical wiring diagram to pick up the content, click the right mouse button to complete the picking, and determine the corresponding cable information based on the picked content in the table, and write it into the corresponding check box. It should be noted that each picking operation only records the first picked content; the third is drop-down list selection input, specifically, the designer can select the drop-down list of any check box by clicking the left mouse button, the drop-down list records the pre-stored cable information, and the designer can select the corresponding cable information by clicking the left mouse button.

[0092] For example, Fig.10 A schematic diagram of obtaining input data based on a drop-down list provided by an embodiment of the present invention. Fig.10 As shown in the figure, click the "Enter Information" button each time you enter a piece of data. The device name, cable name and cable specification are the data that must be entered.

[0093] S202: In response to a delete operation on the data editing area or the data display area, at least partially delete the cable information array.

[0094] See also Figure 2 and Figure 3 As shown, after the designer selects the "Delete Information" option, the data deletion operation is performed. There are three ways to delete erroneous data: the first is keyboard input, specifically, the designer can delete the corresponding cable information in the check box through the keyboard; the second is to select and delete data based on the drop-down list, specifically, the designer can select the content in the drop-down list of the check boxes corresponding to the device name, cable name, cable specification, cable core number and terminal number, select any element by left-clicking, and right-clicking to confirm and perform the deletion operation; the third is to select and delete data in the data display area, specifically, the designer can click to select any element in the "Entered Cable List", and right-click to confirm and perform data deletion.

[0095] Optionally, in the above step S2, in response to the editing operation on the dialog window, a cable information array is generated, and the data in the cable information array is displayed in the data display area, and it also includes: if there are multiple cable-belonging devices for a cable, a prompt message is issued. Specifically, under normal circumstances, a device can have multiple cables, but a cable only corresponds to one device. Therefore, if data is found that a cable name corresponds to multiple device names, a prompt is issued, and the data in the cable information array is not sorted.

[0096] For example, Fig.11 A schematic diagram of a cable attribution abnormal prompt information provided by an embodiment of the present invention. Fig.11 As shown, if a cable belongs to multiple devices, the following prompt message is issued: "The cable code may be repeated across devices", reminding the designer to confirm whether a check is needed.

[0097] Optionally, data to be edited is generated in response to an entry operation for a data editing area, and the data to be edited is stored in a cable information array, including: obtaining a target check box that changes in response to the entry operation; identifying subsidiary check boxes whose cable information levels are lower than the target check box, and clearing initial data in the subsidiary check boxes; after the target check box is filled with data, generating data to be edited corresponding to the subsidiary check box according to the data filled in the target check box.

[0098] Specifically, taking the example of setting the device name check box at the top layer of the data editing area, the cable name check box at the second layer of the data editing area, the cable specification check box at the third layer of the data editing area, the cable core number check box at the fourth layer of the data editing area and the terminal number check box at the fifth layer of the data editing area, the data editing process in different check boxes is explained in detail.

[0099] If the data in the checkbox corresponding to the device name changes, the contents of the remaining checkboxes will be cleared. If a device name is selected in the drop-down list of the checkbox corresponding to the device name, the data in the drop-down list of the checkbox corresponding to the cable name is the cable name corresponding to the device name.

[0100] If the data in the checkbox corresponding to the cable name changes, the contents of the checkboxes corresponding to the cable specification, cable core number, and terminal number are cleared. If a cable name is selected in the drop-down list of the checkbox corresponding to the cable name, the data in the checkbox corresponding to the cable specification is unique, and the data in the drop-down list of the checkbox corresponding to the cable core number is the core number corresponding to the cable name.

[0101] If the data in the checkbox corresponding to the cable core number changes, the content of the checkbox corresponding to the terminal number is cleared. If a cable core number is selected in the drop-down list of the checkbox corresponding to the cable core number, the data in the checkbox corresponding to the terminal number is unique.

[0102] Therefore, the cable data can be quickly edited through the cable information level, which improves the design efficiency and reduces the labor cost.

[0103] Optionally, in the above step S201, in response to the input operation for the data editing area, the data to be edited is generated and stored in the cable information array, and it also includes: when there is an abnormal symbol (such as a space) in the input cable specification string, a warning message for re-entering the data is issued. Specifically, if there is a space in the middle of the input cable specification string, it is judged that the input data is incorrect, and a prompt is given to require the user to re-enter the data. The correctly input data is stored in the cable information array.

[0104] For example, Fig.12 A schematic diagram of an abnormal data input prompt message provided by an embodiment of the present invention. Fig.12 As shown, when there are abnormal symbols (such as spaces) in the entered cable specification string, the following prompt message is issued: "The current cable specification entry is incorrect, please check, modify and re-enter."

[0105] Fig.13A flow chart of a method for entering data required for a cable information array provided by an embodiment of the present invention.

[0106] See also Fig.13 As shown, the method for entering the data required for the cable information array includes:

[0107] S1301: Information entry begins.

[0108] S1302: Enter data based on any one of keyboard input, feature picking and drop-down list selection.

[0109] S1303: Determine whether there is a space in the cable specification character string.

[0110] If there is a space in the cable specification string, return to re-execute step S1301; if there is no space in the cable specification string, execute step S1304.

[0111] S1304: Save the entered data into the cable information array.

[0112] S1305: Add the entered data to the corresponding drop-down list.

[0113] S1306: Sort the elements of the cable information array.

[0114] S1307: Copy the data in the cable information array to the data display area.

[0115] S1308: Information entry is completed.

[0116] Optionally, in the above step S202, the cable information array is at least partially deleted in response to a deletion operation on the data editing area or the data display area, including: obtaining deleted data based on the deletion operation type, and adaptively adjusting the associated data according to the cable information level of the deleted data.

[0117] For example, Fig.14 A schematic diagram of selecting and deleting data based on a cable list provided by an embodiment of the present invention. Fig.14 As shown, you can select the data to be deleted from the "Entered Cable List" displayed in the data display area of ​​the dialog window, and make adaptive adjustments to the associated data according to the cable information level of the deleted data. Finally, enter the data in the cable information array after the deletion operation into the "Entered Cable List" list box in the data display area of ​​the dialog window.

[0118] Fig.15A schematic diagram of deleting data provided by an embodiment of the present invention exemplarily shows a method of deleting the data of an entire device and all its cables. If there is data only in the check box corresponding to the device name, and no data in the other check boxes, the data of the entire device and all its cables will be deleted. Specifically, when executing the operation of deleting the data of the entire device and all its cables, it is only necessary to find that the data in the device name column in the cable information array is consistent with the data in the list box corresponding to the device name in the dialog window, and then perform the above-mentioned deletion operation, and sequentially search and delete until the last element in the cable information array. After completing the deletion operation, the remaining device names in the cable information array are reassigned to the drop-down list in the list box corresponding to the device name, and the contents and drop-down lists in other list boxes are cleared.

[0119] Fig.16 Another schematic diagram of deleting data provided by an embodiment of the present invention exemplarily shows a method for deleting the data of an entire cable and all its core wires. If there is data only in the check boxes corresponding to the device name and the cable name, and there is no data in the other check boxes, the data of the entire cable and all its core wires are deleted. Specifically, when executing the operation of deleting the data of the entire cable and all its core wires, it is necessary to find that the data in the device name column and the cable name column in the cable information array are consistent with the data in the list boxes corresponding to the device name and the cable name in the dialog window, respectively, then the above-mentioned deletion operation is performed, and the deletion is sequentially searched and deleted until the last element in the cable information array. After completing the deletion operation, the remaining cable names corresponding to the current device name in the cable information array are reassigned to the drop-down list in the list box corresponding to the cable name, and the contents and drop-down lists in the list boxes of cable specifications, cable core wire numbers and cable terminal numbers are cleared.

[0120] Fig.17 Another schematic diagram of deleting data provided by an embodiment of the present invention exemplarily shows a method for deleting the current core wire data of the current cable. If there is data in the check boxes corresponding to the device name, cable name and cable core wire, only the data of the current core wire of the current cable will be deleted. Specifically, when executing the operation of deleting the current core wire data of the current cable, it is necessary to find that the data in the device name column, cable name column and cable core wire number column in the cable information array are consistent with the data in the list boxes corresponding to the device name, cable name and cable core wire number in the dialog window, respectively, and then perform the above-mentioned deletion operation. Here, only one data needs to be deleted to complete the deletion operation, and no cyclic search and deletion is performed. After completing the deletion operation, the remaining cable core wire numbers corresponding to the current device name and cable name in the cable information array are reassigned to the drop-down list in the cable core wire number corresponding list box, and the content and drop-down list in the cable terminal number list box are cleared.

[0121] Optionally, in the above step S202, the cable information array is at least partially deleted in response to a deletion operation on the data editing area or the data display area, including: writing all the data in the cable information array into an auxiliary array; when the data of any element in the cable information array is the same as the data to be deleted, copying the data of the next element corresponding to the element in the auxiliary array to the position of the element in the cable information array, and copying the data of the remaining elements in the auxiliary array to the position of the previous element corresponding to the remaining elements in the cable information array in turn.

[0122] Specifically, when performing the deletion operation, an auxiliary array (denoted as fzsz) is required to record the data in the cable information array (denoted as dlxxsz) before the deletion. The cable information array is searched sequentially. When an element in the cable information array is found to be the same as the data to be deleted, the element is skipped, and the next element data of the element is copied from the auxiliary array to the position of the element in the cable information array. Then, the next element data is copied to the position of the previous element in the cable information array in sequence, and the total number of elements in the cable information array is reduced by 1 to implement the operation of deleting the element.

[0123] Fig.18 A flowchart of a method for deleting data in a cable information array provided by an embodiment of the present invention. Fig.18 As shown, the method for deleting data in the cable information array includes:

[0124] S1801: Deletion of information begins.

[0125] S1802: Select the data to be deleted based on any one of keyboard input, feature picking and drop-down list selection.

[0126] S1803: Identify the type of data to be deleted.

[0127] S1811: Deletes data for the entire device and all its cables.

[0128] S1812: Copy the data in the cable information array to the auxiliary array.

[0129] S1813: Sequentially search the cable information array to find the position of the element that needs to be deleted.

[0130] S1814: Starting from the position of the element to be deleted, copy the next element from the auxiliary array to the position of the previous element in the cable information array, and reduce the number of elements in the cable information array by 1.

[0131] S1815: Loop to search and delete until the last element in the cable information array is completed.

[0132] S1821: Delete the data of the entire cable and all its cores.

[0133] S1822: Copy the data in the cable information array to the auxiliary array.

[0134] S1823: Sequentially search the cable information array to find the position of the element that needs to be deleted.

[0135] S1824: Starting from the position of the element to be deleted, copy the next element from the auxiliary array to the position of the previous element in the cable information array, and reduce the number of elements in the cable information array by 1.

[0136] S1825: Loop to search and delete until the last element in the cable information array is completed.

[0137] S1831: Delete the data of the current core wire of the current cable.

[0138] S1832: Copy the data in the cable information array to the auxiliary array.

[0139] S1833: Sequentially search the cable information array to find the position of the element that needs to be deleted.

[0140] S1834: Starting from the position of the element to be deleted, copy the next element from the auxiliary array to the position of the previous element in the cable information array, and the number of elements in the cable information array is reduced by 1.

[0141] S1804: Copy the data in the cable information array to the list box in the data display area

[0142] S1805: Deletion of information is completed.

[0143] Optionally, determining whether it is necessary to compile the cable sheath details is based on the cable information array, including: obtaining cable specification strings of all cables based on the cable information array; when there is no characteristic character (such as the character "X") in any cable specification string, issuing a prompt message that it is not necessary to compile the cable sheath details; when the characteristic character exists in all cable specification strings, determining that the cable sheath details need to be compiled.

[0144] Specifically, the cable specifications that need to be prepared into cable sheaths include the following three types as an example: the first type is a multi-core cable, such as 2X1.5, with a core wire diameter of 1.5mm and 2 core wires; the second type is a twisted pair cable, such as 2X2X0.75, with a core wire diameter of 0.75mm and 2X2=4 core wires; the third type is a variable frequency cable: such as 3X120+3X6, with a core wire diameter of 120mm and 3 core wires; if there is no "X" character in the cable specification string of an element in the cable information array, the cable is not a cable that needs to be prepared into a cable sheath (it may be a random cable or others), an error is reported and inspection and modification are required.

[0145] For example, Fig.19 A schematic diagram of a prompt message that does not require the preparation of a cable conduit book provided by an embodiment of the present invention. Fig.19 As shown, if there is no "X" character in the cable specification string of cable 1G1A in the cable information array, the following prompt message is issued: "The cable specification of cable 1G1A does not need to print the cable sheath. Please check whether the input is correct and modify it."

[0146] Based on the same inventive concept as the above embodiments, an embodiment of the present invention further provides a cable sheath detail editing device, which can execute the cable sheath detail editing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0147] Fig. 20 The present invention provides a schematic diagram of the structure of a cable sheath detail editing device. Fig. 20 As shown, the cable sheath detail editing device includes: an interaction module 101, a data processing module 102, a judgment module 103 and an output module 104.

[0148] Among them, the interactive module 101 is used to establish a dialogue window based on the cable information level, and the dialogue window at least includes: a data editing area and a data display area; the data processing module 102 is used to generate a cable information array in response to the editing operation on the dialogue window, and display the data in the cable information array in the data display area; the judgment module 103 is used to determine whether it is necessary to compile the cable sheath details according to the cable information array; the output module 104 is used to determine the number of core wires and the core wire diameter according to the cable information array when it is necessary to compile the cable sheath details, and generate the cable sheath details according to the number of core wires, the core wire diameter and the cable information array.

[0149] Optionally, the output module 104 is configured to: identify the number of core wires and the core wire diameter corresponding to each element in turn based on the sorting of elements in the cable information array, and save the data stored in the element and the number of core wires and the core wire diameter corresponding to the element in the output array; obtain the number of elements with the same cable name in the cable information array; when the number of elements is less than the number of core wires corresponding to the cable name, complete the data in the output array based on the difference between the number of elements and the number of core wires; when the number of elements is more than the number of core wires corresponding to the cable name, issue a quantity recognition abnormality warning message.

[0150] Optionally, the output module 104 is further configured to: sort the elements in the output array based on the core wire diameter; create a corresponding worksheet based on the sorting result; copy the data in the output array to the corresponding worksheet based on the core wire diameter and data editing rules to generate the cable sheath details.

[0151] Optionally, the data processing module 102 is configured to: generate data to be edited in response to an entry operation on the data editing area, and store the data to be edited into the cable information array; and at least partially delete the cable information array in response to a deletion operation on the data editing area or the data display area.

[0152] Optionally, the data processing module 102 is configured to: obtain a target check box that changes in response to an input operation; identify subsidiary check boxes whose cable information levels are lower than the target check box, and clear initial data in the subsidiary check boxes; after the target check box is filled with data, generate data to be edited corresponding to the subsidiary check box based on the data filled in the target check box.

[0153] Optionally, the data processing module 102 is also configured to: write all the data in the cable information array into the auxiliary array; when the data of any element in the cable information array is the same as the data to be deleted, copy the data of the next element corresponding to the element in the auxiliary array to the position of the element in the cable information array, and copy the data of the remaining elements in the auxiliary array to the position of the previous element corresponding to the remaining elements in the cable information array in turn.

[0154] Optionally, the judgment module 103 is configured to: obtain cable specification strings of all cables based on the cable information array; when there are no characteristic characters in any cable specification string, issue a prompt message that it is not necessary to compile the cable sheath details; when there are characteristic characters in all cable specification strings, determine that it is necessary to compile the cable sheath details.

[0155] Optionally, the cable information level satisfies: the information level of the cable device name is higher than the information level of the cable name; the information level of the cable name is higher than the information level of the cable specification; the information level of the cable specification is higher than the information level of the cable core number; the information level of the cable core number is higher than the information level of the terminal number.

[0156] Based on the above embodiments, an embodiment of the present invention further provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cable sheath detail editing method provided in any of the above embodiments.

[0157] Fig.21 A schematic diagram of the structure of an electronic device for implementing the cable sheath detail editing method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0158] like Fig.21 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0159] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0160] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the cable sheath detail editing method described above.

[0161] In some embodiments, the cable sheath detail editing method described above may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the cable sheath detail editing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the cable sheath detail editing method described above in any other appropriate manner (e.g., by means of firmware).

[0162] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0163] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0164] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0165] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0166] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0167] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0168] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0169] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for editing cable sheath details, characterized in that: include: Establishing a dialogue window based on the cable information level, the dialogue window at least includes: a data editing area and a data display area; Generate a cable information array in response to an editing operation on the dialog window, and display the data in the cable information array in the data display area; Determining whether it is necessary to compile cable sheath details according to the cable information array; When the cable sheath details need to be compiled, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array.

2. The cable sheath detail editing method according to claim 1, characterized in that: When the cable sheath details need to be compiled, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array, including: Based on the order of the elements in the cable information array, sequentially identify the number of core wires and the core wire diameter corresponding to each element, and save the data stored in the element and the number of core wires and the core wire diameter corresponding to the element in an output array; Get the number of elements with the same cable name in the cable information array; When the number of elements is less than the number of core wires corresponding to the cable name, the data in the output array is completed based on the difference between the number of elements and the number of core wires; When the number of the elements is greater than the number of core wires corresponding to the cable name, a quantity identification abnormality warning message is issued.

3. The cable sheath detail editing method according to claim 2, characterized in that: When the cable sheath details need to be compiled, the number of core wires and the core wire diameter are determined according to the cable information array, and the cable sheath details are generated according to the number of core wires, the core wire diameter and the cable information array, including: sorting the elements in the output array based on the core wire diameter; Create a corresponding worksheet based on the sorting results; Based on the core wire diameter and data editing rules, the data in the output array is copied to the corresponding worksheet to generate the cable sheath details.

4. The cable sheath detail editing method according to claim 1, characterized in that: The step of generating a cable information array in response to an editing operation on the dialog window and displaying the data in the cable information array in the data display area comprises: generating data to be edited in response to an input operation on the data editing area, and storing the data to be edited into the cable information array; The cable information array is at least partially deleted in response to a delete operation on the data editing area or the data display area.

5. The cable sheath detail editing method according to claim 4, characterized in that: The step of generating the data to be edited in response to the input operation on the data editing area and storing the data to be edited into the cable information array comprises: Acquire a target check box that changes in response to the input operation; Identifying the subsidiary checkboxes whose cable information level is lower than the target checkbox, and clearing the initial data in the subsidiary checkboxes; After the target check box is filled with data, the to-be-edited data corresponding to the subsidiary check box is generated according to the data filled in the target check box.

6. The cable sheath detail editing method according to claim 4, characterized in that: The at least partially deleting the cable information array in response to a deletion operation on the data editing area or the data display area comprises: Writing all the data in the cable information array into the auxiliary array; When the data of any element in the cable information array is the same as the data that needs to be deleted, the data of the next element corresponding to the element in the auxiliary array is copied to the position of the element in the cable information array, and the data of the remaining elements in the auxiliary array are copied in sequence to the position of the previous element corresponding to the remaining elements in the cable information array.

7. The cable sheath detail editing method according to claim 1, characterized in that: The determining whether it is necessary to compile the cable sheath details according to the cable information array includes: Obtain cable specification strings of all cables based on the cable information array; When the characteristic characters do not exist in any of the cable specification character strings, a prompt message is issued indicating that the cable sheath details do not need to be compiled; When the characteristic character exists in all the cable specification character strings, it is determined that the cable sheath details need to be compiled.

8. The cable sheath detail editing method according to any one of claims 1 to 7, characterized in that: The cable information level meets the following requirements: the information level of the cable device name is higher than the information level of the cable name; the information level of the cable name is higher than the information level of the cable specification; the information level of the cable specification is higher than the information level of the cable core number; the information level of the cable core number is higher than the information level of the terminal number.

9. A cable sheath detail editing device, characterized in that: include: An interactive module, used to establish a dialogue window based on the cable information level, the dialogue window at least comprising: a data editing area and a data display area; A data processing module, for generating a cable information array in response to an editing operation on the dialog window, and displaying the data in the cable information array in the data display area; A judgment module, used for determining whether it is necessary to compile the cable sheath details according to the cable information array; The output module is used to determine the number of core wires and the core wire diameter according to the cable information array when the cable sheath details need to be compiled, and to generate the cable sheath details according to the number of core wires, the core wire diameter and the cable information array.

10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cable sheath detail editing method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Self-made cable parameter configuration system and method and electronic equipment

    CN120724512A