3D lettering automation method and system based on secondary development of CATIA

By using a 3D lettering automation method based on CATIA secondary development, the lettering process is simplified, achieving efficient automation of lettering operations and lossless conversion of various fonts, thus improving the user experience.

CN122263196APending Publication Date: 2026-06-23LEAR-DFM AUTOMOTIVE SEATING CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LEAR-DFM AUTOMOTIVE SEATING CO LTD
Filing Date
2026-03-16
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

CATIA's native lettering process is cumbersome, and the text content cannot be modified, resulting in a poor user experience.

Method used

The 3D lettering automation method based on CATIA secondary development obtains the target lettering area and click position, sets the text arrangement and font stretching direction, generates an auxiliary plane, inputs and adjusts the lettering text content, generates a CATIA feature tree based on parameters, and outputs the lettering entity.

Benefits of technology

Simplify the engraving process, improve engraving efficiency, support lossless conversion of multiple fonts, and enhance user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122263196A_ABST
    Figure CN122263196A_ABST
Patent Text Reader

Abstract

The application provides a 3D lettering automation method and system based on CATIA secondary development, which comprises the following steps: obtaining a target lettering area in a model and a position clicked on the model; setting a text arrangement direction and a font stretching direction; generating an auxiliary plane according to the target lettering area, the position clicked on the model and the text arrangement direction, and taking the auxiliary plane as a sketch plane of the text; inputting lettering text content on the sketch plane of the text and adjusting parameters of the lettering text content; generating a CATIA feature tree according to the adjusted parameters and outputting a lettering entity; the lettering operation is simple, the lettering efficiency is improved, a variety of fonts can be converted without distortion, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of 3D lettering technology, and in particular to an automated 3D lettering method and system based on CATIA secondary development. Background Technology

[0002] Currently, the workflow for lettering using CATIA's native software is as follows: In the drawing module, input the required text using the text command, adjust the font format and text height, export the .DWG file, and then reopen it with CATIA software to obtain the text wireframe. Copy the wireframe to the file where the lettering is needed; move the text wireframe to the area where the lettering is needed through coordinate transformation. At this point, the text font height may not meet the requirements, and the wireframe size may need to be scaled; after adjustment, use the stretch command to obtain the required font thickness; if the lettering area is a curved surface, extract the surface, offset the required font thickness value, and trim the stretched font.

[0003] The above process is very tedious. Because the text outline is converted into a parameterless form after file format conversion, it does not have the ability to modify attributes. That is, the text to be engraved is different each time, so the above process needs to be repeated.

[0004] In summary, using CATIA's native lettering process is cumbersome, and the text content cannot be modified again, resulting in a poor user experience. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide an automated 3D lettering method and system based on CATIA secondary development, which simplifies lettering operation, improves lettering efficiency, supports lossless conversion of multiple fonts, and enhances user experience.

[0006] In a first aspect, embodiments of the present invention provide an automated 3D lettering method based on CATIA secondary development, the method comprising: Obtain the target texturing area in the model and the location where the click occurs on the model; Set the text alignment direction and font stretch direction; Based on the target lettering area, the clicked position of the model, and the text arrangement direction, an auxiliary plane is generated, and the auxiliary plane is used as the sketch plane of the text; Enter the engraved text content on the sketch plane of the text, and adjust the parameters of the engraved text content; Generate a CATIA feature tree based on the adjusted parameters and output the lettering entity.

[0007] Furthermore, you can set the text alignment direction and font stretching direction, including: Use the mouse click position as the text start position; Based on the starting position of the text, the selected lines are automatically fitted into straight lines and used as the text arrangement direction; Obtain the font stretching direction as corrected by the user.

[0008] Furthermore, adjusting the parameters of the engraved text content includes: Adjust the font type, font color, font height, sparsity, stretching height, and text smoothing precision of the engraved text content.

[0009] Furthermore, the sparsity is calculated in the following way: Calculate the spacing offset based on the font height; The sparsity is determined based on the spacing offset.

[0010] Furthermore, the spacing offset is calculated based on the font height, including: The spacing offset is calculated using the following formula:

[0011] in, The spacing offset is used to represent the increment or decrease in the character spacing that needs to be adjusted. H is an adjustable coefficient, and H is the font height.

[0012] Furthermore, the method also includes: The adjusted parameters are stored as rules.

[0013] Secondly, embodiments of the present invention provide an automated 3D lettering system based on CATIA secondary development, the system comprising: The acquisition module is used to acquire the target lettering area in the model and the clicked position on the model; The settings module is used to set the text alignment direction and font stretching direction; The generation module is used to generate an auxiliary plane based on the target lettering area, the click position of the model, and the text arrangement direction, and to use the auxiliary plane as the sketch plane of the text; An adjustment module is used to input the engraved text content on the sketch plane of the text and adjust the parameters of the engraved text content; The output module is used to generate a CATIA feature tree based on the adjusted parameters and output the lettering entity.

[0014] Furthermore, the setting module is specifically used for: Use the mouse click position as the text start position; Based on the starting position of the text, the selected lines are automatically fitted into straight lines and used as the text arrangement direction; Obtain the font stretching direction as corrected by the user.

[0015] Thirdly, embodiments of the present invention provide an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the method described above.

[0016] Fourthly, embodiments of the present invention provide a computer-readable medium having processor-executable non-volatile program code that causes the processor to perform the method described above.

[0017] This invention provides an automated 3D lettering method and system based on CATIA secondary development, including: obtaining the target lettering area in the model and the click position on the model; setting the text arrangement direction and font stretching direction; generating an auxiliary plane based on the target lettering area, the click position on the model, and the text arrangement direction, and using the auxiliary plane as the sketch plane of the text; inputting the lettering text content on the text sketch plane and adjusting the parameters of the lettering text content; generating a CATIA feature tree based on the adjusted parameters and outputting the lettering entity; simplifying the lettering operation, improving lettering efficiency, supporting lossless conversion of multiple fonts, and enhancing the user experience.

[0018] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0019] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0020] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0021] Figure 1 This is a flowchart of the 3D lettering automation method based on CATIA secondary development provided in Embodiment 1 of the present invention; Figure 2 This is a flowchart of the 3D lettering process provided in Embodiment 1 of the present invention; Figure 3This is a schematic diagram of the 3D lettering interface provided in Embodiment 1 of the present invention; Figure 4 This is another schematic diagram of a 3D lettering interface provided in Embodiment 1 of the present invention; Figure 5 This is a schematic diagram of a 3D lettering automation system based on CATIA secondary development provided in Embodiment 2 of the present invention. Detailed Implementation

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

[0023] To facilitate understanding of this embodiment, the embodiments of the present invention will be described in detail below.

[0024] Example 1: Figure 1 The flowchart is provided for the 3D lettering automation method based on CATIA secondary development, which is the first embodiment of the present invention.

[0025] Reference Figure 1 The method includes the following steps: Step S101: Obtain the target lettering area in the model and the location of the click on the model; Step S102: Set the text arrangement direction and font stretching direction; Step S103: Based on the target lettering area, the click position of the model, and the text arrangement direction, generate an auxiliary plane and use the auxiliary plane as the sketch plane of the text; Step S104: Input the engraved text content on the text sketch plane and adjust the parameters of the engraved text content; Step S105: Generate a CATIA feature tree based on the adjusted parameters and output the lettering entity.

[0026] Specifically, refer to Figure 2Open the desired lettering file and enter the part design module; open the lettering tool in the toolbar to open the pop-up panel; select the target lettering area in the model; set the text alignment direction and font stretching direction (line, guide line, axis direction on the model); generate an auxiliary platform based on the click position on the model, the selected lettering area, and the text alignment direction, as the sketch plane for the text; enter the lettering text content on the text sketch plane, and preview the text lines at the same time; adjust the parameters of the lettering text content; generate a CATIA feature tree based on the adjusted parameters, and output the lettering entity.

[0027] This application also allows for a dynamic preview panel: real-time display of 2D effects of font type, font direction, size, and sparsity (reducing trial and error costs).

[0028] Reference Figure 3 and Figure 4 During the intelligent parameter adaptation process, the text starting position is adaptive: when the mouse clicks to select the text area, the clicked point becomes the text starting position. Clicking allows you to dynamically preview the changes after text adjustment.

[0029] Sparse quantization algorithm: Achieve proportional scaling by calculating the spacing between character bounding boxes.

[0030] In batch expansion, template saving / calling is supported: the adjusted parameters (font, sparsity) are stored as rules and applied to similar parts in batches.

[0031] Furthermore, step S102 includes the following steps: Step S201: Take the position of the mouse click as the starting position of the text; Step S202: Based on the starting position of the text, automatically fit the selected lines into straight lines and use them as the text arrangement direction; Step S203: Obtain the font stretching direction corrected by the user.

[0032] Furthermore, step S104 includes: Adjust the font type, font color, font height, sparsity, stretch height, and text smoothing precision of the engraved text content.

[0033] Furthermore, sparsity is calculated in the following way: Step S301: Calculate the spacing offset based on the font height; Step S302: Determine the sparsity based on the spacing offset.

[0034] Furthermore, step S301 includes: Calculate the spacing offset according to formula (1): (1) in, The spacing offset is used to indicate the increment or decrement (in pixels or points) of the character spacing that needs to be adjusted. This is an adjustable coefficient; you can input the parameter as needed. H represents the font height.

[0035] Here, when k>0, the spacing is increased; when k<0, the spacing is decreased.

[0036] Furthermore, the method also includes: Step S401: Store the adjusted parameters as rules. These rules can be stored in the integrated parameter template library and support saving / recalling historical configurations.

[0037] Compared with the prior art, this application has the following advantages: 1) Efficiency improvement: The engraving process has been shortened from 10 minutes to 30 seconds.

[0038] 2) Compatibility: Supports lossless conversion of 6 fonts (such as SimSun and KaiTi), and the software is open source. You can download fonts according to your preferences and place them in the font folder for use.

[0039] 3) Fault tolerance mechanism: The smoothness accuracy of the curve can be entered in the dialog box to avoid curve breakage and distortion problems.

[0040] 4) Improved accuracy: The sparsity algorithm avoids character overlap (error < 0.1mm).

[0041] Example 2: Figure 5 This is a schematic diagram of a 3D lettering automation system based on CATIA secondary development provided in Embodiment 2 of the present invention.

[0042] Reference Figure 5 The system includes: The acquisition module is used to acquire the target texturing area in the model and the location of the click on the model; The settings module is used to set the text alignment direction and font stretching direction; The generation module is used to generate an auxiliary plane based on the target lettering area, the click position of the model, and the text arrangement direction, and use the auxiliary plane as the sketch plane of the text; The adjustment module is used to input the engraved text content on the text sketch plane and adjust the parameters of the engraved text content; The output module is used to generate a CATIA feature tree based on the adjusted parameters and output the lettering entity.

[0043] Furthermore, the configuration module is specifically used for: Use the mouse click position as the text start position; Based on the starting position of the text, the selected lines are automatically fitted into straight lines and used as the text arrangement direction; Get the font stretching direction corrected by the user.

[0044] This invention provides an automated 3D lettering method and system based on CATIA secondary development, including: obtaining the target lettering area in the model and the click position on the model; setting the text arrangement direction and font stretching direction; generating an auxiliary plane based on the target lettering area, the click position on the model, and the text arrangement direction, and using the auxiliary plane as the sketch plane of the text; inputting the lettering text content on the text sketch plane and adjusting the parameters of the lettering text content; generating a CATIA feature tree based on the adjusted parameters and outputting the lettering entity; simplifying the lettering operation, improving lettering efficiency, supporting lossless conversion of multiple fonts, and enhancing the user experience.

[0045] This invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the 3D lettering automation method based on CATIA secondary development provided in the above embodiments.

[0046] This invention also provides a computer-readable medium having processor-executable non-volatile program code, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the 3D lettering automation method based on CATIA secondary development described above.

[0047] The computer program product provided in this embodiment of the invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.

[0048] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0049] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0050] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0051] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0052] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. An automated 3D lettering method based on CATIA secondary development, characterized in that, The method includes: Obtain the target texturing area in the model and the location where the click occurs on the model; Set the text alignment direction and font stretch direction; Based on the target lettering area, the clicked position of the model, and the text arrangement direction, an auxiliary plane is generated, and the auxiliary plane is used as the sketch plane of the text; Enter the engraved text content on the sketch plane of the text, and adjust the parameters of the engraved text content; Generate a CATIA feature tree based on the adjusted parameters and output the lettering entity.

2. The 3D lettering automation method based on CATIA secondary development according to claim 1, characterized in that, Set the text alignment direction and font stretch direction, including: Use the mouse click position as the text start position; Based on the starting position of the text, the selected lines are automatically fitted into straight lines and used as the text arrangement direction; Obtain the font stretching direction as corrected by the user.

3. The 3D lettering automation method based on CATIA secondary development according to claim 1, characterized in that, Adjusting the parameters of the engraved text content includes: Adjust the font type, font color, font height, sparsity, stretching height, and text smoothing precision of the engraved text content.

4. The 3D lettering automation method based on CATIA secondary development according to claim 3, characterized in that, The sparsity is calculated in the following way: Calculate the spacing offset based on the font height; The sparsity is determined based on the spacing offset.

5. The 3D lettering automation method based on CATIA secondary development according to claim 4, characterized in that, The spacing offset is calculated based on the font height, including: The spacing offset is calculated using the following formula: in, The spacing offset is used to represent the increment or decrease in the character spacing that needs to be adjusted. H is an adjustable coefficient, and H is the font height.

6. The 3D lettering automation method based on CATIA secondary development according to claim 1, characterized in that, The method further includes: The adjusted parameters are stored as rules.

7. A 3D lettering automation system based on CATIA secondary development, characterized in that, The system includes: The acquisition module is used to acquire the target lettering area in the model and the clicked position on the model; The settings module is used to set the text alignment direction and font stretching direction; The generation module is used to generate an auxiliary plane based on the target lettering area, the click position of the model, and the text arrangement direction, and to use the auxiliary plane as the sketch plane of the text; An adjustment module is used to input the engraved text content on the sketch plane of the text and adjust the parameters of the engraved text content; The output module is used to generate a CATIA feature tree based on the adjusted parameters and output the lettering entity.

8. The 3D lettering automation system based on CATIA secondary development according to claim 7, characterized in that, The setting module is specifically used for: Use the mouse click position as the text start position; Based on the starting position of the text, the selected lines are automatically fitted into straight lines and used as the text arrangement direction; Obtain the font stretching direction as corrected by the user.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, characterized in that, When the processor executes the computer program, it implements the method described in any one of claims 1 to 6.

10. A computer-readable medium having processor-executable non-volatile program code, characterized in that, The program code causes the processor to execute the method described in any one of claims 1 to 6.