UCAM software uPCB attribute naming method, device, equipment and medium
By obtaining the block's numerical code and type in UCAM software and applying preset naming rules to determine the uPCB attribute value, the problem of chaotic Step names in ODB++ format data exported from UCAM software is solved, achieving clarity in nested structures and naming.
Patent Information
- Application Number
- CN202611338190.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-31
- Publication Date
- 2026-11-20
AI Technical Summary
When exporting ODB++ format data, UCAM software encounters a conflict between uPCB attribute names and nested structures, leading to a jumbled Step name. This requires manual modification, which is time-consuming and cumbersome.
When performing the imposition operation in UCAM software, the numerical code of the block is obtained, the block type is identified, and the uPCB attribute value is determined according to the preset naming rules. The nesting structure of the ODB++ format data is determined based on the relationship between the logical hierarchy and the physical hierarchy.
This avoids the automatic addition of suffixes by UCAM software, clarifies the nested structure and naming of ODB++ format data, improves export efficiency, and reduces the time and complexity of manual adjustments.
Smart Images

Figure CN123139876A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, device, and medium for naming uPCB attributes in UCAM software. Background Technology
[0002] In UCAM software, the uPCB attribute names of blocks containing uPCB attributes correspond to the Step names in the ODB++ format data. By default, all blocks in UCAM have the same uPCB attribute name, matching the current filename. However, when uPCB attribute names are identical and nesting structures conflict, UCAM automatically adds suffixes to the Step names in the exported ODB++ format data. This results in a chaotic internal nesting structure and inconsistent Step names within the exported ODB++ data, making it impossible to determine the specific purpose of each Step. After exporting ODB++ format data from UCAM, the uPCB attributes need to be manually modified, which is time-consuming and cumbersome. Summary of the Invention
[0003] In view of this, the purpose of this application is to overcome the shortcomings of the prior art and provide a method for naming uPCB attributes in UCAM software, the method comprising: When the UCAM software completes the imposition operation, all blocks of the imposition operation are obtained, and the numerical code of each block is extracted. Based on the digital code of each block, the type of each block in the imposition operation is identified, including EDIT, Set, and Panel; Based on the preset naming rules, the numerical code of each Block, and the type, determine the uPCB attribute value corresponding to each Block; Based on the uPCB attribute value corresponding to each block, the name of each step in the ODB++ format data exported by UCAM software is determined, and the nesting structure between each step in the ODB++ format data is determined based on the logical hierarchy and physical hierarchy relationship of the panelization operation.
[0004] In one embodiment, when the panelization operation is a Set panelization, the step of determining the uPCB attribute value corresponding to each block according to the preset naming rules, the numerical code of each block, and the type includes: Obtain the number of numeric codes included in the assembly operation; If the Set panel contains 1 number of numeric codes, then the Set panel contains only one Block, and the corresponding uPCB attribute value of the Block is determined to be "EDIT". If the Set panel contains multiple numeric codes, then the Set panel contains multiple Blocks, and the uPCB attribute value of each Block corresponding to the numeric code is determined to be "EDIT + numeric code"; For each Block, iterate through all physical layers of the Block and update the uPCB attribute value of the graphic objects in each layer to the uPCB attribute value of the Block.
[0005] In one embodiment, when the panelization operation is a Set array panelization, the step of determining the uPCB attribute value corresponding to each block according to the preset naming rules, the numerical code of each block, and the type includes: Obtain the custom name, and determine the uPCB attribute value of the top-level block generated by the panelization operation as "custom name + the numeric code"; For each sub-block under each top-level block, the uPCB attribute value of each sub-block remains unchanged as it was when the panelization operation was Set panelization.
[0006] In one embodiment, when the panelization operation is panelization, the step of determining the uPCB attribute value corresponding to each block according to the preset naming rules, the numerical code of each block, and the type includes: The Block whose digital encoding is the target encoding is determined as the top Block generated by the Panel panel, and the uPCB attribute value of the top Block is determined as "Panel"; The uPCB attribute value of the second-highest level block directly nested within the top-level block is set to "Set"; If the second-to-top-level Block contains only one nested Block, then the uPCB attribute value of the Block is determined to be "EDIT". If multiple blocks are nested under the second-level block, then the uPCB attribute value of the block is determined to be "EDIT + numeric code"; For each Block nested under the second-to-top-level Block, all physical layers of the Block are traversed, and the uPCB attribute value of the graphic object in each layer is updated to the uPCB attribute value of the Block. Furthermore, when there is a conflict in the generated uPCB attribute value, a random string is appended to eliminate the conflict.
[0007] In one embodiment, the step of acquiring all blocks of the imposition operation and extracting the numerical code of each block when the imposition operation is completed in the UCAM software includes: When the UCAM software completes the imposition operation, a preset Post Hook function is triggered to determine the recognition rules of the imposition operation; Based on the recognition rules, all blocks of the puzzle operation are obtained, and the numerical codes of each block are extracted.
[0008] In one embodiment, the step of identifying the type of each block in the imposition operation based on the digital code of each block includes: Based on the numerical code of each block, query the preset mapping table of numerical codes and types; Based on the query results, determine the type of each block in the imposition operation.
[0009] In one embodiment, the physical layers include: a top circuit layer, a bottom circuit layer, a top solder mask layer, a bottom solder mask layer, a top silkscreen layer, a bottom silkscreen layer, a drilled layer, and a router groove layer.
[0010] This application also provides a UCAM software uPCB attribute naming device, the UCAM software uPCB attribute naming device comprising: The acquisition module is used to acquire all blocks of the imposition operation when the imposition operation is completed in the UCAM software, and extract the numerical code of each block; The identification module is used to identify the type of each block in the imposition operation based on the digital code of each block, the types including EDIT, Set and Panel; The first determining module is used to determine the uPCB attribute value corresponding to each Block according to the preset naming rules, the numerical code of each Block and the type. The second determining module is used to determine the name of each Step in the ODB++ format data exported by UCAM software based on the uPCB attribute value corresponding to each Block, and to determine the nesting structure between each Step in the ODB++ format data based on the logical hierarchy and physical hierarchy relationship of the panelization operation.
[0011] This application also provides a computer device, which includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the above-described UCAM software uPCB attribute naming method.
[0012] This application also provides a computer-readable storage medium storing a computer program that, when run on a processor, executes the above-described UCAM software uPCB attribute naming method.
[0013] The embodiments of this application have the following beneficial effects: In this embodiment, when the UCAM software completes the imposition operation, all blocks of the imposition operation are acquired, and the numerical codes of each block are extracted. Based on the numerical codes of each block, the type of each block in the imposition operation is identified. According to preset naming rules, the numerical codes of each block, and the type, the uPCB attribute value corresponding to each block is determined. Based on the uPCB attribute value corresponding to each block, the name of each step in the ODB++ format data exported by the UCAM software is determined, and the nesting structure between each step in the ODB++ format data is determined based on the logical and physical layer relationships of the imposition operation. By determining the uPCB attribute value corresponding to each block through preset naming rules, the numerical codes of each block, and the type, the UCAM software avoids automatically adding suffixes to the step names in the exported ODB++ format data, which would result in a chaotic internal nesting structure and naming in the exported ODB++ format data. This ensures that the internal structure and naming of the ODB++ format data exported by the UCAM software are clear and usable. Attached Figure Description
[0014] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and therefore should not be considered as a limitation on the scope of protection of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 A flowchart illustrating the first embodiment of the UCAM software uPCB attribute naming method provided in this application; Figure 2 This is a diagram illustrating the relationship between EDIT, Set, and Panel; Figure 3 A comparative diagram of the ODB++ format data structure provided in this application; Figure 4 A flowchart illustrating the second embodiment of the UCAM software uPCB attribute naming method provided in this application; Figure 5 A schematic flowchart of the third embodiment of the UCAM software uPCB attribute naming method provided in this application; Figure 6A schematic flowchart of the fourth embodiment of the UCAM software uPCB attribute naming method provided in this application; Figure 7 A flowchart illustrating the naming rules for the different layout operations provided in this application; Figure 8 A schematic diagram of the structure of the uPCB attribute naming device for the UCAM software provided in this application. Detailed Implementation
[0016] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0017] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0018] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.
[0019] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0020] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0021] It is understood that the method of this application is applied to a terminal device, which can be a smart terminal, PC terminal, mobile terminal, etc., and is not limited thereto. The terminal device is equipped with UCAM software. For ease of explanation, the following embodiments use a terminal device as an example for detailed description.
[0022] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0023] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a first embodiment of the UCAM software uPCB attribute naming method provided in this application. The method includes: Step S101: When the UCAM software completes the imposition operation, obtain all blocks of the imposition operation and extract the numerical code of each block.
[0024] In this embodiment, the user can operate on a terminal device equipped with UCAM software to perform imposition operations. When the imposition operation is completed by the UCAM software, the terminal device acquires all blocks from the imposition operation and extracts the numerical code of each block. A block is a physical object in the UCAM software composed of one or more graphics. The user uses these physical objects to perform the imposition operation, and one block can contain another. In the UCAM software, each block corresponds to a different numerical code (Aperture Number).
[0025] Step S102: Based on the digital code of each block, identify the type of each block in the imposition operation, the type including EDIT, Set and Panel.
[0026] In this embodiment, after determining the digital code of each block, the terminal device identifies the type of each block in the imposition operation. The types include EDIT, Set, and Panel. For example, Figure 2 As shown, Figure 2 This diagram illustrates the relationship between EDIT, Set, and Panel. An EDIT is an electronically represented PCB in CAM software. A PCB is a printed circuit board used for critical connections and functional implementation of various electronic components, providing robust mechanical assembly support. A Set is a shipment assembly containing one or more EDITs, along with support and positioning functions, designed to meet the needs of mass-producing electronic components. A Panel is a work assembly used by PCB manufacturers for mass production of multiple shipment assemblies, as well as positioning and testing functions for various processes. It can be understood that a Panel contains both EDIT and Set, and a Set contains EDIT. In UCAM software, EDIT, Set, and Panel are all Blocks containing uPCB attributes.
[0027] In one embodiment, the step of identifying the type of each block in the imposition operation based on the digital code of each block includes: Step S1021: Based on the numerical code of each Block, query the preset mapping table of numerical codes and types.
[0028] Step S1022: Based on the query results, determine the type of each Block in the layout operation.
[0029] In this embodiment, the terminal device queries a preset mapping table of numerical codes and types based on the numerical codes of each block, and determines the type of each block in the imposition operation based on the query results.
[0030] Step S103: Determine the uPCB attribute value corresponding to each Block according to the preset naming rules, the numerical code of each Block, and the type.
[0031] In this embodiment, the terminal device determines the uPCB attribute value corresponding to each block according to the preset naming rules, the numerical code of each block, and the type. It should be noted that different panelization operations correspond to different naming rules; panelization operations include: Set panelization, Set array panelization, and Panel panelization; Set panelization is a general layout function of UCAM software, used to form a shipment set; Set array panelization (Panel Step Repeat) is a general layout function of UCAM software, mainly used for array panelization of EDIT to form a shipment set; Panel panelization (PanelPlus) is an automatic layout function of UCAM software, mainly used for array panelization of EDIT or Set to form a working panel and for the automatic generation of some alignment graphics and test unit graphics of the Panel. uPCB attributes are attributes in UCAM software used to define the EDIT or Set type of a block, and form a one-to-one correspondence with the Step name in the exported ODB++ format data. All uPCB attributes in UCAM default to the current data name.
[0032] Step S104: Based on the uPCB attribute value corresponding to each Block, determine the name of each Step in the ODB++ format data exported by UCAM software, and determine the nesting structure between each Step in the ODB++ format data based on the logical hierarchy and physical hierarchy relationship of the panelization operation.
[0033] In this embodiment, the terminal device determines the name of each Step in the ODB++ format data exported by the UCAM software based on the uPCB attribute value corresponding to each Block, and determines the nesting structure between Steps in the ODB++ format data based on the logical hierarchy and physical layer relationship of the panelization operation. It should be noted that ODB++ format stands for Open Database++ format, an open data exchange format widely used in PCB (Printed Circuit Board) design and manufacturing. In ODB++ format, edit and set are Step names; a Step can be simply understood as a folder or a group of shapes in Word. The physical layers include: top circuit layer, bottom circuit layer, top solder mask layer, bottom solder mask layer, top silkscreen layer, bottom silkscreen layer, drill layer, and router / groove layer.
[0034] It should be noted that in existing technology, the uPCB attribute name of a Block containing a uPCB attribute in UCAM software corresponds to the Step name in the ODB++ format data. By default, all Blocks in UCAM software have the same uPCB attribute name, which is the current file name. When the uPCB attribute names are identical and there are nesting conflicts, UCAM software automatically adds a suffix to the Step names in the exported ODB++ format data. This results in a chaotic internal nesting structure in the exported ODB++ format data, and the generated Step names are inconsistent, making it impossible to determine the specific purpose of each Step. After exporting ODB++ format data from UCAM software, the uPCB attribute in the data needs to be manually modified, which is time-consuming and cumbersome. This application determines the uPCB attribute value corresponding to each block through preset naming rules, the numerical code of each block, and its type. Then, it determines the step name using a rule that establishes a correspondence between the uPCB attribute name of the block and the step name in the ODB++ format data. This avoids the UCAM software automatically adding suffixes to the step names in the exported ODB++ format data, resulting in a chaotic internal nesting structure and naming in the exported ODB++ format data. This ensures that the internal structure and naming of the ODB++ format data exported by UCAM software are clear and usable. For example, as shown... Figure 3 As shown, Figure 3 The diagram below shows a comparison of the structure of the ODB++ format data provided in this application. The ODB++ format data processed by this application is significantly simpler than the ODB++ format data of the prior art, and its internal structure and naming are clear and usable.
[0035] In this embodiment, the terminal device acquires all blocks in the UCAM software's imposition operation upon completion and extracts the numerical codes of each block. Based on these codes, it identifies the type of each block within the imposition operation. According to preset naming rules, the numerical codes of each block, and its type, it determines the uPCB attribute value corresponding to each block. Based on the uPCB attribute values, it determines the names of each Step in the ODB++ format data exported by the UCAM software and determines the nesting structure between Steps in the ODB++ format data based on the logical and physical hierarchy of the imposition operation. By using preset naming rules, the numerical codes of each block, and its type to determine the uPCB attribute value corresponding to each block, the UCAM software avoids automatically adding suffixes to the Step names in the exported ODB++ format data, preventing chaotic nesting structures and naming in the exported ODB++ format data. This ensures that the internal structure and naming of the ODB++ format data exported by the UCAM software are clear and usable.
[0036] Please refer to Figure 4 , Figure 4 This is a flowchart illustrating a second embodiment of the uPCB attribute naming method for UCAM software provided in this application. The difference between the second embodiment and the first embodiment is that, when the panelization operation is Set panelization, the step of determining the uPCB attribute value corresponding to each block according to the preset naming rules, the numerical code of each block, and the type includes: Step S201: Obtain the number of digital codes included in the imposition operation.
[0037] Step S202: If the number of digital codes contained in the Set panel is 1, then it is determined that the Set panel contains only one Block, and the uPCB attribute value corresponding to the Block is determined to be "EDIT". Step S203: If the Set panel contains multiple number codes, then it is determined that the Set panel contains multiple Blocks, and the uPCB attribute value of each Block corresponding to the number code is determined to be "EDIT + number code".
[0038] Step S204: For each Block, traverse all physical layers of the Block and update the uPCB attribute value of the graphic object in each layer to the uPCB attribute value of the Block.
[0039] In this embodiment, when the terminal device determines that the panelization operation is a Set panelization, it obtains the number of numeric codes contained in the panelization operation. If the Set panelization contains 1 numeric code, it indicates that the Set panelization contains only one Block, and the uPCB attribute value of the Block is determined to be "EDIT". If the Set panelization contains multiple numeric codes, it indicates that the Set panelization contains multiple Blocks, and the uPCB attribute value of the Block corresponding to each numeric code is "EDIT + numeric code". For each Block, all physical layers of the Block are traversed, and the uPCB attribute value of the graphic objects in each layer is updated to the uPCB attribute value of the Block.
[0040] In one embodiment, the user designs a shipment set of mobile phone motherboards, which contains one circuit board: the motherboard (EDIT_A, with a numerical code of 101). This circuit board is dragged into a Set file in UCAM by the user. The Set contains one EDIT. The terminal device scans the entire Set and finds an independent Block (corresponding to EDIT_A), with a numerical code of 101. The terminal device determines that the uPCB attribute value of this Block is "EDIT101". For the "EDIT101" block, the terminal device traverses all physical layers of the block, finds the graphic object with the numerical code 101 in each physical layer, and updates the uPCB attribute value of the graphic object to "EDIT101". The final ODB++ format data generates a Step: "EDIT101". This Step automatically contains the graphic object of the EDIT on each physical layer (because the uPCB attribute value of each layer has been uniformly corrected). When the factory CAM software opens the ODB++ format data and clicks on "EDIT101", it can see its top layer circuitry, bottom layer circuitry, solder mask, silkscreen, drill holes, etc., all of which are completely intact, without any missing or scattered parts.
[0041] In one embodiment, the user designed a mobile phone motherboard shipment set containing three different circuit boards: the motherboard (EDIT_A, digital code 101), the camera module board (EDIT_B, digital code 102), and the battery protection board (EDIT_C, digital code 103). These three circuit boards are dragged into the same Set file in UCAM, forming a Set containing three EDITs. The terminal device scans the entire Set and finds three independent Blocks (corresponding to EDIT_A, EDIT_B, and EDIT_C), with digital codes 101, 102, and 103 respectively. The terminal device determines the uPCB attribute value of each Block as "EDIT101", "EDIT102", and "EDIT103". For the "EDIT101" block, the terminal device traverses all physical layers of the block, finds the graphic object with the numerical code 101 in each physical layer, and updates the uPCB attribute value of the graphic object to "EDIT101". Similarly, the terminal device processes the "EDIT103" block in the same way. The final ODB++ format data generates three steps: "EDIT101", "EDIT102", and "EDIT103". Each step automatically contains the graphic object of the EDIT on each physical layer (because the uPCB attribute value of each layer has been uniformly corrected). When the factory CAM software opens the ODB++ format data and clicks on "EDIT101", it can see its top layer circuitry, bottom layer circuitry, solder mask, silkscreen, drill holes, etc., all completely intact, without any missing or scattered parts.
[0042] In this embodiment, when the panelization operation is determined to be a Set panelization, the terminal device uses corresponding naming rules to determine the uPCB attribute value of each Block. Then, based on the uPCB attribute value corresponding to each Block, it determines the name of each Step in the ODB++ format data exported by the UCAM software. This ensures that the internal structure and naming of the ODB++ format data of the Set panelization exported by the UCAM software are clear and usable.
[0043] Please refer to Figure 5 , Figure 5 This is a flowchart illustrating a third embodiment of the uPCB attribute naming method for UCAM software provided in this application. The difference between this third embodiment and the first to second embodiments lies in that, when the panelization operation is a Set array panelization, the step of determining the uPCB attribute value corresponding to each block based on preset naming rules, the numerical code of each block, and the type includes: Step S301: Obtain the custom name and determine the uPCB attribute value of the top-level block generated by the panelization operation as "custom name + the numerical code".
[0044] Step S302: For each sub-block under each top-level block, the uPCB attribute value of each sub-block remains unchanged as when the panelization operation is Set panelization.
[0045] In this embodiment, when the user performs a Set array placement operation on a terminal device equipped with UCAM software, the user can input a custom name in the UCAM software. The terminal device obtains the custom name and determines the uPCB attribute value of the top-level Block generated by the placement operation as "custom name + numeric code". For each sub-block under each top-level Block, the uPCB attribute value of each sub-block remains unchanged from the uPCB attribute value when the placement operation is a Set placement. It can be understood that Set array placement is to copy a Set generated by Set placement into a Set array, and the top-level Block refers to each Set that makes up the Set array.
[0046] In one embodiment, a user generates a Set by performing Set panelization on a terminal device equipped with UCAM software. Then, a Set array panelization is performed to generate a 5×5 Set array. Each Set in the array is identical; that is, the uPCB attribute value of each sub-block under each Set remains unchanged from the uPCB attribute value when the panelization operation was performed as a Set panelization. The terminal device only needs to determine the uPCB attribute value of each Set. In the 5×5 Set array, the numerical code of the Set in the first row and first column is 11, the numerical code of the Set in the first row and second column is 12, the numerical code of the Set in the second row and first column is 21, and so on. The user can input a custom name, Set_A, in the UCAM software, and the terminal device can determine that the uPCB attribute value of the Set in the first row and first column is "Set_A11", the numerical code of the Set in the first row and second column is "Set_A12", the numerical code of the Set in the second row and first column is "Set_A21", and so on. The final ODB++ format data generates 25 Steps: "Set_A11", "Set_A12"... "Set_A55". Each Step automatically contains the graphic objects of the EDITs in that Set on each physical layer (because the uPCB attribute values of each layer have been uniformly corrected). When the factory CAM software opens the ODB++ format data, clicking on "Set_A11" will show three Steps: "EDIT101", "EDIT102", and "EDIT103". Clicking on "EDIT101" will show its top layer circuitry, bottom layer circuitry, solder mask, silkscreen, drill holes, etc., all completely intact, without any missing or scattered parts.
[0047] In one embodiment, when the imposition operation is a Set array imposition, the step of obtaining all blocks of the imposition operation and extracting the digital code of each block when the imposition operation is completed in the UCAM software includes: Step a: When the UCAM software completes the imposition operation, the preset Post Hook function is triggered to determine the recognition rules of the imposition operation.
[0048] Step b: Based on the recognition rules, obtain all blocks of the imposition operation and extract the numerical code of each block.
[0049] In this embodiment, when the UCAM software completes the Set array panelization, a preset Post Hook function is triggered to determine the identification rules for the panelization operation. Based on these rules, all blocks involved in the panelization operation are retrieved, and the numerical codes of each block are extracted. It can be understood that the Post Hook function is a hook triggered after a certain event or operation, used to execute custom logic or functions after the event ends. The identification rules are pre-defined, and the terminal device can determine the numerical code of each block by querying a mapping table between blocks and their numerical codes.
[0050] In this embodiment, when the panelization operation is determined to be a Set array panelization, the terminal device uses corresponding naming rules to determine the uPCB attribute value of each block. Then, based on the uPCB attribute value corresponding to each block, it determines the name of each step in the ODB++ format data exported by the UCAM software. This ensures that the internal structure and naming of the ODB++ format data of the Set array panelization exported by the UCAM software are clear and usable.
[0051] Please refer to Figure 6 , Figure 6 This is a flowchart illustrating the fourth embodiment of the uPCB attribute naming method for UCAM software provided in this application. The difference between this fourth embodiment and the first to third embodiments is that, when the panelization operation is panelization, the step of determining the uPCB attribute value corresponding to each block based on preset naming rules, the numerical code of each block, and the type includes: Step S401: The Block with the digital encoding as the target encoding is determined as the top Block generated by the Panel panel, and the uPCB attribute value of the top Block is determined as "Panel".
[0052] Step S402: The uPCB attribute value of the second-to-topmost block directly nested within the top-level block is determined to be "Set".
[0053] Step S403: If the second-level top-level Block contains only one nested Block, then the uPCB attribute value of the Block is determined to be "EDIT".
[0054] Step S404: If multiple blocks are nested under the second-level block, then the uPCB attribute value of the block is determined to be "EDIT + numeric code".
[0055] Step S405: For each Block nested under the second-level Block, traverse all physical layers of the Block, update the uPCB attribute value of the graphic object in each layer to the uPCB attribute value of the Block, and when there is a conflict in the generated uPCB attribute value, append a random string to eliminate the conflict.
[0056] In this embodiment, when the user performs panel layout on a terminal device equipped with UCAM software, a Panel is generated. The terminal device identifies the Block with the target code as the top-level Block generated by the Panel layout and sets its uPCB attribute value to "Panel", where the target code is 2001. The terminal device moves the objects before the Block with the target code 2001 to after the Block with the target code 2001. The uPCB attribute value of the second-highest level Block directly nested within the top-level Block is set to "Set". If the second-highest level Block contains only one nested Block, its uPCB attribute value is set to "EDIT". If the second-highest level Block contains multiple nested Blocks, its uPCB attribute value is set to "EDIT + numerical code". For each nested Block under the second-to-top-level Block, iterate through all physical layers of the Block, updating the uPCB attribute values of the graphical objects in each layer to the Block's uPCB attribute values. Furthermore, when conflicting uPCB attribute values are generated, a random string is appended to resolve the conflict. It's understandable that a Panel may contain multiple Sets, and each Set may contain one or more EDITs. The target code 2001 is pre-defined; that is, if the Block is a Panel, its corresponding numerical code is 2001.
[0057] In one embodiment, a user performs panel layout on a terminal device equipped with UCAM software, generating a panel containing 5 sets. The sets are numbered 11, 12, 13, 14, and 15. The set numbered 11 contains only one EDIT, while the other sets contain three EDITs. For a Panel block, the terminal device determines the uPCB attribute value of the Panel block as "Panel". For the five Sets, the terminal device determines the uPCB attribute values of the blocks in the five Sets as "Set11", "Set12", "Set13", "Set14", and "Set15" respectively. For the "Set11" block, which contains one EDIT, the terminal device determines the uPCB attribute value of the EDIT block as "EDIT". For the "Set12" block, which contains three EDITs with numerical numbers 101, 102, and 103, the terminal device determines the uPCB attribute values of the three EDIT blocks as "EDIT101", "EDIT102", and "EDIT103" respectively. The uPCB attribute values of the EDITs in the "Set13", "Set14", and "Set15" blocks refer to the uPCB attribute values of the three EDITs in the "Set12" block mentioned above. Additionally, if the three EDITs contained in the "Set13" block are numbered 101, 102, and 103 respectively, then the terminal device determines the uPCB attribute values of the three EDIT blocks as "EDIT10106", "EDIT10250", and "EDIT10377" respectively, where 06, 50, and 77 are random numbers to avoid duplicate naming.
[0058] In one embodiment, when the panel layout operation is panel layout, the step of obtaining all blocks of the panel layout operation and extracting the numerical code of each block when the panel layout operation is completed in the UCAM software includes: Step a: When the UCAM software completes the imposition operation, the preset Post Hook function is triggered to determine the recognition rules of the imposition operation.
[0059] Step b: Based on the recognition rules, obtain all blocks of the imposition operation and extract the numerical code of each block.
[0060] In this embodiment, when the UCAM software completes panel imposition, a preset Post Hook function is triggered to determine the identification rules for the imposition operation. Based on these rules, all blocks involved in the imposition operation are retrieved, and the numerical codes of each block are extracted. It can be understood that the Post Hook function is a hook triggered after a certain event or operation, used to execute custom logic or functions after the event ends. The identification rules are pre-defined, and the terminal device can determine the numerical code of each block by querying a mapping table between blocks and their numerical codes.
[0061] In this embodiment, when the panelization operation is determined to be panel panelization, the terminal device uses corresponding naming rules to determine the uPCB attribute value of each block. Then, based on the uPCB attribute value corresponding to each block, it determines the name of each step in the ODB++ format data exported by the UCAM software. This ensures that the internal structure and naming of the ODB++ format data of the panel panelization exported by the UCAM software are clear and usable.
[0062] refer to Figure 7 , Figure 7The following is a flowchart illustrating the naming rules for different panelization operations provided in this application. For Set panelization: Step 1: Obtain the blocks to be panelized into the Set. Step 2: Obtain the Aperture Number of each block and store it in temporary array 1. Step 3: Establish a correspondence between Aperture Numbers and uPCB attribute names based on the number of blocks. When there is only one Aperture Number, the uPCB attribute name is EDIT; when there are multiple Aperture Numbers, the uPCB attribute name is EDIT + Aperture Number. Step 4: Obtain a list of all layers for the current job and store it in temporary array 2. Step 5: Loop through temporary array 2 and retrieve the name of each layer. Step 6: In each layer of the loop, select a block with a single Aperture Number based on temporary array 1. Step 7: Add the corresponding uPCB attribute name to the selected block according to the correspondence. For Set array panelization: Step 1: Add a post hooks function and a custom Set Step naming function to the Panel Step Repeat function in the UCAM software (this native software function does not have post hooks). Step 2: After PanelStep Repeat completes, post hooks are triggered. Step 3: In the post hooks function, retrieve the Aperture Number of each block being assembled and store it in temporary array 1 (after using PanelStep Repeat, the current object list only contains blocks participating in the assembly). Step 4: Retrieve the list of all layers for the current job and store it in temporary array 2. Step 5: Loop through temporary array 2 and retrieve the name of each layer. Step 6: In each layer of the loop, select a block with a single Aperture Number based on temporary array 1. Step 7: Update the uPCB attribute name based on the name entered in the custom Set Step. When multiple Aperture Numbers exist, the uPCB attribute name is changed to the custom Set Step + ApertureNumber. For Panel assembly: Step 1: Add post hooks functionality to the UCAM PanelPlus function (this native software function does not have post hooks). Step 2: After PanelPlus completes, post hooks are triggered. Step 3: In the posthooks function, retrieve the object before the block with Aperture Number 2001 (the Aperture Number of the block entered by the PanelPlus function is 2001 by default).
[0063] Step 4: Move the objects before Block 2001 to after Block 2001. Step 5: Retrieve the list of all layers for the current job and store it in a temporary array. Step 6: Loop through the temporary array and retrieve the name of each layer. Step 7: Select Block 2001 from each layer. Step 8: Change the uPCB attribute name to "set". Step 9: Loop through nested Blocks within a Panel, and check if the uPCB attributes of multiple nested Blocks within a Block conform to the layer naming rules, and automatically update the uPCB attribute names. The naming rules are as follows: When a PanelBlock contains only one level of nested Blocks, the uPCB attribute name of the nested Blocks within the Panel is edit; when a PanelBlock contains multiple levels of nested Blocks, the uPCB attribute name of the nested Blocks within the Panel is set, and the uPCB attribute name of the nested Blocks within the set Block is edit. If there are still multiple levels of nesting within the set Block, the uPCB attribute name of the nested Blocks is edit + Aperture Number. If there is a name conflict, the uPCB attribute name is edit + Aperture Number + a random number.
[0064] refer to Figure 8 , Figure 8 This is a schematic diagram of the structure of the UCAM software uPCB attribute naming device provided in this application. The UCAM software uPCB attribute naming device includes: The acquisition module 10 is used to acquire all blocks of the imposition operation when the imposition operation is completed in the UCAM software, and extract the numerical code of each block.
[0065] The identification module 20 is used to identify the type of each block in the imposition operation based on the digital code of each block, the type including EDIT, Set and Panel.
[0066] The first determining module 30 is used to determine the uPCB attribute value corresponding to each Block according to the preset naming rules, the numerical code of each Block and the type.
[0067] The second determining module 40 is used to determine the name of each Step in the ODB++ format data exported by UCAM software based on the uPCB attribute value corresponding to each Block, and to determine the nesting structure between each Step in the ODB++ format data based on the logical hierarchy and physical hierarchy relationship of the panelization operation.
[0068] It is understood that the UCAM software uPCB attribute naming device in this embodiment corresponds to the UCAM software uPCB attribute naming method in the above embodiment. The options in the above embodiment are also applicable to this embodiment, so they will not be described again here.
[0069] This application also provides a computer device, exemplary of which includes a processor and a memory, wherein the memory stores a computer program, and the processor executes the UCAM software uPCB attribute naming method described above by running the computer program.
[0070] The processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including at least one of a Central Processing Unit (CPU), Graphics Processing Unit (GPU), Network Processor (NP), Digital Data Processor (DSP), Application-Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0071] The memory can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory is used to store computer programs, and the processor can execute the computer programs accordingly after receiving execution instructions.
[0072] This application also provides a computer storage medium for storing the computer program used in the aforementioned computer device. The computer storage medium can be a readable storage medium, a non-volatile storage medium, or a volatile storage medium. For example, the computer storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0073] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that, in alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.
[0074] In addition, the functional modules or units in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0075] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a smartphone, personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0076] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for naming uPCB attributes in UCAM software, characterized in that, The method includes: When the UCAM software completes the imposition operation, all blocks of the imposition operation are obtained, and the numerical code of each block is extracted. Based on the digital code of each block, the type of each block in the imposition operation is identified, including EDIT, Set, and Panel; Based on the preset naming rules, the numerical code of each Block, and the type, determine the uPCB attribute value corresponding to each Block; Based on the uPCB attribute value corresponding to each block, the name of each step in the ODB++ format data exported by UCAM software is determined, and the nesting structure between each step in the ODB++ format data is determined based on the logical hierarchy and physical hierarchy relationship of the panelization operation.
2. The UCAM software uPCB attribute naming method according to claim 1, characterized in that, When the panelization operation is Set panelization, the step of determining the uPCB attribute value corresponding to each block according to the preset naming rules, the numerical code of each block, and the type includes: Obtain the number of numeric codes included in the assembly operation; If the Set panel contains 1 number of numeric codes, then the Set panel contains only one Block, and the uPCB attribute value of the Block is determined to be "EDIT". If the Set panel contains multiple numeric codes, then the Set panel contains multiple Blocks, and the uPCB attribute value of each Block corresponding to the numeric code is determined to be "EDIT + numeric code"; For each Block, iterate through all physical layers of the Block and update the uPCB attribute value of the graphic objects in each layer to the uPCB attribute value of the Block.
3. The UCAM software uPCB attribute naming method according to claim 1, characterized in that, When the panelization operation is a Set array panelization, the step of determining the uPCB attribute value corresponding to each Block according to the preset naming rules, the numerical code of each Block, and the type includes: Obtain the custom name, and determine the uPCB attribute value of the top-level block generated by the panelization operation as "custom name + the numeric code"; For each sub-block under each top-level block, the uPCB attribute value of each sub-block remains unchanged as it was when the panelization operation was Set panelization.
4. The UCAM software uPCB attribute naming method according to claim 1, characterized in that, When the panelization operation is panelization, the step of determining the uPCB attribute value corresponding to each block according to the preset naming rules, the numerical code of each block, and the type includes: The Block whose digital encoding is the target encoding is determined as the top Block generated by Panel panelization, and the uPCB attribute value of the top Block is determined as "Panel"; The uPCB attribute value of the second-highest level block directly nested within the top-level block is set to "Set"; If the second-to-top-level Block contains only one nested Block, then the uPCB attribute value of the Block is determined to be "EDIT". If multiple blocks are nested under the second-level block, then the uPCB attribute value of the block is determined to be "EDIT + numeric code"; For each Block nested under the second-to-top-level Block, all physical layers of the Block are traversed, and the uPCB attribute value of the graphic object in each layer is updated to the uPCB attribute value of the Block. Furthermore, when there is a conflict in the generated uPCB attribute value, a random string is appended to eliminate the conflict.
5. The UCAM software uPCB attribute naming method according to claim 1, characterized in that, The step of obtaining all blocks of the imposition operation and extracting the numerical code of each block when the imposition operation is completed in the UCAM software includes: When the UCAM software completes the imposition operation, a preset Post Hook function is triggered to determine the recognition rules of the imposition operation; Based on the recognition rules, all blocks of the puzzle operation are obtained, and the numerical codes of each block are extracted.
6. The UCAM software uPCB attribute naming method according to claim 1, characterized in that, The step of identifying the type of each block in the imposition operation based on the digital code of each block includes: Based on the numerical code of each block, query the preset mapping table of numerical codes and types; Based on the query results, determine the type of each block in the imposition operation.
7. The UCAM software uPCB attribute naming method according to claim 1, characterized in that, The physical layers include: top circuit layer, bottom circuit layer, top solder mask layer, bottom solder mask layer, top silkscreen layer, bottom silkscreen layer, drilled layer, and router groove layer.
8. A UCAM software uPCB attribute naming device, characterized in that, The UCAM software uPCB attribute naming device includes: The acquisition module is used to acquire all blocks of the imposition operation when the imposition operation is completed in the UCAM software, and extract the numerical code of each block; The identification module is used to identify the type of each block in the imposition operation based on the digital code of each block, the types including EDIT, Set and Panel; The first determining module is used to determine the uPCB attribute value corresponding to each Block according to the preset naming rules, the numerical code of each Block and the type. The second determining module is used to determine the name of each Step in the ODB++ format data exported by UCAM software based on the uPCB attribute value corresponding to each Block, and to determine the nesting structure between each Step in the ODB++ format data based on the logical hierarchy and physical hierarchy relationship of the panelization operation.
9. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program, and the processor executing the computer program to implement the UCAM software uPCB attribute naming method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when run on a processor, executes the UCAM software uPCB attribute naming method according to any one of claims 1-7.
