CN112883448B - Tire sidewall font graph parameter returning method - Google Patents
Tire sidewall font graph parameter returning method Download PDFInfo
- Publication number
- CN112883448B CN112883448B CN202110047814.0A CN202110047814A CN112883448B CN 112883448 B CN112883448 B CN 112883448B CN 202110047814 A CN202110047814 A CN 202110047814A CN 112883448 B CN112883448 B CN 112883448B
- Authority
- CN
- China
- Prior art keywords
- block
- graph
- font
- autocad
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/12—Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Architecture (AREA)
- Human Computer Interaction (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Processing Or Creating Images (AREA)
- Document Processing Apparatus (AREA)
Abstract
The application relates to a tire sidewall font graph processing method, in particular to a tire sidewall font graph parameter return method based on. Net and AutoCAD. The method is based on the net and AutoCAD related class library to carry out secondary development on the AutoCAD, and the parameter feedback function is realized. After the graph is adjusted, the system can acquire relevant parameters and transmit the parameters back to the system, update corresponding data and classify the parameters according to class names defined by the graph or the graph block in AutoCAD. The application enriches the database through automatic feedback, reduces manual operation and improves the working efficiency.
Description
Technical Field
The application relates to a tire sidewall font graph processing method, in particular to a tire sidewall font graph parameter return method based on. Net and AutoCAD.
Background
The tire sidewall font map contains various information such as specification, pattern name, brand, load index, speed level and the like, and relates to the appearance and brand image of the tire. With the increasing market demand for heavy duty tires, the development of new products for heavy duty tires has increased. In a general practice, the font graphs of each design are independent and irrelevant, and all parameters cannot be saved. Next, a similar font is required, and the design is also manually re-performed. All the designed font parameters cannot be transmitted back to the database for future extraction and use.
Disclosure of Invention
In order to solve the technical problems, the application carries out secondary development on the AutoCAD based on the AutoCAD related class library and the net to realize the parameter return function. After the graph is adjusted, the system can acquire relevant parameters and transmit the parameters back to the system, update corresponding data and classify the parameters according to class names defined by the graph or the graph block in AutoCAD. The application enriches the database through automatic feedback, reduces manual operation and improves the working efficiency.
In order to achieve the above purpose, the present application adopts the following technical scheme:
a tire sidewall font parameter returning method based on net and AutoCAD comprises the following steps:
step one, deleting all data of 'circles', 'lines', 'words' in the font graph array;
opening an AutoCAD database, opening a block table, opening a model space block table record, traversing the block table record, acquiring information according to ObjectId, completing subsequent operation, acquiring a type name according to ObjectId, defining a type name in AutoCAD according to a graph or a graphic block, and performing the following classification treatment:
(1) circle, line, text:
obtaining information of a graph, wherein the content contains parameters of a server field corresponding to the attribute of the graph, and the parameters are newly added into a font graph array;
(2) block diagram:
the class name of the Block defined in the AutoCAD is unique, namely the Block Reference, the data of the Block type is obtained firstly, the elements of the type are found by recursively traversing the font graph array, and the parameters are filled in;
(3) table:
obtaining information of a table, sending the row and column data in the table to a server through an http request, and binding the id of the font graph;
(4) labeling:
the marked information of the return parameters is also stored in a separate table of a server database as the automatic drawing, and marked information is obtained according to the class name of each mark;
step three, changing the color of a layer, storing a drawing as a dwg file and a png file, and storing the file to a file server through an http request;
and step four, transmitting the font image array information to a parameter message for changing the font image of the server through an http request.
Preferably, the step (2) includes the following two special cases:
if the original block is deleted at cad, the program marks the block until the block table is traversed, and the element is deleted in the array;
if a new type of block is inserted from the standard library, the program marks the block and adds a new array element to the same level of the original type of block array element, wherein the new type of block is the new type of block.
Preferably, the step (4) adopts a plurality of types of universalization processing using the same field; and after all ObjectId traversal is finished, acquiring all marked information, and sending the marked information to a server through an http request to send a marked replacement message.
Preferably, prompting whether to store the drawing data as a template after uploading the drawing, inquiring whether the drawing data is stored as the template or not by a user, and if so, telling the server to store the just-uploaded font drawing parameters as the template through an http request; otherwise, no processing is performed.
The application adopts the technical proposal, and the method carries out secondary development on AutoCAD based on the relevant class library of the AutoCAD and the net, thereby realizing the parameter return function. After the graph is adjusted, the system can acquire relevant parameters and transmit the parameters back to the system, update corresponding data and classify the parameters according to class names defined by the graph or the graph block in AutoCAD. The application enriches the database through automatic feedback, reduces manual operation and improves the working efficiency.
Drawings
FIGS. 1-5 are schematic interface operations of software comprising the steps of the present application.
Detailed Description
The following describes the present application in detail.
A tire sidewall font image parameter feedback method based on net and AutoCAD is disclosed, wherein CAD interface is displayed on drawing interface, corresponding task of drawn drawing is selected, font image uploading task is clicked, whether to upload drawing selection is prompted, PNG picture is generated and DWG format file is generated for uploading.
(1) Deleting all data of 'circles', 'lines', 'words' in the font graph array.
(2) Opening an AutoCAD database, opening a block table, opening a model space block table record, traversing the block table record, acquiring information according to ObjectId, and completing the following operations:
the name of the type is obtained according to ObjectId, the type name is defined in AutoCAD according to the graph or the block, and then the following classification processing is carried out:
(1) circle, line, text:
and obtaining information of the graph, wherein the content contains parameters of the server field corresponding to the attribute of the graph, and adding the parameters into the font graph array.
(2) Block diagram:
the class name of the block defined in AutoCAD is unique, called Block reference, the data of the block type is obtained first, the elements of the type are found by recursively traversing the font graph array, and the parameters are filled in. If the original block is deleted in cad, the program marks the block until the block table is traversed, and the element is deleted in the array; if a new type of block is inserted from the standard library, the program marks the block and adds a new array element to the same level of the original type of block array element, wherein the new type of block is the new type of block.
(3) Table:
and obtaining information of the table, sending the row and column data in the table to a server through an http request, and binding the id of the font graph.
(4) Labeling:
the information of the labels of the return parameters is also stored in a separate table of a server database like automatic drawing, and the label information is obtained according to the class name of each label. Because all kinds of annotation information fields are the same in the server, for convenience and resource saving, a generalized process of using the same kind of fields of multiple types is adopted. And after all ObjectId traversal is finished, acquiring all marked information, and sending the marked information to a server through an http request to send a marked replacement message.
(3) Changing the color of a layer, storing the drawing as a dwg file and a png file, and storing the file to a file server through an http request.
(4) And sending the font image array information to a parameter message for changing the font image of the server through an http request.
Prompting whether to store the drawing data as a template after uploading the drawing, inquiring whether to store the drawing data as the template or not by a user, and if so, telling a server to store the font drawing parameters which are just uploaded as the template through an http request; otherwise, no processing is performed.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art. The generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (4)
1. A tire sidewall font parameter returning method based on net and AutoCAD is characterized by comprising the following steps:
step one, deleting all data of 'circles', 'lines', 'words' in the font graph array;
opening an AutoCAD database, opening a block table, opening a model space block table record, traversing the block table record, acquiring information according to ObjectId, completing subsequent operation, acquiring a type name according to ObjectId, defining a type name in AutoCAD according to a graph or a graphic block, and performing the following classification treatment:
(1) circle, line, text:
obtaining information of a graph, wherein the content contains parameters of a server field corresponding to the attribute of the graph, and the parameters are newly added into a font graph array;
(2) block diagram:
the class name of the Block defined in the AutoCAD is unique, namely the Block Reference, the data of the Block type is obtained firstly, the elements of the type are found by recursively traversing the font graph array, and the parameters are filled in;
(3) table:
obtaining information of a table, sending the row and column data in the table to a server through an http request, and binding the id of the font graph;
(4) labeling:
the information of the labels of the return parameters is stored in a separate table of a server database, and the label information is obtained according to the class name of each label;
step three, changing the color of a layer, storing a drawing as a dwg file and a png file, and storing the file to a file server through an http request;
and step four, transmitting the font image array information to a parameter message for changing the font image of the server through an http request.
2. The tire sidewall font parameter returning method based on the net and the AutoCAD as claimed in claim 1, wherein the step (2) comprises the following two special cases:
if the original block is deleted at cad, the program marks the block until the block table is traversed, and the element is deleted in the array;
if a new type of block is inserted from the standard library, the program marks the block and adds a new array element to the same level of the original type of block array element, wherein the new type of block is the new type of block.
3. The tire sidewall font parameter returning method based on the net and the AutoCAD according to claim 1, wherein the step (4) adopts a plurality of types of generalized processing using the same field; and after all ObjectId traversal is finished, acquiring all marked information, and sending the marked information to a server through an http request to send a marked replacement message.
4. The tire sidewall font parameter returning method based on the net and the AutoCAD according to claim 1, wherein after the drawing is uploaded, whether the drawing is saved as a template is prompted, a user is inquired whether the drawing data is saved as a template, if so, the server is informed by an http request to save the font parameter which is just uploaded as the template; otherwise, no processing is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110047814.0A CN112883448B (en) | 2021-01-14 | 2021-01-14 | Tire sidewall font graph parameter returning method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110047814.0A CN112883448B (en) | 2021-01-14 | 2021-01-14 | Tire sidewall font graph parameter returning method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112883448A CN112883448A (en) | 2021-06-01 |
CN112883448B true CN112883448B (en) | 2023-08-29 |
Family
ID=76048267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110047814.0A Active CN112883448B (en) | 2021-01-14 | 2021-01-14 | Tire sidewall font graph parameter returning method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112883448B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102411605A (en) * | 2011-08-17 | 2012-04-11 | 北京数码大方科技有限公司 | Data processing method and device for graphics files based on CAD (computer-aided design) |
CN104679814A (en) * | 2014-12-05 | 2015-06-03 | 沈阳航空航天大学 | Management method of graphs based on dwg and dxf file formats |
CN110083881A (en) * | 2019-04-02 | 2019-08-02 | 河北万达轮胎有限公司 | A kind of tire tread based on Excel and CAD platform goes out type die panel method for drafting |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10437938B2 (en) * | 2015-02-25 | 2019-10-08 | Onshape Inc. | Multi-user cloud parametric feature-based 3D CAD system |
-
2021
- 2021-01-14 CN CN202110047814.0A patent/CN112883448B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102411605A (en) * | 2011-08-17 | 2012-04-11 | 北京数码大方科技有限公司 | Data processing method and device for graphics files based on CAD (computer-aided design) |
CN104679814A (en) * | 2014-12-05 | 2015-06-03 | 沈阳航空航天大学 | Management method of graphs based on dwg and dxf file formats |
CN110083881A (en) * | 2019-04-02 | 2019-08-02 | 河北万达轮胎有限公司 | A kind of tire tread based on Excel and CAD platform goes out type die panel method for drafting |
Non-Patent Citations (1)
Title |
---|
陈振艺 ; .胎侧字体排列图软件LTSL向AutoCAD的图形输出.轮胎工业.2005,(12),731-735. * |
Also Published As
Publication number | Publication date |
---|---|
CN112883448A (en) | 2021-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111626744B (en) | Traceability method and system for configurable and identification interconnection | |
US20050203869A1 (en) | Hierarchical database apparatus, components selection method in hierarchical database, and components selection program | |
CN109299446A (en) | Report-generating method and device | |
CN105404507A (en) | Process template construction method and system | |
CN110705237B (en) | Automatic document generation method, data processing device and storage medium | |
CN109933311A (en) | A kind of information system creation method and relevant apparatus | |
US20120317469A1 (en) | Device, method, and computer readable medium for providing forms | |
CN110705231A (en) | Webpage editing method and device | |
CN102801565B (en) | Method for carrying out centralized management on service configuration in network management system | |
CN108255964B (en) | Method for displaying process flow route | |
CN110956029B (en) | Technical document processing method and system | |
CN113312033A (en) | Template protocol generation and management method | |
CN107436785B (en) | Revit software information interaction system and interaction method based on information system | |
CN106599324B (en) | CAD data capturing method | |
CN109344468A (en) | CAD diagram paper introduction method, system and computer readable storage medium | |
CN110851630A (en) | Management system and method for deep learning labeled samples | |
CN112883448B (en) | Tire sidewall font graph parameter returning method | |
CN104951860A (en) | Production schedule planning support method and production schedule planning support apparatus | |
CN111881171B (en) | Drawing identification recommendation method and system based on data analysis | |
CN110866712B (en) | Component intelligent logistics positioning method and system based on BIM model plug-in | |
CN114895875B (en) | Zero-code visual information system metadata production application method and system | |
CN114979251B (en) | Cross-system collaborative service heterogeneous data exchange system | |
CN115238647A (en) | Drawing conversion method, device, equipment and medium based on building information model | |
CN113695752A (en) | Marking control method and device, nonvolatile storage medium and processor | |
CN114169937A (en) | Poster generation method and device, computer equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310008 No. 1, No. 1 Street, Qiantang District, Hangzhou, Zhejiang Applicant after: Zhongce Rubber Group Co.,Ltd. Address before: 310008 No.1 Baiyang street, Qiantang New District, Hangzhou City, Zhejiang Province Applicant before: ZHONGCE RUBBER GROUP Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |