Finite element model construction system and method based on construction drawings
By designing an automated finite element model construction system, the problem of time-consuming and error-prone traditional manual creation of finite element models is solved, and more efficient and accurate finite element model generation is achieved, providing a more reliable foundation for structural analysis and design.
Patent Information
- Application Number
- CN202510191634.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-21
- Publication Date
- 2025-05-06
AI Technical Summary
The creation of traditional finite element models relies on manual input of data from construction drawings, resulting in time-consuming, error-prone, inefficient and inaccurate models.
Design a finite element model construction system based on construction drawings, including drawing preprocessing module, merged repeating point module, structural information assignment module and model intelligent generation module, automatic processing of drawings and generation of finite element models in MGT format.
It significantly reduces the conversion time from construction drawings to finite element models, improves work efficiency, reduces human errors, improves the accuracy and consistency of the model, and provides a more reliable foundation for subsequent structural analysis and design.
Smart Images

Figure CN119940030A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of building construction, and in particular relates to a finite element model building system based on construction drawings and a method thereof. Background Art
[0002] With the development of building information modeling (BIM) technology, the industry's demand for automation and intelligence is growing. As an important tool for structural analysis and design, the ability to create finite element models automatically has become the key to improving engineering efficiency and quality. Traditionally, the creation of finite element models relies on manual creation based on construction drawings, a process that is time-consuming and error-prone. At the same time, since construction drawings usually contain a lot of details and complex structural information, manual interpretation and input of this data is not only inefficient, but also difficult to ensure the accuracy and consistency of the model.
[0003] Therefore, how to provide a finite element model construction system and method based on construction drawings is a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0004] In view of the inadequacy of manual modeling, the present invention proposes a finite element model construction system and method based on construction drawings, which greatly reduces the conversion time from construction drawings to finite element models and improves work efficiency. At the same time, by reducing human errors and improving the accuracy of the model, a more reliable foundation is provided for subsequent structural analysis and design.
[0005] In order to solve the above technical problems, the present invention includes the following technical solutions: A finite element model building system based on construction drawings, comprising: A drawing preprocessing module, wherein the drawing preprocessing module recognizes CAD drawings in DXF format and sets the rods of each section as one layer; A duplicate point merging module, which parses the line segments in the DXF file, calculates the start and end coordinate values of each rod, sets a merging threshold, and merges the duplicate points within the threshold range into one point to reduce redundant data; A structural information assigning module, wherein the structural information assigning module identifies a section table in a drawing, matches a layer name with a section name, and assigns structural information to the layer; A model intelligent generation module outputs a finite element model in MGT format.
[0006] Furthermore, the module for merging duplicate points includes: The first step is to identify the starting and ending coordinates of the rod: automatically identify the starting and ending coordinates of each rod in the drawing; The second step is to calculate the Euclidean distance: traverse the coordinates of the starting point and the end point of each rod, and calculate the Euclidean distance between all coordinate points except the starting point and the end point of the same rod; The third step is to set the merging threshold: according to actual needs, set a distance threshold to determine whether two rods are close enough; The fourth step is to merge duplicate points: compare the calculated coordinate distance with the set threshold. If the distance is less than or equal to the merge threshold, the two points are considered to be close in space and are merged. Select a representative point to keep on the drawing, remove or merge other points into this representative point, and re-modify the DXF drawing coordinate point list and its index mapping.
[0007] Furthermore, the second step includes using the formula To determine the straight-line distance between each pair of points, and They represent the coordinates of two different points respectively, so as to avoid including the starting point and end point of the same rod in the distance calculation during the calculation process, and finally obtain a data record containing the coordinate distances of all points between the rods.
[0008] Furthermore, the structure information assigning module includes: (1) Structural information table extraction: The structural information table is automatically identified through the OCR algorithm to extract material and cross-section information; (2) Layer matching: The identified structural information cross-section information is matched with the layer name to ensure that each layer can be correctly associated with the corresponding structural information; (3) Assign structural information: Assign the matched structural information to the corresponding layer, create MATERIAL and SECTION commands according to the standard format of the MGT file, so that each layer in the drawing contains complete structural information.
[0009] Furthermore, the model intelligent generation module uses the f.write function in Python to integrate the layer information of the drawing, the rod coordinate information and the structure information to output a complete MGT format finite element model including the file header and tail information.
[0010] The present invention also provides a method for intelligently constructing a finite element model based on a construction drawing, the method comprising: Step S1, using the finite element model based on the construction drawing to build a system; Step S2, identifying the CAD drawing in DXF format through the drawing preprocessing module, and setting the rods of each section to the same layer; Step S3, optimizing the coordinate data in the drawing by the merge duplicate points module through the steps of identifying the start and end coordinates of the rod, calculating the Euclidean distance, setting the merge threshold and merging the duplicate points; Step S4, the structure information assignment module ensures that each layer is associated with the correct structure information through the steps of extracting the structure information table, layer matching and assigning structure information, and creates the required commands according to the standard format of the MGT file; Step S5: Integrate the layer information, rod coordinate information and structure information of the drawing through the model intelligent generation module, and output a complete MGT format finite element model including file header and tail information. At this point, the intelligent construction of the finite element model is completed.
[0011] Compared with the prior art, the present invention has the following advantages and beneficial effects: The present invention provides a finite element model construction system based on construction drawings and a method thereof, the system comprising a drawing preprocessing module, a duplicate point merging module, a structural information assigning module and a model intelligent generation module. The finite element model intelligent construction method based on construction drawings, first, identifies CAD drawings in DXF format, and sets the rods of each section to the same layer; secondly, optimizes the coordinate data in the drawings by identifying the start and end coordinates of the rods, calculating the Euclidean distance, setting the merging threshold and merging the duplicate points; then, by extracting the structural information table, layer matching and assigning the structural information, ensure that each layer is associated with the correct structural information, and create the required commands according to the standard format of the MGT file; finally, integrate the layer information, rod coordinate information and structural information of the drawings, and output a complete MGT format finite element model containing the header and tail information of the file, so as to complete the intelligent construction of the finite element model.
[0012] Compared with the traditional method, the beneficial effects of the present invention are mainly as follows: (1) Improved efficiency: By automating the processing of drawings and generating finite element models, the time for manual input and coordination of data is significantly reduced, thereby speeding up the modeling process.
[0013] (2) Reduce errors: Automated drawing recognition and information matching reduce errors caused by human factors, ensure the consistency of all layers and bar information, and improve the accuracy of the model.
[0014] (3) Easy to update and maintain: Automatically generated models are easier to update and maintain, and can quickly respond to design changes and update the model.
[0015] (4) Support for complex projects: For projects with a large amount of details and complex structures, it can more efficiently process and generate accurate models. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a system architecture diagram for constructing a finite element model based on a construction drawing in one embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following is a further detailed description of a finite element model building system based on construction drawings and a method thereof provided by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description.
[0018] Embodiment 1
[0019] Combine the following Figure 1 , a finite element model building system based on construction drawings of the present invention is described in detail.
[0020] Please refer to Figure 1 , a finite element model building system based on construction drawings, including: the system includes a drawing preprocessing module, a duplicate point merging module, a structural information assigning module and a model intelligent generation module.
[0021] Specifically, the drawing preprocessing module is mainly responsible for identifying CAD drawings in DXF format and setting the rods of each section as a layer to facilitate subsequent identification; the duplicate point merging module is mainly responsible for parsing the line segments in the DXF file, calculating the start and end coordinate values of each rod, setting the merging threshold, and merging the duplicate points within the threshold range into one point to reduce redundant data; the structural information assignment module is mainly responsible for identifying the section table in the drawing, matching the layer name with the section name, and assigning structural information to the layer; the model intelligent generation module is mainly responsible for outputting the finite element model in MGT format.
[0022] Specifically, the drawing preprocessing module is used to identify CAD drawings in DXF format and set the rods of each section to the same layer to facilitate subsequent identification.
[0023] The steps to merge duplicate point modules are: (1) Identify the start and end coordinates of the rod: Automatically identify the start and end coordinates of each rod in the drawing. (2) Euclidean distance calculation: Traverse the start and end coordinates of each rod, and calculate the Euclidean distance between all coordinate points except the start and end points of the same rod, that is, use the formula To determine the straight-line distance between each pair of points, and They represent the coordinates of two different points respectively, so as to avoid including the starting point and end point of the same rod in the distance calculation during the calculation process, and finally obtain a data record containing the coordinate distances of all points between the rods.
[0024] (3) Setting the merge threshold: According to actual needs, set a distance threshold to determine whether two rods are close enough.
[0025] (4) Merge duplicate points: Compare the calculated coordinate distance with the set threshold. If the distance is less than or equal to the merge threshold, the two points are considered to be close in space and should be merged. A representative point is selected to remain on the drawing, and other points are removed or merged into this representative point. The DXF drawing coordinate point list and its index mapping are re-modified.
[0026] The steps to assign structural information to the module are: (1) Structural information table extraction: The structural information table in the image is automatically identified through the OCR algorithm to extract material and cross-section information. Each material and cross-section has a unique identifier, such as "P42×2-Q345" represents a steel pipe with a diameter of 42 mm and a thickness of 2 mm and a Q345 steel grade.
[0027] (2) Layer matching: The identified structural information cross-section information is matched with the layer name to ensure that each layer can be correctly associated with the corresponding structural information.
[0028] (3) Assign structural information: Assign the matched structural information to the corresponding layer. Create *MATERIAL and *SECTION commands according to the standard format of the MGT file to ensure that each layer in the drawing contains complete structural information.
[0029] The model intelligent generation module is used to use the f.write function in Python to integrate the layer information, rod coordinate information and structural information of the drawing to output a complete MGT format finite element model containing file header and tail information.
[0030] Please continue to refer to Figure 1 This embodiment also provides a method for intelligently constructing a finite element model based on construction drawings: first, identify the CAD drawings in DXF format, and set the rods of each section to the same layer; second, optimize the coordinate data in the drawings by identifying the start and end coordinates of the rods, calculating the Euclidean distance, setting the merge threshold, and merging duplicate points; then, ensure that each layer is associated with the correct structural information through the steps of extracting the structural information table, layer matching, and assigning structural information, and create the required commands in accordance with the standard format of the MGT file; finally, integrate the layer information, rod coordinate information, and structural information of the drawings, and output a complete MGT format finite element model containing the header and tail information of the file; at this point, the intelligent construction of the finite element model is completed.
[0031] The above examples are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. The above embodiments only express several embodiments of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A finite element model building system based on construction drawings, characterized in that: include: A drawing preprocessing module, wherein the drawing preprocessing module recognizes CAD drawings in DXF format and sets the rods of each section as one layer; A duplicate point merging module, which parses the line segments in the DXF file, calculates the start and end coordinate values of each rod, sets a merging threshold, and merges the duplicate points within the threshold range into one point to reduce redundant data; A structural information assigning module, wherein the structural information assigning module identifies a section table in a drawing, matches a layer name with a section name, and assigns structural information to the layer; A model intelligent generation module outputs a finite element model in MGT format.
2. The finite element model building system based on construction drawings according to claim 1 is characterized in that: The module for merging duplicate points includes: The first step is to identify the starting and ending coordinates of the rod: automatically identify the starting and ending coordinates of each rod in the drawing; The second step is to calculate the Euclidean distance: traverse the coordinates of the starting point and the end point of each rod, and calculate the Euclidean distance between all coordinate points except the starting point and the end point of the same rod; The third step is to set the merging threshold: according to actual needs, set a distance threshold to determine whether two rods are close enough; The fourth step is to merge duplicate points: compare the calculated coordinate distance with the set threshold. If the distance is less than or equal to the merge threshold, the two points are considered to be close in space and are merged. Select a representative point to keep on the drawing, remove or merge other points into this representative point, and re-modify the DXF drawing coordinate point list and its index mapping.
3. The finite element model building system based on construction drawings according to claim 2 is characterized in that: The second step involves using the formula To determine the straight-line distance between each pair of points, and They represent the coordinates of two different points respectively, so as to avoid including the starting point and end point of the same rod in the distance calculation during the calculation process, and finally obtain a data record containing the coordinate distances of all points between the rods.
4. The finite element model building system based on construction drawings according to claim 1 is characterized in that: The structure information imparting module comprises: (1) Structural information table extraction: The structural information table is automatically identified through the OCR algorithm to extract material and cross-section information; (2) Layer matching: The identified structural information cross-section information is matched with the layer name to ensure that each layer can be correctly associated with the corresponding structural information; (3) Assign structural information: Assign the matched structural information to the corresponding layer, create MATERIAL and SECTION commands according to the standard format of the MGT file, so that each layer in the drawing contains complete structural information.
5. The finite element model building system based on construction drawings according to claim 1 is characterized in that: The model intelligent generation module uses the f.write function in Python to integrate the layer information, rod coordinate information and structure information of the drawing to output a complete MGT format finite element model containing file header and tail information.
6. A method for intelligently constructing a finite element model based on construction drawings, characterized in that: include: Step S1, using the finite element model construction system based on the construction drawings as described in any one of claims 1 to 5; Step S2, identifying the CAD drawing in DXF format through the drawing preprocessing module, and setting the rods of each section to the same layer; Step S3, optimizing the coordinate data in the drawing by the merge duplicate points module through the steps of identifying the start and end coordinates of the rod, calculating the Euclidean distance, setting the merge threshold and merging the duplicate points; Step S4, the structure information assignment module ensures that each layer is associated with the correct structure information through the steps of extracting the structure information table, layer matching and assigning structure information, and creates the required commands according to the standard format of the MGT file; Step S5: Integrate the layer information, rod coordinate information and structure information of the drawing through the model intelligent generation module, and output a complete MGT format finite element model including file header and tail information. At this point, the intelligent construction of the finite element model is completed.
Citation Information
Patent Citations
Finite element modeling method for special-shaped spatial structure
CN104408267A
Rapid high-voltage transmission iron tower space rigid frame finite element model establishing method
CN108509708A
Automatic drainage network model data conversion method based on drainage network planning drawing information
CN110298913A
A three-dimensional model automatic construction method of a drainage pipe network
CN113190937A
Nuclear power plant three-dimensional modeling method and system based on two-dimensional plane template drawing
CN113793412A
Cited By
Structural model generation method and device based on architectural drawing, equipment and medium
CN121413085A
Building drawing-based structural model generation method, device, equipment and medium
CN121413085B