A method and apparatus for CAD coloring of micro-hole pattern objects of a gas distribution plate

CN122695019APending Publication Date: 2026-09-04NINGBO JIANGFENGXINCHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610910484.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-23
Publication Date
2026-09-04

AI Technical Summary

Technical Problem

[0004]本发明提供了一种气体分配盘微孔图形对象的CAD着色方法及装置,以解决现有技术中气体分配盘微孔CAD图纸着色效率低、识别精度差、相同孔深无法统一归类、且无法支持直径区间孔表自动匹配的技术问题

Benefits of technology

[0011] This invention automatically determines the target hole table file in response to the user's selection of the hole table file, assigns a corresponding color value to each different hole depth value in the hole table file, and automatically matches the corresponding row based on the distance from the positioning point of each graphic object to the center point of the gas distribution disk and the matching tolerance value, using the hole depth value of the corresponding row as the hole depth value of the graphic object. The color attribute of the graphic object is determined based on the color value corresponding to the hole depth value. The color attribute of each graphic object is batch modified to the corresponding color value by calling the CAD application programming interface, realizing fully automatic batch coloring of micro-hole graphic objects in the gas distribution disk CAD drawing. This eliminates the need for manual selection and color modification of holes one by one, significantly improving drawing processing efficiency. By uniformly assigning different colors to different hole depth values, it ensures that the same hole depth presents the same color in different layers or regions, and different hole depths present different colors, avoiding manual identification errors caused by extremely small differences in hole depth steps, and improving the accuracy and consistency of the coloring results. The preset matching tolerance value is compatible with drawing size deviations, improving the engineering adaptability of the method. Furthermore, by outputting statistical results and the correspondence between hole depth and color, it provides users with complete coloring feedback and processing reference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122695019A_ABST
    Figure CN122695019A_ABST
Patent Text Reader

Abstract

The application discloses a CAD coloring method and device for micro-hole pattern objects of a gas distribution plate. It relates to the technical field of gas distribution plates and drawing design. The method comprises the following steps: determining a target hole table file; each row in the target hole table file comprises hole position distribution parameters and a hole depth value; obtaining non-repeated values in all hole depth values in the target hole table file, generating a hole depth value set, and determining a color value corresponding to each hole depth value in the hole depth value set according to a preset color distribution rule; for each pattern object representing a micro-hole in a CAD drawing, determining the distance from the positioning point of the pattern object to the center point of the gas distribution plate; according to the distance, a preset matching tolerance value, and the spatial range defined by the hole position distribution parameters in each row, determining the corresponding row of the pattern object in the target hole table file, taking the hole depth value of the corresponding row as the hole depth value of the pattern object, and determining the color attribute of the pattern object according to the color value corresponding to the hole depth value. The hole depth is automatically matched, the coloring is batched, and the coloring is efficient and accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of gas distribution disks and drafting design technology, and in particular to a CAD coloring method and apparatus for micro-hole graphic objects of gas distribution disks. Background Technology

[0002] In semiconductor wafer deposition and etching processes, gas distribution disks are used to uniformly distribute process gases onto the wafer surface. These disks are densely covered with numerous micro-holes. To ensure uniform gas flow across the wafer surface, the micro-holes in the gas distribution disks typically employ a multi-layered, stepped depth design. Micro-holes in different layers or regions have different depth values, exhibiting a finely stepped variation, with the depth difference between adjacent holes being only 0.05 to 0.1 millimeters. Furthermore, some gas distribution disks have micro-holes arranged in a circular array according to their pitch circle diameter, while others are arranged in triangular, rectangular, or irregular patterns. In practical engineering, to facilitate identification of hole depths in different areas by machining personnel, the micro-hole patterns need to be colored and differentiated in the CAD drawings according to their depths.

[0003] Currently, the coloring method for CAD drawings of micro-holes in gas distribution disks mainly relies on manual operation: designers refer to the hole table, find the corresponding layers or regions one by one, manually select the micro-hole graphic, modify the color attributes of each one, and manually select different colors to distinguish the depths of adjacent holes. This method has the following shortcomings: (1) The number of micropores can reach hundreds to thousands, and the number of layers can reach dozens. Manually selecting holes and changing the color of each hole is cumbersome, time-consuming and inefficient. (2) The difference in hole depth step is very small. The hole depth of adjacent layers differs by only 0.05 to 0.1 mm, which is very easy to confuse and lead to coloring errors. (3) The same hole depth may be distributed in multiple discontinuous layers or different regions, and it is difficult to classify them visually by humans. The coloring result does not match the design intention of airflow uniformity. (4) When there are slight dimensional deviations in the drawings, manual selection of rings lacks tolerance and adaptability, which can easily lead to errors in the judgment of the ring assignment. (5) Color selection relies on manual judgment, and the color difference between adjacent layers is not significant enough, which affects the recognition accuracy in the machining process; (6) For microholes arranged in triangles, rectangles or irregular patterns, since it is impossible to use the pitch circle diameter for partitioning, the existing manual coloring method is difficult to accurately complete hole depth identification and coloring based on the hole table of diameter range. Summary of the Invention

[0004] This invention provides a CAD coloring method and apparatus for micro-hole graphic objects of gas distribution disks, in order to solve the technical problems in the prior art such as low coloring efficiency, poor recognition accuracy, inability to uniformly classify holes of the same depth, and inability to support automatic matching of hole tables within diameter range.

[0005] According to one aspect of the present invention, a CAD coloring method for a microporous graphic object of a gas distribution disk is provided, comprising: In response to the user's selection of a borehole table file, a target borehole table file is determined; each row in the target borehole table file includes borehole location distribution parameters and borehole depth values. Obtain the unique values ​​from all hole depth values ​​in the target hole table file, generate a hole depth value set, and determine the color value corresponding to each hole depth value in the hole depth value set according to a preset color allocation rule; For each graphic object representing a micropore in the CAD drawing, determine the distance from the positioning point of the graphic object to the center point of the gas distribution disk; Based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row, the corresponding row of the graphic object in the target hole table file is determined, and the hole depth value of the corresponding row is used as the hole depth value of the graphic object. The color attribute of the graphic object is determined based on the color value corresponding to the hole depth value of the graphic object.

[0006] According to another aspect of the present invention, a CAD coloring apparatus for a microporous graphic object of a gas distribution disk is provided, comprising: The borehole table file acquisition module is used to determine the target borehole table file in response to the user's selection operation of the borehole table file; each row of the target borehole table file includes borehole location distribution parameters and borehole depth values; The color mapping establishment module is used to obtain the non-repeating values ​​of all hole depth values ​​in the target hole table file, generate a hole depth value set, and determine the color value corresponding to each hole depth value in the hole depth value set according to the preset color allocation rules. The graphic object positioning module is used to determine the distance from the positioning point of the graphic object to the center point of the gas distribution disk for each graphic object representing a micropore in the CAD drawing; The hole depth matching module is used to determine the corresponding row of the graphic object in the target hole table file based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row, and to use the hole depth value of the corresponding row as the hole depth value of the graphic object. The color assignment module is used to determine the color attribute of the graphic object based on the color value corresponding to the hole depth value of the graphic object.

[0007] According to another aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the CAD coloring method for a gas distribution disk microporous graphic object according to any embodiment of the present invention.

[0008] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the CAD coloring method for a gas distribution disk microporous graphic object according to any embodiment of the present invention.

[0009] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the CAD coloring method for a gas distribution disk micro-hole graphic object according to any embodiment of the present invention.

[0010] According to another aspect of the present invention, a computer program product is provided, comprising a computer program / instructions that, when executed by a processor, implement the CAD coloring method for a gas distribution disk micro-hole graphic object as described in any embodiment of the present invention.

[0011] This invention automatically determines the target hole table file in response to the user's selection of the hole table file, assigns a corresponding color value to each different hole depth value in the hole table file, and automatically matches the corresponding row based on the distance from the positioning point of each graphic object to the center point of the gas distribution disk and the matching tolerance value, using the hole depth value of the corresponding row as the hole depth value of the graphic object. The color attribute of the graphic object is determined based on the color value corresponding to the hole depth value. The color attribute of each graphic object is batch modified to the corresponding color value by calling the CAD application programming interface, realizing fully automatic batch coloring of micro-hole graphic objects in the gas distribution disk CAD drawing. This eliminates the need for manual selection and color modification of holes one by one, significantly improving drawing processing efficiency. By uniformly assigning different colors to different hole depth values, it ensures that the same hole depth presents the same color in different layers or regions, and different hole depths present different colors, avoiding manual identification errors caused by extremely small differences in hole depth steps, and improving the accuracy and consistency of the coloring results. The preset matching tolerance value is compatible with drawing size deviations, improving the engineering adaptability of the method. Furthermore, by outputting statistical results and the correspondence between hole depth and color, it provides users with complete coloring feedback and processing reference.

[0012] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0014] Figure 1 This is a flowchart of a CAD coloring method for a microporous graphic object of a gas distribution disk provided in an embodiment of the present invention; Figure 2 This is a flowchart of a CAD coloring method for a microporous graphic object of a gas distribution disk provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a CAD coloring device for a gas distribution disk micro-hole graphic object provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements the CAD coloring method for the micro-hole graphic object of the gas distribution disk according to an embodiment of the present invention. Detailed Implementation

[0015] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0016] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0017] Figure 1This is a flowchart illustrating a CAD coloring method for a gas distribution disk micro-hole graphic object provided by an embodiment of the present invention. This embodiment is applicable to the micro-hole coloring scenario of gas distribution disk CAD drawings in semiconductor manufacturing, especially suitable for situations where the micro-holes are arranged in multi-layered stepped configurations and require color differentiation and batch modification based on hole depth according to hole surface data. This method can be executed by a CAD coloring device for the gas distribution disk micro-hole graphic object, which can be implemented in hardware and / or software and can be configured in an electronic device with corresponding data processing capabilities. Figure 1 As shown, the method includes: S110. In response to the user's selection operation of the borehole table file, determine the target borehole table file; each row in the target borehole table file includes borehole location distribution parameters and borehole depth values.

[0018] The CAD drawing of the gas distribution plate contains multiple graphic objects (such as circular solids) representing micro-holes. Each graphic object has definite location information in the drawing, but the hole depth value has not yet been associated. The user selects a pre-prepared hole table file through the file selection dialog box of the CAD software. The hole table file is in text format (such as TXT or CSV). Each row in the hole table file corresponds to a hole ring (pitch circle diameter mode PCD) or a ring area (diameter interval mode). Each row includes at least hole location distribution parameters and hole depth values. Among them, the hole location distribution parameters are used to define the spatial allocation range of the micro-holes on the gas distribution plate; the hole depth value indicates the depth to which all micro-holes in the ring or area should be machined.

[0019] In response to the user's selection of a hole table file, the selected file is designated as the target hole table file, and its contents are read for subsequent parsing. If the user does not select any file or cancels the selection, the process terminates and the user is prompted to select again.

[0020] S120. Obtain the unique values ​​of all hole depth values ​​in the target hole table file, generate a hole depth value set, and determine the color value corresponding to each hole depth value in the hole depth value set according to the preset color allocation rules.

[0021] The process iterates through each row of the target hole table file, extracts the hole depth values ​​from each row, and removes duplicate values, retaining only the unique ones to generate a set of hole depth values. Since the target hole table file may contain multiple rows with the same hole depth value (e.g., in the pitch circle diameter mode, the same hole depth appears across multiple discontinuous layers; or in the diameter range mode, the same hole depth appears in multiple non-adjacent annular regions), to avoid assigning the same hole depth value the same color repeatedly, a set of unique hole depth values ​​must first be constructed, ensuring that each hole depth value corresponds to only one color.

[0022] Each hole depth value in the set of hole depth values ​​is assigned a corresponding color value according to a preset color allocation rule. This color value is used to identify the micro-hole pattern of the corresponding depth in subsequent CAD drawings.

[0023] Optionally, the color value corresponding to each hole depth value in the hole depth value set is determined according to a preset color allocation rule, including: obtaining a preset color sequence, wherein the preset color sequence includes at least two color values, and the hue difference between any two adjacent color values ​​meets a preset contrast requirement; sorting each hole depth value in the hole depth value set according to its numerical value, and assigning color values ​​to each hole depth value in the color sequence in the sorted order; wherein the same hole depth value is assigned the same color value, and different hole depth values ​​are assigned different color values.

[0024] Optionally, a preset color sequence is obtained, which includes multiple color values, and the hue difference between any two adjacent color values ​​meets a preset contrast requirement to ensure that adjacent hole depths can be clearly distinguished visually. The hole depth values ​​in the hole depth value set are sorted according to their numerical values ​​to obtain a sorted hole depth value sequence. Color values ​​are sequentially extracted from the color sequence and assigned to each hole depth value in the sorted hole depth value sequence. The same hole depth value is assigned the same color value, and different hole depth values ​​are assigned different color values. For example, if the hole depth value set contains three different hole depth values ​​of 14.40mm, 14.45mm, and 14.50mm, then three different color values ​​are assigned to them respectively; if multiple rows in the hole table file correspond to the same hole depth value, then these multiple rows share the same color value. A one-to-one correspondence between hole depth values ​​and color values ​​is established to provide a basis for subsequent batch coloring.

[0025] It can automatically read the hole table file and assign a single color to each hole depth value, eliminating the need for designers to manually search for hole depths in each layer or region, and also eliminating the need for manual color selection. This avoids human identification errors caused by extremely small differences in hole depth steps (only 0.05~0.1mm), while ensuring that the same hole depth has a consistent visual identification in different layers or regions, which conforms to the design logic of airflow uniformity.

[0026] S130. For each graphic object representing a micropore in the CAD drawing, determine the distance from the positioning point of the graphic object to the center point of the gas distribution disk.

[0027] Graphical objects refer to graphic elements in CAD drawings that represent the outline of micro-holes, including but not limited to circular solids. Each graphic object has definite positional information, with its position in the drawing coordinate system identified by a positioning point (such as the center of a circle).

[0028] In response to the user's action of selecting the geometric center point of the gas distribution disk in the CAD drawing interface, the coordinates of that center point are obtained. All graphic objects in the current CAD drawing are traversed, and the coordinates of the positioning points of each graphic object are extracted one by one. The straight-line distance from the positioning point of each graphic object to the geometric center point of the gas distribution disk is calculated. This distance is used in subsequent steps to determine the concentric or annular region to which each graphic object belongs.

[0029] The distribution of micropores on the gas distribution disk has a certain degree of symmetry or regularity. The distance from the positioning point of each graphic object to the center point of the gas distribution disk determines the layer (PCD mode) or annular region (diameter range mode) to which the graphic object belongs. This distance is the core parameter on which the subsequent matching hole table is based.

[0030] S140. Based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row, determine the corresponding row of the graphic object in the target hole table file, and use the hole depth value of the corresponding row as the hole depth value of the graphic object.

[0031] Based on the distance from the positioning point of each graphic object to the center point of the gas distribution disk, and combined with the preset matching tolerance value, the distance is compared with the spatial range defined by the hole position distribution parameters of each row in the target hole table file to determine the corresponding row of each graphic object in the target hole table file. After determining the corresponding row, the hole depth value in the corresponding row is used as the hole depth value of the graphic object.

[0032] Optionally, the matching tolerance value input by the user can be obtained as the preset matching tolerance value; if the user does not input a matching tolerance value, the default value can be used as the preset matching tolerance value.

[0033] Optionally, the matching tolerance value input by the user can be obtained. If the user inputs a tolerance value via command line or dialog box, this input value will be used as the preset matching tolerance value; if the user does not input a tolerance value, a default value will be used, which can be 0.1 mm. The matching tolerance value is used to accommodate dimensional rounding errors, measurement deviations, and slight offsets of graphic object positioning points that may exist during the CAD drawing process, preventing graphic objects from failing to correctly match the corresponding hole rows due to minor deviations.

[0034] Optionally, the hole position distribution parameter is the pitch circle diameter, which represents the diameter of the virtual circle formed by the positioning points passing through a set of uniformly distributed graphic objects. Based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row, the corresponding row of the graphic object in the target hole table file is determined, including: for any row in the target hole table file, the pitch circle diameter of the row is divided by two to obtain the standard radius value of the row; if the absolute value of the deviation between the distance and the standard radius value is less than or equal to the matching tolerance value, then the row is determined to be the corresponding row of the graphic object in the target hole table file.

[0035] When the orifice distribution parameter is the pitch circle diameter (PCD), it is suitable for scenarios where the micro-holes of the gas distribution disk are arranged in a circular array. The pitch circle diameter represents the diameter of the virtual circle formed by the positioning points passing through a set of uniformly distributed graphic objects. Each row in the target hole table file contains an orifice distribution parameter value, which, when divided by two, corresponds to the standard radius value of that ring on the drawing.

[0036] For any valid row in the target orifice table file, divide the pitch circle diameter of that row by two to obtain the standard radius value corresponding to that row. Compare the distance from the positioning point of any graphic object to the center point of the gas distribution disk with the standard radius value of that row, and calculate the absolute value of the deviation between the two. If the absolute value of the deviation is less than or equal to the preset matching tolerance value, then the graphic object is determined to belong to the concentric circle corresponding to that row, that is, the row is determined to be the corresponding row of the graphic object in the target orifice table file.

[0037] By dividing the pitch circle diameter of each row by two to obtain the standard radius value, and comparing the distance from the positioning point of each graphic object to the center point of the gas distribution disk with the standard radius value of each row one by one, the corresponding row is determined as the matching row of the graphic object when the absolute value of the deviation does not exceed the matching tolerance value. This achieves automatic row-by-row matching and assignment of micropores arranged in a circular array based on the pitch circle diameter with the orifice surface data, eliminating the need for manual layer searching and assignment judgment. This effectively avoids manual matching errors caused by dense layers and extremely small differences in orifice depth steps. At the same time, the tolerance mechanism is compatible with minor dimensional deviations that may exist during drawing and measurement, ensuring that each graphic object can accurately correspond to the correct orifice surface row and obtain the correct orifice depth value. A corresponding orifice surface row is determined for each graphic object to obtain the orifice depth value that the graphic object should have.

[0038] S150. Determine the color attribute of the graphic object based on the color value corresponding to the hole depth value of the graphic object.

[0039] Call the CAD application programming interface to modify the color attributes of each graphic object to the specified color value; count the number of graphic objects whose color attributes have been modified and the number of graphic objects whose color attributes have not been modified, output the statistical results in the CAD command prompt area, and output the correspondence between the hole depth value and the color value.

[0040] Using the hole depth value corresponding to each graphic object as an index, the system searches within the established correspondence between hole depth and color values ​​to obtain the color value uniquely corresponding to that hole depth. Then, it calls the CAD application programming interface to batch modify the color attributes of each graphic object to its corresponding color value. This creates a one-to-one visual mapping between the color of each micro-hole graphic object in the CAD drawing and its hole depth value, allowing machining personnel to directly identify the machining depth of different areas based on color.

[0041] The system counts the number of graphic objects whose colors were successfully modified, as well as the number of graphic objects that were not modified because they could not be matched with any hole table row. The results are output to the CAD command prompt. If any graphic objects remain unmodified, the user is prompted to check if their positioning points are outside the coverage area defined by the hole table file. Simultaneously, the correspondence between hole depth values ​​and color values ​​is output in a list format in the CAD command prompt for machining personnel to use as a reference for color-depth comparison.

[0042] This invention automatically determines the target hole table file in response to the user's selection of the hole table file, assigns a corresponding color value to each different hole depth value in the hole table file, and automatically matches the corresponding row based on the distance from the positioning point of each graphic object to the center point of the gas distribution disk and the matching tolerance value, using the hole depth value of the corresponding row as the hole depth value of the graphic object. The color attribute of the graphic object is determined based on the color value corresponding to the hole depth value. The color attribute of each graphic object is batch modified to the corresponding color value by calling the CAD application programming interface, realizing fully automatic batch coloring of micro-hole graphic objects in the gas distribution disk CAD drawing. This eliminates the need for manual selection and color modification of holes one by one, significantly improving drawing processing efficiency. By uniformly assigning different colors to different hole depth values, it ensures that the same hole depth presents the same color in different layers or regions, and different hole depths present different colors, avoiding manual identification errors caused by extremely small differences in hole depth steps, and improving the accuracy and consistency of the coloring results. The preset matching tolerance value is compatible with drawing size deviations, improving the engineering adaptability of the method. Furthermore, by outputting statistical results and the correspondence between hole depth and color, it provides users with complete coloring feedback and processing reference.

[0043] Figure 2 This is a flowchart illustrating a CAD coloring method for a microporous graphic object of a gas distribution disk according to an embodiment of the present invention. This embodiment is an optimization and improvement based on the above embodiment. Figure 2 As shown, the method includes: S210. In response to the user's selection operation of the borehole table file, determine the target borehole table file; each row in the target borehole table file includes borehole location distribution parameters and borehole depth values.

[0044] Optionally, after determining the target borehole table file, the data format of the target borehole table file is validated to ensure the accuracy of subsequent parsing and matching. This involves checking if the target borehole table file is empty, checking each row for at least three columns, verifying that all column data are valid values, checking that the borehole depth is greater than zero, and checking that the borehole location distribution parameters meet the corresponding numerical range requirements. If any row has fewer than three columns or contains invalid data, the process terminates and outputs a message containing the row number and error type, allowing the user to locate and correct data errors in the borehole table file.

[0045] In the data format verification of the target orifice table file, the numerical range of the orifice distribution parameters must be determined according to the type of gas distribution disk. When the gas distribution disk is in pitch circle diameter mode, each row in the target orifice table file represents a hole ring, containing three data columns: ring number, pitch circle diameter, and hole depth, where the pitch circle diameter should be greater than zero. When the gas distribution disk is in diameter range mode, each row in the target orifice table file represents an annular region, containing three data columns: lower limit diameter, upper limit diameter, and hole depth, where the lower limit diameter should be greater than or equal to zero, and the upper limit diameter should be greater than the lower limit diameter.

[0046] S220. Obtain the unique values ​​of all hole depth values ​​in the target hole table file, generate a hole depth value set, and determine the color value corresponding to each hole depth value in the hole depth value set according to the preset color allocation rules.

[0047] S230. For each graphic object representing a micropore in the CAD drawing, determine the distance from the positioning point of the graphic object to the center point of the gas distribution disk.

[0048] Optionally, the orifice distribution parameter is a diameter range, which includes a lower limit diameter and an upper limit diameter; wherein, the lower limit diameter and the upper limit diameter together define an annular region centered on the center point of the gas distribution disk.

[0049] S240. For any row in the target hole table file, divide the lower limit diameter and upper limit diameter of the row by two respectively to obtain the lower limit radius value and upper limit radius value of the row.

[0050] S250. If the distance is greater than or equal to the lower radius value and less than the upper radius value, then the row is determined to be the corresponding row of the graphic object in the target hole table file, and the hole depth value of the corresponding row is used as the hole depth value of the graphic object.

[0051] When the orifice distribution parameter is a diameter range, this diameter range is formed by the lower and upper diameter limits, which together define an annular region centered on the center point of the gas distribution disk. Each line in the target orifice table file represents a diameter range, and dividing this range by two yields the radius of the annular region. This method is suitable for gas distribution disks with micro-orifices arranged in triangular, rectangular, or irregular patterns.

[0052] For any valid row in the target orifice table file, divide the lower limit diameter and upper limit diameter of that row by two respectively to obtain the lower limit radius value and upper limit radius value corresponding to that row. The lower limit radius value and upper limit radius value together define the radius value range of that row. Compare the distance from the positioning point of the graphic object to the center point of the gas distribution disk with the value range defined by the lower limit radius value and upper limit radius value of that row: if the distance is greater than or equal to the lower limit radius value of that row and less than the upper limit radius value of that row, then it is determined that the graphic object belongs to the annular area corresponding to that row, and that row is determined to be the corresponding row of the graphic object in the target orifice table file. The hole depth value in the corresponding row is used as the hole depth value of the graphic object.

[0053] If the lower limit diameter of a row is zero, then the corresponding lower limit radius is zero. The condition for determining the row is that the distance value is less than the upper limit radius value, that is, the micropores covering the central area of ​​the gas distribution disk.

[0054] By dividing the lower and upper diameters of each row's diameter interval by two to obtain the lower and upper radius values, and comparing the distance from the positioning point of each graphic object to the center point of the gas distribution disk with the numerical range defined by the lower and upper radius values ​​of each row, the corresponding row is determined as the matching row of the graphic object when the distance falls within the numerical range. This achieves automatic matching and attribution of non-circular array-arranged micropores and orifice surface data based on diameter intervals, solving the technical problem that existing methods cannot handle triangular, rectangular, or irregularly arranged micropores. It enables micropores of any arrangement to automatically complete orifice depth matching and coloring based on the orifice surface, expanding the applicability and engineering practicality of the method.

[0055] Optionally, before obtaining the unique values ​​from all hole depth values ​​in the target hole table file and generating the hole depth value set, the following steps are also included: sorting the diameter intervals of each row in the target hole table file in ascending order of their lower limit diameters; if any adjacent diameter intervals overlap after sorting, it is determined to be an overlap error, the process is terminated, and the row number and overlap range of the overlapping diameter intervals are output; wherein, if the upper limit diameter of the preceding diameter interval is equal to the lower limit diameter of the following diameter interval, it is determined to be a valid continuous boundary; if there is an uncovered diameter range between any adjacent diameter intervals after sorting, the uncovered diameter range and the row numbers of the two diameter intervals adjacent to the uncovered diameter range are output.

[0056] Optionally, for diameter interval mode, before obtaining the non-repeating values ​​in the hole depth, a pre-check is performed on the integrity and continuity of each diameter interval. The diameter intervals in each row of the target hole table file are sorted in ascending order of their lower limit diameters. Then, the overlap between adjacent diameter intervals is checked sequentially according to the sorted order. If any adjacent intervals overlap in the radial direction, it is considered an overlap error, the process terminates, and the row number and overlap range information of the overlapping interval are output, allowing the user to quickly locate and correct the erroneous row in the hole table file. Specifically, if the upper limit diameter of the preceding diameter interval is equal to the lower limit diameter of the following diameter interval, it is considered a valid continuous boundary and is not considered an overlap. The system also checks whether there are diameter ranges between the sorted adjacent intervals that are not covered by any interval. If so, the information on the uncovered diameter range and the row numbers of the two diameter intervals adjacent to this gap in the target hole table file are output to prompt the user to fill in the missing intervals. By checking the integrity of the intervals, we can ensure that each annular area in the diameter interval hole table can seamlessly cover the entire range from the center to the edge, avoiding the same graphic object from matching to multiple rows due to interval overlap, or some graphic objects from not matching to any row due to interval omission.

[0057] S260. Determine the color attribute of the graphic object based on the color value corresponding to the hole depth value of the graphic object.

[0058] Call the CAD application programming interface to modify the color attributes of each graphic object to the specified color value; count the number of graphic objects whose color attributes have been modified and the number of graphic objects whose color attributes have not been modified, output the statistical results in the CAD command prompt area, and output the correspondence between the hole depth value and the color value.

[0059] This invention automatically determines the target orifice table file in response to the user's selection of the orifice table file, and assigns corresponding color values ​​to all orifice depth values ​​in the orifice table file after deduplication. Furthermore, based on the distance from the positioning point of each graphic object to the center point of the gas distribution disk and a preset matching tolerance value, the standard radius value is obtained by dividing the pitch circle diameter of each row by two and comparing it with the distance of each graphic object. When the absolute value of the deviation does not exceed the matching tolerance value, the corresponding row is determined as the matching row of the graphic object, and the orifice depth value of that row is used as the orifice depth value of the graphic object. Finally, the color attribute of the graphic object is determined based on the color value corresponding to the orifice depth value of the graphic object. By calling the CAD application programming interface, the color attributes of each graphic object are modified in batches to the corresponding color values. This enables fully automated batch coloring of micro-hole graphic objects in gas distribution disk CAD drawings, eliminating the need for manual selection and color modification of holes one by one, significantly improving drawing processing efficiency. Simultaneously, by deduplicating hole depth values ​​and uniformly assigning colors, it ensures that holes of the same depth are colored the same in different layers, and holes of different depths are colored differently, avoiding human identification errors caused by extremely small differences in hole depth steps. A matching tolerance mechanism accommodates minor dimensional deviations caused by drawing and measurement in circular array arrangements, ensuring that each graphic object accurately corresponds to the correct hole layer and obtains the correct hole depth value. By outputting statistical results and the hole depth-color correspondence, it provides users with complete coloring feedback and processing reference.

[0060] Figure 3 This is a schematic diagram of the structure of a CAD coloring device for a gas distribution disk micro-hole graphic object provided in an embodiment of the present invention. Figure 3 As shown, the device includes: The borehole table file acquisition module 310 is used to determine the target borehole table file in response to the user's selection operation of the borehole table file; each row of the target borehole table file includes borehole location distribution parameters and borehole depth values; The color mapping establishment module 320 is used to obtain the non-repeating values ​​of all hole depth values ​​in the target hole table file, generate a hole depth value set, and determine the color value corresponding to each hole depth value in the hole depth value set according to the preset color allocation rules. The graphic object positioning module 330 is used to determine the distance from the positioning point of the graphic object to the center point of the gas distribution disk for each graphic object representing a micropore in the CAD drawing; Hole depth matching module 340 is used to determine the corresponding row of the graphic object in the target hole table file based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row, and to use the hole depth value of the corresponding row as the hole depth value of the graphic object. The color assignment module 350 is used to determine the color attribute of the graphic object based on the color value corresponding to the hole depth value of the graphic object.

[0061] The CAD coloring device for the micro-hole graphic object of the gas distribution disk provided in this embodiment of the invention can execute the CAD coloring method for the micro-hole graphic object of the gas distribution disk provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0062] Optionally, the orifice distribution parameter is a diameter range, which includes a lower limit diameter and an upper limit diameter; wherein, the lower limit diameter and the upper limit diameter together define an annular region centered on the center point of the gas distribution disk; the orifice depth matching module is specifically used to, for any row in the target orifice table file, divide the lower limit diameter and the upper limit diameter of the row by two respectively to obtain the lower limit radius value and the upper limit radius value of the row; if the distance is greater than or equal to the lower limit radius value and less than the upper limit radius value, then the row is determined to be the corresponding row of the graphic object in the target orifice table file.

[0063] Optionally, it also includes an interval integrity check module, used to sort the diameter intervals of each row in the target hole table file according to the lower limit diameter in ascending order before obtaining the non-repeating values ​​of all hole depth values ​​in the target hole table file and generating the hole depth value set; if any adjacent diameter intervals overlap after sorting, it is determined to be an overlap error, the process is terminated and the row number and overlap range of the overlapping diameter interval are output; wherein, if the upper limit diameter of the previous diameter interval is equal to the lower limit diameter of the next diameter interval, it is determined to be a valid continuous boundary; if there is an uncovered diameter range between any adjacent diameter intervals after sorting, the uncovered diameter range and the row numbers of the two diameter intervals adjacent to the uncovered diameter range are output.

[0064] Optionally, the hole position distribution parameter is the pitch circle diameter, which represents the diameter of the virtual circle formed by the positioning points of a set of uniformly distributed graphic objects; the hole depth matching module is specifically used to divide the pitch circle diameter of any row in the target hole table file by two to obtain the standard radius value of the row; if the absolute value of the deviation between the distance and the standard radius value is less than or equal to the matching tolerance value, then the row is determined to be the corresponding row of the graphic object in the target hole table file.

[0065] Optionally, the color mapping establishment module is specifically used to obtain a preset color sequence, wherein the preset color sequence includes at least two color values, and the hue difference between any two adjacent color values ​​meets a preset contrast requirement; sort the hole depth values ​​in the hole depth value set according to their numerical values, and assign color values ​​to each hole depth value in the color sequence in the sorted order; wherein the same hole depth value is assigned the same color value, and different hole depth values ​​are assigned different color values.

[0066] Optionally, it also includes a matching tolerance value determination module, used to obtain the matching tolerance value input by the user as the preset matching tolerance value; if the user does not input a matching tolerance value, then the default value is used as the preset matching tolerance value.

[0067] The CAD coloring device for the micro-hole graphic object of the gas distribution disk, which is further described, can also execute the CAD coloring method for the micro-hole graphic object of the gas distribution disk provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.

[0068] According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.

[0069] Figure 4 A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0070] like Figure 4 As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory 42 or a random access memory 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the read-only memory 42 or loaded from storage unit 48 into the random access memory 43. The random access memory 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, read-only memory 42, and random access memory 43 are interconnected via a bus 44. An input / output interface 45 is also connected to the bus 44.

[0071] Multiple components in electronic device 40 are connected to input / output interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0072] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, central processing units, graphics processing units, various special-purpose artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as the CAD coloring method for a gas distribution disk micro-hole graphic object.

[0073] In some embodiments, the CAD coloring method for the micro-orifice graphic object of the gas distribution disk can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 40 via read-only memory 42 and / or communication unit 49. When the computer program is loaded into random access memory 43 and executed by processor 41, one or more steps of the CAD coloring method for the micro-orifice graphic object of the gas distribution disk described above can be performed. Alternatively, in other embodiments, processor 41 can be configured to perform the CAD coloring method for the micro-orifice graphic object of the gas distribution disk by any other suitable means (e.g., by means of firmware).

[0074] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays, application-specific integrated circuits (ASICs), application-specific standard products (ASICs), systems-on-a-chip (SoCs), payload programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0075] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0076] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0077] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube, liquid crystal display, or monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0078] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0079] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system to address the shortcomings of traditional physical hosts and virtual private servers, such as high management difficulty and weak business scalability.

[0080] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0081] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A CAD coloring method for a microporous graphic object of a gas distribution disk, characterized in that, The method includes: In response to the user's selection of a borehole table file, a target borehole table file is determined; each row in the target borehole table file includes borehole location distribution parameters and borehole depth values. Obtain the unique values ​​from all hole depth values ​​in the target hole table file, generate a hole depth value set, and determine the color value corresponding to each hole depth value in the hole depth value set according to a preset color allocation rule; For each graphic object representing a micropore in the CAD drawing, determine the distance from the positioning point of the graphic object to the center point of the gas distribution disk; Based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row, the corresponding row of the graphic object in the target hole table file is determined, and the hole depth value of the corresponding row is used as the hole depth value of the graphic object. The color attribute of the graphic object is determined based on the color value corresponding to the hole depth value of the graphic object.

2. The method according to claim 1, characterized in that, The orifice distribution parameter is a diameter range, which includes a lower limit diameter and an upper limit diameter; wherein, the lower limit diameter and the upper limit diameter together define an annular region centered on the center point of the gas distribution disk; The step of determining the corresponding row of the graphic object in the target hole table file based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row includes: For any row in the target hole table file, divide the lower limit diameter and upper limit diameter of the row by two respectively to obtain the lower limit radius value and upper limit radius value of the row; if the distance is greater than or equal to the lower limit radius value and less than the upper limit radius value, then the row is determined to be the corresponding row of the graphic object in the target hole table file.

3. The method according to claim 2, characterized in that, Before obtaining the unique values ​​from all hole depth values ​​in the target hole table file and generating the hole depth value set, the method further includes: Sort the diameter ranges of each row in the target hole table file in ascending order of the lower limit diameter; If any adjacent diameter intervals overlap after sorting, it is determined to be an overlap error, the process is terminated and the row number of the overlapping diameter interval and the overlap range are output; if the upper limit diameter of the previous diameter interval is equal to the lower limit diameter of the next diameter interval, it is determined to be a valid continuous boundary. If there is an uncovered diameter range between any two adjacent diameter ranges after sorting, output the uncovered diameter range and the row numbers of the two diameter ranges adjacent to the uncovered diameter range.

4. The method according to claim 1, characterized in that, The hole position distribution parameter is the pitch circle diameter, which represents the diameter of the virtual circle formed by the positioning points passing through a set of uniformly distributed graphic objects; determining the corresponding row of the graphic object in the target hole table file based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row includes: For any row in the target hole table file, divide the pitch circle diameter of that row by two to obtain the standard radius value of that row; if the absolute value of the deviation between the distance and the standard radius value is less than or equal to the matching tolerance value, then determine that the row is the corresponding row of the graphic object in the target hole table file.

5. The method according to claim 1, characterized in that, The step of determining the color value corresponding to each hole depth value in the hole depth value set according to the preset color allocation rule includes: Obtain a preset color sequence, wherein the preset color sequence includes at least two color values, and the hue difference between any two adjacent color values ​​meets a preset contrast requirement; The hole depth values ​​in the set of hole depth values ​​are sorted by numerical value, and color values ​​are assigned to each hole depth value in the color sequence according to the sorted order; wherein, the same hole depth value is assigned the same color value, and different hole depth values ​​are assigned different color values.

6. The method according to claim 1, characterized in that, The method further includes: Obtain the matching tolerance value input by the user, and use it as the preset matching tolerance value; If the user does not input a matching tolerance value, the default value will be used as the preset matching tolerance value.

7. A CAD coloring device for a microporous graphic object of a gas distribution disk, characterized in that, The device includes: The borehole table file acquisition module is used to determine the target borehole table file in response to the user's selection operation of the borehole table file; each row of the target borehole table file includes borehole location distribution parameters and borehole depth values; The color mapping establishment module is used to obtain the non-repeating values ​​of all hole depth values ​​in the target hole table file, generate a hole depth value set, and determine the color value corresponding to each hole depth value in the hole depth value set according to the preset color allocation rules. The graphic object positioning module is used to determine the distance from the positioning point of the graphic object to the center point of the gas distribution disk for each graphic object representing a micropore in the CAD drawing; The hole depth matching module is used to determine the corresponding row of the graphic object in the target hole table file based on the distance, the preset matching tolerance value, and the spatial range defined by the hole position distribution parameters of each row, and to use the hole depth value of the corresponding row as the hole depth value of the graphic object. The color assignment module is used to determine the color attribute of the graphic object based on the color value corresponding to the hole depth value of the graphic object.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the CAD coloring method for the gas distribution disk microporous graphic object according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the CAD coloring method for the micro-orifice graphic object of the gas distribution disk as described in any one of claims 1-6.

10. A computer program product comprising a computer program that, when executed by a processor, implements a CAD coloring method for a gas distribution disk microporous graphic object according to any one of claims 1-6.