Movatterモバイル変換


[0]ホーム

URL:


CN114398857B - Automatic batch filling method for attribute information of frame title bar of CAD drawing - Google Patents

Automatic batch filling method for attribute information of frame title bar of CAD drawing

Info

Publication number
CN114398857B
CN114398857BCN202111410810.0ACN202111410810ACN114398857BCN 114398857 BCN114398857 BCN 114398857BCN 202111410810 ACN202111410810 ACN 202111410810ACN 114398857 BCN114398857 BCN 114398857B
Authority
CN
China
Prior art keywords
attribute information
filling
frame
title bar
database table
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
Application number
CN202111410810.0A
Other languages
Chinese (zh)
Other versions
CN114398857A (en
Inventor
史佳炳
傅旭华
魏强
徐文哲
孙正竹
方俊齐
吕书栋
王聪燚
李雯婷
吕蕾
蔡祥雨
陈诚
倪宇翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Zhejiang Electric Power Co Ltd
Zhejiang Electric Power Transmission and Transforming Engineering Co
State Grid Corp of China SGCC
Original Assignee
State Grid Zhejiang Electric Power Co Ltd
Zhejiang Electric Power Transmission and Transforming Engineering Co
State Grid Corp of China SGCC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Zhejiang Electric Power Co Ltd, Zhejiang Electric Power Transmission and Transforming Engineering Co, State Grid Corp of China SGCCfiledCriticalState Grid Zhejiang Electric Power Co Ltd
Priority to CN202111410810.0ApriorityCriticalpatent/CN114398857B/en
Publication of CN114398857ApublicationCriticalpatent/CN114398857A/en
Application grantedgrantedCritical
Publication of CN114398857BpublicationCriticalpatent/CN114398857B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses an automatic batch filling method for frame title bar information of a CAD drawing, and relates to the field of filling methods for frame title bar information of CAD drawing. In the power design industry, attribute information of a title bar frame of a CAD drawing is mostly filled manually, so that the workload is large and the efficiency is low. The method comprises the steps of 1) establishing a database table of attribute information and dwg signature files, 2) reading drawing numbers in the database table and storing the drawing numbers into a set, 3) extracting drawing numbers to open drawings, 4) detecting the attribute information required to be filled, 5) calculating an attribute information inserting position, 6) extracting the attribute information according to the drawing numbers, 7) inserting the attribute information, 8) detecting whether the drawing which is currently filled is the last drawing in the set, if yes, ending, if no, returning to the step 3). The method conveniently realizes automatic filling of the title bars and the frame attributes of a large number of drawings, and reduces the filling workload of the title bars of the CAD drawing frames compared with the traditional manual drawing frame filling title bar opening mode.

Description

Automatic batch filling method for attribute information of frame title bar of CAD drawing
Technical Field
The invention relates to the field of CAD frame title bar information filling methods, in particular to an automatic batch filling method for frame title bar information of CAD drawings.
Background
Because CAD has advantages of universality, usability and the like, in the power design industry, the drawing work of the design drawing is mainly completed through CAD software. At the final stage of design, frame information needs to be filled, at present, work is completed by manually filling a table, because the number of drawings in the design stage of a construction drawing is large in the power design industry, the information data of a header column of the frame is large, the manual table filling operation mode is low in efficiency and long in time consumption, the correctness is greatly influenced by human factors, and a great amount of effort is often required for a designer to repeat operation and inspection.
At present, along with the wide application of PDM software, the technology of automatically filling in frames in batches is relatively wide, but the automatic filling technology is mainly realized in an auditing stage in a PDM system, and is only aimed at a personnel signature module, so that the PDM has high price, large implementation workload and large use limitation, and can not solve the problem of automatically filling in various attribute information of a large number of drawing files when PDM management software is not used, and can only manually fill in various attribute information and personnel signatures, so that the workload is high and the work efficiency is low.
Disclosure of Invention
The invention aims to solve the technical problems and provide the technical task of perfecting and improving the prior art scheme, and provides an automatic batch filling method for the frame title bar information of the CAD drawing, aiming at reducing the filling workload of the frame title bar of the CAD drawing. For this purpose, the present invention adopts the following technical scheme.
A method for automatically filling attribute information of a title bar of a frame of a CAD drawing in batches comprises the following steps:
1) Storing various attribute information including drawing names and drawing numbers which are required to be filled in a drawing frame and a title bar of all drawings in a database table file, wherein signature blocks related to personnel names are correspondingly stored in folders according to personnel name names in dwg format through mapping relations in the database table;
2) Traversing the database table, reading drawing numbers of all drawings, and storing into a collection;
3) Traversing drawing numbers in the collection, obtaining a drawing file opening path by combining the drawing storage folder path with the drawing numbers, and opening corresponding drawings according to the drawing file path;
4) In the opened drawing, traversing all the objects of the Text type in the drawing, and if the character string content of the traversed Text object is consistent with the filling target, recording the coordinates of the traversed Text object;
5) Determining an insertion position by increasing the abscissa value according to the filling target coordinates;
6) Extracting each attribute information from a database table storing the association relation according to the drawing numbers, and storing the attribute information into a set of mapping relations;
7) Extracting attribute information in the set according to the corresponding relation, inserting corresponding attribute information at the insertion position calculated in the step 5), wherein the inserted attribute information comprises a signature block obtained according to the mapping relation, and storing and closing a current drawing;
8) And (3) detecting whether the drawing which is currently completed is the last drawing in the set, if so, ending, otherwise, returning to the step (3). Compared with the traditional manual method of manually opening the drawing to fill the title bar of the frame, the method can conveniently realize automatic filling of the title bar and the attribute in the frame in a large quantity of drawings, improves the working efficiency and filling quality of drawing design, reduces the filling workload of the title bar of the CAD drawing frame, can realize comprehensive filling of the attribute information in the title bar of the frame without using PDM software, and can effectively reduce the cost.
In the step 1), the database table file adopts an EXCEL table. The use is common, and the maintenance is simple.
In the step 1), the attribute information comprises construction units, engineering names, picture sizes, approval, design, auditing, checking, date, proportion, drawing numbers and signatures of approval, design, auditing and checking staff corresponding to the drawing numbers. And realizing comprehensive attribute information filling.
The method has the advantages that the automatic filling of the title bars and the attributes in the frames in a large quantity of drawings can be conveniently realized, compared with the traditional manual opening mode of manually opening the title bars of the frames one by one, the working efficiency and filling quality of drawing design are improved, the filling workload of the title bars of the CAD drawing frames is reduced, the comprehensive filling of the attribute information in the title bars of the frames can be realized without using PDM software, and the cost can be effectively reduced.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
The technical scheme of the invention is further described in detail below with reference to the attached drawings.
As shown in fig. 1, the automatic batch filling method for the attribute information of the title bar of the frame of the CAD drawing includes the following steps:
1) Storing various attribute information including drawing names and drawing numbers which are required to be filled in a drawing frame and a title bar of all drawings in a database table file, wherein signature blocks related to personnel names are correspondingly stored in folders according to personnel name names in dwg format through mapping relations in the database table;
2) Running CAD software, calling a picture frame automatic filling program, traversing a database table, importing corresponding drawings, reading drawing numbers of all the drawings, and storing into a collection;
3) Traversing drawing numbers in the collection, obtaining a drawing file opening path by combining the drawing storage folder path with the drawing numbers, and opening corresponding drawings according to the drawing file path;
4) In the opened drawing, traversing all the objects of the Text type in the drawing, and if the character string content of the traversed Text object is consistent with the filling target, recording the coordinates of the traversed Text object;
5) According to the filling target coordinates, determining an insertion position by adding an abscissa value, taking a text object named as approval as an example, obtaining coordinates (x, y) of the text object, adding the value on the x coordinate to be used as a new x coordinate x1, keeping unchanged to obtain an insertion coordinate, and then obtaining signature attribute insertion coordinates of the insertion coordinate;
6) Extracting each attribute information from a database table storing the association relation according to the drawing numbers, and storing the attribute information into a set of mapping relations;
7) Extracting attribute information in the set according to the corresponding relation, inserting corresponding attribute information at the insertion position calculated in the step 5), wherein the inserted attribute information comprises a signature block obtained according to the mapping relation, and storing and closing a current drawing;
8) And (3) detecting whether the drawing which is currently completed is the last drawing in the set, if so, ending, otherwise, returning to the step (3), and continuing to process the newly opened drawing until the traversal is completed.
In this example, the database table file takes the EXCEL table. The use is common, and the maintenance is simple.
In this example, the attribute information includes a construction unit, an engineering name, a drawing size, approval, design, audit, verification, date, proportion, drawing number, and signature of approval, design, audit, and verification personnel corresponding to the drawing number. And realizing comprehensive attribute information filling.
In this example, the programming language uses Python for CAD software for secondary development, using arrays or list containers as storage sets.
The automatic batch filling method for the attribute information of the frame title bar of the CAD drawing shown in the above figure 1 is a specific embodiment of the invention, has already demonstrated the outstanding essential characteristics and remarkable progress of the invention, and can be subjected to equivalent modification in terms of shape, structure and the like according to actual use needs under the teaching of the invention, and is within the scope of protection of the scheme.

Claims (1)

CN202111410810.0A2021-11-192021-11-19Automatic batch filling method for attribute information of frame title bar of CAD drawingActiveCN114398857B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111410810.0ACN114398857B (en)2021-11-192021-11-19Automatic batch filling method for attribute information of frame title bar of CAD drawing

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111410810.0ACN114398857B (en)2021-11-192021-11-19Automatic batch filling method for attribute information of frame title bar of CAD drawing

Publications (2)

Publication NumberPublication Date
CN114398857A CN114398857A (en)2022-04-26
CN114398857Btrue CN114398857B (en)2025-08-15

Family

ID=81225372

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111410810.0AActiveCN114398857B (en)2021-11-192021-11-19Automatic batch filling method for attribute information of frame title bar of CAD drawing

Country Status (1)

CountryLink
CN (1)CN114398857B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117094663A (en)*2023-07-252023-11-21建识科技(成都)有限公司Engineering design pre-information generation method, information display method and drawing examination method
CN119513950A (en)*2024-09-052025-02-25长江勘测规划设计研究有限责任公司 A method and system for batch generating AutoCAD drawing layouts with automatic title bar updates
CN119622885A (en)*2024-11-292025-03-14佛山轨道交通设计研究院有限公司 A method and system for information management and automatic layout of engineering design drawing frames

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101055601A (en)*2006-04-122007-10-17鸿富锦精密工业(深圳)有限公司Quick inserting pattern frame system and method
CN102830979A (en)*2012-08-302012-12-19江苏省交通科学研究院股份有限公司CAD (computer-aided design) drawing information batch processing method based on ObjectArx

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6199079B1 (en)*1998-03-092001-03-06Junglee CorporationMethod and system for automatically filling forms in an integrated network based transaction environment
CN108090256B (en)*2017-11-302021-06-25江西洪都航空工业集团有限责任公司Lever diagram automatic drawing method based on CAD
US11507709B2 (en)*2019-05-172022-11-22Autodesk, Inc.Seamless three-dimensional design collaboration
CN110750840B (en)*2019-09-172023-10-13东莞市超图软件科技有限公司Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN111353284B (en)*2020-02-182023-08-04广州明珞汽车装备有限公司Part diagram title bar filling method, system and storage medium
CN111739119B (en)*2020-05-152024-08-30广州明珞汽车装备有限公司Method, system, device and storage medium for inserting picture frame
CN112116011B (en)*2020-09-212021-07-27上海晓材科技有限公司Feature coding method and similarity comparison method for CAD graph

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101055601A (en)*2006-04-122007-10-17鸿富锦精密工业(深圳)有限公司Quick inserting pattern frame system and method
CN102830979A (en)*2012-08-302012-12-19江苏省交通科学研究院股份有限公司CAD (computer-aided design) drawing information batch processing method based on ObjectArx

Also Published As

Publication numberPublication date
CN114398857A (en)2022-04-26

Similar Documents

PublicationPublication DateTitle
CN114398857B (en)Automatic batch filling method for attribute information of frame title bar of CAD drawing
CN104077665B (en)Electricity power engineering analysis of prices data gathering system and method
CN107220274B (en)Visual data interface market realization method
CN103678648A (en)Classifying and gathering system and method of BOM tables
CN102087657B (en)IO (Input/output) to point method and IO (Input/output) to point for nuclear power plant simulation platform
CN105608942A (en) System and method for homework correction
CN108959231A (en)A kind of pure electric automobile simulation report generation method and device based on configurable model
CN103399848B (en)Engine test data normalization specific format imports processing method
CN111680487A (en)Method and equipment for real-time online checking of archived files
CN117610527A (en)Report analysis and report generation method and system based on large language model
CN115268910A (en)Data visualization model construction method based on multiple Excel sublists
CN111815162A (en)Digital auditing tool and method
CN103942634A (en)Group consolidated statement offset number data processing method and system
CN119047715A (en)Financial document analysis method, device and storage medium
CN106933783A (en)A kind of method and device on the intelligent extraction date from text
CN113238865A (en)Method for quickly constructing knowledge graph based on Excel one-key import
CN104834487B (en)Remote signalling data compression based on slowly varying dimension form, which is stored and looked into, lacks method of filling a vacancy
CN117992523A (en)Method and device for generating data acquisition flow
CN114490672B (en)Table data input processing method and device and storage medium
CN105550267A (en) A method and system for processing welding performance data using Excel format data
CN111950903B (en)Method and device for generating railway engineering quota and engineering quantity based on template
CN116757624A (en)Method for automatically generating bidding document by utilizing big data
CN119693153B (en) A method and system for automatically generating bond project implementation plans
TW201327432A (en)Scalable order data validation method
CN118734812B (en) Automatic annotation method on OFD files through machine learning

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp