一种CAD文字样式字体批量替换方法、系统及存储介质

By adaptively recognizing the font pattern of CAD drawing files and explicitly setting it to an empty string, the technology solves the problems of cumbersome, inefficient, and incompatible text style font replacement operations in existing CAD drawing designs, and realizes efficient and reliable batch replacement in single-document and multi-document scenarios.

CN122113841BActive Publication Date: 2026-07-17HUNAN PROVINCIAL COMM PLANNING SURVEY & DESIGN INST CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUNAN PROVINCIAL COMM PLANNING SURVEY & DESIGN INST CO LTD
Filing Date
2026-04-28
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In CAD graphic design, existing technologies for replacing text styles and fonts are cumbersome and inefficient, especially in multi-document scenarios where manual intervention is required. This can easily lead to omissions, errors, poor compatibility, and an inability to accurately identify SHX fonts and Windows fonts, resulting in replacement deviations and display anomalies.

Method used

Adaptive font recognition mode is adopted, and batch replacement is achieved by explicitly setting the font to an empty string instead of deleting the large font field. Combined with the entmod function to modify primitive operations, the symbol table is modified using the entmod function, and the object is forced to be updated by calling the entupd function. Combined with the graphics refresh operation, batch replacement is achieved.

Benefits of technology

It enables unattended batch replacement in both single-document and multi-document scenarios, improving processing efficiency and compatibility, reducing manual intervention costs, and ensuring immediate verification and reliability of replacement results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122113841B_ABST
    Figure CN122113841B_ABST
Patent Text Reader

Abstract

本发明提供一种CAD文字样式字体批量替换方法、系统及存储介质,包括:获取CAD图形文件的文字样式列表;根据各文字样式中的普通字体字段和大字体字段,识别各文字样式的字体模式;获取用户输入的目标字体参数,并对目标字体参数进行扩展名自动处理;根据处理后的目标字体参数以及字体模式识别结果,批量更新各文字样式的普通字体字段与大字体字段;其中,当从SHX大字体模式切换至SHX普通模式或Windows字体模式时,将所述大字体字段显式设为空字符串。本发明解决部分CAD版本因DXF组码4缺失而沿用旧大字体参数、导致字体显示异常的问题;同时通过字体类型自适应识别机制,规避字体类型混淆导致的替换偏差。
Need to check novelty before this filing date? Find Prior Art