A method for extracting BGA pad coordinates from DXF files and creating new packages

By extracting BGA pad coordinates from DXF files and automatically placing them, the problems of low efficiency, long cycle time, and coordinate deviation in manual positioning are solved, achieving efficient and accurate BGA package design.

CN122197788APending Publication Date: 2026-06-12EMDOOR ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-02
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

In existing technologies, BGA pad coordinate information is not directly recorded in PDF or DXF format data, which requires engineers to manually locate each pad one by one, resulting in low efficiency, long cycle time, and easy coordinate deviation.

Method used

By creating a blank package file, importing a DXF file containing pad graphics and spacing, extracting the center coordinates of the pads using a package design tool, processing the data using Excel, and automatically laying out the pads, a new BGA package can be created.

Benefits of technology

Significantly shortens the packaging design cycle, avoids coordinate deviations, improves design accuracy, reduces reliance on professional skills, adapts to existing data without additional files, and improves efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122197788A_ABST
    Figure CN122197788A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of methods for extracting BGA pad coordinates from DXF file and rebuilding package, comprising the following steps: constructing blank package file;DXF format graphic file only containing BGA pad pattern and pad pitch information is imported into blank package file;By the element information extraction function of package design tool, the center coordinate information of all BGA pad pattern elements is obtained, and the element data associated with center coordinate information is exported as general text format file;Through the element data splitting processing in general text format file by data processing tool, the center coordinate data of all BGA pads is extracted;BGA pad center coordinate data in general text format file is imported into the blank package file, to realize the automatic layout of BGA pad, complete BGA package rebuilding.The present application can break through the limitation of data use, reduce the operation threshold and labor cost, while greatly improving the package design efficiency and ensuring the accuracy of pad layout.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of circuit design, and more specifically, to a method for extracting BGA pad coordinates from a DXF file and creating a new package. Background Technology

[0002] With the rapid development of miniaturization and high density in electronic devices, BGA (Ball Grid Array) packages are widely used in PCB design for various electronic products due to their advantages such as high pin density and good electrical performance. In the actual package design process, customers only provide package data in PDF and DXF formats for engineers to create BGA packages. Such data usually only contains the graphic outline of the BGA pads and the spacing information between the pads, and does not directly record the coordinate information of individual BGA pads.

[0003] Currently, for PDF or DXF format data lacking BGA pad coordinate information, the industry generally uses a traditional manual method for package creation. This involves engineers manually placing and positioning the pads one by one according to the pad spacing in the data. This method is inefficient when dealing with a small number of regularly arranged pads. When encountering thousands or even more BGA pads (e.g., a project with 9077 BGA pads), it not only requires a large amount of repetitive manual labor, significantly extending the package design cycle, but is also prone to coordinate deviations due to human error during manual calculation and positioning, affecting the consistency between the package and the original data.

[0004] The above problems are worth solving. Summary of the Invention

[0005] To overcome the problems of low efficiency, long cycle time, and easy coordinate deviation caused by the manual placement and positioning of pads one by one according to the pad spacing in existing package data that only contains pad patterns and spacing and no direct coordinates, this invention provides a method for extracting BGA pad coordinates from DXF files and creating a new package.

[0006] The technical solution of this invention is as follows:

[0007] A method for extracting BGA pad coordinates from a DXF file and creating a new package includes the following steps:

[0008] Step 1: Construct a blank encapsulation file to serve as the carrier for importing DXF files and extracting coordinate information;

[0009] Step 2: Import the DXF format graphic file that only contains BGA pad graphics and pad spacing information, but does not directly record the center coordinates of a single BGA pad, into the blank package file;

[0010] Step 3: Use the element information extraction function of the package design tool to obtain the center coordinate information of all BGA pad graphic elements, and export the element data associated with the center coordinate information as a general text format file;

[0011] Step 4: Use data processing tools to split and process the element data in the general text format file, and extract the center coordinate data of all BGA pads;

[0012] Step 5: Import the BGA pad center coordinate data from the general text format file into the blank package file to achieve automatic layout of the BGA pads and complete the creation of the new BGA package.

[0013] As a preferred embodiment of the present invention, the BGA pad graphic in the DXF format graphic file is circular.

[0014] As a preferred technical solution of the present invention, step A is further included between step 2 and step 3: removing redundant information of non-BGA pads in the imported file and retaining only the graphic elements corresponding to the BGA pads.

[0015] Furthermore, the redundant information includes lines, text, annotations, and geometry unrelated to BGA pads in the DXF file.

[0016] As a preferred technical solution of the present invention, the element information extraction step of the packaging design tool is specifically as follows: target positioning is performed based on the preset category identifier and morphological characteristics of BGA pad graphic elements, the element information reading logic is called, and parameter information of a single or all target pad elements is identified and extracted. The parameter information includes pad radius and pad center coordinates.

[0017] As a preferred embodiment of the present invention, the general text format file is a TXT file, and the element data recorded in the TXT file includes the center coordinates, radius parameters and category information of the BGA pads.

[0018] Furthermore, the data processing tool in step 4 is Excel software, and step 4 specifically includes the following steps:

[0019] Step 401: Import the TXT file into Excel and split the data into rows and columns;

[0020] Step 402: Use the built-in filtering function of Excel software to filter out the center coordinate data of all BGA pads;

[0021] Step 403: Select the center coordinate data that has been filtered out, copy and replace the contents of the TXT file;

[0022] Step 404: Format the center coordinate data in the TXT file to remove redundant characters.

[0023] Furthermore, the formatting process in step 404 involves using a batch replacement function to remove parentheses, extra spaces, and irrelevant identifier characters from the center coordinate data to obtain standardized coordinate value pairs.

[0024] As a preferred embodiment of the present invention, the blank package file is in .dra format, which is compatible with the graphic editing and coordinate import requirements of PCB package design software.

[0025] Preferably, the dra format is compatible with Allegro software.

[0026] As a preferred technical solution of the present invention, the automatic layout of BGA pads is achieved through coordinate-package position mapping logic. After the center coordinate data is imported into the blank package file, the system automatically generates BGA pads that match the pad parameters at the target position according to the position correspondence rules between the coordinate values ​​and the package design area. The generated pad layout is consistent with the relative position of the pads in the DXF file.

[0027] According to the above-described solution, the beneficial effects of this invention are as follows:

[0028] This invention enables applications with thousands of irregularly arranged BGA pads to bypass the traditional manual calculation of spacing and placement of pads one by one. By extracting the center coordinates from the BGA pad graphic elements in the DXF file, it significantly shortens the BGA package design cycle and solves the efficiency bottleneck of large-pad package design. At the same time, it avoids coordinate deviations caused by manual conversion and placement, ensuring that the relative position of the pads in the final package is completely consistent with the original DXF graphic, and significantly improves the accuracy of package design.

[0029] This invention is compatible with existing DXF format package data that only contains pad patterns and spacing. It can complete the creation of new packages without relying on additional coordinate files or supplementary data, breaking through the limitation of using direct coordinate data. Moreover, the steps of data import, extraction, processing and re-import are simple and easy to operate, reducing the reliance on the professional skills of designers and reducing the risk of errors in the process of manual calculation and placement. Attached Figure Description

[0030] Figure 1 This is a flowchart of a specific embodiment of the present invention;

[0031] Figure 2 This is a flowchart of the redundant information removal step in the method of the present invention;

[0032] Figure 3 This is a flowchart of the method for extracting packaging design tool information in the method of the present invention;

[0033] Figure 4 This is a flowchart of the method for processing TXT data using Excel in the present invention. Detailed Implementation

[0034] To better understand the purpose, technical solution, and technical effects of this invention, the invention will be further explained and described below in conjunction with the accompanying drawings and embodiments. It should be noted that similar reference numerals and letters in the following drawings indicate similar items; therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. It is also stated that the embodiments described below are only for explaining this invention and are not intended to limit this invention.

[0035] It should be noted that when a component is referred to as "fixed to" or "set on" another component, it can be directly on the other component or there may be an intermediate component. When a component is referred to as "connected to" another component, it can be directly connected to the other component or there may be an intermediate component.

[0036] The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship in which the product is usually placed when in use, or the orientation or positional relationship in which a person skilled in the art would normally understand it, or the orientation or positional relationship in which the product is usually placed when in use. It is only for the purpose of facilitating the description of this application and simplifying the description, and is not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.

[0037] like Figure 1 As shown, a method for extracting BGA pad coordinates from a DXF file and creating a new package converts a DXF graphic file without direct coordinate information into coordinate data that can be directly used for package design, completely replacing traditional manual operations. The method includes the following steps:

[0038] Step 1: Construct a blank encapsulation file to serve as the carrier for importing DXF files and extracting coordinate information;

[0039] The constructed blank package file ensures that all processes are carried out in a standardized design environment, avoiding graphic distortion or data loss due to carrier incompatibility;

[0040] Step 2: Import the DXF format graphic file that only contains BGA pad graphics and pad spacing information, but does not directly record the center coordinates of a single BGA pad, into the blank package file;

[0041] This step imports a DXF file containing only pad graphics and spacing; the same applies to PDF files, aligning with customer-provided information in practical applications. This step transforms the original graphic information into objects that can be recognized and manipulated by the packaging design tools, laying the foundation for coordinate extraction.

[0042] Step 3: Use the element information extraction function of the package design tool to obtain the center coordinate information of all BGA pad graphic elements, and export the element data associated with the center coordinate information as a general text format file;

[0043] This step captures the center coordinates from the BGA pad graphic elements and then exports them as a general text format file, realizing the conversion of graphic information into data information and skipping the tedious process of manually placing the pads one by one according to the traditional pad spacing.

[0044] Step 4: Use data processing tools to split and process the element data in the general text format file, and extract the center coordinate data of all BGA pads;

[0045] The purpose of this step is to filter out pure center coordinate data to ensure the accuracy and effectiveness of subsequent imported data;

[0046] Step 5: Import the BGA pad center coordinate data from the general text format file into the blank package file, and use the mapping relationship between the coordinates and the package position to realize the automatic layout of the BGA pads and complete the creation of the BGA package.

[0047] By adopting the above technical solution, coordinate data is directly extracted from the original DXF graphic elements, avoiding human errors in manual conversion and positioning, ensuring that the relative positions of the pads in the final package are completely consistent with the original graphic, and significantly reducing the risk of packaging errors. Specifically, the batch coordinate extraction in step 3 and the automatic layout in step 5 completely eliminate the manual calculation and placement operations, especially for scenarios with thousands of irregularly arranged BGA pads, greatly reducing repetitive manual labor and significantly shortening the originally lengthy packaging cycle, solving the efficiency bottleneck of large-scale pad packaging. This invention operates entirely on DXF files containing only pad graphics and spacing, without relying on additional coordinate files or supplementary data, breaking through the limitations of using data without direct coordinate data and improving the utilization rate of existing data. Furthermore, the steps of data import, extraction, processing, and re-import are simple and easy to operate, reducing reliance on the professional skills of designers and reducing rework costs caused by improper operation, achieving efficient and low-cost BGA package design.

[0048] In this invention, in the DXF format graphic file of step 1, the BGA pad graphic is circular with regular outline boundaries. It is stored as a standard circular element in the DXF file and can be accurately identified as a "PAD type" graphic by the package design tool, avoiding confusion with redundant information such as lines and text. The package design tool can quickly locate the geometric center of the circular pad through a mature graphic recognition algorithm, ensuring that the extracted coordinates are completely consistent with the pad position in the original DXF graphic.

[0049] like Figure 1 and Figure 2 As shown, in this invention, step A is included between steps 2 and 3: removing redundant information of non-BGA pads from the imported file, retaining only the graphic elements corresponding to the BGA pads. Further, the redundant information includes lines, text, annotations, and geometric shapes unrelated to BGA pads in the DXF file. DXF format files, as a general graphic carrier, typically contain redundant information such as lines, text (e.g., annotations), dimensions, and border graphics, in addition to the core BGA pad graphics. This information is unrelated to the coordinate data of the BGA pads but can interfere with the element recognition of the packaging design tool. When performing coordinate extraction, the packaging design tool needs to locate the target pad based on features such as graphic category and shape. The presence of redundant information increases the complexity of the tool's recognition logic, causing it to mistakenly identify non-pad elements as targets, or prolonging processing time during batch recognition due to data redundancy. Therefore, step A actively removes invalid information to construct a clean data environment containing only BGA pad graphics, ensuring that the packaging design tool can directly focus on the target object without additional processing of irrelevant data, thus improving the accuracy and efficiency of extraction.

[0050] Therefore, step A helps avoid redundant information interfering with the recognition logic, prevents the packaging design tool from mistakenly extracting coordinate data of non-pad elements, and avoids packaging design errors caused by coordinate confusion. It also improves batch processing efficiency; after removing redundant information such as lines and text, the amount of effective data in the file is significantly reduced. The packaging design tool does not need to traverse invalid data when performing batch recognition and coordinate extraction, reducing the computational load. This is especially beneficial for scenarios with thousands of irregularly arranged pads, significantly shortening the data extraction cycle and further optimizing overall packaging design efficiency. Furthermore, by retaining only a general text format file containing the pad graphic elements, the element data associated with the coordinates in the exported file is more concentrated. In subsequent steps 4, when splitting and filtering coordinates, there is no need to separately distinguish redundant data, reducing data cleaning steps and lowering the risk of errors.

[0051] like Figure 3As shown, in this invention, the element information extraction step of the packaging design tool is specifically as follows: target positioning is performed based on the preset category identifier and morphological characteristics of the BGA pad graphic elements, the element information reading logic is called, and parameter information of a single or all target pad elements is identified and extracted. The parameter information includes pad radius and pad center coordinates.

[0052] The preset category identifiers originate from the "BOARD GEOMETRY" class and "PAD" subclass in the DXF file. This standardized classification provides clear identification criteria for the package design tool, enabling quick differentiation between pads and non-target elements such as lines and text. Morphological characteristics refer to the circular shape of BGA pads. As the standard shape of a pad, the circle possesses unique and easily identifiable geometric features. Therefore, the reading logic is based on the matching results of category and shape, triggering the tool to read the parameters (center coordinates, radius) of the target pad, skipping the parsing of information from non-target elements, achieving accurate extraction, and ensuring that the extracted parameter information corresponds to the BGA pad, completely eliminating coordinate deviations caused by identification errors. For thousands of arranged BGA pads, the package design tool can traverse all target pads at once and extract them in batches through standardized category + shape recognition rules, significantly reducing extraction time.

[0053] like Figure 4 As shown, in this invention, the universal text format file is a TXT file. TXT files are a standard text format that is cross-platform and cross-tool, capable of being stably exported by packaging design tools and directly recognized by Excel data processing tools without the need for additional format conversion plugins. The element data recorded in the TXT file includes the center coordinates, radius parameters, and category information of the BGA pads.

[0054] Furthermore, the data processing tool in step 4 is Excel software, and step 4 specifically includes the following steps:

[0055] Step 401: Import the TXT file into Excel and split the data into rows and columns; transform the messy text data into well-organized table data to reduce the difficulty of filtering.

[0056] Step 402: Using the built-in filtering function of Excel, filter for the keyword "center-xy:" to extract the center coordinate data of all BGA pads, eliminating interference from auxiliary information such as radius and category;

[0057] Step 403: Select the center coordinate data that has been filtered out, copy and replace the content in the TXT file so that the TXT file only retains the center coordinate data and simplifies the text data;

[0058] Step 404: Format the center coordinate data in the TXT file to remove redundant characters. Specifically, the formatting process in step 404 involves using the batch replace function to delete parentheses, extra spaces, and irrelevant identifier characters from the center coordinate data, resulting in standardized coordinate value pairs. Taking the deletion of left parentheses "()" as an example, the batch replace function works as follows: select all instances of "()" in the text and replace them with blank content, achieving the effect of deleting all "()" in the text; similarly, after deleting all redundant characters, only coordinate value pairs are retained. This step 4 replaces the tedious manual line-by-line search and extraction, significantly shortening data processing time, especially when dealing with large amounts of data, where the efficiency improvement is even more significant. Excel's structured splitting ensures neat data arrangement, reducing the risk of omissions during manual processing, and the targeted filtering function retains only the center coordinate data, avoiding data mixing. Excel's low barrier to entry and high versatility make it easy for designers to use.

[0059] In this invention, the blank package file is in dra format, which is compatible with the graphic editing and coordinate import requirements of PCB package design software (such as Allegro software). The dra format naturally supports lossless import of DXF graphic files and completely preserves the graphic outline, relative position and category identification information of BGA pads.

[0060] Automatic BGA pad placement is achieved through coordinate-package position mapping logic. After the center coordinate data is imported into the blank package file, the system automatically generates BGA pads matching the pad parameters at the target location based on the correspondence rules between coordinate values ​​and the package design area. The generated pad layout maintains the same relative position as the pads in the DXF file. In this process, the mapping logic first aligns the graphic reference of the DXF file with the coordinate reference of the dra file, ensuring the absolute position of the extracted center coordinates corresponding to the package design area and avoiding offset. The data-parameter association mapping binds the imported standardized coordinate data (i.e., formatted in step 404) with the previously extracted pad radius parameters. While recognizing the coordinate position, the system automatically calls the matching pad size parameters without requiring manual setting. The center coordinates of all BGA pads are directly extracted from the original DXF graphic. The coordinate data itself fully preserves the relative spacing and arrangement patterns between pads. During execution, the mapping logic only needs to generate pads one by one according to the coordinate values, without secondary calculation or adjustment.

[0061] In summary, this invention is compatible with existing DXF format package data that only contains pad graphics and spacing. It allows for package creation without relying on additional coordinate files or supplementary data, overcoming the limitations of using data without direct coordinate information. In application scenarios with thousands of irregularly arranged BGA pads, it eliminates the traditional manual calculation of spacing and individual pad placement. By extracting the center coordinates from the BGA pad graphic elements in the DXF file, it significantly shortens the BGA package design cycle and solves the efficiency bottleneck of large-pad package design. Simultaneously, it avoids coordinate deviations caused by manual conversion and placement, improving the accuracy of package design. The tools used in this invention are highly versatile and easy to operate, reducing reliance on the professional skills of designers.

[0062] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0063] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.

Claims

1. A method for extracting BGA pad coordinates from a DXF file and creating a new package, characterized in that, Includes the following steps: Step 1: Construct a blank encapsulation file to serve as the carrier for importing DXF files and extracting coordinate information; Step 2: Import the DXF format graphic file containing only BGA pad patterns and pad spacing information into the blank package file; Step 3: Use the element information extraction function of the package design tool to obtain the center coordinate information of all BGA pad graphic elements, and export the element data associated with the center coordinate information as a general text format file; Step 4: Use data processing tools to split and process the element data in the general text format file, and extract the center coordinate data of all BGA pads; Step 5: Import the BGA pad center coordinate data from the general text format file into the blank package file to achieve automatic layout of the BGA pads and complete the creation of the new BGA package.

2. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 1, characterized in that, In the DXF format graphic file, the BGA pad graphic is circular.

3. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 1, characterized in that, Between steps 2 and 3, there is also step A: removing redundant information of non-BGA pads from the imported file and retaining only the graphic elements corresponding to the BGA pads.

4. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 3, characterized in that, The redundant information includes lines, text, annotations, and geometry unrelated to BGA pads in the DXF file.

5. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 1, characterized in that, The specific steps for extracting element information in the packaging design tool are as follows: target positioning is performed based on the preset category identifier and morphological characteristics of BGA pad graphic elements, the element information reading logic is called, and parameter information of a single or all target pad elements is identified and extracted. The parameter information includes pad radius and pad center coordinates.

6. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 1, characterized in that, The general text format file is a TXT file, and the element data recorded in the TXT file includes the center coordinates, radius parameters, and category information of the BGA pads.

7. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 6, characterized in that, The data processing tool mentioned in step 4 is Excel software, and step 4 specifically includes the following steps: Step 401: Import the TXT file into Excel and split the data into rows and columns; Step 402: Use the built-in filtering function of Excel software to filter out the center coordinate data of all BGA pads; Step 403: Select the center coordinate data that has been filtered out, copy and replace the contents of the TXT file; Step 404: Format the center coordinate data in the TXT file to remove redundant characters.

8. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 7, characterized in that, The formatting process in step 404 is as follows: use the batch replacement function to delete parentheses, extra spaces and irrelevant identifier characters in the center coordinate data to obtain standardized coordinate value pairs.

9. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 1, characterized in that, The blank package file is in .dra format, which is compatible with the graphic editing and coordinate import requirements of Allegro software.

10. The method for extracting BGA pad coordinates from a DXF file and creating a new package according to claim 1, characterized in that, Automatic BGA pad placement is achieved through coordinate-package location mapping logic. After the center coordinate data is imported into the blank package file, the system automatically generates BGA pads that match the pad parameters at the target location based on the correspondence rules between the coordinate values ​​and the package design area. The generated pad layout is consistent with the relative position of the pads in the DXF file.