Design drawing management method, device, electronic device, storage medium and product
Through the automated design drawing management method, the problem of the schematic diagram and the PCB diagram device are solved, the consistency between the schematic diagram and the PCB diagram information is achieved, and the efficiency of design drawing management is improved.
Patent Information
- Application Number
- CN202410913456.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-07-09
AI Technical Summary
During the hardware design process, due to the limitations of manual processing, the schematic diagram does not correspond to the devices of the PCB diagram, thereby reducing the efficiency of design drawing management.
Through automated design drawing management methods, obtain the pending design drawings, determine the device bit number that does not exist in the schematic diagram in the printed circuit board drawing, find the circuit network it is located, and update the corresponding information in the schematic diagram to ensure that the two consistency of the person.
Through automated processing, avoid the limitations of manual processing, ensure that the design schematic diagram is consistent with the information of the printed circuit board diagram, and improve the efficiency of design drawing management.
Smart Images

Figure CN118468797B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation technology, and in particular to a design drawing management method, device, electronic device, storage medium and product. Background Art
[0002] During the hardware design process, engineers designing hardware drawings will first design the schematic diagram and then import it into the printed circuit board (PCB) for design. This ensures that the devices in the schematic diagram and the PCB diagram can correspond one to one.
[0003] However, when designing the PCB diagram later, due to layout issues, engineers may add some auxiliary components to the PCB diagram, such as jumpers. After the PCB diagram is designed, there will be some additional components in the PCB drawing that do not exist in the schematic diagram, resulting in the one-to-one correspondence between the components in the schematic diagram and the PCB diagram.
[0004] Currently, the extra components in the PCB drawings are found manually, but due to the limitations of manual processing, there may be omissions, resulting in inconsistencies between the schematic and the PCB drawing, which in turn leads to low efficiency in the current design drawing management. Summary of the invention
[0005] The present application aims to solve at least one of the technical problems existing in the related art. To this end, the present application proposes a design drawing management method, which can improve the efficiency of design drawing management.
[0006] The present application also proposes a design drawing management device, an electronic device, a storage medium and a computer program product.
[0007] According to the first aspect of the present application, the design drawing management method includes:
[0008] Obtaining a design drawing to be processed; the design drawing to be processed includes a design schematic diagram and a printed circuit board diagram generated based on the design schematic diagram;
[0009] Determine the device bit number in the design drawing to be processed, which exists in the printed circuit board diagram but does not exist in the design schematic diagram, as the target device bit number;
[0010] For each target device number, determining in the printed circuit board diagram a first target circuit network where the device with the corresponding target device number is located;
[0011] For each first target circuit network, determining an identical second target circuit network in the design schematic;
[0012] The design schematic diagram is updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information.
[0013] According to the design drawing management method of the embodiment of the present application, after obtaining the to-be-processed design drawings including the design schematic diagram and the printed circuit board diagram generated based on the design schematic diagram, the device position number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is automatically determined as the target device position number, thereby determining the first target circuit network where the device of the corresponding target device position number is located in the printed circuit board diagram for each target device position number, and further determining the same second target circuit network in the design schematic diagram for each first target circuit network, based on which the design schematic diagram can be updated according to each target device position number and its corresponding first target circuit network, second target circuit network and device information. Therefore, through automated data processing, the limitations of manual processing can be avoided, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram, and the efficiency of design drawing management can be improved.
[0014] According to an embodiment of the present application, when the design schematic is updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information, the following operations are performed for each target device bit number:
[0015] Add the current target device number and corresponding device information to the design schematic;
[0016] Determine first network information of a first target circuit network corresponding to the current target device bit number;
[0017] According to the first network information, information association is performed between the device information corresponding to the current target device number in the design schematic and the second target circuit network corresponding to the current target device number.
[0018] According to an embodiment of the present application, the information association between the device information corresponding to the current target device number in the design schematic and the second target circuit network corresponding to the current target device number according to the first network information includes:
[0019] Add the first network information at both ends of the device information corresponding to the current target device number of the design schematic;
[0020] The first network information is added to a second target circuit network corresponding to the current target device number of the design schematic.
[0021] According to one embodiment of the present application, after obtaining the design drawing to be processed and before determining the device number in the design drawing to be processed that exists in the printed circuit board diagram but does not exist in the design schematic diagram as the target device number, it also includes:
[0022] Determine a first file storage path of a printed circuit board diagram and a second file storage path of a design schematic diagram in the design drawing to be processed;
[0023] Determine a first file name of a printed circuit board diagram and a second file name of a design schematic diagram in the design drawing to be processed;
[0024] If it is determined that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, then the step of determining the device position number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic diagram, as the target device position number is executed.
[0025] According to an embodiment of the present application, after determining that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, and before determining the device number in the to-be-processed design drawing that exists in the printed circuit board drawing but does not exist in the design schematic drawing as the target device number, it also includes:
[0026] Determining the number of printed circuit board drawings in the design drawings to be processed;
[0027] If the number of the printed circuit board drawings is equal to the preset number threshold, the step of determining the device number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number is executed.
[0028] According to an embodiment of the present application, determining the device number in the to-be-processed design drawing, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number, includes:
[0029] If it is determined that in the design drawing to be processed, each device number of the printed circuit board diagram is unique and each device number of the design schematic diagram is unique, then each device number of the printed circuit board diagram in the design drawing to be processed is respectively compared with each device number of the design schematic diagram to obtain a comparison result;
[0030] According to the comparison result, the component number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is determined as the target component number.
[0031] According to an embodiment of the present application, after determining the device number in the to-be-processed design drawing that exists in the printed circuit board drawing but does not exist in the design schematic drawing as the target device number, the method further includes:
[0032] Acquire preset association information; the preset association information includes an association relationship between a device package name and device material information; the association relationship is a relationship between a device package name and at least one device material information;
[0033] Outputting the material information of each device associated with the device package name corresponding to each target device number according to the preset association information;
[0034] Receiving target device material information determined based on each device material information associated with each target device bit number;
[0035] According to the target device material information corresponding to each target device number, the device information of the corresponding target device number is updated respectively.
[0036] According to the second aspect of the present application, a design drawing management device includes:
[0037] An acquisition module is used to acquire the design drawings to be processed; the design drawings to be processed include a design principle diagram and a printed circuit board diagram generated based on the design principle diagram;
[0038] A first determination module is used to determine the device bit number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device bit number;
[0039] A second determination module is used to determine, for each target device bit number, in the printed circuit board diagram, a first target circuit network where a device with a corresponding target device bit number is located;
[0040] A third determination module is used to determine, for each first target circuit network, an identical second target circuit network in the design schematic diagram;
[0041] The updating module is used to update the design schematic according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information.
[0042] According to an electronic device of an embodiment of the third aspect of the present application, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the design drawing management method described in any one of the above methods is implemented.
[0043] According to the storage medium of the fourth aspect of the present application, the storage medium is a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements any of the design drawing management methods described above.
[0044] According to the computer program product of the fifth aspect of the present application, the computer program includes a computer program, which, when executed by a processor, implements any of the above-mentioned design drawing management methods.
[0045] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:
[0046] Through automated data processing, the limitations of manual processing can be avoided, making the information of the design schematic consistent with that of the printed circuit board diagram, thereby improving the efficiency of design drawing management.
[0047] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 It is one of the flow charts of the design drawing management method provided in the embodiment of the present application.
[0050] Figure 2 This is the second flow chart of the design drawing management method provided in the embodiment of the present application.
[0051] Figure 3 It is a schematic diagram of the synchronization device of the design drawing management method provided in the embodiment of the present application.
[0052] Figure 4 It is a structural schematic diagram of the design drawing management device provided in an embodiment of the present application.
[0053] Figure 5 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0054] The following is a further detailed description of the implementation of the present application in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but cannot be used to limit the scope of the present application.
[0055] In the description of the embodiments of the present application, it should be noted that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the embodiments of the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0056] In the description of the embodiments of the present application, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.
[0057] In the embodiments of the present application, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0058] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0059] See also Figure 1 , Figure 1This is one of the flow charts of the design drawing management method provided in the embodiment of the present application, such as Figure 1 As shown, the design drawing management method includes:
[0060] Step 110, obtaining the design drawings to be processed.
[0061] It should be noted that the executor of the design drawing management method provided in the embodiment of the present application can be a server, a computer device, such as a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc.
[0062] The execution subject of the present application may be provided with design drawing management software, and the design drawing management software may be connected to a design drawing management device, or may communicate with the design drawing management device, so the design drawing management method of the present application may be implemented by controlling the design drawing management device.
[0063] It should be noted that in the process of hardware design, engineers designing hardware drawings will first design the schematic diagram and then import it into the PCB diagram for design, so as to ensure that the design schematic diagram (hereinafter referred to as the schematic diagram) and the devices in the PCB diagram can correspond one to one. However, when designing the PCB diagram later, due to layout problems, engineers may add some auxiliary devices to the PCB diagram, such as jumpers. After the PCB diagram is designed, there will be some more devices in the PCB diagram, which do not exist in the design schematic diagram, resulting in the devices in the design schematic diagram and the PCB diagram not corresponding one to one. Among them, the devices in the design schematic diagram and the PCB diagram can both be packaged devices.
[0064] Therefore, the present application can obtain a specified design schematic diagram and a PCB diagram generated based on the design schematic diagram as the design drawings to be processed.
[0065] Furthermore, the present application can perform drawing verification on the design schematic and the corresponding PCB diagram.
[0066] Step 120, determining the device number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number.
[0067] Furthermore, after the design schematic and its corresponding PCB drawing pass the drawing verification, the present application can compare the device position number in the design schematic with the device position number in the PCB drawing. After the comparison is completed, the device position number in the design drawing to be processed that exists in the printed circuit board drawing but does not exist in the design schematic is determined as the target device position number.
[0068] Step 130: for each target device number, determine in the printed circuit board diagram a first target circuit network where the device with the corresponding target device number is located.
[0069] After determining the target device number, the present application can find the target device number in the printed circuit board diagram for each target device number, and record the circuit networks at both ends of the device corresponding to the target device number as the first target circuit network where the device is located. That is, the target circuit network of the present application can be a circuit network composed of circuit networks at both ends of the device.
[0070] It should be noted that in the design of drawings, circuit networks are usually named according to certain naming rules. These naming rules may be based on factors such as signal function, power name, ground line, etc. By following a unified naming rule, it can be ensured that each circuit network in the PCB diagram and design schematic is unique.
[0071] Step 140 : for each first target circuit network, determine the same second target circuit network in the design schematic.
[0072] Furthermore, since each circuit network in the PCB diagram and the design schematic is unique, and the PCB diagram may have more auxiliary devices added compared to the design schematic, while the overall circuit is basically the same, the circuit networks in the PCB diagram and the design schematic except for the newly added devices are the same.
[0073] Therefore, the present application can search the design principle diagram for circuit networks corresponding to each first target circuit network as the second target circuit network. That is, each first target circuit network and its corresponding second target circuit network are the same circuit network.
[0074] Step 150 , updating the design schematic according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information.
[0075] After determining each target device number and its corresponding first target circuit network and second target circuit network, the present application can also determine the device information corresponding to the target device number, wherein the device information may include a device symbol.
[0076] Furthermore, the present application can add the device information corresponding to each target device number to the design schematic diagram.
[0077] Furthermore, first network information of a first target circuit network corresponding to the target device bit number may be obtained, wherein the first network information may include at least one of a network symbol and a network name.
[0078] Furthermore, since each first target circuit network and its corresponding second target circuit network are the same circuit network, the network information of each first target circuit network and its corresponding second target circuit network is also the same.
[0079] Therefore, the present application can associate the device information corresponding to the target device number in the design schematic with the second target circuit network corresponding to the target device number through the first network information.
[0080] Based on this, all devices corresponding to the target device bit numbers can be updated into the design schematic diagram, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram.
[0081] According to the design drawing management method of the embodiment of the present application, after obtaining the to-be-processed design drawings including the design schematic diagram and the printed circuit board diagram generated based on the design schematic diagram, the device position number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is automatically determined as the target device position number, thereby determining the first target circuit network where the device of the corresponding target device position number is located in the printed circuit board diagram for each target device position number, and further determining the same second target circuit network in the design schematic diagram for each first target circuit network, based on which the design schematic diagram can be updated according to each target device position number and its corresponding first target circuit network, second target circuit network and device information. Therefore, through automated data processing, the limitations of manual processing can be avoided, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram, and the efficiency of design drawing management can be improved.
[0082] Based on the above embodiment, when updating the design schematic according to each target device number and its corresponding first target circuit network, second target circuit network and device information, the following operations are performed for each target device number:
[0083] Step 151, adding the current target device number and corresponding device information to the design schematic;
[0084] Step 152, determining first network information of a first target circuit network corresponding to the current target device bit number;
[0085] Step 153 , according to the first network information, information association is performed between the device information corresponding to the current target device number in the design schematic and the second target circuit network corresponding to the current target device number.
[0086] When updating the design schematic according to each target device number and its corresponding first target circuit network, second target circuit network and device information, for the target device number currently being executed, the present application can add the device information corresponding to the target device number to the position specified by the engineer in the design schematic. For example, the device symbol corresponding to the target device number is added to the blank area in the lower left corner specified by the engineer in the design schematic.
[0087] Furthermore, the present application can obtain network information of the first target circuit network corresponding to the target device number as the first network information. For example, the network symbol and network name of the first target circuit network corresponding to the target device number can be obtained as the first network information.
[0088] Furthermore, since each first target circuit network and its corresponding second target circuit network are the same circuit network, the network information of each first target circuit network and its corresponding second target circuit network is also the same. Therefore, the present application can associate the device information corresponding to the target device number in the design schematic with the second target circuit network corresponding to the target device number through the first network information.
[0089] The present application can update the information of the design schematic diagram according to each target device position number and its corresponding first target circuit network, second target circuit network and device information. Since data processing is performed in an automated manner, the limitations of manual processing can be avoided, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram, thereby improving the efficiency of design drawing management.
[0090] Based on the above embodiment, according to the first network information, the device information corresponding to the current target device number in the design schematic diagram is associated with the second target circuit network corresponding to the current target device number, including:
[0091] Step 1531, adding first network information at both ends of the device information corresponding to the current target device number of the design schematic;
[0092] Step 1532, adding the first network information to the second target circuit network corresponding to the current target device number of the design schematic.
[0093] When the present application associates the device information corresponding to the current target device position number in the design schematic with the second target circuit network corresponding to the current target device position number based on the first network information, the network information of the circuit network at the corresponding end in the first network information can be specifically added at both ends of the device information corresponding to the current target device position number in the design schematic.
[0094] Furthermore, the first network information is added to the second target circuit network corresponding to the current target device number of the design schematic.
[0095] In a specific embodiment, the present application can add the network symbol and network name of the circuit network at the corresponding end in the first network information to both ends of the device information corresponding to the target device position number in the design schematic diagram when associating the device information corresponding to a target device position number in the design schematic diagram with the second target circuit network corresponding to the target device position number based on the first network information. Furthermore, the network symbol and network name of the circuit network at the corresponding end in the first network information are added to the second target circuit network corresponding to the target device position number in the design schematic diagram. It should be noted that the second target circuit network is the same as the first target circuit network, so the network symbol and network name of the circuit network at the corresponding end in the first network information of the first target circuit network can be used as the network symbol and network name of the circuit network at the corresponding end of the second target circuit network.
[0096] After determining the first network information of the first target circuit network corresponding to the target device number, the present application can associate the device information corresponding to the target device number in the design schematic with the second target circuit network corresponding to the target device number based on the first network information, thereby realizing data processing in an automated manner, avoiding the limitations of manual processing, making the information of the design schematic consistent with the information of the printed circuit board diagram, and thus improving the efficiency of design drawing management.
[0097] Based on the above embodiment, after step 110 and before step 120, the following may also be included:
[0098] Step A1, determining a first file storage path of a printed circuit board diagram and a second file storage path of a design schematic diagram in a design drawing to be processed;
[0099] Step A2, determining the first file name of the printed circuit board diagram and the second file name of the design schematic diagram in the design drawing to be processed;
[0100] Step A3, if it is determined that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, then execute the step of determining the device position number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic diagram, as the target device position number.
[0101] The present application can obtain a first file storage path of a printed circuit board diagram in a design drawing to be processed and a second file storage path of a design schematic diagram.
[0102] Furthermore, the present application can also obtain a first file name of a printed circuit board diagram in the design drawing to be processed and obtain a second file name of a design schematic diagram. It should be noted that the file name in the present application can be composed of a file name prefix and a file name extension.
[0103] Therefore, after obtaining the first file storage path of the printed circuit board diagram in the design drawing to be processed and the second file storage path of the design schematic diagram, as well as the first file name of the printed circuit board diagram in the design drawing to be processed and the second file name of the design schematic diagram, the first file storage path of the printed circuit board diagram in the design drawing to be processed and the second file storage path of the design schematic diagram can be compared, and the first file name of the printed circuit board diagram in the design drawing to be processed and the second file name of the design schematic diagram can be compared.
[0104] If it is determined through comparison that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, it can be determined that the design schematic and the PCB diagram belong to the same engineering project.
[0105] Therefore, the step of determining the device position number in the design drawing to be processed, which exists in the printed circuit board diagram but not in the design schematic diagram, as the target device position number can be executed. The specific execution process can refer to the subsequent description, and this application will not be described in detail here.
[0106] If it is determined through comparison that the first file storage path is inconsistent with the second file storage path, and the first file name and the second file name do not have the same file name prefix, it can be determined that the design schematic and the PCB diagram do not belong to the same engineering project. Therefore, relevant prompt information indicating the abnormality of the engineering project can be output. This application does not specifically limit the prompt information and can be set according to actual needs.
[0107] In this application, you can also directly query whether there is a PCB diagram with the same file name prefix under the file storage path of the design schematic diagram, thereby determining that the design schematic diagram and the PCB diagram correspond to the same engineering project.
[0108] This application automatically determines the device bit number that exists in the printed circuit board diagram but does not exist in the design schematic diagram as the target device bit number only when it is ensured that the design schematic diagram and the PCB diagram belong to the same engineering project. Thus, for each target device bit number, the first target circuit network where the device of the corresponding target device bit number is located can be determined in the printed circuit board diagram, and further for each first target circuit network, the same second target circuit network can be determined in the design schematic diagram. Based on this, the design schematic diagram can be updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information. Therefore, through automated data processing, the limitations of manual processing can be avoided, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram, and the efficiency of design drawing management can be improved.
[0109] Based on the above embodiment, the present application further includes, after determining that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, and before determining the device number in the design drawing to be processed that exists in the printed circuit board diagram but does not exist in the design schematic diagram as the target device number:
[0110] Step B1, determining the number of printed circuit board drawings in the design drawing to be processed;
[0111] Step B2, if the number of printed circuit board drawings is equal to the preset number threshold, then execute the step of determining the device number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number.
[0112] After determining that the first file storage path is consistent with the second file storage path and that the first file name and the second file name have the same file name prefix, the present application determines that the design schematic and the PCB diagram belong to the same engineering project. The present application can further determine whether the PCB diagram is unique, and therefore can determine the number of printed circuit board diagrams in the design drawings to be processed, that is, query the number of PCB diagrams in the design drawings to be processed that are in the same engineering project as the design schematic.
[0113] Furthermore, the number of determined printed circuit board diagrams can be compared with a preset number threshold (which can be 1 in this application). If it is determined that the number of printed circuit board diagrams is equal to the preset number threshold, it can be determined that the PCB diagram in the design drawing to be processed that is in the same engineering project as the design schematic diagram is unique. Therefore, the step of determining the device position number in the design drawing to be processed that exists in the printed circuit board diagram but does not exist in the design schematic diagram as the target device position number is executed. The specific execution process can refer to the subsequent description, and this application will not be described in detail here.
[0114] If it is determined that the number of printed circuit board drawings is greater than the preset number threshold, it can be determined that the PCB drawings in the to-be-processed design drawings that are in the same engineering project as the design schematics are not unique. Therefore, relevant prompt information indicating that the number of PCB drawings is abnormal can be output. This application does not specifically limit the prompt information and can be set according to actual needs.
[0115] This application automatically determines the device bit number that exists in the printed circuit board diagram but does not exist in the design schematic diagram as the target device bit number only when it is ensured that the design schematic diagram and the PCB diagram belong to the same engineering project and the PCB diagram is unique. Thus, for each target device bit number, the first target circuit network where the device of the corresponding target device bit number is located can be determined in the printed circuit board diagram, and further for each first target circuit network, the same second target circuit network can be determined in the design schematic diagram. Based on this, the design schematic diagram can be updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information. Therefore, through automated data processing, the limitations of manual processing can be avoided, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram, and the efficiency of design drawing management can be improved.
[0116] Based on the above embodiment, the above step 120 may include:
[0117] Step 121, if it is determined that each device bit number of the printed circuit board diagram in the design drawing to be processed is unique and each device bit number of the design schematic diagram is unique, then each device bit number of the printed circuit board diagram in the design drawing to be processed is compared with each device bit number of the design schematic diagram to obtain a comparison result;
[0118] Step 122, according to the comparison result, the device number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is determined as the target device number.
[0119] The present application can extract all device bit numbers in the design schematic and the PCB diagram, and determine whether each device bit number in the design schematic is unique and whether each device bit number in the PCB diagram is unique.
[0120] If it is determined that any device position number in the design schematic or PCB diagram is not unique, relevant prompt information indicating that the device position number in the PCB diagram is abnormal can be output. This application does not specifically limit the prompt information and can be set according to actual needs.
[0121] Furthermore, if it is determined that in the design drawing to be processed, each device number of the printed circuit board diagram is unique and each device number of the design schematic diagram is unique, then each device number of the printed circuit board diagram in the design drawing to be processed is compared with each device number of the design schematic diagram to obtain a comparison result. In this way, it is determined whether the PCB diagram contains a device number that exists in the printed circuit board diagram but does not exist in the design schematic diagram. If it does, the device number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is determined as the target device number.
[0122] This application automatically determines the device bit number that exists in the printed circuit board diagram but does not exist in the design schematic diagram as the target device bit number, thereby determining the first target circuit network where the device with the corresponding target device bit number is located in the printed circuit board diagram for each target device bit number, and further determining the same second target circuit network in the design schematic diagram for each first target circuit network, based on which the design schematic diagram can be updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information. Therefore, through automated data processing, the limitations of manual processing can be avoided, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram, thereby improving the efficiency of design drawing management.
[0123] Based on the above embodiment, the above step 120 may further include:
[0124] Step C1, obtaining preset association information; the preset association information includes an association relationship between a device package name and device material information; the association relationship is a relationship between a device package name and at least one device material information;
[0125] Step C2, outputting the material information of each device associated with the device package name corresponding to each target device number according to the preset association information;
[0126] Step C3, receiving target device material information determined based on each device material information associated with each target device bit number;
[0127] Step C4, according to the target device material information corresponding to each target device bit number, respectively update the device information of the corresponding target device bit number.
[0128] This application can pre-set a configuration file, which can be called. In the configuration file, the association relationship between each device package name and one or more corresponding recommended device material information is pre-set. Among them, the device material information may include but is not limited to the device model, material code, material description, material life cycle status, etc.
[0129] Therefore, after determining the device position number in the design drawing to be processed that exists in the printed circuit board diagram but does not exist in the design schematic diagram as the target device position number, the present application can also call the configuration file and obtain the preset association information in the configuration file.
[0130] Furthermore, for each target device number, its device package name can be determined according to its device attributes.
[0131] Therefore, for each target device number, this application can determine the device material information associated with the device package name corresponding to the target device number based on the preset association information, and output the device material information for the user to select. If a device package name has multiple device material information, it is allowed to be selected in the drop-down box of the interface. After the user selects and confirms the device material information, he can click the "Execute" button to let the software execute.
[0132] For any target device position number, the target device material information determined by the user after selection based on the output material information of each device can be received, and the device information of the target device position number can be further updated according to the target device material information, so that the device information of the target device position number can include the device symbol and device model, material code, material description, material life cycle status and other information.
[0133] Furthermore, when the target device position number and the corresponding device information are added to the design schematic, the device symbol corresponding to the target device position number and the device model, material code, material description, material life cycle status and other information can be added to the design schematic, making the device information in the design schematic richer.
[0134] The present application can set one or more device material information for each device package name for the user to select, and update the device information according to the device material information selected by the user, thereby enriching the device information in the design schematic diagram and facilitating the user to more accurately capture the newly added devices in the design schematic diagram.
[0135] This application aims to solve the problem that there is no one-to-one correspondence between the components in the design schematic diagram after the PCB diagram is designed, so as to meet the needs of engineers to quickly and accurately find the newly added components in the PCB diagram and place them back to the design schematic diagram after selection, thereby ensuring the consistency between the design schematic diagram and the PCB diagram, improving the efficiency of drawing drawings, and improving user experience.
[0136] Figure 2 This is the second flow chart of the design drawing management method provided in the embodiment of the present application, such as Figure 2As shown, in one embodiment, after the user starts the software, the software can check whether the current schematic diagram and the PCB diagram are in the same project (specifically the same project file). If not, it is determined to be a failure, that is, if the software checks that the schematic diagram and the PCB diagram are not in the same project file, the software stops running and reminds the user; if so, it is determined to be a success, and the software can further check whether there is only one PCB diagram in the project file. If not, it is determined to be a failure, that is, if the software checks that there are multiple PCB diagrams in the project file, the software stops running and reminds the user; if so, it is determined to be a success, and the software can record the device bit numbers in the schematic diagram and the PCB diagram in the project file respectively.
[0137] Furthermore, the software can check whether each bit number appears only once in the schematic diagram or PCB diagram. If not, it is determined to be failed. That is, if the same bit number is found to appear multiple times in the schematic diagram or PCB diagram, the software will stop running and remind the user; if it is, it is determined to be passed. The software can compare the bit numbers in the schematic diagram with the PCB diagram, find and record the bit numbers that exist in the PCB diagram but not in the schematic diagram.
[0138] In this application, a configuration file can be provided in advance: in the configuration file, each package name has one or more corresponding recommended device models. Furthermore, the software finds the device corresponding to the bit number recorded in the previous step in the PCB diagram, and captures the package name in each device attribute. According to the package name, the corresponding recommended device model is found in the configuration file. In the user interface, each bit number recorded in the previous step is listed, and the information of the recommended material corresponding to each bit number is also displayed.
[0139] Furthermore, after the engineer has selected and confirmed the material, he can click "Execute", and the software can find the corresponding device in the PCB diagram display interface and record the network at both ends of the device.
[0140] Furthermore, the engineer places the selected components at the specified location through the software, and adds the network symbols of the corresponding network at both ends of each component. At the same time, the software also adds network symbols to the existing networks in the schematic diagram. Figure 3 is a schematic diagram of the synchronization device of the design drawing management method provided in the embodiment of the present application, such as Figure 3 As shown, the selected device (pulse F4) is placed at the specified position of the schematic diagram containing power supply E3, diode D1 and capacitor C2, and the network symbol (Port1) of the corresponding network is added at both ends of the device. At the same time, the software also adds the network symbol (Port1) to the network already existing in the schematic diagram.
[0141] The software is executed, achieving one-to-one correspondence between the components and connection networks in the PCB diagram and the schematic diagram.
[0142] Figure 4 is a schematic diagram of the structure of the design drawing management device provided in the embodiment of the present application, such as Figure 4 As shown, the design drawing management device comprises:
[0143] The acquisition module 410 is used to acquire the design drawings to be processed; the design drawings to be processed include the design principle diagram and the printed circuit board diagram generated based on the design principle diagram;
[0144] A first determination module 420 is used to determine the device number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number;
[0145] A second determination module 430 is used to determine, for each target device bit number, in the printed circuit board diagram, a first target circuit network where a device having a corresponding target device bit number is located;
[0146] A third determination module 440 is used to determine, for each first target circuit network, an identical second target circuit network in the design schematic diagram;
[0147] The updating module 450 is used to update the design schematic according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information.
[0148] According to the design drawing management device of the embodiment of the present application, after obtaining the to-be-processed design drawings including the design schematic diagram and the printed circuit board diagram generated based on the design schematic diagram, the device position number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is automatically determined as the target device position number, thereby determining the first target circuit network where the device with the corresponding target device position number is located in the printed circuit board diagram for each target device position number, and further determining the same second target circuit network in the design schematic diagram for each first target circuit network, based on which the design schematic diagram can be updated according to each target device position number and its corresponding first target circuit network, second target circuit network and device information. Therefore, through automated data processing, the limitations of manual processing can be avoided, so that the information of the design schematic diagram is consistent with the information of the printed circuit board diagram, thereby improving the efficiency of design drawing management.
[0149] Based on any of the above embodiments, the acquisition module 410 is further used for:
[0150] Determine a first file storage path of a printed circuit board diagram and a second file storage path of a design schematic diagram in the design drawing to be processed;
[0151] Determine a first file name of a printed circuit board diagram and a second file name of a design schematic diagram in the design drawing to be processed;
[0152] If it is determined that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, then the step of determining the device position number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic diagram, as the target device position number is executed.
[0153] Based on any of the above embodiments, the acquisition module 410 is further used for:
[0154] Determining the number of printed circuit board drawings in the design drawings to be processed;
[0155] If the number of the printed circuit board drawings is equal to the preset number threshold, the step of determining the device number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number is executed.
[0156] Based on any of the above embodiments, the first determining module 420 is specifically configured to:
[0157] If it is determined that in the design drawing to be processed, each device number of the printed circuit board diagram is unique and each device number of the design schematic diagram is unique, then each device number of the printed circuit board diagram in the design drawing to be processed is respectively compared with each device number of the design schematic diagram to obtain a comparison result;
[0158] According to the comparison result, the component number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is determined as the target component number.
[0159] Based on any of the foregoing embodiments, the first determining module 420 is further configured to:
[0160] Acquire preset association information; the preset association information includes an association relationship between a device package name and device material information; the association relationship is a relationship between a device package name and at least one device material information;
[0161] Outputting the material information of each device associated with the device package name corresponding to each target device number according to the preset association information;
[0162] Receiving target device material information determined based on each device material information associated with each target device bit number;
[0163] According to the target device material information corresponding to each target device number, the device information of the corresponding target device number is updated respectively.
[0164] Based on any of the above embodiments, the updating module 450 is specifically used for:
[0165] Add the current target device number and corresponding device information to the design schematic;
[0166] Determine first network information of a first target circuit network corresponding to the current target device bit number;
[0167] According to the first network information, information association is performed between the device information corresponding to the current target device number in the design schematic and the second target circuit network corresponding to the current target device number.
[0168] Based on any of the above embodiments, the updating module 450 includes an association unit, and the association unit is used to:
[0169] Add the first network information at both ends of the device information corresponding to the current target device number of the design schematic;
[0170] The first network information is added to a second target circuit network corresponding to the current target device number of the design schematic.
[0171] Based on the same idea as the method in the above-mentioned embodiment, the design drawing management device provided by the present application can implement the method in the above-mentioned embodiment. For the convenience of explanation, the structural diagram of the device embodiment only shows the parts related to the embodiment of the present application. Technical personnel in this field can understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0172] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the following method: obtaining a design drawing to be processed; the design drawing to be processed includes a design schematic diagram and a printed circuit board diagram generated based on the design schematic diagram;
[0173] Determine the device bit number in the design drawing to be processed, which exists in the printed circuit board diagram but does not exist in the design schematic diagram, as the target device bit number;
[0174] For each target device number, determining in the printed circuit board diagram a first target circuit network where the device with the corresponding target device number is located;
[0175] For each first target circuit network, determining an identical second target circuit network in the design schematic;
[0176] The design schematic diagram is updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information.
[0177] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0178] On the other hand, the embodiments of the present application further provide a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the methods provided in the above embodiments, for example, including: obtaining a design drawing to be processed; the design drawing to be processed includes a design schematic diagram and a printed circuit board diagram generated based on the design schematic diagram;
[0179] Determine the device bit number in the design drawing to be processed, which exists in the printed circuit board diagram but does not exist in the design schematic diagram, as the target device bit number;
[0180] For each target device number, determining in the printed circuit board diagram a first target circuit network where the device with the corresponding target device number is located;
[0181] For each first target circuit network, determining an identical second target circuit network in the design schematic;
[0182] The design schematic diagram is updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information.
[0183] On the other hand, the embodiments of the present application further provide a computer program product having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the methods provided in the above embodiments, for example, including: obtaining a design drawing to be processed; the design drawing to be processed includes a design schematic diagram and a printed circuit board diagram generated based on the design schematic diagram;
[0184] Determine the device bit number in the design drawing to be processed, which exists in the printed circuit board diagram but does not exist in the design schematic diagram, as the target device bit number;
[0185] For each target device number, determining in the printed circuit board diagram a first target circuit network where the device with the corresponding target device number is located;
[0186] For each first target circuit network, determining an identical second target circuit network in the design schematic;
[0187] The design schematic diagram is updated according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information.
[0188] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.
[0190] Finally, it should be noted that the above implementation modes are only used to illustrate the present application, rather than to limit the present application. Although the present application is described in detail with reference to the embodiments, a person skilled in the art should understand that various combinations, modifications or equivalent substitutions of the technical solutions of the present application do not depart from the spirit and scope of the technical solutions of the present application, and should be included in the scope of the claims of the present application.
Claims
1. A design drawing management method, It is characterized in that include: Get the design drawings to be processed; The design drawings to be processed include a design schematic diagram and a printed circuit board diagram generated based on the design schematic diagram; Determine the device bit number in the design drawing to be processed, which exists in the printed circuit board diagram but does not exist in the design schematic diagram, as the target device bit number; For each target device number, determining in the printed circuit board diagram a first target circuit network where the device with the corresponding target device number is located; For each first target circuit network, determining an identical second target circuit network in the design schematic; According to each target device bit number and its corresponding first target circuit network, second target circuit network and device information, the design schematic diagram is updated; When the design schematic is updated according to each target device number and its corresponding first target circuit network, second target circuit network and device information, the following operations are performed for each target device number: Add the current target device number and corresponding device information to the design schematic; Determine first network information of a first target circuit network corresponding to the current target device bit number; According to the first network information, information association is performed between the device information corresponding to the current target device number in the design schematic and the second target circuit network corresponding to the current target device number.
2. The design drawing management method according to claim 1, It is characterized in that The step of associating the device information corresponding to the current target device number in the design schematic with the second target circuit network corresponding to the current target device number according to the first network information includes: Add the first network information at both ends of the device information corresponding to the current target device number of the design schematic; The first network information is added to a second target circuit network corresponding to the current target device number of the design schematic.
3. The design drawing management method according to claim 1, It is characterized in that After obtaining the design drawing to be processed and before determining the device number in the design drawing to be processed, which exists in the printed circuit board diagram but does not exist in the design schematic diagram, as the target device number, the method further includes: Determine a first file storage path of a printed circuit board diagram and a second file storage path of a design schematic diagram in the design drawing to be processed; Determine a first file name of a printed circuit board diagram and a second file name of a design schematic diagram in the design drawing to be processed; If it is determined that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, then the step of determining the device position number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic diagram, as the target device position number is executed.
4. The design drawing management method according to claim 3, It is characterized in that After determining that the first file storage path is consistent with the second file storage path, and the first file name and the second file name have the same file name prefix, and before determining the device number in the design drawing to be processed that exists in the printed circuit board drawing but does not exist in the design schematic drawing as the target device number, the method further includes: Determining the number of printed circuit board drawings in the design drawings to be processed; If the number of the printed circuit board drawings is equal to the preset number threshold, the step of determining the device number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number is executed.
5. According to the design drawing management method according to any one of claims 1 to 4, It is characterized in that The step of determining the device number in the to-be-processed design drawing, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device number, comprises: If it is determined that in the design drawing to be processed, each device number of the printed circuit board diagram is unique and each device number of the design schematic diagram is unique, then each device number of the printed circuit board diagram in the design drawing to be processed is respectively compared with each device number of the design schematic diagram to obtain a comparison result; According to the comparison result, the component number that exists in the printed circuit board diagram but does not exist in the design schematic diagram is determined as the target component number.
6. According to the design drawing management method according to any one of claims 1 to 4, It is characterized in that After determining the device number in the to-be-processed design drawing that exists in the printed circuit board drawing but does not exist in the design schematic drawing as the target device number, the method further includes: Acquire preset association information; the preset association information includes an association relationship between a device package name and device material information; the association relationship is a relationship between a device package name and at least one device material information; Outputting the material information of each device associated with the device package name corresponding to each target device number according to the preset association information; Receiving target device material information determined based on each device material information associated with each target device bit number; According to the target device material information corresponding to each target device number, the device information of the corresponding target device number is updated respectively.
7. A design drawing management device, It is characterized in that include: An acquisition module is used to acquire the design drawings to be processed; The design drawings to be processed include a design schematic diagram and a printed circuit board diagram generated based on the design schematic diagram; A first determination module is used to determine the device bit number in the design drawing to be processed, which exists in the printed circuit board drawing but does not exist in the design schematic drawing, as the target device bit number; A second determination module is used to determine, for each target device bit number, in the printed circuit board diagram, a first target circuit network where a device with a corresponding target device bit number is located; A third determination module is used to determine, for each first target circuit network, an identical second target circuit network in the design schematic diagram; An updating module, used for updating the design schematic according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information; The update module, when updating the information of the design schematic according to each target device bit number and its corresponding first target circuit network, second target circuit network and device information, is used to perform the following operations for each target device bit number: adding the current target device bit number and the corresponding device information to the design schematic; determining the first network information of the first target circuit network corresponding to the current target device bit number; and according to the first network information, associating the device information corresponding to the current target device bit number in the design schematic with the second target circuit network corresponding to the current target device bit number.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the design drawing management method as described in any one of claims 1 to 6 is implemented.
9. A storage medium, the storage medium being a non-transitory computer-readable storage medium, on which a computer program is stored, It is characterized in that When the computer program is executed by a processor, the design drawing management method as described in any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the design drawing management method according to any one of claims 1 to 6 is implemented.
