BOM generation method, device, electronic device, medium and program product

By detecting the device attribute information in the design drawings, an accurate bill of materials is generated, which solves the problem of missing or wrong devices when generating bill of materials in the electronic design drawings, and improves efficiency.

CN118171631BActive Publication Date: 2024-11-08MIDEA SMART TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310496044.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-05
Publication Date
2024-11-08
Estimated Expiration
2043-05-05

AI Technical Summary

Technical Problem

In the prior art, electronic design drawings are prone to omit or select the wrong devices when generating bills of materials, resulting in inefficiency, requiring manual confirmation, and errors are prone to occur.

Method used

By obtaining the device attribute information of the schematic diagram in the design drawings and printed circuit board diagrams, the design drawings are detected, and an accurate bill of materials is generated to avoid manual errors and improve the generation efficiency.

Benefits of technology

It realizes the generation of accurate bill of materials when the detection results are normal, avoids missing or wrong devices, and improves the efficiency of generating bill of materials in the design drawings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118171631B_ABST
    Figure CN118171631B_ABST
Patent Text Reader

Abstract

The present application relates to the field of design drawing processing, and provides a method, device, electronic device, medium and program product for generating a bill of materials, the method comprising: obtaining first device attribute information of a schematic diagram in a design drawing and second device attribute information of a printed circuit board diagram; detecting the design drawing according to the first device attribute information and the second device attribute information to obtain a detection result; and generating a bill of materials for the design drawing based on the first device attribute information when the detection result is normal. The present application detects the design drawing by detecting the first device attribute information of the schematic diagram in the design drawing and the second device attribute information of the printed circuit board diagram together, and generates an accurate bill of materials based on the first device attribute information when the detection result is normal, so as to avoid missing components or selecting the wrong components when manually making the bill of materials for the design drawing, and improve the efficiency of generating the bill of materials for the design drawing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of design drawing processing, and in particular to a bill of materials generation method, device, electronic device, medium and program product. Background Art

[0002] As electronic design drawings are widely used in production, a quick solution for making a bill of materials based on electronic design drawings is needed. After completing the electronic design drawings, hardware design engineers need to output a bill of materials based on the drawings to inform the production side of the materials that need to be prepared. Currently, it is necessary to manually confirm each device in the drawing and then write them into the bill of materials one by one. Since it is easy to miss a device or select the wrong device during manual confirmation, the efficiency of generating the bill of materials for the design drawings is low. Summary of the invention

[0003] 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 method for generating a bill of materials, which can generate an accurate bill of materials after detecting that there is no abnormality in the design drawings, avoid the situation where components are omitted or wrong components are selected when manually making the bill of materials of the design drawings, and improve the efficiency of generating the bill of materials of the design drawings.

[0004] The present application also proposes a bill of materials generating device, electronic equipment, medium and program product.

[0005] According to the first aspect of the present application, a method for generating a bill of materials includes:

[0006] Acquire first device attribute information of the schematic diagram in the design drawing and second device attribute information of the printed circuit board diagram;

[0007] According to the first device attribute information and the second device attribute information, the design drawing is tested to obtain a test result;

[0008] When the detection result is normal, a bill of materials of the design drawing is generated based on the first device attribute information.

[0009] According to the bill of materials generation method of the embodiment of the present application, the design drawing is detected together with the first device attribute information of the schematic diagram in the design drawing and the second device attribute information of the printed circuit board diagram, and an accurate bill of materials is generated according to the first device attribute information when the detection result is normal. This can avoid the omission of components or the wrong selection of components when manually making the bill of materials of the design drawing, and improve the efficiency of generating the bill of materials of the design drawing.

[0010] According to one embodiment of the present application, the first device attribute information includes the package version number of each device in the schematic diagram, the optional method of each device, the coding information of each device and the position number of each device; the second device attribute information includes the package version number of each device in the printed circuit board diagram, the optional method of each device, the coding information of each device and the position number of each device.

[0011] According to an embodiment of the present application, the step of detecting the design drawing according to the first device attribute information and the second device attribute information to obtain a detection result includes:

[0012] Performing packaging version detection on the design drawing according to the version packaging number of each device in the first device attribute information;

[0013] According to the optional modes of each device in the first device attribute information, performing optional mode detection on the design drawing;

[0014] Performing coding information detection on the design drawing according to the coding information of each device in the first device attribute information;

[0015] Performing drawing detection on the design drawings according to the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the second device attribute information;

[0016] When the results of the package version detection, the optional mode detection, the coding information detection, and the drawing detection are all normal, determining that the detection result is normal;

[0017] When any result of the package version detection, the optional mode detection, the coding information detection, and the drawing detection is abnormal, it is determined that the detection result is abnormal.

[0018] According to an embodiment of the present application, performing package version detection on the design drawing according to the version package number of each device in the first device attribute information includes:

[0019] Retrieving the storage version number of each device in the first device attribute information from the package version library;

[0020] Compare the package version number of each device in the first device attribute information with the respective storage version number;

[0021] If it is determined that the results of the version number comparison of each device are the same, then it is determined that the result of the package version detection of the design drawing is normal.

[0022] According to an embodiment of the present application, the step of detecting the optional mode of the design drawing according to the optional mode of each device in the first device attribute information includes:

[0023] If it is determined that the optional modes of all devices in the first device attribute information are the same as the preset optional modes, or each device whose optional mode is different from the preset optional mode has a first identifier, then the result of the optional mode detection of the design drawing is determined to be normal.

[0024] According to an embodiment of the present application, the step of detecting the coding information of the design drawing according to the coding information of each device in the first device attribute information includes:

[0025] If it is determined that the coding information of all devices in the first device attribute information is different from the preset coding, or each device whose coding information is the same as the preset coding has a second identifier, then it is determined that the result of the coding information detection of the design drawing is normal.

[0026] According to an embodiment of the present application, the drawing detection is performed on the design drawing according to the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the second device attribute information, including:

[0027] If for each device in the first device attribute information, there exists a device in the second device attribute information that has the same package version number, optional mode, coding information and bit number, then the result of the drawing detection of the design drawing is determined to be normal.

[0028] According to an embodiment of the present application, generating a bill of materials of the design drawing based on the first device attribute information includes:

[0029] Determine a production process route of the design drawing; the production process route is a process route for production based on the design drawing;

[0030] A bill of materials for the design drawing is generated based on the first device attribute information and the production process route.

[0031] According to the second aspect of the present application, a material list generating device includes:

[0032] An acquisition module, used to acquire first device attribute information of a design drawing and second device attribute information of a printed circuit board drawing;

[0033] A detection module, used for detecting the design drawing according to the first device attribute information and the second device attribute information to obtain a detection result;

[0034] A generation module is used to generate a bill of materials for the design drawing based on the first device attribute information when the detection result is normal.

[0035] 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, a method for generating a bill of materials as described above is implemented.

[0036] According to the medium of the fourth aspect embodiment of the present application, the 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, the material bill generation method as described in any one of the above is implemented.

[0037] According to the program product of the fifth aspect of the present application, the program product is a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the above-mentioned bill of materials generation method.

[0038] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:

[0039] The design drawing is tested together with the first device attribute information of the schematic diagram in the design drawing and the second device attribute information of the printed circuit board diagram, and an accurate bill of materials is generated according to the first device attribute information when the test result is normal. This can avoid the omission of components or the wrong selection of components when manually making the bill of materials of the design drawing, and improve the efficiency of generating the bill of materials of the design drawing.

[0040] 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

[0041] 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.

[0042] Figure 1 This is one of the flow charts of the method for generating a bill of materials provided in an embodiment of the present application;

[0043] Figure 2It is a schematic diagram of the process of detecting design drawings in the method for generating a bill of materials provided in an embodiment of the present application;

[0044] Figure 3 This is the second flow chart of the method for generating a bill of materials provided in an embodiment of the present application;

[0045] Figure 4 It is a structural schematic diagram of a material bill generating device provided in an embodiment of the present application;

[0046] Figure 5 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION

[0047] 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.

[0048] 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.

[0049] 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.

[0050] 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.

[0051] 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.

[0052] Figure 1 This is one of the flow charts of the method for generating a bill of materials provided in the embodiment of the present application, such as Figure 1 As shown, the bill of materials generation method includes:

[0053] Step 110, obtaining first device attribute information of the design drawing and second device attribute information of the printed circuit board drawing.

[0054] It should be noted that the executor of the bill of materials generation 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.

[0055] The present application may provide software for generating a bill of materials based on design drawings. The software may be arranged in the above-mentioned execution entity and may be used to execute the bill of materials generation method in the present application.

[0056] The design drawings are electronic drawings obtained by relevant personnel such as hardware engineers by modifying archived drawings, independently designing according to actual needs, or modifying them according to needs with reference to online materials. They are the input of the bill of materials generation method of this application.

[0057] It should be noted that each design drawing in the present application includes a schematic diagram and a printed circuit board (PCB) diagram.

[0058] Under normal circumstances, the schematic diagram and PCB diagram in the design drawing can communicate with each other, and the device information of the schematic diagram and PCB diagram is consistent.

[0059] However, engineers may only modify the PCB diagram and forget to modify the schematic diagram when designing drawings, resulting in the final schematic diagram and PCB diagram being unable to communicate with each other, which can easily lead to omission of components when exporting the bill of materials based on the schematic diagram.

[0060] Therefore, in this application, the device attribute information of the schematic diagram in the design drawing and the device attribute information of the PCB diagram can be obtained respectively. Subsequently, the device attribute information of the schematic diagram can be defined as the first device attribute information, and the device attribute information of the PCB diagram can be defined as the second device attribute information.

[0061] Among them, the device attribute information in the present application can be the data information carried by the relevant schematic diagram and PCB diagram when the design drawing is generated in the above-mentioned software, or it can be the data information obtained by the above-mentioned software through image recognition of the schematic diagram and PCB diagram in the design drawing.

[0062] In some embodiments, the design drawings may be inspected using data information carried in the schematic diagram and PCB diagram in the design drawings.

[0063] In some embodiments, the design drawings can be detected by identifying the data information obtained from the schematic diagram and the PCB diagram in the design drawings.

[0064] In some embodiments, the design drawings may also be detected by combining the data information carried by the schematic diagram and the PCB diagram in the design drawings with the data information obtained by identifying the schematic diagram and the PCB diagram in the design drawings.

[0065] The focus of this application is on how to perform testing and generate a bill of materials. There is no specific limitation on the data extraction process of the schematic diagram and PCB diagram in the design drawings, as long as the data information extraction of the schematic diagram and PCB diagram in the design drawings can be completed.

[0066] Among them, for each device in the schematic diagram and PCB diagram in the design drawings of this application, it has certain attribute information itself, as well as attribute information input by relevant personnel according to requirements when designing. For example, it can be an optional method selected or input manually, and the optional method in this application can include preferred and limited selection.

[0067] Among them, preferred means preferred devices, and limited means limited devices. In this application, preferred devices are devices with better performance or process, and limited devices are devices with poorer performance or process. Among them, the judgment criteria for the performance or process of a device can be industry standards or criteria formulated according to actual conditions.

[0068] The device attribute information in this application may include the device's packaging version number, optional mode, coding information, bit number and other information.

[0069] Therefore, the first device attribute information may include the package version number of each device in the schematic diagram, the optional mode of each device, the coding information of each device and the bit number of each device;

[0070] The second device attribute information may include the package version number of each device in the printed circuit board diagram, the optional mode of each device, the coding information of each device and the bit number of each device.

[0071] The coding information in this application may be a material code.

[0072] Step 120 , testing the design drawing according to the first device attribute information and the second device attribute information to obtain a test result.

[0073] Since the first device attribute information of the present application includes the package version number of each device in the schematic diagram, the optional method of each device, the coding information of each device and the position number of each device; the second device attribute information includes the package version number of each device in the printed circuit board diagram, the optional method of each device, the coding information of each device and the position number of each device.

[0074] Therefore, the present application can perform multiple-dimensional detections on the design drawings, such as packaging version detection, optional method detection, coding information detection, and drawing detection, based on the first device attribute information and the second device attribute information, to obtain a detection result of whether the design drawings are normal or abnormal.

[0075] Among them, the package version detection is used to detect whether the package version of each device in the design drawing is the latest package version.

[0076] The optional mode detection is used to detect whether the optional modes of each device in the design drawing are all specified optional modes.

[0077] Coding information detection is used to detect whether the coding information of each device in the design drawing is empty.

[0078] Drawing detection is used to detect whether the schematic diagram and PCB diagram in the design drawing correspond to each other, that is, whether they have the same device information.

[0079] It can be understood that when the results of various tests are normal, the test result is normal; if the result of any test is abnormal, the test result is abnormal.

[0080] Step 130 : when the detection result is normal, generate a bill of materials of the design drawing based on the first device attribute information.

[0081] After obtaining the test results, if the test results are determined to be normal, the production process route corresponding to the design drawing can be obtained.

[0082] Among them, the production process route is the process route used for production based on design drawings.

[0083] Furthermore, a bill of materials of the production design drawing can be produced based on the device attribute information of the schematic diagram, that is, the first device attribute information and the obtained production process route, and the bill of materials can be output in the form of a form.

[0084] A bill of materials is a list of components and their attribute information.

[0085] According to the bill of materials generation method of the embodiment of the present application, the design drawing is detected together with the first device attribute information of the schematic diagram in the design drawing and the second device attribute information of the printed circuit board diagram, and an accurate bill of materials is generated according to the first device attribute information when the detection result is normal. This can avoid the omission of components or the wrong selection of components when manually making the bill of materials of the design drawing, and improve the efficiency of generating the bill of materials of the design drawing.

[0086] Based on the above embodiments, Figure 2 is a schematic diagram of the process of detecting the design drawings in the method for generating a bill of materials provided in an embodiment of the present application, such as Figure 2 As shown, the above step 120 may include:

[0087] Step 121, performing packaging version detection on the design drawing according to the version packaging number of each device in the first device attribute information;

[0088] In the present application, by detecting whether the package version numbers of each device in the first device attribute information are the latest package version numbers, it can be determined whether the package versions of each device are the latest package versions, thereby realizing package version detection of the design drawings.

[0089] If the package version of any device in the first device attribute information is not the latest package version, the result of the package version detection of the design drawing is abnormal.

[0090] Step 122, performing optional mode detection on the design drawing according to the optional mode of each device in the first device attribute information;

[0091] In the present application, the optional mode detection of the design drawing can be implemented by determining whether the optional modes of each device in the first device attribute are all specified optional modes.

[0092] If any optional mode of a device in the first device attribute is not a specified optional mode, the result of the optional mode detection of the design drawing is abnormal.

[0093] Step 123, performing coding information detection on the design drawing according to the coding information of each device in the first device attribute information;

[0094] In the present application, the coding information detection of the design drawing can be achieved by determining whether the coding information of each device in the first device attribute information is empty.

[0095] If the coding information of any device in the first device attribute information is empty, the result of the coding information detection of the design drawing is abnormal.

[0096] Step 124, performing drawing detection on the design drawings according to the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the second device attribute information;

[0097] The present application can implement drawing detection of design drawings by comparing whether the device attribute information of the schematic diagram in the design drawing corresponds to that of the PCB diagram.

[0098] Among them, the above comparison process includes packaging version number comparison, optional method comparison, coding information comparison, bit number comparison, etc.

[0099] Among them, if any of the results of the package version number comparison, optional method comparison, coding information comparison, and bit number comparison are different, it is determined that the result of the drawing detection of the design drawing is abnormal.

[0100] Step 125, when the results of package version detection, optional mode detection, coding information detection, and drawing detection are all normal, determining that the detection result is normal;

[0101] In the present application, after completing the above-mentioned package version detection, optional method detection, coding information detection, and drawing detection, if it is determined that the results of the package version detection, optional method detection, coding information detection, and drawing detection are all normal, then the detection result is determined to be normal.

[0102] Step 126, when any result of the package version detection, optional mode detection, coding information detection, and drawing detection is abnormal, determine that the detection result is abnormal.

[0103] After completing the above-mentioned package version detection, optional method detection, coding information detection, and drawing detection, if any result of the package version detection, optional method detection, coding information detection, and drawing detection is determined to be abnormal, the detection result is determined to be abnormal.

[0104] For example: if it is determined that the results of the package version detection, optional method detection, and encoding information detection are all normal, but the result of the drawing detection is abnormal, then the detection result is determined to be abnormal.

[0105] For another example: if the result of the package version detection is determined to be abnormal, but the results of the optional method detection, the coding information detection, and the drawing detection are all normal, then the detection result is determined to be abnormal.

[0106] This embodiment performs multiple tests on the design drawings, such as package version detection, optional method detection, coding information detection, and drawing detection, so that an accurate bill of materials can be generated, thereby avoiding the omission of components or the wrong selection of components when manually making the bill of materials of the design drawings, and improving the efficiency of generating the bill of materials of the design drawings.

[0107] Based on the above embodiment, the above step 121 may include:

[0108] Step 1211, retrieve the version number of each device in the first device attribute information from the package version library;

[0109] It should be noted that due to the continuous improvement of design and production requirements, the package version library of the device will be maintained and updated from time to time. Therefore, before the bill of materials is output, a comprehensive inspection of the package versions of all devices in the electronic design drawings is required.

[0110] In this application, a package version library can be constructed and maintained, in which all devices have a package version number and version creation time. Among them, the package version number of the device when it is put into the library can be determined as the library version number, and the library version number can be updated after the library is completed.

[0111] Whenever you need to update the package version of a device in the package version library, you need to maintain the package version number of the device, and the software automatically generates the creation time of the current version. The last created package version is defined as the latest package version.

[0112] Therefore, in the present application, the storage version number of the corresponding device can be retrieved from the package version library through the name of each device in the first device attribute information.

[0113] Step 1212, comparing the package version number of each device in the first device attribute information with the respective storage version number;

[0114] After obtaining the packaging version number of each device in the first device attribute information and obtaining the storage version number of each device from the packaging version library, the packaging version number of each device in the first device attribute information can be compared with their respective storage version numbers one by one to determine whether the packaging version number of each device is the same as the storage version number.

[0115] Step 1213: If it is determined that the comparison results of the version numbers of the components are the same, then it is determined that the result of the package version detection of the design drawing is normal.

[0116] In this application, if it is determined that the results of the version number comparison of each device are the same, that is, the package version number of each device in the first device attribute information is the same as the library version number of the device with the same name in the package version library, it means that the package version of each device is the latest package version, then the result of the package version detection of the design drawing is determined to be normal.

[0117] If any result of comparing the version numbers of the devices is determined to be different, it means that there is a device whose package version is not the latest package version among the devices, and the result of the package version detection of the design drawing is determined to be abnormal.

[0118] In the present application, if the result of the package version test of the design drawing is abnormal, the bit number of the device whose package version number is different from the inventory version number can be output to facilitate adjustments by engineers so as to re-perform package version test on the adjusted design drawing. When the results of the version number comparison of each device in the adjusted design drawing are the same, it is determined that the result of the package version test of the design drawing is normal and the next test can be performed.

[0119] This embodiment can accurately detect the packaging version of the design drawing through the version packaging number of each device in the first device attribute information, so that an accurate bill of materials can be generated, avoiding the omission of devices or the wrong selection of devices when manually making the bill of materials of the design drawing, thereby improving the efficiency of generating the bill of materials of the design drawing.

[0120] Based on the above embodiment, the above step 122 may include:

[0121] Step 1221, if it is determined that the optional modes of all devices in the first device attribute information are the same as the preset optional modes, or each device whose optional mode is different from the preset optional mode has a first identifier, then it is determined that the result of the optional mode detection of the design drawing is normal.

[0122] It should be noted that due to process upgrades or performance improvements, new devices will be introduced into the industry as preferred devices, and the original preferred devices will become limited devices.

[0123] When engineers select materials for devices in the process of drawing electronic design drawings, they generally give priority to material models with preferred properties. However, it is possible that after a period of time after the design of the drawings, better substitutes for some devices appear, causing the properties of these preferred devices to be reduced from preferred to limited, but the engineers are not aware of this, so they need to check whether each device in the schematic diagram is currently a preferred device. Therefore, the preset optional method in this application is preferred.

[0124] In this application, the selectable mode of each device in the pre-built device library can be maintained. Each device has a "preferred and limited selection attribute" with the content of "preferred" or "limited selection". Every time the "preferred and limited selection attribute" changes, this attribute will be updated in the device library.

[0125] In this application, the material model of all devices in the schematic diagram can be captured by software, and the "preferred and limited selection attributes" of each corresponding material model in the device library can be reversed according to the material model to obtain the optional methods of all devices in the first device attribute information.

[0126] Furthermore, the optional modes of each device are compared with the preset optional modes.

[0127] If there is any device whose optional mode is different from the preset optional mode, that is, it is not the preferred mode in this application, it can be further determined whether there is a first identification in the device that indicates that the engineer has confirmed that there is no need to adjust the optional mode. If the devices whose optional modes are different from the preset optional modes all have the first identification, and the optional modes of the remaining devices are the same as the preset optional modes, then the result of the optional mode detection of the design drawing is determined to be normal.

[0128] If there is any device whose optional mode is different from the preset optional mode and does not have the first identifier, it is determined that the result of the optional mode detection of the design drawing is abnormal.

[0129] When the result of the optional method detection of the design drawing is determined to be abnormal, the present application can output the bit number of the device whose optional method is different from the preset optional method and does not have the first identification, so that the engineer can modify or confirm that the optional method of the device does not need to be adjusted. If the engineer confirms that the optional method of the device does not need to be adjusted, a first identification will be set for the corresponding device to re-detect the optional method. Specifically, the first identification can be set in the first device attribute information. The specific form of the first identification is not limited in this application.

[0130] When the results of the optional test on the design drawings are determined to be normal, the next test can be carried out.

[0131] This embodiment can accurately detect the optional methods of the design drawings through the optional methods of each device in the first device attribute information, so that an accurate bill of materials can be generated, avoiding the omission of devices or the wrong selection of devices when the bill of materials of the design drawings is manually prepared, thereby improving the efficiency of generating the bill of materials of the design drawings.

[0132] Based on the above embodiment, the above step 123 may include:

[0133] Step 1231, if it is determined that the coding information of all devices in the first device attribute information is different from the preset coding, or each device with the same coding information as the preset coding has a second identifier, it is determined that the result of the coding information detection of the design drawing is normal.

[0134] The preset code in this application can be empty information.

[0135] It should be noted that when engineers design drawings, they often need to introduce components of new materials, and these components are not in the component library. All components in the component library have material codes when they are dragged out for use, but components of new materials are often newly drawn by engineers and have no material codes. Components of such materials need to remind engineers to apply for new material codes and add components of new materials to the component library so that they can be directly dragged out from the component library when needed and have existing material codes.

[0136] Therefore, the present application can compare the coding information of each device in the first device attribute information with the preset coding respectively, and determine whether the coding information of each device is empty by comparing whether the coding information of each device is the same as the preset coding.

[0137] If the coding information of any device among the devices is the same as the preset coding, that is, the coding is empty, it is further confirmed whether the device has a second identification. If it has the second identification, it is determined that the result of the coding information detection of the design drawing is normal.

[0138] The second identifier in the present application may be an identifier indicating that the engineer has confirmed that the coding information does not need to be adjusted. The present application does not limit the specific form of the second identifier.

[0139] If it is determined that there are coding information and preset codes in each device and there is no device with the second identifier, then it is determined that the result of the coding information detection of the design drawing is abnormal.

[0140] If the result of the coding information detection of the design drawing is determined to be abnormal, the device whose coding information is the same as the preset coding can be output for the engineer to adjust or confirm that the coding information of the device does not need to be adjusted. If the engineer confirms that the coding information of the device does not need to be adjusted, a second identifier can be set for the corresponding device to re-detect the coding information. Specifically, the second identifier can be set in the first device attribute information.

[0141] When it is determined that the result of the coding information test of the design drawing is normal, the next test can be carried out.

[0142] This embodiment can accurately detect the coding information of the design drawings through the coding information of each device in the first device attribute information, so that an accurate bill of materials can be generated, avoiding the omission of devices or the wrong selection of devices when manually making the bill of materials of the design drawings, thereby improving the efficiency of generating the bill of materials of the design drawings.

[0143] Based on the above embodiment, the above step 124 may include:

[0144] Step 1241, if for each device in the first device attribute information, there exists a device in the second device attribute information that has the same package version number, optional mode, encoding information and bit number, then it is determined that the result of the drawing detection of the design drawing is normal.

[0145] It should be noted that the design drawings in this application consist of schematic diagrams and PCB diagrams. Generally, the schematic diagrams and PCB diagrams can be interconnected, and the device information therein is consistent.

[0146] However, engineers may only change the PCB diagram but not the schematic diagram when drawing the blueprint, which results in the schematic diagram and PCB being unable to communicate with each other, which may easily lead to missing components when exporting the bill of materials based on the schematic diagram.

[0147] Therefore, for each device in the first device attribute information of the design drawing, the present application can respectively compare the package version number of the device with the package version number of each device in the second device attribute information; respectively compare the optional mode of the device with the optional mode of each device in the second device attribute information; respectively compare the coding information of the device with the coding information of each device in the second device attribute information; respectively compare the bit number of the device with the bit number of each device in the second device attribute information.

[0148] If it is determined that for each device in the first device attribute information, there is a device in the second device attribute information that has the same package version number, optional mode, coding information and bit number, then the result of the drawing detection of the design drawing is determined to be normal.

[0149] If it is determined that any device exists in the first device attribute information, and a device with the same package version number, optional method, coding information and bit number does not exist in the second device attribute information, it means that the schematic diagram and PCB diagram of the design drawing are inconsistent, then the result of the drawing detection of the design drawing is determined to be abnormal.

[0150] If the result of the drawing inspection of the design drawing is determined to be abnormal, the bit number of the device whose attribute information is different between the schematic and the PCB can be output, so that the engineer can make adjustments and re-inspect the drawing of the adjusted design drawing. Figure 1When the result of the drawing inspection of the design drawing is confirmed to be normal.

[0151] This embodiment can accurately perform drawing detection on design drawings through the package version number of each device, the optional method of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the package version number of each device, the optional method of each device, the coding information of each device and the bit number of each device in the second device attribute information, so that an accurate bill of materials can be generated, avoiding the omission of components or the wrong selection of components when the bill of materials of the design drawings is manually prepared, and improving the efficiency of generating the bill of materials of the design drawings.

[0152] Based on the above embodiment, the above step 130 may include:

[0153] Step 131, determining the production process route of the design drawing; the production process route is a process route for production based on the design drawing;

[0154] It should be noted that the device on a design drawing in this application may have multiple different production processes in the factory. During production, the processes of different production processes are sequential.

[0155] Therefore, before designing the drawings, engineers need to first determine the production process route of the design drawings. That is, the production process route in this application is the process route used for production based on the design drawings.

[0156] In this application, the configuration information of the conventional production process route can be maintained in advance, and the engineer can select a specific production process route in the configuration information.

[0157] For example, in some embodiments, the production process routes of the present application may include: "machine plug + red glue", "pure machine plug", "board surface solder paste + machine plug", "single-sided pure solder paste", etc.

[0158] Explanation of symbols in the content of production process route:

[0159] "RI" stands for horizontal machine insertion process; "AI" stands for vertical machine insertion process; "SMT" stands for patch process; "MI" stands for manual insertion process.

[0160] Different devices will correspond to different production processes, including "RI", "AI", "SMT" and "MI". Each production process is written into the device's attribute information when the device library is established for software retrieval and call.

[0161] Assembly method explanation: It is composed of numbers and English letters. The numbers represent the process step and the English letters represent the name of the production process that should be implemented.

[0162] Assembly method English part explanation:

[0163] “P” stands for machine insertion process;

[0164] “S” stands for the patch process;

[0165] "" (blank) represents the manual insertion process.

[0166] If two processes with the English word "P" appear at the same time, since horizontal machine insertion is performed first and then vertical machine insertion during production, the process with the smaller number in front is determined to be the horizontal machine insertion process by default, and the process with the larger number in the back is determined to be the vertical machine insertion process by default.

[0167] The specific information of the production process route in this application may include: production process, corresponding production process and corresponding assembly method at the production end. The specific information may be shown in Table 1 below:

[0168] Table 1

[0169]

[0170]

[0171] As shown in Table 1 above, "1P" in the "machine plug + red glue" production process stands for "the first step is to perform the horizontal machine plug process RI", "2P" stands for "the second step is to perform the vertical machine plug process AI", "3S" stands for "the third step is to perform the patch process SMT", and "" (blank) means that all devices without marked assembly methods will perform the fourth step of hand plug process MI.

[0172] The "1P" in the "pure machine insertion" production process stands for "the first step is to perform the horizontal machine insertion process RI", "2P" stands for "the second step is to perform the vertical machine insertion process AI", and "" (blank)" means that all devices without marked assembly methods will perform the third step of hand insertion process MI.

[0173] In the "board solder paste + machine insertion" production process, "1S" stands for "the first step is to perform the SMT process", "2P" stands for "the second step is to perform the horizontal machine insertion process RI", "3P" stands for "the third step is to perform the vertical machine insertion process AI", and "(blank)" means that all devices without marked assembly methods will perform the fourth step of hand insertion process MI.

[0174] The "1S" in the "single-sided pure solder paste" production process stands for "the first step is to perform the SMT process", and "" (blank) means that all devices without assembly method markings will perform the second step of the hand insertion process MI.

[0175] After the engineer selects the production process route, the software will capture the "production process" attributes of all the components in the schematic diagram. When the bill of materials is prepared, the software will convert the "production process" attributes of each component in the schematic diagram into the corresponding "assembly method" and write it into a column in the bill of materials for display. After the engineer selects the production process route, proceed to the next step.

[0176] Therefore, the present application can obtain the production process route selected when designing the design drawings.

[0177] Step 132: Generate a bill of materials for the design drawing based on the first device attribute information and the production process route.

[0178] In the present application, a bill of materials of the production design drawing can be produced based on the first device attribute information and the production process route and output in the form of a form.

[0179] Specifically, in addition to the material code (coding information), package version number, bit number, optional mode and other attributes in the first device attribute information, the bill of materials may also include information such as material quantity, assembly method, material description, etc. Among them, the package version number may also be called PCB package.

[0180] Based on this, the present application can output a bill of materials including the material code, material quantity, position number, assembly method, material description, PCB package, priority and limit selection attributes (optional method) and other information of each component.

[0181] In this application, devices with the same assembly method can be put together in the table. For example, all devices with the assembly method of "2P" are put together, and the table background uses the same background color; all devices with the assembly method of "3S" are put together, and the table background uses a different background color. This allows devices of each assembly method to be distinguished, making it easier for engineers to read.

[0182] Based on the quantity of the same material code, fill in the corresponding number of the same assembly method in the corresponding assembly method box. For example, if the quantity of a material code is 3 and the assembly method corresponding to the code is "2P", then the corresponding assembly method content should be "2P, 2P, 2P".

[0183] In this application, the software can make judgments based on the "Material Code" column and the "Priority and Limit Selection Attribute" column in the bill of materials, and output the corresponding content to the "Precautions". The "Precautions" column is a separate column. The content can be as follows:

[0184] If the "Preferred and Limited Selection Attribute" of a device in the BOM is "Limited Selection", "Pay attention to limited selection materials" will be displayed in the corresponding "Precautions" of the device, and the background color of the device row will be marked red, which serves to remind engineers that the final selection of the device is a limited selection material.

[0185] If the "Coding Attribute" of a device in the BOM is "" (empty), "Need to apply for new coding" will be displayed in the "Notes" corresponding to the device, and the background color of the device row will be marked red to remind engineers that the device has not yet been coded.

[0186] This embodiment can accurately generate a bill of materials for a design drawing based on the first device attribute information and the production process route, thereby avoiding the situation where components are omitted or the wrong components are selected when manually making the bill of materials for the design drawing, and improving the efficiency of generating the bill of materials for the design drawing.

[0187] Before making a bill of materials based on the electronic design drawings, this application verifies the design drawings through software. The consistency of the schematic diagram and the PCB diagram components can be checked to ensure that the schematic diagram and the PCB diagram can be mutually guided to prevent the situation where only one of the drawings is modified and the other drawing is not modified, resulting in the modification not being in place. Check whether all the device packages in the drawings are the latest packages to ensure that the devices can be produced and installed smoothly. Maintain the production process table so that engineers can efficiently and accurately select the production processes needed in the table. Check whether the drawings are all preferred devices and remind engineers to select the materials correctly. Check whether all the devices in the drawings are coded, and remind engineers to apply for the issuance of new materials in the system. After confirmation, the software exports the bill of materials as a table according to the electronic design drawings.

[0188] Before exporting the bill of materials, use software to compare the schematic and PCB drawings. Figure 1 Consistency check, latest package check, optimal device check, device coding check, reduce errors and improve design reliability. Through the maintenance of production processes, solidify the production route and facilitate design selection. Export the bill of materials through software to improve design efficiency, while ensuring that there are no omissions and that the bill of materials is consistent with the electronic design drawings. It aims to solve the problem of low efficiency and easy errors when hardware design engineers manually make bills of materials based on electronic design drawings, so as to meet the needs of hardware design engineers to efficiently and accurately make bills of materials, thereby improving efficiency and reducing design risks.

[0189] In some embodiments, reference Figure 3 , Figure 3 This is a second flow chart of the method for generating a bill of materials provided in an embodiment of the present application, such as Figure 3As shown, when generating the bill of materials for the design drawing, the software can detect whether the package of the device in the first device attribute information is the latest version. If not, the engineer is prompted to confirm. The engineer can make modifications and submit the modified drawings. After the engineer makes the modifications, the software is used to re-test.

[0190] When the device package is the latest version, check whether each device is a preferred device. If not, prompt the engineer to confirm. The engineer can make modifications and submit the modified drawings. After the engineer makes the modifications, re-test through the software. It should be noted that it is not mandatory to determine whether the device is a preferred device. Therefore, if the device is not a preferred device, the engineer can also confirm that the prompt information is not adjusted, and then proceed to the next step of coding detection.

[0191] If each device is a preferred device, a coding test is performed. Specifically, it is tested whether each device has a code. If not, the engineer is prompted to confirm. The engineer can make modifications and submit the modified drawings. After the engineer makes the modification, the software is used to retest. It should be noted that it is not mandatory to determine whether the device has a code. Therefore, if the device has no code, the engineer can confirm that the prompt information is not adjusted. At this time, the next step of the schematic diagram and PCB consistency test can be carried out.

[0192] If each device has a code, the schematic diagram and PCB are checked for consistency. Specifically, the schematic diagram in the design drawing is checked to see if it is consistent with the PCB diagram. If not, the engineer is prompted to confirm. The engineer can make modifications and submit the modified drawings. After the engineer makes the modifications, the software is used to retest.

[0193] When determining the schematic and PCB Figure 1 When the first device is completed, the production process route of the design drawing can be obtained, and a bill of materials can be generated and exported according to the first device attribute information and the production process route.

[0194] Figure 4 is a schematic diagram of the structure of the material bill generating device provided in the embodiment of the present application, such as Figure 4 As shown, the bill of materials generating device includes:

[0195] The acquisition module 410 is used to acquire the first device attribute information of the schematic diagram and the second device attribute information of the printed circuit board diagram in the design drawing;

[0196] A detection module 420, configured to detect the design drawing according to the first device attribute information and the second device attribute information to obtain a detection result;

[0197] The generating module 430 is used to generate a bill of materials of the design drawing based on the first device attribute information when the detection result is normal.

[0198] According to the bill of materials generation device of the embodiment of the present application, the design drawing is detected together with the first device attribute information of the schematic diagram in the design drawing and the second device attribute information of the printed circuit board diagram, and an accurate bill of materials is generated according to the first device attribute information when the detection result is normal. This can avoid the omission of components or the wrong selection of components when manually making the bill of materials of the design drawing, and improve the efficiency of generating the bill of materials of the design drawing.

[0199] Based on any of the above embodiments, the detection module 420 is specifically used for:

[0200] Performing packaging version detection on the design drawing according to the version packaging number of each device in the first device attribute information;

[0201] According to the optional modes of each device in the first device attribute information, performing optional mode detection on the design drawing;

[0202] Performing coding information detection on the design drawing according to the coding information of each device in the first device attribute information;

[0203] Performing drawing detection on the design drawings according to the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the second device attribute information;

[0204] When the results of the package version detection, the optional mode detection, the coding information detection, and the drawing detection are all normal, determining that the detection result is normal;

[0205] When any result of the package version detection, the optional mode detection, the coding information detection, and the drawing detection is abnormal, it is determined that the detection result is abnormal.

[0206] Based on any of the above embodiments, the detection module 420 includes a first detection unit, where the first detection unit is configured to:

[0207] Retrieving the storage version number of each device in the first device attribute information from the package version library;

[0208] Compare the package version number of each device in the first device attribute information with the respective storage version number;

[0209] If it is determined that the results of the version number comparison of each device are the same, then it is determined that the result of the package version detection of the design drawing is normal.

[0210] Based on any of the foregoing embodiments, the detection module 420 includes a second detection unit, where the second detection unit is configured to:

[0211] If it is determined that the optional modes of all devices in the first device attribute information are the same as the preset optional modes, or each device whose optional mode is different from the preset optional mode has a first identifier, then the result of the optional mode detection of the design drawing is determined to be normal.

[0212] Based on any of the above embodiments, the detection module 420 includes a third detection unit, and the third detection unit is used to:

[0213] If it is determined that the coding information of all devices in the first device attribute information is different from the preset coding, or each device whose coding information is the same as the preset coding has a second identifier, then it is determined that the result of the coding information detection of the design drawing is normal.

[0214] Based on any of the foregoing embodiments, the detection module 420 includes a fourth detection unit, and the fourth detection unit is used to:

[0215] If for each device in the first device attribute information, there exists a device in the second device attribute information that has the same package version number, optional mode, coding information and bit number, then the result of the drawing detection of the design drawing is determined to be normal.

[0216] Based on any of the above embodiments, the generating module 430 is specifically used for:

[0217] Determine a production process route of the design drawing; the production process route is a process route for production based on the design drawing;

[0218] A bill of materials for the design drawing is generated based on the first device attribute information and the production process route.

[0219] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As 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 the first device attribute information of the schematic diagram in the design drawing and the second device attribute information of the printed circuit board diagram;

[0220] According to the first device attribute information and the second device attribute information, the design drawing is tested to obtain a test result;

[0221] When the detection result is normal, a bill of materials of the design drawing is generated based on the first device attribute information.

[0222] 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.

[0223] On the other hand, an embodiment of the present application discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining first device attribute information of a schematic diagram in a design drawing and second device attribute information of a printed circuit board diagram;

[0224] According to the first device attribute information and the second device attribute information, the design drawing is tested to obtain a test result;

[0225] When the detection result is normal, a bill of materials of the design drawing is generated based on the first device attribute information.

[0226] In another aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method provided by each of the above embodiments is implemented, for example, including: obtaining first device attribute information of a schematic diagram in a design drawing and second device attribute information of a printed circuit board diagram;

[0227] According to the first device attribute information and the second device attribute information, the design drawing is tested to obtain a test result;

[0228] When the detection result is normal, a bill of materials of the design drawing is generated based on the first device attribute information.

[0229] 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.

[0230] 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, by hardware. Based on this understanding, the above technical solution can be essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which 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.

[0231] 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 method for generating a bill of materials, characterized in that: include: Acquire first device attribute information of the schematic diagram in the design drawing and second device attribute information of the printed circuit board diagram; According to the first device attribute information and the second device attribute information, the design drawing is tested to obtain a test result; When the detection result is normal, generating a bill of materials of the design drawing based on the first device attribute information; The first device attribute information includes the package version number of each device in the schematic diagram, the optional mode of each device, the coding information of each device and the bit number of each device; the second device attribute information includes the package version number of each device in the printed circuit board diagram, the optional mode of each device, the coding information of each device and the bit number of each device; the optional mode includes preferred and limited selection; the preferred mode indicates the preferred device, and the limited selection indicates the limited selection device; The step of testing the design drawing according to the first device attribute information and the second device attribute information to obtain a test result includes: Performing packaging version detection on the design drawing according to the version packaging number of each device in the first device attribute information; According to the optional modes of each device in the first device attribute information, performing optional mode detection on the design drawing; Performing coding information detection on the design drawing according to the coding information of each device in the first device attribute information; Performing drawing detection on the design drawings according to the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the second device attribute information; When the results of the package version detection, the optional mode detection, the coding information detection, and the drawing detection are all normal, determining that the detection result is normal; When any result of the package version detection, the optional mode detection, the coding information detection, and the drawing detection is abnormal, it is determined that the detection result is abnormal.

2. The method for generating a bill of materials according to claim 1, characterized in that: The step of performing package version detection on the design drawing according to the version package number of each device in the first device attribute information includes: Retrieving the storage version number of each device in the first device attribute information from the package version library; Compare the package version number of each device in the first device attribute information with the respective storage version number; If it is determined that the results of the version number comparison of each device are the same, then it is determined that the result of the package version detection of the design drawing is normal.

3. The method for generating a bill of materials according to claim 1, characterized in that: The detecting the optional mode of the design drawing according to the optional mode of each device in the first device attribute information includes: If it is determined that the optional modes of all devices in the first device attribute information are the same as the preset optional modes, or each device whose optional mode is different from the preset optional mode has a first identifier, then the result of the optional mode detection of the design drawing is determined to be normal.

4. The method for generating a bill of materials according to claim 1, characterized in that: The detecting of the coding information of the design drawing according to the coding information of each device in the first device attribute information includes: If it is determined that the coding information of all devices in the first device attribute information is different from the preset coding, or each device whose coding information is the same as the preset coding has a second identifier, then it is determined that the result of the coding information detection of the design drawing is normal.

5. The method for generating a bill of materials according to claim 1, characterized in that: The step of performing drawing detection on the design drawing according to the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the package version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the second device attribute information includes: If for each device in the first device attribute information, there exists a device in the second device attribute information that has the same package version number, optional mode, coding information and bit number, then the result of the drawing detection of the design drawing is determined to be normal.

6. The method for generating a bill of materials according to claim 1, characterized in that: The step of generating a bill of materials for the design drawing based on the first device attribute information includes: Determine a production process route of the design drawing; the production process route is a process route for production based on the design drawing; A bill of materials for the design drawing is generated based on the first device attribute information and the production process route.

7. A bill of materials generating device, characterized in that: include: An acquisition module, used to acquire first device attribute information of a schematic diagram in a design drawing and second device attribute information of a printed circuit board diagram; A detection module, used for detecting the design drawing according to the first device attribute information and the second device attribute information to obtain a detection result; the first device attribute information includes the package version number of each device in the schematic diagram, the optional mode of each device, the coding information of each device and the bit number of each device; the second device attribute information includes the package version number of each device in the printed circuit board diagram, the optional mode of each device, the coding information of each device and the bit number of each device; the optional mode includes preferred and limited selection; the preferred indicates a preferred device, and the limited selection indicates a limited selected device; A generating module, configured to generate a bill of materials of the design drawing based on the first device attribute information when the detection result is normal; The detection module is specifically used to perform packaging version detection on the design drawing according to the version packaging number of each device in the first device attribute information; perform optional mode detection on the design drawing according to the optional mode of each device in the first device attribute information; perform coding information detection on the design drawing according to the coding information of each device in the first device attribute information; perform drawing detection on the design drawing according to the packaging version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the first device attribute information, and the packaging version number of each device, the optional mode of each device, the coding information of each device and the bit number of each device in the second device attribute information; when the results of the packaging version detection, the optional mode detection, the coding information detection and the drawing detection are all normal, determine that the detection result is normal; When any result of the package version detection, the optional mode detection, the coding information detection, and the drawing detection is abnormal, it is determined that the detection result is abnormal.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for generating a bill of materials as claimed in any one of claims 1 to 6 is implemented.

9. A medium, the medium being a non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that: When the computer program is executed by a processor, the method for generating a bill of materials as claimed in any one of claims 1 to 6 is implemented.

10. A program product, the program product being a computer program product, comprising a computer program, characterized in that: When the computer program is executed by a processor, the method for generating a bill of materials as claimed in any one of claims 1 to 6 is implemented.