Surface layer wiring exporting method and device, storage medium and computer equipment
By unlocking and clearing the element selection set, generating a polygon list and performing closed filling, the problem of surface traces being lost when importing 2D drawings into 3D software is solved, and accurate and complete export of trace elements is achieved.
Patent Information
- Application Number
- CN202510900226.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-26
AI Technical Summary
In the prior art, when surface traces are imported from two-dimensional drawings into 3D software, they often become thin lines with zero width, resulting in partial trace loss and destroying the integrity of the circuit board design.
By unlocking the locked elements in the target file, clearing the element selection set, extracting the element ID of the routing elements, generating a polygon list and performing closed filling, the polygon area information of the routing elements is ensured to be completely exported.
Ensure that the shape and position of routing elements can be accurately represented, avoid routing loss due to missing width, and ensure that the exported surface routing information is accurate and complete.
Smart Images

Figure CN120706366A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a surface routing export method, device, storage medium and computer equipment. Background Art
[0002] In the electronics design and manufacturing field, DXF (Drawing Exchange Format) files, as a crucial format for data exchange between different software programs, are widely used in circuit board design and 3D modeling. During the PCB design process, the layout and planning of surface traces are crucial, as their precise position and width directly impact the performance and reliability of the board.
[0003] To clearly display trace layouts on 2D drawings, surface traces in DXF files are often rendered as thin lines. However, when such DXF files are imported into 3D software for further design analysis or simulation, surface traces often become zero-width thin lines after export, as 3D software handles line width differently from 2D design software. This results in the loss of some surface traces and compromises the integrity of the PCB design. Summary of the Invention
[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defect in the prior art that surface traces often become thin lines with zero width after being exported, resulting in the loss of part of the surface traces and destroying the integrity of the circuit board design.
[0005] The present application provides a surface routing derivation method, the method comprising:
[0006] Unlock the locked elements in the target file, clear the element selection set corresponding to the target file, and extract the element ID of each routing element in the target file and add it to the element selection set;
[0007] Generate a polygon list corresponding to each element ID in the element selection set in sequence, wherein the polygon list contains at least one point set;
[0008] For each polygon list, each point set in the polygon list is closed and filled to obtain the polygon area of the routing element corresponding to the polygon list;
[0009] Each routing element in the target file is exported as a surface routing based on each polygonal area to obtain a routing file.
[0010] Optionally, extracting the element ID of each routing element in the target file and adding the ID to the element selection set includes:
[0011] Setting a search filter, and using the search filter to search for routing elements in the target file to obtain a search result;
[0012] All routing elements are selected in the target file according to the search result, and the element ID of each routing element is added to the element selection set.
[0013] Optionally, sequentially generating a polygon list corresponding to each element ID in the element selection set includes:
[0014] For each element ID in the element selection set, determine the layer where the element ID is located;
[0015] A routing outline of a corresponding routing element is extracted from a design database based on the element ID and the layer where the element is located, and a polygon list is generated according to the routing outline.
[0016] Optionally, generating a polygon list according to the routing profile includes:
[0017] Determining a geometric structure of the routing profile; the geometric structure is composed of at least one line segment;
[0018] Describing the boundary of the geometric structure to obtain the structural outline corresponding to each line segment;
[0019] Determine the coordinates of multiple points of each structure outline to form a point set corresponding to each structure outline, and generate a polygon list based on each point set.
[0020] Optionally, the step of performing closed filling on each point set in the polygon list to obtain a polygonal area of a routing element corresponding to the polygon list includes:
[0021] For each point set in the polygon list, perform line segment closure and area filling according to the coordinates of each point in the point set to generate a structure;
[0022] The regions are combined according to the region positions of the various structures to obtain polygonal regions.
[0023] Optionally, exporting each routing element in the target file as a surface routing based on each polygonal area to obtain a routing file includes:
[0024] Setting export parameters according to the export requirements of the target file, and adjusting and exporting parameters of each polygonal area using the export parameters to generate a surface routing corresponding to each routing element;
[0025] Generate routing files based on the routing of each surface layer.
[0026] Optionally, the method further includes:
[0027] After the polygonal area of the routing element is generated, the element ID of the routing element is removed from the element selection set.
[0028] The present application also provides a surface wiring guide device, comprising:
[0029] An element selection module is used to unlock locked elements in a target file, clear an element selection set corresponding to the target file, and extract element IDs of each routing element in the target file and add them to the element selection set;
[0030] A list generation module, configured to sequentially generate a polygon list corresponding to each element ID in the element selection set, wherein the polygon list includes multiple point sets;
[0031] An area determination module is used to perform closed filling on each point set in each polygon list to obtain the polygon area of the routing element corresponding to the polygon list;
[0032] The file export module is used to export each routing element in the target file as a surface routing based on each polygonal area to obtain a routing file.
[0033] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the surface routing derivation method as described in any one of the above embodiments.
[0034] The present application also provides a computer device, comprising: one or more processors, and a memory;
[0035] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the surface routing derivation method described in any one of the above embodiments are performed.
[0036] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0037] The surface routing export method, device, storage medium and computer equipment provided by the present application can, when exporting surface routing, first unlock the locked elements in the target file to ensure that all routing elements are in an operable state, and at the same time clear the element selection set corresponding to the target file to extract the element ID of each routing element in the target file and add it to the element selection set, thereby ensuring that the selection set contains only valid routing elements and avoiding irrelevant elements from interfering with subsequent operations; then, a polygon list corresponding to each element ID in the element selection set can be generated in sequence, and the polygon list contains multiple point sets, so that the boundary information of the routing element can be described more accurately, so that the shape and position of the routing can be more accurately represented. For each polygon list, each point set in the polygon list can be closed and filled to obtain the polygon area of the routing element corresponding to the polygon list, so as to clarify the actual width range of the routing and avoid the loss of the routing due to missing width; finally, each routing element in the target file can be exported as a surface routing based on each polygon area to obtain a routing file, ensuring that the exported surface routing information is accurate and complete. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative labor.
[0039] Figure 1 A schematic diagram of a flow chart of a surface routing derivation method provided in an embodiment of the present application;
[0040] Figure 2 A comparative schematic diagram of the surface routing export results provided in an embodiment of the present application;
[0041] Figure 3 A schematic structural diagram of a surface wiring guide device provided in an embodiment of the present application;
[0042] Figure 4 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0044] To clearly display trace layouts on 2D drawings, surface traces in DXF files are often rendered as thin lines. However, when such DXF files are imported into 3D software for further design analysis or simulation, surface traces often become zero-width thin lines after export, as 3D software handles line width differently from 2D design software. This results in the loss of some surface traces and compromises the integrity of the PCB design.
[0045] Based on this, this application proposes the following technical solutions, please refer to the following for details:
[0046] In one embodiment, Figure 1 As shown, Figure 1 A schematic diagram of a process flow of a surface routing export method provided in an embodiment of the present application; the present application provides a surface routing export method, which specifically includes the following:
[0047] S110: unlocking the locked elements in the target file, clearing the element selection set corresponding to the target file, extracting the element ID of each routing element in the target file, and adding the ID to the element selection set.
[0048] In this embodiment, when exporting surface routing, the computer device can first unlock the locked elements in the target file to ensure that all routing elements are in an operable state, and at the same time clear the element selection set corresponding to the target file to extract the element ID of each routing element in the target file and add it to the cleared element selection set, thereby ensuring that the selection set only contains valid routing elements to avoid irrelevant elements interfering with subsequent operations.
[0049] It's understood that the target file refers to the PCB design file currently being processed by the computer—the engineering file containing circuit layout and routing information. The element ID, on the other hand, is the unique identifier for each PCB element in the target file, used to index the corresponding element. The element selection set refers to the set of selected element IDs in the target file, allowing the computer to batch process objects using that element selection set.
[0050] Specifically, the computer device can use the axlUnfixAll function to perform an unlocking operation on all elements in the target file to ensure that those routing elements that may be in a locked state and originally could not be edited or extracted are restored to an operable state to avoid missing data due to locking restrictions. At the same time, the computer device can also use the axlClearSelSet function to clear the original element selection set in the target file to clear the irrelevant selected functions that remained in the target file before, preventing old data from interfering with subsequent processing procedures. Based on this, the computer device can reselect each routing element in the target file and add its element ID to the cleared element selection set, so that the element selection set only contains all valid routing elements in the current file, thereby providing an accurate and clean data foundation for the subsequent surface routing export process.
[0051] S120: Generate a polygon list corresponding to each element ID in the element selection set in sequence, where the polygon list contains at least one point set.
[0052] In this step, after determining the element selection set of the target file through step S110, the computer device can sequentially generate a polygon list corresponding to each element ID in the element selection set. The polygon list contains at least one point set, so that the boundary information of the routing element can be more accurately described, so that the shape and position of the routing can be more accurately represented.
[0053] Specifically, when exporting surface traces, the computer device can sequentially traverse each element ID included in the element selection set and, based on the trace element corresponding to each element ID, call a specific processing function to generate a corresponding polygon list. This polygon list consists of one or more point sets, each of which represents the specific coordinate points that constitute the trace boundary, accurately converting the actual trace outline into a closed area.
[0054] It's understandable that using polygon lists allows computers to more accurately capture the boundary shapes of routing elements, thereby accurately reflecting their spatial position and dimensional characteristics on the design layer. Compared to the traditional method of representing routing using only centerlines, this polygonal representation method avoids routing identification errors caused by ignoring width information, ensuring that routing maintains its true physical size and direction when exported to subsequent 3D software or structural analysis tools.
[0055] S130: For each polygon list, perform closed filling on each point set in the polygon list to obtain a polygonal area of the routing element corresponding to the polygon list.
[0056] In this embodiment, after generating the polygon list corresponding to each routing element through step S120, for each polygon list, the computer device can close and fill each point set in the polygon list to obtain the polygon area of the routing element corresponding to the polygon list, so as to clarify the actual width range of the routing and avoid the loss of the routing due to missing width.
[0057] Specifically, by closing and filling each point set in the polygon list, the computer device can convert the open contour line composed of multiple boundary points into a completely closed polygonal area, so that a two-dimensional area model corresponding to the actual physical width of the route can be constructed at the geometric level, thereby more accurately expressing the true shape and spatial coverage of the route.
[0058] It's understandable that by closing each point set into a closed area and then filling it, we can ensure that the routing element, when subsequently exported as a DXF file or imported into 3D software, no longer exists as an abstract path without width, but is transformed into a structural unit with complete geometric properties. In other words, closed filling gives the routing element a clear outer contour, giving it complete width information and visible boundaries, avoiding the risk of information loss caused by using only centerlines or line segments.
[0059] S140: Exporting each routing element in the target file as a surface routing based on each polygonal area to obtain a routing file.
[0060] In this step, after generating the polygonal area corresponding to each routing element through step S130, the computer device can export each routing element in the target file as a surface routing based on each polygonal area to obtain a routing file, i.e., a DXF file, to ensure that the exported surface routing information is accurate and complete.
[0061] Specifically, based on polygonal areas with clear boundaries and width information, the computer device can process and convert each routing element in the target file one by one, export it as surface routing data, and generate a DXF file that conforms to the standard format. During the export process, the computer device can accurately map the coordinate point information and layer properties of each polygonal area to the corresponding layer and geometric structure in the DXF drawing, so that each routing is presented as a closed graphic with physical width, thereby achieving a true reproduction of the routing in the CAD drawing and avoiding the risk of interference and short circuit between the surface routing and structural parts due to partial loss of the surface routing.
[0062] Schematically, as Figure 2 As shown, Figure 2 A comparative schematic diagram of the surface routing export results provided in an embodiment of the present application; Figure 2 In the present invention, the existing technology and the method of the present application are respectively used to Figure 2 The PCB design file shown in the figure on the left is exported for surface traces. The export results of the existing technology are as follows Figure 2 As shown in the middle figure, the export results of this application are as follows Figure 2 As shown in the figure on the right, by comparing the two, the actual physical width and direction position of the surface trace derived by this application are clearer and more complete.
[0063] Furthermore, the computer device can also package the exported routing files into a compressed file for archiving, so that they can be directly transmitted and uploaded when needed later, thereby improving efficiency.
[0064] In the above embodiment, when exporting surface routing, the locked elements in the target file can be unlocked first to ensure that all routing elements are in an operable state. At the same time, the element selection set corresponding to the target file is cleared to extract the element ID of each routing element in the target file and add it to the element selection set, thereby ensuring that the selection set contains only valid routing elements and avoiding irrelevant elements from interfering with subsequent operations. Then, a polygon list corresponding to each element ID in the element selection set can be generated in sequence. The polygon list contains multiple point sets, which can more accurately describe the boundary information of the routing element, so that the shape and position of the routing can be more accurately represented. For each polygon list, each point set in the polygon list can be closed and filled to obtain the polygon area of the routing element corresponding to the polygon list, so as to clarify the actual width range of the routing and avoid the loss of the routing due to missing width. Finally, based on each polygon area, each routing element in the target file can be exported as a surface routing to obtain a routing file, ensuring that the exported surface routing information is accurate and complete.
[0065] In one embodiment, the process of extracting the element ID of each routing element in the target file and adding it to the element selection set in step S110 may include:
[0066] S111: Setting a search filter, and using the search filter to search for routing elements in the target file to obtain a search result.
[0067] S112: All routing elements are selected in the target file according to the search result, and the element ID of each routing element is added to the element selection set.
[0068] In this embodiment, after clearing the original element selection set, the computer device can set a search filter and use the search filter to search for the routing elements in the target file to obtain the search results, and then select all routing elements in the target file based on the search results, and add the element ID of each routing element to the element selection set to batch process each routing element through the element selection set.
[0069] Specifically, the computer device can set a search filter through the axlSetFindFilter function, specifying that the search condition of the search filter is a routing type element, thereby limiting subsequent operations to only the routing elements in the circuit board design; after the search filter is set, the computer device can use the search filter to perform precise search operations in the target file, and automatically traverse all elements of the target file according to the set conditions, filtering out routing elements that meet the conditions as search results. Subsequently, the computer device can automatically select routing elements in the target file based on the search results, and use the axlAddSelectAll function to obtain the element ID of each routing element, so as to add them one by one to the element selection set. Here, through the centralized management of the element selection set, the efficiency and consistency of batch processing of routing elements can be improved, thereby reducing the selection omissions or data deviation problems caused by human operations.
[0070] In one embodiment, the process of sequentially generating a polygon list corresponding to each element ID in the element selection set in step S120 may include:
[0071] S121: For each element ID in the element selection set, determine the layer where the element ID is located.
[0072] S122: extracting the routing outline of the corresponding routing element from the design database based on the element ID and the layer where it is located, and generating a polygon list according to the routing outline.
[0073] In this embodiment, for each element ID in the element selection set, the computer device can determine the layer where the element ID is located, and then extract the routing outline of the corresponding routing element from the design database based on the element ID and the layer where it is located, and generate a polygon list based on the routing outline to clarify the actual width range of the routing and avoid routing loss due to missing width.
[0074] Among them, the design database refers to the internal data system used by PCB design software to store and manage various design element information of the circuit board during the design process. It can contain data such as the element type, element ID, geometric information, layer information, etc. of each element in the target file.
[0075] Specifically, the computer device can first determine the layer in the target file where the routing element corresponding to the element ID is located, that is, determine whether it belongs to the top layer, bottom layer or other signal layer, to ensure that the subsequent contour extraction process can be carried out in the correct layer context. After obtaining the layer, the computer device can further retrieve the geometric information related to the routing element from the design database based on the element ID and its layer, and accurately parse the geometric information of the routing element by calling the axlPolyFromDB function to extract the routing contour that describes its boundary shape. The routing contour can be composed of multiple coordinate points in sequence, representing the true geometric boundary of the routing, rather than just the center line segment; therefore, based on the routing contour, the computer device can construct a polygon list corresponding to the routing element, so as to fully reflect the actual physical width and direction position of the routing element, ensuring that it has a clear geometric meaning in the graphic expression and data export process.
[0076] In one embodiment, the process of generating a polygon list according to the routing profile in step S122 may include:
[0077] S1221: Determine a geometric structure of a routing profile; the geometric structure is composed of at least one line segment.
[0078] S1222: Describe the boundary of the geometric structure to obtain the structure outline corresponding to each line segment.
[0079] S1223: Determine the coordinates of multiple points of each structure outline, form a point set corresponding to each structure outline, and generate a polygon list based on each point set.
[0080] In this embodiment, after obtaining the routing profile of a routing element, the computer device can determine the geometric structure of the routing profile. This geometric structure is composed of at least one line segment. Therefore, the computer device delineates the boundary of the geometric structure and obtains the structural outline corresponding to each line segment. The computer device then determines the coordinates of multiple points in each structural outline to form a point set corresponding to each structural outline, and generates a polygon list based on each point set.
[0081] Specifically, the computer device can identify and analyze the geometric structure of the routing contour, which is usually composed of at least one line segment, including but not limited to straight line segments, arc segments or other continuous path units. These line segments constitute the basic contour form of the routing element in physical space. On this basis, the computer device can depict the boundary of the geometric structure, that is, outline each line segment according to its starting point and end point, thereby generating a corresponding structural outline for each line segment. The structure not only records the type, size, direction and other attributes of the line segment, but also includes the spatial position relationship of its boundary. Then, the computer device can extract the coordinates of multiple points that constitute the boundary from each structural outline. These point coordinates can accurately describe the distribution of the edge of the line segment in the plane space. The computer device organizes these coordinates in order into a point set, representing a closed or semi-closed geometric area, and summarizes each point set to obtain a list of polygons corresponding to the routing element.
[0082] In one embodiment, the process of performing closed filling on each point set in the polygon list to obtain the polygonal area of the routing element corresponding to the polygon list in step S130 may include:
[0083] S131: For each point set in the polygon list, perform line segment closing and area filling according to the coordinates of each point in the point set to generate a structure.
[0084] S132: Perform region combination according to the region positions of each structure to obtain a polygonal region.
[0085] In this embodiment, for each point set in the polygon list, the computer device can close the line segments and fill the area according to the coordinates of each point in the point set to generate a structure, and then combine the areas according to the area positions of each structure to obtain a polygonal area.
[0086] Specifically, the computer device can use the axlDBCreateShape function to process the coordinates of each point in the point set, and connect these points in a certain order, perform a line segment closing operation, ensure that the coordinates of the first and last points form a closed contour, and then perform a region filling operation on the inside of the closed contour, define the spatial area surrounding the contour boundary as a valid graphic entity, and encapsulate the graphic area in the form of a structure. Each structure contains the geometric properties of the represented area, a coordinate point set, layer information, and related routing attribute labels. After the closure and filling of each point set is completed, the computer device can perform position identification and spatial association judgment on all generated structures, and perform region combination operations based on the regional coordinate position and spatial relationship of each structure, that is, merge multiple adjacent, overlapping, or nested structures into a larger continuous polygonal area, and finally generate a polygonal area that represents the actual spatial distribution of the routing.
[0087] In one embodiment, the process of exporting each routing element in the target file as a surface routing based on each polygonal area in step S140 to obtain the routing file may include:
[0088] S141: setting export parameters according to the export requirements of the target file, and adjusting and exporting parameters of each polygonal area using the export parameters to generate a surface routing corresponding to each routing element.
[0089] S142: Generate a routing file based on each surface routing.
[0090] In this embodiment, when exporting surface routing, the computer device can set export parameters according to the export requirements of the target file, and use the export parameters to adjust and export parameters of each polygonal area to generate surface routing corresponding to each routing element, and then generate routing files based on each surface routing.
[0091] Specifically, the export parameters set by the computer device include but are not limited to unit settings, routing file format version, layer mapping method, line width processing method, whether to export closed graphics, whether to retain fill information, and exported coordinate accuracy, etc., in order to ensure that the exported content meets the technical standards and format requirements of subsequent usage scenarios. Based on the export parameters, the computer device can perform parameter adaptation and format conversion on each polygonal area generated in the early stage, thereby perfectly matching the geometric structure with the export format; then, the computer device can export each adjusted polygonal area as a separate surface routing graphic, and then encapsulate it into a DXF file, thereby ensuring that the geometric form, spatial position and routing attributes of the surface routing remain consistent and identifiable in the DXF file.
[0092] For example, when the export parameters are set to "-u mm -f 14 -s -p -l -cl", the computer device will specify the dimension unit of the DXF file as millimeters through the "-u mm" parameter, ensuring that all coordinates and geometric dimensions are expressed in millimeters; the "-f 14" parameter specifies that the DXF file format is compatible with AutoCAD 2014 version, enhancing the file's versatility and readability in mainstream CAD software; the "-s" parameter specifies that the surface traces in the DXF file are filled with solid lines to retain the real physical boundaries of the traces; the "-p" parameter specifies that the pads in the DXF file are filled with solid lines, thereby improving the integrity and visualization of the graphics; the "-l" parameter specifies that images representing lines in all layers in the DXF file are created to avoid missing local traces due to missing layers; and the "-cl" parameter specifies that closed graphics in the DXF file are filled with colors, where "l" means filling by layer color, thereby enhancing the readability and recognition efficiency of the DXF file in subsequent viewing and analysis. Therefore, using this export parameter can ensure that the exported DXF file has a standardized structure, complete graphics, and rich information.
[0093] In one embodiment, the method may further include:
[0094] S150: After the polygonal area of the routing element is generated, the element ID of the routing element is removed from the element selection set.
[0095] In this embodiment, after generating the polygonal area corresponding to a routing element, the computer device can remove the element ID of the routing element from the current element selection set to prevent repeated processing of the routing element. By removing the element ID, the element selection set is dynamically updated during the surface routing export process, ensuring that the element selection set only contains routing elements that have not yet completed contour extraction and graphic conversion, thereby achieving orderly control and efficient scheduling of the entire processing flow.
[0096] The surface wiring exporting device provided in an embodiment of the present application is described below. The surface wiring exporting device described below and the surface wiring exporting method described above can be referenced to each other.
[0097] In one embodiment, Figure 3 As shown, Figure 3 This is a schematic diagram of the structure of a surface routing export device provided in an embodiment of the present application. The present application also provides a surface routing export device, including an element selection module 210, a list generation module 220, an area determination module 230, and a file export module 240, specifically including the following:
[0098] The element selection module 210 is used to unlock locked elements in the target file, clear the element selection set corresponding to the target file, and extract the element ID of each routing element in the target file and add it to the element selection set.
[0099] The list generation module 220 is used to sequentially generate a polygon list corresponding to each element ID in the element selection set, and the polygon list contains at least one point set.
[0100] The area determination module 230 is configured to perform closed filling on each point set in each polygon list to obtain a polygonal area of the routing element corresponding to the polygon list.
[0101] The file export module 240 is used to export each routing element in the target file as a surface routing based on each polygonal area to obtain a routing file.
[0102] In the above embodiment, when exporting surface routing, the locked elements in the target file can be unlocked first to ensure that all routing elements are in an operable state. At the same time, the element selection set corresponding to the target file is cleared to extract the element ID of each routing element in the target file and add it to the element selection set, thereby ensuring that the selection set only contains valid routing elements and avoiding irrelevant elements from interfering with subsequent operations. Then, a polygon list corresponding to each element ID in the element selection set can be generated in sequence. The polygon list contains at least one point set, thereby more accurately describing the boundary information of the routing element, so that the shape and position of the routing can be more accurately represented. For each polygon list, each point set in the polygon list can be closed and filled to obtain the polygon area of the routing element corresponding to the polygon list, so as to clarify the actual width range of the routing and avoid the loss of the routing due to missing width. Finally, based on each polygon area, each routing element in the target file can be exported as a surface routing to obtain a routing file, ensuring that the exported surface routing information is accurate and complete.
[0103] In one embodiment, the element selection module 210 may include:
[0104] The element search submodule is used to set the search filter and use the search filter to search for the routing elements in the target file to obtain the search results.
[0105] The ID adding submodule is used to select all routing elements in the target file according to the search results, and add the element ID of each routing element to the element selection set.
[0106] In one embodiment, the list generation module 220 may include:
[0107] The layer determination submodule is used to determine the layer where each element ID is located for each element ID in the element selection set.
[0108] The contour extraction submodule is used to extract the routing contour of the corresponding routing element from the design database based on the element ID and the layer where it is located, and generate a polygon list according to the routing contour.
[0109] In one embodiment, the contour extraction submodule may include:
[0110] The structure determination unit is used to determine the geometric structure of the routing profile; the geometric structure is composed of at least one line segment.
[0111] The boundary drawing unit is used to draw the boundary of the geometric structure and obtain the structure outline corresponding to each line segment.
[0112] The point set forming unit is used to determine the coordinates of multiple points of each structure outline, form a point set corresponding to each structure outline, and generate a polygon list according to each point set.
[0113] In one embodiment, the region determination module 230 may include:
[0114] The structure generation submodule is used to generate a structure by closing the line segments and filling the area according to the coordinates of each point in the point set for each point set in the polygon list.
[0115] The structure combination submodule is used to combine regions according to the regional positions of each structure to obtain polygonal regions.
[0116] In one embodiment, the file export module 240 may include:
[0117] The parameter export submodule is used to set the export parameters according to the export requirements of the target file, and use the export parameters to adjust and export the parameters of each polygon area to generate the surface routing corresponding to each routing element.
[0118] The file generation submodule is used to generate routing files based on the routing of each surface layer.
[0119] In one embodiment, the apparatus may further include:
[0120] The ID elimination module is used to eliminate the element ID of the routing element from the element selection set after generating the polygonal area of the routing element.
[0121] In one embodiment, the present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the surface routing derivation method as described in any of the above embodiments.
[0122] In one embodiment, the present application also provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the surface routing derivation method as described in any of the above embodiments.
[0123] Schematically, as Figure 4 As shown, Figure 4 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 can be provided as a server. Figure 4 Computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by memory 301 for storing instructions executable by processing component 302, such as an application. The application stored in memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, processing component 302 is configured to execute the instructions to perform the surface trace derivation method of any of the above-described embodiments.
[0124] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or the like.
[0125] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0126] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0127] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referenced to each other.
[0128] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A surface routing derivation method, characterized in that: The method comprises: Unlock the locked elements in the target file, clear the element selection set corresponding to the target file, and extract the element ID of each routing element in the target file and add it to the element selection set; Generate a polygon list corresponding to each element ID in the element selection set in sequence, wherein the polygon list contains at least one point set; For each polygon list, each point set in the polygon list is closed and filled to obtain the polygon area of the routing element corresponding to the polygon list; Each routing element in the target file is exported as a surface routing based on each polygonal area to obtain a routing file.
2. The surface routing derivation method according to claim 1, characterized in that: The step of extracting the element ID of each routing element in the target file and adding the ID to the element selection set includes: Setting a search filter, and using the search filter to search for routing elements in the target file to obtain a search result; All routing elements are selected in the target file according to the search result, and the element ID of each routing element is added to the element selection set.
3. The surface routing derivation method according to claim 1, characterized in that: The step of sequentially generating a polygon list corresponding to each element ID in the element selection set includes: For each element ID in the element selection set, determine the layer where the element ID is located; A routing outline of a corresponding routing element is extracted from a design database based on the element ID and the layer where the element is located, and a polygon list is generated according to the routing outline.
4. The surface routing derivation method according to claim 3, characterized in that: Generating a polygon list according to the routing profile includes: Determining a geometric structure of the routing profile; the geometric structure is composed of at least one line segment; Describing the boundary of the geometric structure to obtain the structural outline corresponding to each line segment; Determine the coordinates of multiple points of each structure outline to form a point set corresponding to each structure outline, and generate a polygon list based on each point set.
5. The surface routing derivation method according to claim 1, characterized in that: The step of performing closed filling on each point set in the polygon list to obtain a polygonal area of the routing element corresponding to the polygon list includes: For each point set in the polygon list, perform line segment closure and area filling according to the coordinates of each point in the point set to generate a structure; The regions are combined according to the region positions of the various structures to obtain polygonal regions.
6. The surface routing derivation method according to claim 1, characterized in that: The step of exporting each routing element in the target file as a surface routing based on each polygonal area to obtain a routing file includes: Setting export parameters according to the export requirements of the target file, and adjusting and exporting parameters of each polygonal area using the export parameters to generate a surface routing corresponding to each routing element; Generate routing files based on the routing of each surface layer.
7. The surface routing derivation method according to any one of claims 1 to 6, characterized in that: The method further comprises: After the polygonal area of the routing element is generated, the element ID of the routing element is removed from the element selection set.
8. A surface wiring guide device, characterized in that: include: An element selection module is used to unlock locked elements in a target file, clear an element selection set corresponding to the target file, and extract element IDs of each routing element in the target file and add them to the element selection set; A list generation module, configured to sequentially generate a polygon list corresponding to each element ID in the element selection set, wherein the polygon list includes multiple point sets; An area determination module is used to perform closed filling on each point set in each polygon list to obtain the polygon area of the routing element corresponding to the polygon list; The file export module is used to export each routing element in the target file as a surface routing based on each polygonal area to obtain a routing file.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, which, when executed by one or more processors, enable the one or more processors to perform the steps of the surface routing derivation method according to any one of claims 1 to 7.
10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the surface routing derivation method according to any one of claims 1 to 7 are performed.