Automatic design method and system for engineering design specification and storage medium
Through automated design methods, automatic generation and layout of engineering design instructions are solved, and the problem of cumbersome manual operations in the existing technology is realized, and the rapid creation of text, pictures, and tables and automatic layout of picture frames in the CAD model space is realized, which significantly improves the design efficiency.
Patent Information
- Application Number
- CN202411243348.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2044-09-05
AI Technical Summary
The existing engineering design manual design methods require a lot of manual operation, resulting in long time consumption and inefficient design efficiency.
Using the automated design method, by entering the engineering design manual information, running the AutoCAD secondary development program, reading and storing content, setting drawing parameters, automatically generating and typing, and automatically laying out drawing frames to realize the automatic design of the design manual.
This greatly improves design efficiency and reduces manual operation steps. Designers only need to fill in information in the word document to achieve automatic design and drawing production, reducing production time, from the original 1 working day to 2 hours.
Smart Images

Figure CN119294366A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of CAD specification design, and in particular to an automated design method, system and storage medium for engineering design specifications. Background Art
[0002] At present, when engineering designers produce engineering design specifications, they first need to manually create text, paste pictures, create tables, edit text and table content, and manually adjust the size of pictures and tables in the CAD model space. Then they need to manually layout the design specifications, including column changes and page breaks. Finally, they need to manually create and arrange the engineering design specification drawing frame according to the content of the engineering design specifications.
[0003] At present, when engineering designers are drawing engineering design instructions, they first need to manually create text, paste pictures, create tables, edit text and table content, and manually adjust the size of pictures and tables in the CAD model space. Then they need to manually layout the design instructions, including column changes and paging operations. Finally, they need to manually create and arrange the engineering design instructions frame according to the content of the engineering design instructions. The above working method includes a large number of manual operation steps such as editing and typesetting of text, pictures and tables, which all need to be completed manually by designers in the CAD model space, which takes a long time. Designers need to do a lot of repetitive work, which wastes productivity and reduces design efficiency. Summary of the invention
[0004] In view of the above problems, the present invention proposes an automated design method for engineering design specifications to solve the problems of the existing engineering design specification design method having many manual operation steps, long time consumption and low design efficiency. To achieve the above purpose, the automated design method for engineering design specifications of the present invention comprises:
[0005] S1: Input engineering design specification information;
[0006] S2: Run the AutoCAD secondary development program to read and store the contents of the engineering design manual;
[0007] S3: Select the insertion point of the engineering design manual and set the drawing parameters of the engineering design manual;
[0008] S4: Automatically generate and typeset the engineering design specification according to the drawing parameters of the engineering design specification;
[0009] S5: Automatically and continuously arrange the engineering design specification drawing frames according to the generated engineering design specification to complete the engineering design specification design.
[0010] Preferably, the step S1 comprises:
[0011] The input engineering design specification information is to fill in the engineering design specification template file with the specified engineering project design specification information;
[0012] The engineering design specification template file is a word document in docx format or doc format.
[0013] Preferably, the step S2 includes: the AutoCAD secondary development program references the AutoCAD.NET API interface file, and can open and edit AutoCAD files including dwg, dws, dwt, and dxf formats;
[0014] The contents of the engineering design specification include the text of the design specification, pictures of the design specification, and forms of the design specification;
[0015] The contents of the engineering design specification are read one by one in sequence from the engineering design specification template file, and the order of the contents of the engineering design specification is memorized according to the content category and sequence number;
[0016] The design specification text stores text content in the form of a one-dimensional text array;
[0017] When reading the contents of the engineering design manual, a new folder is created in the specified storage path, the new folder is named according to the current computer time, and the design manual pictures are named one by one in the form of "time" + "serial number" and placed in the folder;
[0018] The design specification table stores the table content in the form of a two-dimensional text array.
[0019] Preferably, the specific steps of step S3 are as follows:
[0020] S3.1: Select the drawing frame insertion point of the engineering design specification:
[0021] The drawing frame insertion point of the engineering design manual is obtained by inputting coordinates or manually selecting in the CAD model space. The drawing frame insertion point of the first page of the engineering design manual is obtained as P S1 ;
[0022] S3.2: Get the plane position of the design specification in the engineering design specification drawing:
[0023] The plane position is the upper left corner point of the first paragraph of the engineering design specification in the first page of the engineering design specification drawing. With the frame insertion point P S1 The relative plane relationship is expressed as follows: With P S1 The distance in the X-axis direction is X S ,definition With PS1 The Y-axis distance is Y S ;
[0024] S3.3: Set the column width, column spacing, maximum column height and frame length of the engineering design specification:
[0025] The engineering design specification column width is the maximum width allowed for each column of the engineering design specification;
[0026] The engineering design specification column distance is the horizontal distance between the upper left corners of two adjacent columns of engineering design specification content on the same page of the engineering design specification, and is defined as W S ;
[0027] The maximum column height allowed for the engineering design specification is the maximum height allowed for each column of the engineering design specification content in the engineering design specification drawing, which is limited by the frame size and title bar; the maximum column height allowed for the first column of the engineering design specification content in the engineering design specification drawing is defined as H max1 , the maximum column height allowed for the second column of engineering design specifications is H max2 ;
[0028] The engineering design specification drawing frame length is the length L of the engineering design specification drawing frame in the CAD model space.
[0029] Preferably, the specific steps of step S4 are as follows:
[0030] S4.1: Automatically generate the first paragraph of the engineering design specification:
[0031] 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 multi-line text in the CAD model space. The text content is read from the one-dimensional text array in step S2, and the upper left corner of the multi-line text is used as the insertion base point. At the same time, the multi-line text style is set, including font, text height, and color;
[0032] The design specification picture is created in the CAD model space in an attached manner, the attachment path is the storage path described in step S2, the upper left corner of the picture is used as the insertion base point, and the picture size and position are set;
[0033] The design specification table is created in the CAD model space in a table form, and the table content is read from the two-dimensional text array in step S2, with the upper left corner of the table as the insertion base point; the number of table rows, columns, table width and height are set according to the table content;
[0034] Automatically calculate the current column height based on the first paragraph of the engineering design manual is 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 Calculated as follows:
[0035]
[0036] In the above formula, are the frame insertion points P in step S3.1 respectively. S1 The X-axis and Y-axis coordinates;
[0037] S4.2: Loop to generate the contents of paragraph i of the engineering design specification:
[0038] i is a positive integer greater than 1. The current column height is automatically calculated based on the content height of the i-th paragraph of the engineering design manual. Calculated as follows:
[0039]
[0040] In the above formula, H Mi is the height of the content of paragraph i of the engineering design specification;
[0041] The insertion point of the content of paragraph i of the engineering design specification is when hour, coordinate Calculated as follows:
[0042]
[0043] In the above formula, These are the insertion points of the i-1st paragraph of the engineering design specification. The X-axis and Y-axis coordinates;
[0044] when When adding a new column, reset the current column height H Si , coordinate Calculated as follows:
[0045]
[0046] In the above formula, L1 is the horizontal distance between the upper left corners of the two adjacent columns of the engineering design manual content in the design manual. When the newly added columns are even columns, L1 is taken as W S ;
[0047] When the newly added column is an odd number of columns, take L1 as LW S, L is the frame length described in step S3.3;
[0048] H max The maximum column height allowed for the current column. If the current column is an odd number, take H max H max1 , when the current column is an even column, take H max H max2 ;
[0049] S4.3: Adjust the position of the design specification pictures and design specification tables:
[0050] The positions of the design specification picture and the design specification table are indented according to the column width described in step S3.3 and the size of the design specification picture and the design specification table described in step S2.
[0051] Preferably, the specific steps of step S5 are as follows:
[0052] S5.1: Calculate the number of drawing frames based on the generated engineering design specifications:
[0053] The number of drawing frames in the engineering design specification is n is the number of columns in the design specification described in step S4, is the rounding symbol;
[0054] S5.2: Automatically and continuously arrange the engineering design specification drawing frame:
[0055] The engineering design specification drawing frame is stored in a dwg file format, and the design specification drawing frame dwg format file corresponding to the engineering project is obtained by selecting a file or inputting a file path, and the engineering design specification drawing frame is inserted into the CAD model space in the form of a block, and the insertion base point is the lower left corner point of the engineering design specification drawing frame;
[0056] The insertion point of the drawing frame of the first page of the engineering design manual is the P S1 , page i Engineering Design Manual Drawing frame insertion point P Si Coordinates Calculate according to the following formula:
[0057]
[0058]
[0059] In the above formula, i is a positive integer, and L is the length of the frame described in step S3.3.
[0060] An automated design system for engineering design specifications, comprising:
[0061] An engineering design specification data input module, wherein the engineering design specification data input module is used to input engineering design specification information; run the AutoCAD secondary development program to read and store the contents of the engineering design specification;
[0062] An engineering design specification content automatic generation module, the engineering design specification content automatic generation module is used to select an engineering design specification insertion point, set engineering design specification drawing parameters; according to the engineering design specification drawing parameters, automatically generate and typeset the engineering design specification;
[0063] The engineering design specification drawing frame automatic layout module is used to automatically and continuously layout the engineering design specification drawing frames according to the generated engineering design specifications.
[0064] A computer device 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, wherein the processor implements the automated design method of the engineering design specification when executing the computer program.
[0065] A non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0066] S1: Input engineering design specification information;
[0067] S2: Run the AutoCAD secondary development program to read and store the contents of the engineering design manual;
[0068] S3: Select the insertion point of the engineering design manual and set the drawing parameters of the engineering design manual;
[0069] S4: Automatically generate and typeset the engineering design specification according to the drawing parameters of the engineering design specification;
[0070] S5: Automatically and continuously arrange the engineering design specification drawing frames according to the generated engineering design specification to complete the engineering design specification design.
[0071] Compared with the prior art, the present invention has the following beneficial effects:
[0072] The present invention can realize the automatic design and drawing of engineering design specifications, greatly improving production efficiency. The present invention provides an automatic design method for engineering design specifications, which can realize the automatic and rapid creation, editing, typesetting of design specification text, pictures, and tables, and automatic continuous arrangement of engineering design specification drawing frames in the CAD model space based on the design specification word document data; the designer only needs to fill in the corresponding design specification information in the word document to realize the automatic design and drawing of the engineering design specification. There is no need to perform a large amount of manual operations in the CAD model space.
[0073] The present invention converts a large number of steps that require manual operation into computer automatic calculation operations by writing the technology into an AutoCAD secondary development program, thereby improving production efficiency. If the existing production method is used to produce the design specifications of any profession in the engineering project by manual operation in the CAD model space, it will take about 1 working day for every 10 pages of design specifications. However, by using the technology and embodiments of the present invention, it only takes 2 hours to complete the automatic drawing, greatly improving the design efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 is a flow chart of an automated design method for engineering design specifications according to Embodiment 1 of the present invention;
[0075] Figure 2 It is a schematic diagram of the engineering design specification generation principle of Example 1 of the present invention;
[0076] Figure 3 It is a schematic diagram of the engineering design specification results of Example 1 of the present invention;
[0077] Figure 4 It is a structural diagram of embodiment 2 of the present invention.
[0078] Figure 5 It is a structural diagram of embodiment 3 of the present invention. DETAILED DESCRIPTION
[0079] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] Example 1, please refer to Figure 1 The present invention provides a technical solution: an automated design method for an engineering design specification, comprising the following steps:
[0081] S1: Input engineering design specification information.
[0082] Specifically, the information input refers to filling in the design description information of the specified engineering project in the engineering design description template file.
[0083] Specifically, the engineering project design description information includes text, pictures, and tables.
[0084] Specifically, the engineering design specification template file is a word document in docx format or doc format.
[0085] S2: Run the AutoCAD secondary development program to read and store the contents of the engineering design manual.
[0086] Specifically, the AutoCAD secondary development program refers to the AutoCAD.NET API interface file and can open and edit AutoCAD files including dwg, dws, dwt, and dxf formats.
[0087] Specifically, the contents of the engineering design specification include design specification text, design specification pictures, and design specification tables.
[0088] Specifically, the contents of the engineering design specification are read one by one in sequence from the engineering design specification template file in step S1, and the order of the contents of the engineering design specification is memorized according to the content category and sequence number.
[0089] Specifically, the design specification text stores 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 one by one in the form of "time" + "serial 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 insertion point of the engineering design manual and set the drawing parameters of the engineering design manual.
[0093] Furthermore, the specific steps of step S3 are as follows:
[0094] S3.1: Select the drawing frame insertion point of the engineering design specification.
[0095] Specifically, the drawing frame insertion point of the engineering design specification can be obtained by inputting coordinates or manually selecting in the CAD model space. The drawing frame insertion point of the first page of the engineering design specification is obtained as P S1 .
[0096] S3.2: Obtain the plan position of the design specification in the engineering design specification drawing.
[0097] Specifically, the plane position is the upper left corner point of the first paragraph of the engineering design specification in the first page of the engineering design specification drawing. The frame insertion point P in step S3.1 S1 It is expressed by the relative plane relationship.
[0098] Specific, definition With P S1 The distance in the X-axis direction is X S ,definition With P S1 The Y-axis distance 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 engineering design specification column width is the maximum width allowed for each column of the design specification.
[0101] Specifically, the engineering design specification column distance is the horizontal distance between the upper left corners of two adjacent columns of engineering design specification content on the same page of the engineering design specification, and is defined as W S .
[0102] Specifically, the maximum column height of the engineering design specification is the maximum height allowed for each column of the engineering design specification content in the drawing, subject to the size of the drawing frame and the title bar. Define the maximum column height allowed for the first column of the engineering design specification content in the engineering design specification drawing as H max1 , the maximum column height allowed for the second column of engineering design specifications is H max2 .
[0103] Specifically, the frame length refers to the length L of the engineering design specification frame in the CAD model space.
[0104] S4: Automatically generate and typeset the engineering design manual according to the drawing parameters of the engineering design manual.
[0105] Furthermore, the specific steps of step S4 are as follows:
[0106] S4.1: Automatically generate the first paragraph of the engineering design specification.
[0107] Specifically, the engineering design specification content may be one of design specification text, design specification picture, and design specification table. The content is generated in the order of the content described in step S2.
[0108] Specifically, the rotation angle of the contents of the engineering design specification 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 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 an attached manner, the attachment path is the storage path described in step S2, and the upper left corner of the picture is used 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 a table form, the table content is read from the two-dimensional text array in step S2, and the upper left corner of the table is used as the insertion base point. The number of table rows, columns, table width and height are set according to the table content.
[0112] Specifically, the current column height is automatically calculated based on the first paragraph of the engineering design specification. This is the height of the first paragraph of the engineering design specification.
[0113] Specifically, the first paragraph of the engineering design specification is inserted at Its coordinates Calculated as follows:
[0114]
[0115]
[0116] In the above formula, are the frame insertion points P in step S3.1 respectively. S1 The X-axis and Y-axis coordinates.
[0117] S4.2: Loop through the contents of paragraph i of the engineering design specification.
[0118] Specifically, i is a positive integer greater than 1.
[0119] Specifically, the current column height is automatically calculated based on the content of the i-th paragraph of the engineering design specification. Calculated as follows:
[0120]
[0121] In the above formula, H Si is the height of the content of paragraph i of the engineering design specification.
[0122] Specifically, the insertion point of the content of paragraph i of the engineering design specification is when hour, coordinate Calculated as follows:
[0123]
[0124]
[0125] In the above formula, These are the insertion points of the i-1st paragraph of the engineering design specification. The X-axis and Y-axis coordinates.
[0126] Specifically, when When adding a new column, reset the current column height H Si . coordinate Calculated as follows:
[0127]
[0128]
[0129] In the above formula, L1 is the horizontal distance between the upper left corners of the two adjacent columns of the engineering design manual content in the design manual. When the newly added columns are even columns, L1 is taken as W S When the newly added column is an odd number of columns, L1 is taken as LW S , L is the frame length described in step S3.3.
[0130] Specifically, H max The maximum column height allowed for the current column. When the current column is an odd number, H max H max1 . When the current column is an even column, take H max H max2 .
[0131] S4.3: Adjust the position of the design specification pictures and design specification tables.
[0132] Specifically, the positions of the design specification picture and the design specification table are indented according to the column width described in step S3.3 and the size of the design specification picture and the design specification table described in step S2.
[0133] S5: Automatically and continuously arrange the engineering design specification drawing frame according to the generated engineering design specification, and complete the engineering design specification design. Figure 2 , Figure 3 .
[0134] Furthermore, the specific steps of step S5 are as follows:
[0135] S5.1: Calculate the number of drawing frames based on the generated engineering design specifications.
[0136] Specifically, the number of frames of the engineering design specification is n is the number of columns in the design specification described in step S4, The round-up symbol.
[0137] S5.2: Automatically and continuously arrange the engineering design specification drawing frames.
[0138] Specifically, the engineering design specification drawing frame is stored in the dwg file format. The design specification drawing frame dwg format file corresponding to the engineering project is obtained by selecting a file or entering a file path. The engineering design specification drawing frame is inserted into the CAD model space in the form of a block, and the insertion base point is the lower left corner point of the engineering design specification drawing frame.
[0139] Specifically, the insertion point of the first page of the engineering design specification drawing frame is the P S1 Page i Engineering Design Manual Drawing frame insertion point P Si Coordinates Calculate 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 described in step S3.3.
[0143] The above steps can be implemented by writing an AutoCAD secondary development program, that is, automatically designing and generating various graphic element combinations of engineering design instructions in AutoCAD, including but not limited to points, polylines, single-line and multi-line text, pictures, tables, etc. Programming languages include but are not limited to C++ and C#. After the program is run, the above operations can be automatically completed in dwg, dws, dwt, and dxf format files.
[0144] The present invention converts a large number of steps that require manual operation into computer automatic calculation operations by writing the technology into an AutoCAD secondary development program, thereby improving production efficiency. If the existing production method is used to produce the design specifications of any profession in the engineering project by manual operation in the CAD model space, it will take about 1 working day for every 10 pages of design specifications. However, by using the technology and embodiments of the present invention, it only takes 2 hours to complete the automatic drawing, greatly improving production efficiency.
[0145] The present invention can realize the automatic design and drawing of engineering design specifications, greatly improving production efficiency. The present invention provides an automatic design method for engineering design specifications, which can realize the automatic and rapid creation, editing, typesetting of design specification text, pictures, and tables, and automatic continuous arrangement of engineering design specification drawing frames in the CAD model space based on the design specification word document data; the designer only needs to fill in the corresponding design specification information in the word document to realize the automatic design and drawing of the engineering design specification. There is no need to perform a large amount of manual operations in the CAD model space.
[0146] Embodiment 2:
[0147] Corresponding to Example 1, Example 2 of the present invention proposes an automated design system for engineering design specifications, see Figure 4 , the system comprising:
[0148] The engineering design specification data input module is used to input engineering design specification information and read engineering design specification data.
[0149] The automatic generation module of engineering design manual content automatically calculates the insertion point of each section of engineering design manual content according to the parameters of the engineering design manual plane position, column width, column spacing, etc., and generates and typesets the engineering design manual section by section.
[0150] The engineering design specification drawing frame automatic layout module automatically calculates the number of engineering design specification drawing frames and the corresponding frame insertion according to the generated engineering design specifications, and automatically and continuously arranges the engineering design specification drawing frames.
[0151] The functions and implementation methods performed by each module in the engineering design specification automation design system provided in Example 2 of the present invention have been introduced in detail in the above-mentioned Example 1, so they will not be described in detail here.
[0152] Embodiment 3:
[0153] like Figure 5 As shown, this embodiment discloses a computer device, including 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. When the processor executes the computer program in Embodiment 1, the above-mentioned automated design method for engineering design specifications is implemented.
[0154] A computer-readable storage medium stores a computer program, and the computer program implements the above steps when executed by a processor.
[0155] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
[0156] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
[0157] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.
Claims
1. An automated design method for engineering design specifications, characterized in that: include: S1: Input engineering design specification information; S2: Run the AutoCAD secondary development program to read and store the contents of the engineering design manual; S3: Select the insertion point of the engineering design manual and set the drawing parameters of the engineering design manual; S4: Automatically generate and typeset the engineering design specification according to the drawing parameters of the engineering design specification; S5: Automatically and continuously arrange the engineering design specification drawing frames according to the generated engineering design specification to complete the engineering design specification design.
2. The automated design method for engineering design specifications according to claim 1, characterized in that: The step S1 comprises: The input engineering design specification information is to fill in the engineering design specification template file with the specified engineering project design specification information; The engineering design specification template file is a word document in docx format or doc format.
3. The automated design method for engineering design specifications according to claim 1, characterized in that: The step S2 comprises: The AutoCAD secondary development program refers to the AutoCAD.NET API interface file and can open and edit AutoCAD files including dwg, dws, dwt and dxf formats; The contents of the engineering design specification include the text of the design specification, pictures of the design specification, and forms of the design specification; The contents of the engineering design specification are read one by one in sequence from the engineering design specification template file, and the order of the contents of the engineering design specification is memorized according to the content category and sequence number; The design specification text stores text content in the form of a one-dimensional text array; When reading the contents of the engineering design manual, a new folder is created in the specified storage path, the new folder is named according to the current computer time, and the design manual pictures are named one by one 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 for engineering design specifications according to claim 1, characterized in that: The specific steps of step S3 are as follows: S3.1: Select the drawing frame insertion point of the engineering design specification: The drawing frame insertion point of the engineering design manual is obtained by inputting coordinates or manually selecting in the CAD model space. The drawing frame insertion point of the first page of the engineering design manual is obtained as P S1 ; S3.2: Get the plane position of the design specification in the engineering design specification drawing: The plane position is the upper left corner point of the first paragraph of the engineering design specification in the first page of the engineering design specification drawing. With the frame insertion point P S1 The relative plane relationship is expressed as follows: With P S1 The distance in the X-axis direction is X S ,definition With P S1 The Y-axis distance is Y S ; S3.3: Set the engineering design specification column width, engineering design specification column spacing, engineering design specification maximum column height allowed, and engineering design specification frame length: The engineering design specification column width is the maximum width allowed for each column of the engineering design specification; The engineering design specification column distance is the horizontal distance between the upper left corners of two adjacent columns of engineering design specification content on the same page of the engineering design specification, and is defined as W S ; The maximum column height allowed for the engineering design specification is the maximum height allowed for each column of the engineering design specification content in the engineering design specification drawing, which is limited by the frame size and title bar; the maximum column height allowed for the first column of the engineering design specification content in the engineering design specification drawing is defined as H max1 , the maximum column height allowed for the second column of engineering design specifications is H max2 ; The engineering design specification drawing frame length is the length L of the engineering design specification drawing frame in the CAD model space.
5. The automated design method for engineering design specifications according to claim 3, characterized in that: The specific steps of step S4 are as follows: S4.1: Automatically generate the first paragraph of the engineering design specification: 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 multi-line text in the CAD model space. The text content is read from the one-dimensional text array in step S2, and the upper left corner of the multi-line text is used as the insertion base point. At the same time, the multi-line text style is set, including font, text height, and color; The design specification picture is created in the CAD model space in an attached manner, the attachment path is the storage path described in step S2, 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 CAD model space in a table form, and the table content is read from the two-dimensional text array in step S2, with the upper left corner of the table as the insertion base point; the number of table rows, columns, table width and height are set according to the table content; Automatically calculate the current column height based on the first paragraph of the engineering design manual is 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 Calculated as follows: In the above formula, are the frame insertion points P in step S3.1 respectively. S1 The X-axis and Y-axis coordinates; S4.2: Loop to generate the contents of paragraph i of the engineering design specification: i is a positive integer greater than 1. The current column height is automatically calculated based on the content height of the i-th paragraph of the engineering design manual. Calculated as follows: In the above formula, H Si is the height of the content of paragraph i of the engineering design specification; The insertion point of the content of paragraph i of the engineering design specification is when hour, coordinate Calculated as follows: In the above formula, These are the insertion points of the i-1st paragraph of the engineering design specification. The X-axis and Y-axis coordinates; when When adding a new column, reset the current column height H si , coordinate Calculated as follows: In the above formula, L1 is the horizontal distance between the upper left corners of the two adjacent columns of the engineering design manual content in the design manual. When the newly added columns are even columns, L1 is taken as W s ; When the newly added column is an odd number of columns, take L1 as LW s , L is the length of the engineering design specification frame described in step S3.3; H max The maximum column height allowed for the current column. If the current column is an odd number, take H max H max1 , when the current column is an even column, take H max H max2 ; S4.3: Adjust the position of the design specification pictures and design specification tables: The positions of the design specification pictures and design specification tables are indented according to the engineering design specification column width described in step S3.3 and the sizes of the design specification pictures and design specification tables described in step S2.
6. The automated design method for engineering design specifications according to claim 1, characterized in that: The specific steps of step S5 are as follows: S5.1: Calculate the number of drawing frames based on the generated engineering design specifications: The number of drawing frames in the engineering design specification is n is the number of columns in the design specification described in step S4, is the rounding symbol; S5.2: Automatically and continuously arrange the engineering design specification drawing frame: The engineering design specification drawing frame is stored in a dwg file format, and the design specification drawing frame dwg format file corresponding to the engineering project is obtained by selecting a file or inputting a file path, and the engineering design specification drawing frame is inserted into the CAD model space in the form of a block, and the insertion base point is the lower left corner point of the engineering design specification drawing frame; The insertion point of the drawing frame of the first page of the engineering design manual is the P S1 , page i Engineering Design Manual Drawing frame insertion point P Si Coordinates Calculate according to the following formula: In the above formula, i is a positive integer, and L is the length of the engineering design specification frame described in step S3.
3.
7. An automated design system for engineering design specifications, characterized in that: include: An engineering design specification data input module, wherein the engineering design specification data input module is used to input engineering design specification information; Run the AutoCAD secondary development program to read and store the contents of the engineering design manual; An engineering design specification content automatic generation module, the engineering design specification content automatic generation module is used to select an engineering design specification insertion point, set engineering design specification drawing parameters; according to the engineering design specification drawing parameters, automatically generate and typeset the engineering design specification; The engineering design specification drawing frame automatic layout module is used to automatically and continuously layout the engineering design specification drawing frames according to the generated engineering design specifications.
8. A computer device, characterized in that: include: 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, wherein the processor implements the automated design method for the engineering design specification as described in any one of claims 1 to 7 when executing the computer program.
9. A non-volatile computer storage medium, characterized in that: A computer executable instruction is stored, wherein the computer executable instruction is configured to: S1: Input engineering design specification information; S2: Run the AutoCAD secondary development program to read and store the contents of the engineering design manual; S3: Select the insertion point of the engineering design manual and set the drawing parameters of the engineering design manual; S4: Automatically generate and typeset the engineering design specification according to the drawing parameters of the engineering design specification; S5: Automatically and continuously arrange the engineering design specification drawing frames according to the generated engineering design specification to complete the engineering design specification design.
Citation Information
Patent Citations
Automated generation system of communication engineering design budgets and explaining text and method
CN108549624A
Batch printing method for CAD drawings
CN112486430A
Automatic generation method of architectural design description document
CN113886930A
Bridge superstructure standard drawing digital design system
CN115081070A
Foundation pit support construction design general description standardization generation method and system
CN117390745A