Frame information batch editing method and system based on CAD auxiliary plug-in

Through the batch editing method of graph frame information based on CAD auxiliary plug-in, the traditional manual editing is solved, and efficient and accurate graph frame editing is achieved, and design efficiency and quality are improved.

CN119150392APending Publication Date: 2024-12-17THE SECOND CONSTR OF CHINA CONSTR EIGHTH ENG DIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411342060.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

The traditional graph frame editing method needs to be manually modified one by one, which is time-consuming and labor-intensive and prone to errors caused by human negligence, and cannot meet the efficient needs of modern engineering design.

Method used

Using the batch editing method of drawing frame information based on CAD auxiliary plug-in, including making attribute drawing frames and inserting them into CAD files, using the CAD API to insert and edit batch drawing frames, automatically numbering and generating drawing catalogs, ensuring the consistency and standardization of drawings .

Benefits of technology

It significantly improves work efficiency, reduces errors, simplifies operations, and is compatible with a variety of CAD software, helps designers better manage frame standards and improve design quality and brand image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150392A_ABST
    Figure CN119150392A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of buildings, in particular to a picture frame information batch editing method and system based on a CAD auxiliary plug-in. The method comprises the following steps of: manufacturing an attribute drawing frame and inserting into a CAD file; according to the manufactured attribute drawing frame, carrying out batch drawing frame insertion by utilizing CAD API (Computer Aided Design Application Program Interface); carrying out content batch editing on the inserted attribute picture frame; automatically numbering the drawings by utilizing the edited attribute drawing frame; and generating a drawing catalogue by utilizing the picture frame information of the sorted and numbered attribute picture frames and inserting the drawing catalogue. The efficiency can be improved, compared with manual picture frame one-by-one editing, the editing time is greatly shortened, and the working efficiency is remarkably improved; errors are reduced, the consistency of picture frame editing is ensured through batch operation, and errors caused by human negligence are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of building technology, and in particular to a method and system for batch editing drawing frame information based on a CAD auxiliary plug-in. Background Art

[0002] In today's construction technology, computer-aided design (CAD) software has become an indispensable tool. Whether it is architectural design, mechanical manufacturing, civil engineering or other professional fields, CAD software plays a vital role.

[0003] With the continuous advancement of science and technology and the increasing diversification of design needs, the design requirements of engineering drawings are becoming higher and higher. In the actual engineering drawing design process, in order to ensure the consistency and standardization of the drawings, the same drawing frame attributes need to be modified and unified in batches. This is not only a key link to improve design efficiency, but also an important guarantee to ensure engineering quality and the smooth progress of the project.

[0004] The traditional way of editing drawing frames is to modify them manually one by one. This method is not only time-consuming and laborious, but also prone to errors caused by human negligence. When faced with a large number of drawings that need to edit drawing frame information, this method obviously cannot meet the efficient needs of modern engineering design. Therefore, the development of a method and system for batch editing of drawing frame information has become an urgent problem to be solved in the current field of construction technology. Summary of the invention

[0005] In order to solve the above-mentioned problems, the present invention provides a method and system for batch editing of drawing frame information based on a CAD auxiliary plug-in.

[0006] In the first aspect, the present invention provides a method for batch editing of frame information based on a CAD auxiliary plug-in, which adopts the following technical solution: A method for batch editing drawing frame information based on a CAD auxiliary plug-in, comprising: Create property frames and insert them into CAD files; According to the created attribute drawing frame, use CAD API to insert drawing frames in batches; Batch edit the content of the inserted attribute frames; Use the edited attribute frame to automatically number drawings; Generate and insert a drawing catalog using the frame information of the sorted and numbered attribute frames.

[0007] Furthermore, the making of the attribute frame and inserting it into the CAD file includes creating a frame with attributes in CAD according to project requirements, including drawing number, drawing name, project name, major, version, stage, drawing date, designer, proofreader, professional person in charge, reviewer, approver and project person in charge.

[0008] Furthermore, the making of the attribute frame and inserting it into the CAD file also includes obtaining the made attribute frame, reading the attribute frame information through the CAD API and parsing the various attribute fields and reserved positions in the attribute frame, and inserting the frame information into the drawing in the form of a frame block.

[0009] Furthermore, the use of CAD API for batch frame insertion includes setting rows and columns for attribute frames, and storing the attribute frames after determining the rows and columns in a local temporary folder. After loading the frame blocks into the program through the CAD API, the insertion positions of the X-axis and Y-axis are calculated respectively, and the frame blocks are inserted into the drawing according to the calculated insertion positions.

[0010] Furthermore, respectively calculating the insertion positions of the X-axis and the Y-axis includes calculating the insertion position in the X-axis direction, and the calculation method is: X=current block X position+frame width*frame ratio+spacing, Y=current block Y position.

[0011] Furthermore, respectively calculating the insertion positions of the X-axis and the Y-axis includes calculating the insertion position in the Y-axis direction, and the calculation method is: Y=current block Y position+frame height*frame ratio+spacing, X=current block X position.

[0012] Furthermore, the batch editing of the content of the inserted attribute frames includes retrieving and locating frame blocks according to the names, reading the attribute information of the frame blocks, and changing the attribute values ​​of the attribute frames according to the user's requirements.

[0013] Furthermore, the automatic numbering of drawings using the edited property frame includes using a single line of information in the property frame interface to quickly locate the interface to a corresponding drawing position, and editing the drawing name in the menu according to the drawing content.

[0014] Furthermore, the automatic numbering of drawings using the edited attribute frame also includes adjusting the drawing sorting through the up and down menus after the drawing name is edited, and after the sorting is edited according to the drawing name, setting the prefix, starting number, and suffix content according to the rules to automatically number the drawings.

[0015] Furthermore, the drawing catalogue is generated and inserted using the frame information of the sorted and numbered attribute frames, including using a CAD API to read the drawing catalogue, and inserting the drawing catalogue into the drawing according to the attribute frame information, ensuring that the information in the drawing catalogue is consistent with the project information of the drawing.

[0016] In summary, the present invention has the following beneficial technical effects: 1. Improve efficiency. Compared with manually editing frames one by one, it greatly shortens the editing time and significantly improves work efficiency.

[0017] 2. Reduce errors. Batch operation ensures the consistency of frame editing and reduces errors caused by human negligence.

[0018] 3. Easy to operate, with a simple and intuitive user interface, designers can easily get started without complicated training.

[0019] 4. Strong compatibility, compatible with multiple versions of CAD software to meet the needs of different users.

[0020] 5. Standardized management helps the company establish unified drawing frame standards and improve the overall design quality and brand image.

[0021] 6. Improve personal work efficiency, allowing designers to devote more time to creativity and design work. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a schematic diagram of a frame editing menu bar according to Embodiment 1 of the present invention; Figure 2 It is a schematic diagram of the batch editing interface of the picture frames of Example 1 of the present invention.

[0023] Figure 3 This is a schematic diagram of setting rows and columns for an attribute frame according to Embodiment 1 of the present invention.

[0024] Figure 4 It is a schematic diagram of the attribute values ​​of the attribute frame of the first embodiment of the present invention.

[0025] Figure 5 This is a schematic diagram of editing drawing names in Example 1 of the present invention.

[0026] Figure 6 It is a schematic diagram of adjusting the arrangement of drawings according to Embodiment 1 of the present invention.

[0027] Figure 7 This is a schematic diagram of automatic numbering of figures in Example 1 of the present invention.

[0028] Figure 8 It is a schematic diagram of the inserted drawing catalog of Example 1 of the present invention.

[0029] Fig. 9 It is a schematic diagram of the dynamically generated drawing catalogue of Example 1 of the present invention. DETAILED DESCRIPTION

[0030] The present invention is further described in detail below in conjunction with the accompanying drawings.

[0031] Example 1 Reference Figure 1 , a method for batch editing of frame information based on a CAD auxiliary plug-in in this embodiment comprises the following steps: Create property frames and insert them into CAD files; According to the created attribute drawing frame, use CAD API to insert drawing frames in batches; Batch edit the content of the inserted attribute frames; Use the edited attribute frame to automatically number drawings; Generate and insert a drawing catalog using the sorted and numbered drawing frame information.

[0032] The making of the attribute frame includes creating a frame with attributes in CAD according to project requirements, including drawing number, drawing name, project name, major, version, stage, drawing date, designer, proofreader, major leader, auditor, approver and project leader. The inserting of the frame using the CAD API based on the made attribute frame includes obtaining the made attribute frame, reading the attribute frame information through the CAD API and parsing the various attribute fields and reserved positions in the attribute frame, and inserting the frame information into the drawing in the form of a frame block.

[0033] Batch insert the prepared frames, including setting rows and columns for attribute frames, such as Figure 3 As shown, the attribute frame after determining the row and column is stored in a local temporary folder. After the frame block is loaded into the program through the CAD API, the insertion positions of the X-axis and Y-axis are calculated respectively, and the frame block is inserted into the drawing according to the calculated insertion positions. The insertion positions of the X-axis and Y-axis are calculated respectively, including the calculation method of the insertion position in the X-axis direction: X=current block X position+frame width*frame ratio+spacing, Y=current block Y position. The insertion positions of the X-axis and Y-axis are calculated respectively, and the calculation method of the insertion position in the Y-axis direction is: Y=current block Y position+frame height*frame ratio+spacing, X=current block X position.

[0034] The editing of the inserted attribute frame includes retrieving and locating the frame block according to the name, reading the attribute information of the frame block, and changing the attribute value of the attribute frame according to user needs. The contents of the frame that can be modified include: drawing number, drawing name, project name, major, version, stage, drawing date, designer, proofreader, major person in charge, auditor, approver and project leader. Figure 4 .

[0035] By double-clicking a single line of information in the edit drawing frame interface, you can quickly locate the interface to the corresponding drawing position and edit the drawing name in the menu according to the drawing content, such as Figure 5 After editing the drawing name, use the Up and Down buttons in the menu interface to adjust the drawing order, such as Figure 6 After editing the order according to the figure name, click the automatic numbering button and the Figure 7 In the dialog box, set the prefix, starting number, and suffix content according to the rules. If there is no one, you can leave it blank. After the settings are completed, click the OK button to automatically number the drawings according to the set rules, and directly convert the menu text into the label information and insert it into the corresponding frame label.

[0036] The method of quickly inserting the drawing catalog using the edited attribute frame includes reading the drawing catalog using the CAD API and inserting the drawing catalog into the drawing according to the frame information, ensuring that the information in the drawing catalog is consistent with the project information of the drawing. Figure 8 Click the OK button to automatically generate the drawing catalog according to the hospital standard format and insert it into the drawing to form a CAD file. Fig. 9 shown.

[0037] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in, characterized in that: include: Create property frames and insert them into CAD files; According to the created attribute drawing frame, use CAD API to insert drawing frames in batches; Batch edit the content of the inserted attribute frames; Use the edited attribute frame to automatically number drawings; Generate and insert a drawing catalog using the frame information of the sorted and numbered attribute frames.

2. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 1, characterized in that: The making of attribute drawing frame and inserting it into the CAD file includes creating a drawing frame with attributes in CAD according to project requirements, including drawing number, drawing name, project name, major, version, stage, drawing date, designer, proofreader, professional person in charge, reviewer, approver and project person in charge.

3. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 2, characterized in that: The method of making an attribute frame and inserting it into a CAD file further includes obtaining the made attribute frame, reading the attribute frame information through a CAD API, parsing the attribute fields and reserved positions in the attribute frame, and inserting the frame information into the drawing in the form of a frame block.

4. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 3, characterized in that: The batch frame insertion using CAD API includes setting rows and columns for attribute frames, and storing the attribute frames after determining the rows and columns in a local temporary folder. After loading the frame blocks into the program through the CAD API, the insertion positions of the X-axis and Y-axis are calculated respectively, and the frame blocks are inserted into the drawing according to the calculated insertion positions.

5. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 4, characterized in that: The calculation of the insertion positions of the X-axis and the Y-axis respectively includes calculating the insertion position in the X-axis direction, and the calculation method is: X=current block X position+frame width*frame ratio+spacing, Y=current block Y position.

6. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 5, characterized in that: The calculation of the insertion positions of the X-axis and the Y-axis respectively includes calculating the insertion position in the Y-axis direction, and the calculation method is: Y=current block Y position+frame height*frame ratio+spacing, X=current block X position.

7. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 6, characterized in that: The batch editing of the content of the inserted attribute frames includes retrieving and locating frame blocks according to the names, reading the attribute information of the frame blocks, and changing the attribute values ​​of the attribute frames according to the user requirements.

8. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 7, characterized in that: The automatic numbering of drawings using the edited attribute frame includes using the single-line information in the attribute frame interface to quickly locate the interface to the corresponding drawing position, and editing the drawing name in the menu according to the drawing content.

9. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 8, characterized in that: The automatic numbering of drawings using the edited attribute frame also includes adjusting the drawing sorting through the up and down menus after the drawing name is edited, and after the sorting is edited according to the drawing name, setting the prefix, starting number, and suffix content according to the rules to automatically number the drawings.

10. A method for batch editing of drawing frame information based on a CAD auxiliary plug-in according to claim 9, characterized in that: The method of generating and inserting a drawing catalog using the frame information of the sorted and numbered attribute frames includes reading the drawing catalog using a CAD API, and inserting the drawing catalog into the drawing according to the attribute frame information, ensuring that the information in the drawing catalog is consistent with the project information of the drawing.