An automated design method, system, and storage medium for engineering design specifications
By using the AutoCAD secondary development program for automated design, the problem of low design efficiency in engineering design specifications has been solved, and the automated generation and drawing of design specifications has been realized, thereby improving production efficiency.
Patent Information
- Application Number
- CN202411243348.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2044-09-05
AI Technical Summary
Existing engineering design specifications and methods involve a large number of manual steps, resulting in long processing times and low design efficiency.
By using AutoCAD secondary development programs, engineering design specifications can be automatically generated and formatted by inputting engineering design specification information, and drawing frames can be automatically arranged, reducing manual operations.
It has enabled the automated design of engineering design specifications, significantly improving design efficiency and reducing manual operation time. Designers only need to fill in the information in a Word document to complete the automatic design and drawing.
Smart Images

Figure CN119294366B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of CAD specification design, in particular to an automatic design method, system and storage medium for engineering design specification. BACKGROUND
[0002] Currently, when an engineering design personnel performs engineering design specification drawing, the engineering design personnel needs to manually create text, paste pictures and create tables in a CAD model space, edit text and table contents, and manually adjust picture and table sizes. Then, the engineering design personnel performs manual layout of the design specification, including column changing and page splitting of the design specification. Finally, the engineering design personnel manually creates and arranges a design specification frame according to the contents of the engineering design specification.
[0003] Currently, when an engineering design personnel performs engineering design specification drawing, the engineering design personnel needs to manually create text, paste pictures and create tables in a CAD model space, edit text and table contents, and manually adjust picture and table sizes. Then, the engineering design personnel performs manual layout of the design specification, including column changing and page splitting of the design specification. Finally, the engineering design personnel manually creates and arranges a design specification frame according to the contents of the engineering design specification. The above working method includes a large number of manual operation steps such as text, picture and table editing and layout, which need to be manually completed by the design personnel in the CAD model space, and thus is time-consuming, requires the design personnel to perform a large amount of repetitive labor, wastes productivity and reduces design efficiency. SUMMARY
[0004] To solve the above problems, the present application provides an automatic design method for engineering design specification, to solve the problems of the existing engineering design specification design method, such as a large number of manual operation steps, long time consumption and low design efficiency. To achieve the above object, the automatic design method for engineering design specification includes the following steps.
[0005] S1: inputting engineering design specification information;
[0006] S2: running an AutoCAD secondary development program to read and store engineering design specification contents;
[0007] S3: selecting an engineering design specification insertion point and setting engineering design specification drawing parameters;
[0008] S4: automatically generating and laying out the engineering design specification according to the engineering design specification drawing parameters;
[0009] S5: automatically and continuously arranging a design specification frame according to the generated engineering design specification, to complete engineering design specification design.
[0010] Preferably, the step S1 includes the following steps.
[0011] The input of engineering design specification information is to fill in the design specification information of the specified engineering project in the engineering design specification template file;
[0012] The engineering design specification template file is a Word document in docx or doc format.
[0013] Preferably, step S2 includes: the AutoCAD secondary development program references the AutoCAD.NET API interface file, which is able to open and edit AutoCAD files including dwg, dws, dwt, and dxf formats;
[0014] The engineering design specification includes the design specification text, design specification images, and design specification tables;
[0015] The contents of the engineering design specification are read sequentially from the engineering design specification template file, and the order of the engineering design specification contents is memorized according to the content category and sequence number.
[0016] The design specification text is stored in the form of a one-dimensional text array.
[0017] When reading the contents of the engineering design specification, a new folder is created in the specified storage path. The new folder is named according to the current computer time, and the design specification images are named one by one in the form of "time" + "serial number" and placed into the folder.
[0018] The design specification table stores the table content in the form of a two-dimensional text array.
[0019] Preferably, step S3 specifically includes the following steps:
[0020] S3.1: Select the insertion point for the drawing frame in the engineering design specification:
[0021] The insertion point of the drawing frame in the engineering design specification is obtained by inputting coordinates or manually selecting it in the CAD model space. The insertion point of the drawing frame on the first page of the engineering design specification is P. S1 ;
[0022] S3.2: Obtain the planar location of the design specification in the engineering design specification drawings:
[0023] The planar location is defined in the upper left corner of the first paragraph of the engineering design specification on the first page of the engineering design specification drawing. With the insertion point P of the frame S1 To represent this using relative planar relationships, define With P S1 The distance along the X-axis is X S ,definition With PS1 the Y-axis direction distance of the first column of the engineering design specification is Y S ;
[0024] S3.3: Set the column width, column distance, maximum allowed column height, and frame length of the engineering design specification:
[0025] The column width of the engineering design specification is the maximum width allowed for each column of content in the engineering design specification;
[0026] The column distance of the engineering design specification is the horizontal distance between the top left corner points of adjacent two columns of content in the same page of the engineering design specification, defined as W S ;
[0027] The maximum allowed column height of the engineering design specification is the maximum height allowed for each column of content in the engineering design specification drawing, limited by the frame size and title bar; define the maximum allowed column height of the first column of content in the engineering design specification drawing as H max1 , and the maximum allowed column height of the second column of content in the engineering design specification drawing as H max2 ;
[0028] The frame length of the engineering design specification is the length L of the engineering design specification frame in the CAD model space.
[0029] Preferably, the step S4 has the following specific steps:
[0030] S4.1: Automatically generate the first section of the engineering design specification content:
[0031] The engineering design specification content is one of design specification text, design specification picture, and design specification table, generated in the order of the engineering design specification content according to step S2, with a rotation angle of 0°, the design specification text created in the form of multiple lines of text in the CAD model space, with the text content read from the one-dimensional text array according to step S2, and the left top corner point of the multiple lines of text as the insertion base point, while setting the multiple lines of text style, including font, text height, and color;
[0032] The design specification picture created in the CAD model space in an attached manner, with the attachment path being the storage path according to step S2, and the left top corner point of the picture as the insertion base point, while setting the picture size and position;
[0033] The design specification table created in the CAD model space in the form of a table, with the table content read from the two-dimensional text array according to step S2, and the left top corner point of the table as the insertion base point; and the table row number, column number, table width, and height set according to the table content;
[0034] The current column height is automatically calculated based on the first paragraph of the engineering design specification. The height of the first paragraph of the engineering design specification; the insertion point of the first paragraph of the engineering design specification is... Its coordinates Calculate using the following formula:
[0035]
[0036] In the above formula, The point P where the drawing frame is inserted as described in step S3.1 is respectively. S1 X-axis and Y-axis coordinates;
[0037] S4.2: Iteratively generate the i-th section of the engineering design specification:
[0038] i is a positive integer greater than 1. The height of the current column is automatically calculated based on the height of the i-th paragraph in the engineering design specification. Calculate using the following formula:
[0039]
[0040] In the above formula, H Mi The height of the i-th paragraph of the engineering design specification;
[0041] The insertion point for the i-th paragraph of the engineering design specification is: when hour, coordinate Calculate using the following formula:
[0042]
[0043] In the above formula, These are the insertion points for the i-1th paragraph of the engineering design specification. X-axis and Y-axis coordinates;
[0044] when When adding a new column, you need to reset the height of the current column. For H Si , coordinate Calculate using the following formula:
[0045]
[0046] In the above formula, L1 is the horizontal distance between the top left corners of two adjacent columns of the engineering design specification. When the newly added column is an even number of columns, L1 is taken as W. S ;
[0047] When the newly added column is an odd number of columns, take L1 as LW. SL is the frame length described in step S3.3;
[0048] H max H is the maximum column height allowed for the current column, and H max H is the maximum column height allowed for the current column, and H max1 H is the maximum column height allowed for the current column, and H max H is the maximum column height allowed for the current column, and H max2 ;
[0049] S4.3: Adjust the design specification picture and table position:
[0050] The design specification picture and table position is indented according to the column width described in step S3.3 and the size of the design specification picture and table described in step S2.
[0051] Preferably, the step S5 is specifically as follows:
[0052] S5.1: Calculate the number of frames according to the generated engineering design specification:
[0053] The number of engineering design specification frames is n is the number of columns of the design specification described in step S4, is the upward rounding symbol;
[0054] S5.2: Automatically arrange the engineering design specification frames in succession:
[0055] The engineering design specification frames are stored in dwg file format, and the engineering design specification frame dwg format file corresponding to the engineering project is obtained by selecting the file or inputting the file path. The engineering design specification frames are inserted into the CAD model space in the form of blocks, and the insertion base point is the lower left corner point of the engineering design specification frame;
[0056] The first page engineering design specification frame insertion point P S1 is described in step S3.1, and the i-th page engineering design specification frame insertion point P Si The coordinates of the i-th page engineering design specification frame insertion point P are calculated according to the following formula:
[0057]
[0058]
[0059] In the above formula, i is a positive integer, and L is the frame length described in step S3.3.
[0060] An automatic engineering design specification design system, comprising:
[0061] An engineering design specification data input module is used to input engineering design specification information; an AutoCAD secondary development program is run to read and store engineering design specification content;
[0062] An engineering design specification content automatic generation module is used to select engineering design specification insertion points, set engineering design specification drawing parameters, and automatically generate and lay out engineering design specification according to engineering design specification drawing parameters;
[0063] An engineering design specification frame automatic arrangement module is used to automatically and continuously arrange engineering design specification frames according to generated engineering design specification.
[0064] A computer device comprises a memory, a processor, a non-volatile storage medium, and a computer program stored in the non-volatile storage medium and executable on the processor, and the processor implements the automatic design method of the engineering design specification when executing the computer program.
[0065] A non-volatile computer storage medium stores computer executable instructions, and the computer executable instructions are configured to:
[0066] S1: input engineering design specification information;
[0067] S2: run an AutoCAD secondary development program to read and store engineering design specification content;
[0068] S3: select engineering design specification insertion points and set engineering design specification drawing parameters;
[0069] S4: automatically generate and lay out engineering design specification according to engineering design specification drawing parameters;
[0070] S5: automatically and continuously arrange engineering design specification frames according to generated engineering design specification to complete engineering design specification design.
[0071] Compared with the prior art, the beneficial effects of the present application are:
[0072] The present application can realize automatic design and drawing of engineering design specification, and greatly improve production efficiency. The present application provides an automatic design method of engineering design specification, which can realize automatic and rapid creation, editing, layout of design specification text, pictures and tables, and automatic continuous arrangement of engineering design specification frame in CAD model space based on design specification word document data; design personnel only need to fill in corresponding design specification information in the word document, and then engineering design specification automatic design and drawing can be realized. No large amount of manual operation is needed in the CAD model space.
[0073] The present application can convert a large number of steps requiring manual operation into computer automatic calculation operation by writing the technology as AutoCAD secondary development program, and improve production efficiency. If the existing production method is used, about 1 workday is needed for each 10 pages of design specification by manual operation in the CAD model space. However, only 2 hours are needed for automatic drawing by using the technology and embodiments of the present application, and the design efficiency is greatly improved. BRIEF DESCRIPTION OF DRAWINGS
[0074] Figure 1 is a flow chart of the automatic design method of engineering design specification of the embodiment 1 of the present application;
[0075] Figure 2 is a schematic diagram of the generation principle of the engineering design specification of the embodiment 1 of the present application;
[0076] Figure 3 is a schematic diagram of the engineering design specification result of the embodiment 1 of the present application;
[0077] Figure 4 is a schematic diagram of the embodiment 2 of the present application.
[0078] Figure 5 is a schematic diagram of the embodiment 3 of the present application. DETAILED DESCRIPTION
[0079] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.
[0080] Embodiment 1, please refer to Figure 1 The present application provides a technical solution: an automatic design method of engineering design specification, including the following steps:
[0081] S1: input engineering design specification information.
[0082] Specifically, the information input refers to filling in the specified project design specification information in the engineering design specification template file.
[0083] Specifically, the project design specification information includes text, pictures, and tables.
[0084] Specifically, the engineering design specification template file is a word document in docx or doc format.
[0085] S2: Run the AutoCAD secondary development program to read and store the engineering design specification content.
[0086] Specifically, the AutoCAD secondary development program references the AutoCAD.NET API interface file and can open and edit AutoCAD files in dwg, dws, dwt, and dxf formats.
[0087] Specifically, the engineering design specification content includes design specification text, design specification pictures, and design specification tables.
[0088] Specifically, the engineering design specification content is read from the engineering design specification template file in step S1 in order, and the engineering design specification content order is memorized according to the content category and sequence number.
[0089] Specifically, the design specification text stores the text content in the form of a one-dimensional text array.
[0090] Specifically, when reading the engineering design specification data, a new folder is created in the specified storage path, the new folder is named according to the current computer time, and the design specification pictures are named in the form of "time" + "sequence number" and placed in the folder.
[0091] Specifically, the design specification table stores the table content in the form of a two-dimensional text array.
[0092] S3: Select the engineering design specification insertion point and set the engineering design specification drawing parameters.
[0093] Further, the step S3 is specifically as follows:
[0094] S3.1: Select the picture frame insertion point of the engineering design specification.
[0095] Specifically, the picture frame insertion point of the engineering design specification can be obtained by inputting coordinates or manually selecting in the CAD model space, and the picture frame insertion point of the first page of the engineering design specification is P S1 .
[0096] S3.2: Obtain the planar position of the design specification in the engineering design specification drawings.
[0097] Specifically, the planar position is determined by the top left corner of the first paragraph of the engineering design specification on the first page of the engineering design specification drawing. The frame insertion point P described in step S3.1 S1 It is represented by the relative planar relationship.
[0098] Specifically, definition With P S1 The distance along the X-axis is X S ,definition With P S1 The distance along the Y-axis is Y S .
[0099] S3.3: Set the column width, column spacing, maximum allowed column height, and drawing frame length of the engineering design specification.
[0100] Specifically, the column width of the engineering design specification is the maximum width allowed for each column of the design specification.
[0101] Specifically, the column spacing of the engineering design specification is the horizontal distance between the top left corners of two adjacent columns of the engineering design specification content on the same page of the drawing, defined as W. S .
[0102] Specifically, the maximum column height of the engineering design specification is the maximum allowed height of each column of engineering design specification content in the drawing, limited by the size of the drawing frame and the title block. The maximum allowed column height of the first column of engineering design specification content in the engineering design specification drawing is defined as H. max1 The maximum allowable column height for the second column of the engineering design specification is H. max2 .
[0103] Specifically, the length of the drawing frame refers to the length L of the engineering design specification drawing frame in the CAD model space.
[0104] S4: Automatically generate and format the engineering design specification based on the drawing parameters in the engineering design specification.
[0105] Furthermore, step S4 is specifically as follows:
[0106] S4.1: Automatically generate the first section of the engineering design specification.
[0107] Specifically, the content of the engineering design specification can be one of the following: design specification text, design specification images, or design specification tables. It is generated according to the content sequence described in step S2.
[0108] Specifically, the rotation angle of the engineering design specification content is 0°.
[0109] Specifically, the design specification text is created in the CAD model space in the form of multi-line text, and the text content is read from the one-dimensional text array in step S2, with the upper left corner point of the multi-line text as the insertion base point. Set the multi-line text style, including font, text height, and color.
[0110] Specifically, the design specification picture is created in the CAD model space in the form of attachment, with the storage path in step S2 as the attachment path, and the upper left corner point of the picture as the insertion base point. Set the picture size and position.
[0111] Specifically, the design specification table is created in the CAD model space in the form of a table, and the table content is read from the two-dimensional text array in step S2, with the upper left corner point of the table as the insertion base point. According to the table content, set the number of rows, columns, table width and height.
[0112] Specifically, the current column height is automatically calculated according to the height of the first paragraph of the engineering design specification The height of the first paragraph of the engineering design specification
[0113] Specifically, the insertion point of the first paragraph of the engineering design specification is The coordinates are calculated as follows:
[0114]
[0115]
[0116] In the above formula, are the X-axis and Y-axis coordinates of the picture insertion point P S1 in step S3.1.
[0117] S4.2: Loop to generate the i-th paragraph of the engineering design specification content.
[0118] Specifically, i is a positive integer greater than 1.
[0119] Specifically, the current column height is automatically calculated according to the height of the i-th paragraph of the engineering design specification is calculated as follows:
[0120]
[0121] In the above formula, H Si is the height of the i-th paragraph of the engineering design specification.
[0122] Specifically, the insertion point of the i-th paragraph of the engineering design specification is When , The coordinates are calculated as follows:
[0123]
[0124]
[0125] In the above formula, The X-axis and Y-axis coordinates of the insertion point of the i-1-th paragraph of the engineering design specification are
[0126] Specifically, when , a new column needs to be added, and the current column height is reset to H Si . The coordinates are calculated as follows:
[0127]
[0128]
[0129] In the above formula, L1 is the horizontal distance between the upper left corner points of the contents of two adjacent columns in the design specification. When the new column is an even column, take L1 as W S . When the new column is an odd column, take L1 as L-W S , and L is the frame length described in step S3.3.
[0130] Specifically, H max is the maximum allowed column height of the current column. When the current column is an odd column, take H max as H max1 . When the current column is an even column, take H max as H max2 .
[0131] S4.3: Adjust the design specification picture and design specification table position.
[0132] Specifically, the design specification picture and design specification table position are indented according to the column width described in step S3.3 and the size of the design specification picture and design specification table described in step S2.
[0133] S5: Automatically arrange the engineering design specification frames according to the generated engineering design specification, complete the engineering design specification design, see Figure 2 , Figure 3 .
[0134] Further, the step S5 is specifically as follows:
[0135] S5.1: Calculate the number of frames according to the generated engineering design specification.
[0136] Specifically, the number of frames of the engineering design specification is n is the column number of the design specification in step S4, is a rounding up symbol.
[0137] S5.2: Automatically and continuously arrange the frames of the engineering design specification.
[0138] Specifically, the frames of the engineering design specification are stored in a dwg file format, the frames of the engineering design specification corresponding to the engineering project in the dwg format file are obtained by selecting a file or inputting a file path, and the frames of the engineering design specification are inserted into the CAD model space in the form of blocks, and the base point is the lower left corner point of the frame of the engineering design specification.
[0139] Specifically, the insertion point of the first page of the frame of the engineering design specification is P S1 in step S3.1. Si The coordinates of the insertion point P of the i-th page of the frame of the engineering design specification are calculated according to the following formula:
[0140]
[0141]
[0142] In the above formula, i is a positive integer, and L is the length of the frame in step S3.3.
[0143] In the specific implementation of the above steps, AutoCAD secondary development program can be written, that is, various combinations of engineering design specification elements including but not limited to points, multi-segment lines, single-line and multi-line texts, pictures, tables, etc. can be automatically designed and generated in AutoCAD. Programming languages include but are not limited to C++ and C# languages, and the program can automatically complete the above operations in dwg, dws, dwt, and dxf format files after running.
[0144] By writing the technology as an AutoCAD secondary development program, a large number of steps requiring manual operation can be converted to computer automatic calculation operation, and the production efficiency is improved. If the existing production method is used, about 1 working day is needed for each 10 pages of design specification by manual operation in the CAD model space. However, according to the technology and the embodiment of the present application, automatic drawing can be completed in only 2 hours, and the production efficiency is greatly improved.
[0145] The present application can realize automatic design and drawing of engineering design specification, and greatly improve production efficiency. The present application provides an automatic design method of engineering design specification, which can realize automatic and rapid creation, editing, layout of design specification text, pictures and tables, and automatic continuous arrangement of engineering design specification frames in CAD model space based on design specification word document data. Design personnel only need to fill in corresponding design specification information in the word document, and then engineering design specification automatic design and drawing can be realized. No large amount of manual operation is needed in the CAD model space.
[0146] Embodiment 2
[0147] Corresponding to embodiment 1, the present application embodiment 2 provides an automatic design system of engineering design specification, as shown in Figure 4 , the system comprises:
[0148] An engineering design specification data input module is configured to input engineering design specification information and read engineering design specification data.
[0149] An engineering design specification content automatic generation module is configured to automatically calculate an insertion point of each paragraph of engineering design specification content according to parameters such as engineering design specification plane position, column width and column distance, and generate and layout engineering design specification paragraph by paragraph.
[0150] An engineering design specification frame automatic arrangement module is configured to automatically calculate engineering design specification frame quantity and corresponding frame insertion according to the generated engineering design specification, and automatically arrange engineering design specification frames.
[0151] The functions and implementation manners of each module in the automatic design system of engineering design specification provided by the present application embodiment 2 have been described in detail in the above embodiment 1, and thus will not be described here.
[0152] Embodiment 3
[0153] As shown in Figure 5 , the present embodiment discloses a computer device, which comprises an internal memory, a processor, a non-volatile storage medium, and a computer program stored in the non-volatile storage medium and executable on the processor. The processor executes the computer program in embodiment one to realize the above-mentioned automatic design method of engineering design specification.
[0154] A computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the above steps.
[0155] Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by related hardware instructed by programs, and the foregoing programs can be stored in a computer readable storage medium, and the programs perform the steps of the above-mentioned method embodiments when executed; and the foregoing storage medium includes ROM, RAM, magnetic disk or optical disk and various media capable of storing program codes.
[0156] The above is a further detailed description of the present application in combination with specific preferred embodiments, and the specific implementation of the present application should not be limited to these descriptions. For those skilled in the art, without departing from the concept of the present application, a number of simple deductions or substitutions can be made, and all of them should be considered as belonging to the protection scope of the present application.
[0157] For those skilled in the art, according to the above described technical solutions and concepts, other various corresponding changes and transformations can be made, and all of these changes and transformations should belong to the protection scope of the claims of the present application.
Claims
1. An automated design method of engineering design specifications, characterized by, The application relates to a method for automatically generating and arranging engineering design specification, which comprises the following steps: S1: inputting engineering design specification information; S2: running an AutoCAD secondary development program to read and store engineering design specification content; S3: selecting an engineering design specification insertion point and setting engineering design specification drawing parameters; S4: automatically generating and arranging engineering design specification according to engineering design specification drawing parameters, and the specific steps are as follows: S4.1: automatically generating first-stage engineering design specification content: The engineering design specification content is one of design specification words, design specification pictures and design specification tables, and is generated in the order of the engineering design specification content described in step S2, wherein the rotation angle of the engineering design specification content is 0 DEG, the design specification words are created in the form of multi-line words in a CAD model space, the word content is read from a one-dimensional text array, the left upper corner point of the multi-line words is set as an insertion base point, and the multi-line word style is set, including font, word height and color; The design specification pictures are created in the form of attachment in the CAD model space, the attachment path is a storage path, the left upper corner point of the pictures is set as the insertion base point, and the picture size and position are set; The design specification tables are created in the form of tables in the CAD model space, the table content is read from a two-dimensional text array, the left upper corner point of the table is set as the insertion base point, and the table row number, column number, table width and height are set according to the table content; According to the first paragraph of the engineering design specification, the current column height is automatically calculated , is the first paragraph of the engineering design specification content height; The first paragraph of the engineering design specification is inserted at , the coordinates of which are , are calculated according to the following formula: In the above formula, , are the X-axis and Y-axis coordinates of the frame insertion point , respectively; , are the X-axis and Y-axis direction distances of and , respectively. S4.2: Cycle through the engineering design specification section Segment content: is a positive integer greater than 1, according to the contents of the engineering design specification section Highly automatically calculates the current column height according to the following formula: In the above formulae, The engineering design specification is described in the The content of the paragraph is highly The engineering design specification is described in The segment content insertion point is When , Coordinates , are calculated according to the following formula: In the above formula, , These are respectively the engineering design specifications, number 1 Paragraph insertion point X-axis and Y-axis coordinates; When a new column is needed, the current column height is reset for , coordinates , are calculated as follows: In the above formula, is the horizontal distance of the upper left corner point of the content of the engineering design specification in the two adjacent columns in the design specification, when the newly added column is an even column, and is ; is the column distance of the engineering design specification; When the new column is an odd column, take as , is the length of the engineering design specification frame; allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height S4.3: adjusting the positions of the design specification pictures and the design specification tables: The positions of the design specification pictures and the design specification tables are adjusted according to the engineering design specification column width, the size of the design specification pictures and the design specification tables; S5: automatically arranging engineering design specification frames in succession according to the generated engineering design specification, and completing engineering design specification design, and the specific steps are as follows: S5.1: calculating the frame number according to the generated engineering design specification; The engineering design specification number of frames is , is the column number of the design specification of step S4, is a ceiling symbol; S5.2: automatically arranging engineering design specification frames in succession: The engineering design specification frames are stored in the form of dwg files, the engineering project corresponding design specification frame dwg format file is obtained by selecting a file or inputting a file path, the engineering design specification frames are inserted into the CAD model space in the form of blocks, and the left lower corner point of the engineering design specification frames is set as the insertion base point; The first page engineering design specification picture frame insertion point is , The coordinate of the picture frame insertion point of the first page engineering design specification picture frame insertion point , , is calculated according to the following formula: In the above formula, is a positive integer, is the length of the engineering design specification frame; , are respectively the X coordinate and Y coordinate of the first page engineering design specification frame insertion point.
2. The automated design method of engineering design specifications of claim 1, wherein, The step S1 comprises: The inputted engineering design specification information is filled in an engineering design specification template file to specify engineering project design specification information; The engineering design specification template file is a word document in the docx format or the doc format.
3. The automated engineering design method of engineering design specifications of claim 1, wherein, The step S2 comprises: The AutoCAD secondary development program references an AutoCAD.NET API interface file, and can open and edit AutoCAD files in the dwg, dws, dwt and dxf formats; The engineering design specification content comprises design specification words, design specification pictures and design specification tables; The engineering design specification content is read from the engineering design specification template file in sequence, and the engineering design specification content order is memorized according to the content category and sequence number. The design specification text stores the text content in the form of a one-dimensional text array; When reading the engineering design specification content, a new folder is created in the specified storage path, the new folder is named according to the current computer time, and the design specification pictures are named in the form of "time" + "serial number" and placed in the folder; The design specification table stores the table content in the form of a two-dimensional text array.
4. The automated design method of engineering design specifications of claim 1, wherein, The specific steps of the step S3 are as follows: S3.1: Select the picture frame insertion point of the engineering design specification: The frame insertion point of the engineering design specification is obtained by inputting coordinates or being selected manually in the CAD model space, and the frame insertion point of the first page of the engineering design specification is ; S3.2: Obtain the planar position of the design specification in the engineering design specification drawing: The planar position is expressed by the relative planar relationship of the frame insertion point to the upper left corner point of the first page of the engineering design specification drawing and the first paragraph of the engineering design specification content , defining the X-axis direction distance of to , defining the Y-axis direction distance of to ; S3.3: Set the engineering design specification column width, engineering design specification column distance, engineering design specification maximum allowed column height, and engineering design specification picture frame length: The engineering design specification column width is the maximum width allowed for each column of the engineering design specification content; The column distance of the engineering design specification is the horizontal distance between the upper left corner points of the adjacent two columns of engineering design specification contents in the same page drawing of the engineering design specification, which is defined as ; The engineering design specification allows the maximum column height of each column of engineering design specification content in the engineering design specification drawing to be the maximum height allowed, limited by the frame size and the title bar; the maximum column height of the first column of engineering design specification content in the engineering design specification drawing is defined as , and the maximum column height of the second column of engineering design specification content is defined as . the engineered design specification block length is the length of the engineered design specification block in the CAD model space .
5. An automated design system for engineering design specifications, characterized by, It includes: An engineering design specification data input module, which is used to input engineering design specification information; Run the AutoCAD secondary development program to read and store the engineering design specification content; An engineering design specification content automatic generation module, which is used to select the engineering design specification insertion point and set the engineering design specification drawing parameters; automatically generate and layout the engineering design specification according to the engineering design specification drawing parameters, and the specific steps are as follows: S4.1: Automatically generate the first paragraph of the engineering design specification content: The engineering design specification content is one of the design specification text, design specification picture, and design specification table, which is generated in the order of the engineering design specification content according to step S2, and the rotation angle of the engineering design specification content is 0°. The design specification text is created in the form of multiple lines of text in the CAD model space, and the text content is read from a one-dimensional text array. The upper left corner of the multiple lines of text is used as the insertion base point, and the multiple lines of text style is set, including font, text height, and color. The design specification picture is created in the CAD model space in the form of attachment, and the attachment path is the storage path. The upper left corner of the picture is used as the insertion base point, and the picture size and position are set. The design specification table is created in the form of a table in the CAD model space, and the table content is read from a two-dimensional text array. The upper left corner of the table is used as the insertion base point, and the number of rows, columns, width, and height of the table are set according to the table content. According to the first paragraph of the engineering design specification, the current column height is automatically calculated , is the first paragraph of the engineering design specification The first paragraph of the engineering design specification is inserted at , the coordinates of which are , are calculated according to the following formula: In the above formula, , are the X-axis and Y-axis coordinates of the frame insertion point , respectively; , are the X-axis and Y-axis direction distances of and , respectively. S4.2: Cycle through the engineering design specification section Segment content: is a positive integer greater than 1, according to the contents of the engineering design specification section Highly automatically calculates the current column height according to the following formula: In the above formulae, The engineering design specification is described in the The content of the paragraph is highly The engineering design specification section The segment content insertion point is When , Coordinates , are calculated as follows: In the above formula, , X and Y axis coordinates of the insertion point of the content of paragraph in the engineering design specification, respectively. When a new column is needed, the current column height is reset for , coordinates , are calculated as follows: In the above formula, is the horizontal distance of the upper left corner point of the content of the engineering design specification in the two adjacent columns in the design specification, when the newly added column is an even column, and is ; is the column distance of the engineering design specification; When the new column is an odd column, take as , is the length of the engineering design specification frame; allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height S4.3: Adjust the position of the design specification picture and the design specification table: The position of the design specification picture and the design specification table is indented according to the engineering design specification column width, the size of the design specification picture, and the size of the design specification table; S5: Automatically arrange the engineering design specification picture frame in sequence according to the generated engineering design specification, and complete the engineering design specification design, and the specific steps are as follows: S5.1: Calculate the number of picture frames according to the generated engineering design specification: The number of design specification blocks of the engineering design is , The number of columns of the design specification of step S4, is a ceiling symbol; S5.2: Automatically arrange the engineering design specification picture frame in sequence: The engineering design specification block is stored in dwg file format, the engineering design specification block dwg format file corresponding to the engineering project is obtained by selecting a file or inputting a file path, and the engineering design specification block is inserted into the CAD model space in the form of a block, and the base point is the lower left corner point of the engineering design specification block; The first page engineering design specification frame insertion point is , the coordinate of the second page engineering design specification frame insertion point , , is calculated according to the following formula: In the above formula, is a positive integer, is the length of the engineering design specification frame; , are respectively the X coordinate and Y coordinate of the first page engineering design specification frame insertion point; The engineering design specification block automatic arrangement module is used to automatically and continuously arrange the engineering design specification block according to the generated engineering design specification.
6. A computer device, comprising: Comprise: A memory, a processor, a non-volatile storage medium, and a computer program stored in the non-volatile storage medium and executable on the processor, wherein the processor executes the computer program to implement the automatic design method of the engineering design specification according to any one of claims 1-4.
7. A non-transitory computer storage medium, comprising, Computer executable instructions are stored, and the computer executable instructions are set as: S1: input engineering design specification information; S2: run AutoCAD secondary development program, read and store engineering design specification content; S3: select engineering design specification insertion point, set engineering design specification drawing parameters; S4: automatically generate and layout engineering design specification according to engineering design specification drawing parameters, the specific steps are as follows: S4.1: automatically generate the first paragraph of engineering design specification content: The engineering design specification content is one of design specification text, design specification picture and design specification table, and is generated in the order of the engineering design specification content in step S2, the rotation angle of the engineering design specification content is 0°, the design specification text is created in the form of multiple lines of text in the CAD model space, the text content is read from a one-dimensional text array, and the upper left corner point of the multiple lines of text is set as the insertion base point, and the multiple lines of text style is set, including font, text height and color; The design specification picture is created in the form of attachment in the CAD model space, the attachment path is the storage path, the upper left corner point of the picture is set as the insertion base point, and the picture size and position are set; The design specification table is created in the form of a table in the CAD model space, the table content is read from a two-dimensional text array, the upper left corner point of the table is set as the insertion base point, and the table row number, column number, table width and height are set according to the table content; According to the first paragraph of the engineering design specification, the current column height is automatically calculated , is the first paragraph of the engineering design specification The first paragraph of the engineering design specification is inserted at , the coordinates of which are , are calculated according to the following formula: In the above formula, , are the X-axis and Y-axis coordinates of the frame insertion point , respectively; , are the X-axis and Y-axis direction distances of and , respectively. S4.2: Cycle through the engineering design specification section Segment content: is a positive integer greater than 1, according to the contents of the engineering design specification in paragraph Highly automatically calculates the current column height according to the following formula: In the above formulae, The engineering design specification is described in the The content of the paragraph is highly The engineering design specification is described in The segment content insertion point is When , Coordinates , are calculated as follows: In the above formula, , are the X-axis and Y-axis coordinates of the content insertion point of paragraph of the engineering design specification, respectively. are the X-axis and Y-axis coordinates of the content insertion point of paragraph of the engineering design specification, respectively. When a new column is needed, the current column height is reset for , coordinates , are calculated as follows: In the above formula, is the horizontal distance of the upper left corner point of the content of the engineering design specification in the two adjacent columns in the design specification, when the newly added column is an even column, and is ; is the column distance of the engineering design specification; When the new column is an odd column, take as , is the length of the engineering design specification frame; allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height allow_max_column_height = max_column_height S4.3: adjust the positions of the design specification picture and the design specification table: The positions of the design specification picture and the design specification table are indented according to the column width of the engineering design specification, the size of the design specification picture and the design specification table; S5: automatically and continuously arrange the engineering design specification block according to the generated engineering design specification, and complete the engineering design specification design, the specific steps are as follows: S5.1: calculate the number of blocks according to the generated engineering design specification; The number of design specification frames of the engineering design is , The number of columns of the design specification of step S4, is a ceiling symbol; S5.2: automatically and continuously arrange the engineering design specification block: The engineering design specification block is stored in a dwg file format, the dwg format file corresponding to the design specification block of the engineering project is obtained by selecting a file or inputting a file path, and the engineering design specification block is inserted into a CAD model space in the form of a block, and the base point is a lower left corner point of the engineering design specification block. The first page engineering design specification picture frame insertion point is , the coordinate of the picture frame insertion point of the second page engineering design specification , , is calculated according to the following formula: In the above formula, is a positive integer, is the length of the engineering design specification frame; , are respectively the X coordinate and Y coordinate of the first page engineering design specification frame insertion point.
Citation Information
Patent Citations
Foundation pit support construction design general description standardization generation method and system
CN117390745A