Axis grid superposition method, electronic device and storage medium

By automatically generating a axis grid by identifying axes in two-dimensional drawings, the error operation and inaccurate identification problems are solved when manually selecting layers, and efficient and accurate generation of the axis grid is achieved.

CN115761725BActive Publication Date: 2025-08-29FUJIAN CHENXI INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211452913.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-27
Publication Date
2025-08-29
Estimated Expiration
2038-12-27

AI Technical Summary

Technical Problem

In the prior art, there are problems of misoperation, omissions and inaccurate identification when manually selecting the layer to identify the axis, resulting in high labor costs and low recognition rate.

Method used

By identifying all the axes in the two-dimensional drawings, axes and grids are generated, and the axis and grids are automatically generated using the characteristics of obvious and highly recognizable axis characteristics.

Benefits of technology

Improve the efficiency and accuracy of axis grid generation, reduce labor costs, and ensure the accuracy and efficiency of identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115761725B_ABST
    Figure CN115761725B_ABST
Patent Text Reader

Abstract

The present invention discloses an axis network superposition method, an electronic device and a storage medium, which traverse a two-dimensional drawing to obtain all axis symbols in the two-dimensional drawing, identify all axis lines through all axis symbols, and generate an axis network; the present invention identifies all axis symbols in the two-dimensional drawing and identifies all axis lines through the axis symbols to generate an axis network, thereby realizing automatic generation of the axis network; since the axis symbols have obvious features and high recognition compared to other lines, and the relationship between the axis symbols and the axis lines is clear and the degree of correspondence is high, thereby improving recognition efficiency and recognition accuracy, that is, improving the efficiency and accuracy of axis network generation.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This case is a divisional application based on the invention patent with application date of December 27, 2018, application number 201811608022.0, and name “A method for generating an axis grid, an electronic device, and a storage medium” as the parent case. Technical Field

[0002] The present invention relates to the field of engineering cost, and in particular to an axis grid superposition method, electronic equipment and storage medium. Background Art

[0003] Project cost refers to the construction price of a project, which is the total amount of all expenses expected or actually required to complete the construction of a project. It can also be considered as the construction cost of the project, that is, the total fixed asset investment expenses expected or actually paid for the construction of a project.

[0004] During the construction cost calculation process, designers typically create 2D drawings using CAD. Cost estimators then use these 2D drawings to calculate the project quantities using 3D costing software. Existing 3D costing software can only calculate models within its own software, so cost estimators need to use a conversion tool to convert 2D drawings into the building models required by the software.

[0005] During the automatic remodeling process, to convert the building model required by the software, it is necessary to first identify the building components in the two-dimensional drawing. For a complete two-dimensional drawing, different building components are located in different drawings, and axes are needed to identify different building components and combine them. Therefore, in the automatic remodeling process, the generation of axes is crucial. Existing manual remodeling methods select axes by selecting layers, but there are also the following problems:

[0006] 1. Manual layer selection increases labor costs and is prone to errors and omissions by users.

[0007] 2. If the drawings designed by the designer are problematic or non-standard, the layer recognition will be inaccurate and the recognition rate will be low. Summary of the Invention

[0008] The technical problem to be solved by the present invention is to provide an axis grid superposition method, an electronic device and a storage medium, which can automatically generate an axis grid.

[0009] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0010] A grid superposition method includes the following steps:

[0011] S1. Traverse the two-dimensional drawing to obtain all axis symbols in the two-dimensional drawing;

[0012] S2. Identify all axis lines through all axis symbols and generate an axis grid.

[0013] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0014] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned axis grid superposition method are implemented.

[0015] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0016] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned axis grid superposition method.

[0017] The beneficial effects of the present invention are: an axis grid superposition method, an electronic device and a storage medium, which recognize all axis symbols in a two-dimensional drawing and use the axis symbols to identify all axis lines to generate an axis grid, thereby realizing the automatic generation of the axis grid; since the axis symbols have obvious characteristics and high recognition compared to other lines, and the relationship between the axis symbols and the axis lines is clear and the degree of correspondence is high, thereby improving the recognition efficiency and recognition accuracy, that is, improving the efficiency and accuracy of axis grid generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 Schematic diagram of a flow chart of a grid superposition method according to an embodiment of the present invention;

[0019] Figure 2 A schematic plan view of a two-dimensional drawing according to an embodiment of the present invention;

[0020] Figure 3 The figure is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

[0021] Description of labels:

[0022] 1. An electronic device; 2. Processor; 3. Memory; 4. Axis symbol; 5. Axis line; 6. Dimension line; 7. Axis symbol guide line; 8. Overlay point. DETAILED DESCRIPTION

[0023] To illustrate the technical content, achieved objectives and effects of the present invention in detail, the following description is given in conjunction with the embodiments and accompanying drawings.

[0024] The most critical concept of the present invention is to obtain all axis symbols in the two-dimensional drawing, identify all axis lines through all axis symbols, and generate an axis grid.

[0025] Please refer to Figures 1 to 2 , a grid superposition method, comprising the steps of:

[0026] S1. Traverse the two-dimensional drawing to obtain all axis symbols in the two-dimensional drawing;

[0027] S2. Identify all axis lines through all axis symbols and generate an axis grid.

[0028] Axis lines on architectural drawings are the baselines for the positions of important components such as walls, columns, and beams. The horizontal distance is called the "span," and the vertical distance is called the "depth." The coordinates on the drawings are based on the lower left corner. The symbol used to represent an axis is called an axis symbol. A grid formed by axis lines is called an axis grid.

[0029] From the above description, it can be seen that the beneficial effects of the present invention are: by identifying all axis symbols in the two-dimensional drawing, all axis lines are identified through the axis symbols to generate an axis network, thereby realizing the automatic generation of the axis network; since the axis symbols have obvious characteristics and high recognition compared to other lines, and the relationship between the axis symbols and the axis lines is clear and the degree of correspondence is high, thereby improving the recognition efficiency and recognition accuracy, that is, improving the efficiency and accuracy of axis network generation.

[0030] Furthermore, all axis symbols in the two-dimensional drawing obtained in step S1 are specifically:

[0031] Identify all circles in a two-dimensional drawing and determine whether there are English characters or Arabic characters in the circles. If so, determine the circles containing English characters or Arabic characters as axis symbols.

[0032] Axis symbols primarily consist of a circle and a number. When an axis symbol represents a horizontal alignment, it's called a horizontal axis symbol, and its interior includes Arabic characters such as 1, 2, and 3. When an axis symbol represents a vertical alignment, it's called a vertical axis symbol, and its interior includes uppercase English characters such as A, B, and C.

[0033] From the above description, it can be seen that by identifying axis symbols using circles and numbers, all axis symbols can be quickly and effectively determined.

[0034] Furthermore, the step S2 is specifically as follows: identifying all axis symbol guide lines through all axis symbols, and identifying all axis lines through all axis symbols and all axis symbol guide lines.

[0035] The axis symbol leader line is a line extended from the axis symbol to indicate the axis line.

[0036] From the above description, it can be seen that since the axis and the axis symbol are far apart, if a larger range is directly used for screening, multiple line segments are likely to be screened, making it difficult to determine whether they are the axis and also difficult to confirm the correspondence between the axis and the axis symbol. Therefore, the method of first determining the axis symbol guide line through the axis symbol and then determining the axis based on the axis symbol guide line can effectively improve the efficiency and accuracy of axis recognition and obtain the correspondence between the axis and the axis symbol.

[0037] Furthermore, in step S2, all axis symbol guide lines are identified through all axis symbols as follows:

[0038] S21. For each axis symbol, with itself as the center and any value less than or equal to 1000 mm as the radius, a guide line screening range is obtained, and all line segments intersecting with the guide line screening range are placed into a set of guide lines to be confirmed;

[0039] S22, selecting a line segment from the set of guide lines to be confirmed as a first line segment, and determining whether the first line segment is the only line segment intersecting with the corresponding first axis symbol; if so, the first line segment is the first axis symbol guide line; otherwise, continuing to select a line segment from the set of guide lines to be confirmed for determination until the first axis symbol guide line is obtained;

[0040] S23. From the set of guide lines to be confirmed, mark all line segments that are in the same layer as the first axis symbol guide line and are parallel to at least any line segment in the same layer as axis symbol guide lines;

[0041] S24. Execute steps S22 and S23 in sequence for other line segments in the guide line set to be confirmed that are not in the same layer as the first axis symbol guide line or are not parallel to all line segments in the guide line set to be confirmed, until all line segments of the guide line set to be confirmed are judged to obtain the axis symbol guide line set.

[0042] Among them, under normal circumstances, the axis symbol and the axis symbol guide line are directly connected, but there are also cases where the two are not directly connected. When they are not connected, the distance between them is relatively short.

[0043] From the above description, we can see that the axis symbol needs to expand a certain range to screen out the axis symbol guide lines to avoid omissions; one of the intersecting line segments is judged, and the judgment conditions are layer plus structure, which can ensure that it belongs to the axis symbol guide line; by judging one of the intersecting line segments, and then directly determining other line segments through the same layer and parallel relationship, the recognition efficiency can be improved; and other intersecting line segments that are not in the same layer as the axis symbol guide line or are not parallel to all line segments are judged to avoid omissions.

[0044] Furthermore, in step S2, all axes are identified by using all axis symbols and all axis symbol guide lines as follows:

[0045] S25, determining whether the axis symbol corresponding to the axis symbol guide line has other axis symbols with the same number in the extension direction of the axis symbol guide line; if so, determining whether the line segment between the two axis symbols with the same number is collinear with any of the axis symbol guide lines; if so, marking the line segment between the two axis symbols with the same number as an axis line, wherein the number is an English character or Arabic character within the circle of the axis symbol; if not, executing step S26;

[0046] S26. Each axis symbol guide line is extended from one end away from the corresponding axis symbol by any value less than or equal to 3000 mm to obtain an axis screening line segment, and a line segment collinear with the axis screening line segment is marked as an axis to be confirmed;

[0047] S27: If the axis to be confirmed is in the same layer as any axis and is at least parallel to any line segment in the same layer, mark the axis to be confirmed as the axis.

[0048] Among them, the instructions for judging whether the axis symbol corresponding to the axis symbol guide line has other axis symbols with the same number in the extension direction of the axis symbol guide line are as follows: there may be two axis symbols with the same number in a drawing. If there are two, they are located at different ends of the axis, that is, the upper and lower sides or the left and right sides. Therefore, the axis is most likely between the two axis symbols with the same number, and then it can be determined by being collinear with the axis symbol guide line.

[0049] From the above description, it can be seen that in the judgment process, the line segment between two axis symbols with the same number is first judged to determine the layer of the axis line, and other line segments are further confirmed by the layer, which can effectively improve the recognition speed.

[0050] Furthermore, the step S2 further includes the following steps:

[0051] S3. Identify all drawings on the same floor in the two-dimensional drawings, and superimpose all axes in all drawings on the same floor in blank spaces to generate a floor axis grid;

[0052] S4. Identify all drawings in the two-dimensional drawing that are in the same building but on different floors, and superimpose all floor grids in all drawings in the same building but on different floors in a blank space to generate a building grid.

[0053] From the above description, it can be seen that the axis grids within the floors and the floor axis grids are superimposed to obtain the axis grid information of the entire building, which is convenient for subsequent re-molding.

[0054] Furthermore, in step S3, all axes in all figures on the same floor are placed in blank spaces for superposition, specifically:

[0055] S31. Place all the axes in the first figure in the blank space to form the target floor axis grid;

[0056] S32: The image to be superimposed on the same floor as the first image is sequentially processed as follows: extracting the floor axis symbols of the image to be superimposed and the first image to obtain the floor axes corresponding to the floor axis symbols; extracting a horizontal floor axis and a vertical floor axis from the floor axes; using the intersection of the horizontal floor axis and the vertical floor axis as the superimposition point; and offsetting all axes of the image to be superimposed to the floor target axis network according to the superimposition point.

[0057] S33. After all the drawings to be superimposed in step S32 are offset to the target floor axis grid, a same-floor axis grid is formed, and axis duplication is performed on the same-floor axis grid to obtain a floor axis grid.

[0058] Among them, any picture on the same floor is used as the first picture, and the pictures other than the first picture are the pictures to be superimposed, which can be superimposed on the first picture in sequence through the superposition points.

[0059] From the above description, it can be seen that by determining an overlay point, the common position information of the two drawings is obtained. Other components on the two drawings can be offset by their relative positions with the overlay point, thereby completing the axis grid overlay of the two drawings. By using the overlay point method, only one point needs to be taken to complete the offset of the entire drawing, which not only has high overlay efficiency but also ensures offset accuracy.

[0060] Furthermore, in step S4, all floor grids in all drawings on different floors of the same building are placed in blank spaces for superposition as follows:

[0061] S41. Place the first floor grid in the blank space to form the target grid of the building.

[0062] S42: For the grids to be superimposed that are in the same building but on different floors as the first floor grid, the following steps are performed in sequence: extracting the building common axis symbols of the grid to be superimposed and the first floor grid to obtain common building axes corresponding to the common building axis symbols; extracting a building transverse axis and a building longitudinal axis from the common building axes; using the intersection of the building transverse axis and the building longitudinal axis as a superposition point; and offsetting all axes on the grid to be superimposed to the target building grid according to the superposition point.

[0063] S43. After all the target building grids in step S32 are offset to the target building grid, a building grid is formed, and the corresponding relationship between the grids of each floor is recorded.

[0064] From the above description, we can see that by using the superimposed point method, only one point needs to be taken to complete the offset of the entire drawing, which not only has high superposition efficiency but also ensures offset accuracy. At the same time, the positions of different floors are superimposed to form the axis grid of a building, and only the axis grid correspondence between each floor is recorded, which facilitates the subsequent conversion of the building components on each floor into a three-dimensional model.

[0065] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned axis grid superposition method are implemented.

[0066] From the above description, it can be seen that the beneficial effects of the present invention are: by identifying all axis symbols in the two-dimensional drawing, all axis lines are identified through the axis symbols to generate an axis network, thereby realizing the automatic generation of the axis network; since the axis symbols have obvious characteristics and high recognition compared to other lines, and the relationship between the axis symbols and the axis lines is clear and the degree of correspondence is high, thereby improving the recognition efficiency and recognition accuracy, that is, improving the efficiency and accuracy of axis network generation.

[0067] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the grid superposition method as described above.

[0068] From the above description, it can be seen that the beneficial effects of the present invention are: by identifying all axis symbols in the two-dimensional drawing, all axis lines are identified through the axis symbols to generate an axis network, thereby realizing the automatic generation of the axis network; since the axis symbols have obvious characteristics and high recognition compared to other lines, and the relationship between the axis symbols and the axis lines is clear and the degree of correspondence is high, thereby improving the recognition efficiency and recognition accuracy, that is, improving the efficiency and accuracy of axis network generation.

[0069] Please refer to Figure 1 as well as Figure 2 , embodiment 1 of the present invention is:

[0070] A grid superposition method includes the following steps:

[0071] S1, traverse the two-dimensional drawing to obtain all axis symbols 4 in the two-dimensional drawing;

[0072] S2. Identify all axis lines 5 through all axis symbols 4 and generate an axis grid.

[0073] Please refer to Figure 1 as well as Figure 2 , the second embodiment of the present invention is:

[0074] A method for superimposing an axis grid, based on the above embodiment 1, in step S1, all axis symbols 4 in the two-dimensional drawing are obtained as follows:

[0075] Identify all circles in the two-dimensional drawing and determine whether there are English characters or Arabic characters in the circle. If so, determine the circle containing the English characters or Arabic characters as axis symbol 4.

[0076] like Figure 2 As shown, the circle includes 1-1, 1-15, 1-A and 1-E respectively, among which 1 and 15 are Arabic characters, and A and E are English characters. It can be determined that the graphic elements of circle plus 1-1, circle plus 1-15, circle plus 1-A and circle plus 1-E are axis symbol 4.

[0077] Step S2 is specifically as follows:

[0078] All axis symbols 4 are used to identify all axis symbol guide lines 7 , and all axis symbols 4 and all axis symbol guide lines 7 are used to identify all axis lines 5 .

[0079] Please refer to Figure 1 as well as Figure 2 , the third embodiment of the present invention is:

[0080] A grid superposition method is provided, based on the above embodiment 1, wherein step S2 is specifically as follows:

[0081] S21. For each axis symbol 4, the axis symbol 4 is centered on itself and has a radius less than or equal to 1000 mm to obtain a guide line screening range. All line segments intersecting the guide line screening range are placed into a set of guide lines to be confirmed.

[0082] S22. Select a line segment from the set of guide lines to be confirmed as a first line segment, and determine whether the first line segment is the only line segment intersecting with the corresponding first axis symbol. If so, the first line segment is the first axis symbol guide line. Otherwise, continue to select a line segment from the set of guide lines to be confirmed and determine until the first axis symbol guide line is obtained.

[0083] S23. From the set of guide lines to be confirmed, mark all line segments that are on the same layer as the first axis symbol guide line and are parallel to at least one line segment on the same layer as axis symbol guide line 7;

[0084] S24. For other line segments in the guide line set to be confirmed that are not in the same layer as the first axis symbol guide line or are not parallel to all line segments in the guide line set to be confirmed, steps S22 and S23 are executed in sequence until all line segments in the guide line set to be confirmed are judged and the axis symbol guide line set is obtained.

[0085] S25, determining whether the axis symbol 4 corresponding to the axis symbol guide line 7 has another axis symbol 4 with the same number in the extension direction of the axis symbol guide line 7; if so, determining whether the line segment between the two axis symbols 4 with the same number is collinear with any axis symbol guide line 7; if so, marking the line segment between the two axis symbols 4 with the same number as axis 5, and numbering the line segment as an English character or an Arabic character within the circle of the axis symbol 4; if not, executing step S26;

[0086] S26, each axis symbol guide line 7 is extended from the end away from the corresponding axis symbol 4 by any value less than or equal to 3000 mm to obtain an axis screening line segment, and the line segment collinear with the axis screening line segment is marked as the axis to be confirmed;

[0087] S27: If the axis to be confirmed is in the same layer as any axis and is parallel to at least any line segment in the same layer, the axis to be confirmed is marked as axis 5.

[0088] It should be noted that in actual architectural drawings, different line segments can be distinguished by features such as layers and colors. In this embodiment, for the sake of convenience, Figure 2 The axis symbol guide line 7 in is set to a dotted line; in addition, two line segments are collinear, which means that the two line segments are located on the same straight line.

[0089] Wherein, after step S2, the method further includes the following steps:

[0090] S3. Identify all the drawings on the same floor in the two-dimensional drawings, and superimpose all the axis lines 5 in all the drawings on the same floor in the blank space to generate the floor axis grid, such as Figure 2 The two pictures shown are both from the fifth to the thirteenth floor, so they can be superimposed;

[0091] S4. Identify all drawings in the two-dimensional drawing that are in the same building but on different floors, and superimpose all floor grids in all drawings in the same building but on different floors in the blank space to generate a building grid.

[0092] In step S3, all axes in all figures on the same floor are placed in blank spaces for superposition. Specifically, the following steps are performed:

[0093] S31. Place all axis lines 5 in the first figure into blank spaces to form the target floor axis grid.

[0094] S32. The following steps are performed in sequence for the image to be superimposed on the same floor as the first image: extract the floor axis symbols common to the image to be superimposed and the first image to obtain the floor axes corresponding to the floor axis symbols; extract a horizontal floor axis and a vertical floor axis from the floor axes; use the intersection of the horizontal floor axis and the vertical floor axis as the superimposition point 8; and offset all axes 5 of the image to be superimposed to the floor target axis network based on the superimposition point 8.

[0095] S33. After all the drawings to be superimposed in step S32 are offset to the target floor axis grid, a same-floor axis grid is formed, and the axis lines of the same-floor axis grid are deduplicated to obtain the floor axis grid.

[0096] like Figure 2 As shown, the fifth-thirteenth floor column flat method construction drawing is taken as the first drawing, and the fifth-thirteenth floor beam flat method construction drawing is taken as the drawing to be superimposed; wherein, the fifth-thirteenth floor column flat method construction drawing and the fifth-thirteenth floor beam flat method construction drawing both have axis symbols 4 numbered 1-1, 1-15, 1-A and 1-E. In this embodiment, the axis symbol 4 numbered 1-1 and the axis symbol 4 numbered 1-E are taken, that is, the axis symbol 4 numbered 1-1 and the axis symbol 4 numbered 1-E are both the same axis symbols of each floor, and the axes 5 corresponding thereto are the same axes of each floor, as shown in FIG. Figure 2 The same axes of the floors shown intersect at the superposition point 8. Therefore, according to the superposition point 8, the axis network superposition can be completed by offsetting the fifth to thirteenth floor beam flat construction drawings to the fifth to thirteenth floor column flat construction drawings.

[0097] In step S4, all floor grids in all drawings on different floors of the same building are placed in blank spaces for superposition as follows:

[0098] S41. Place the first floor grid in the blank space to form the target grid of the building.

[0099] S42. For the grids to be superimposed that are in the same building as the first floor grid but on different floors, the following steps are performed in sequence: the building axis symbols common to the grid to be superimposed and the first floor grid are extracted to obtain the building axes corresponding to the building axis symbols; a horizontal axis and a vertical axis are respectively extracted from the building axes; the intersection of the horizontal axis and the vertical axis is used as the superposition point 8; and all axes 5 on the grid to be superimposed are offset to the target building grid according to the superposition point 8;

[0100] S43. After all building target grids in step S42 are offset to the building target grid, a building grid is formed, and the corresponding relationship between the grids of each floor is recorded.

[0101] Please refer to Figure 3 , the fourth embodiment of the present invention is:

[0102] An electronic device 1 includes a memory 3, a processor 2, and a computer program stored in the memory 3 and executable on the processor 2. When the processor 2 executes the computer program, the steps of an axis grid superposition method as described in any one of embodiments one to three are implemented.

[0103] The fifth embodiment of the present invention is:

[0104] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a grid superposition method as described in any one of embodiments one to three.

[0105] In summary, the present invention provides an axis grid superposition method, electronic device and storage medium, which recognizes all axis symbols in a two-dimensional drawing, first determines the axis symbol guide line through the axis symbol, and then determines the axis line according to the axis symbol guide line to generate an axis grid, thereby realizing the automatic generation of the axis grid; since the axis symbol has obvious characteristics and high recognition compared with other lines, and the relationship between the axis symbol and the axis symbol guide line, and the relationship between the axis symbol and the axis symbol guide line and the axis line is clear and the degree of correspondence is high, the correspondence between the axis line and the axis symbol can be obtained, thereby improving the recognition efficiency and recognition accuracy; in the axis judgment process, the line segment between two axis symbols with the same number is first judged to determine the layer of the axis line, and the other line segments are further confirmed by the layer, which can effectively improve the recognition speed, that is, improve the efficiency and accuracy of the axis grid generation; the offset of the entire drawing is completed by superimposing points, which not only has high superposition efficiency but also ensures offset accuracy; the superimposed floor axis grid and building axis grid can be used for subsequent mold remaking; that is, the present invention provides a technical solution with higher efficiency, more accurate axis grid generation and convenience for subsequent mold remaking.

[0106] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's description and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A grid superposition method, characterized in that: Including steps: S1. Traverse the two-dimensional drawing to obtain all axis symbols in the two-dimensional drawing; S2. Identify all axis lines through all axis symbols and generate axis grid; S3. Identify all the drawings on the same floor in the two-dimensional drawing, and superimpose all the axes of all the drawings on the same floor in the blank space to generate a floor axis grid: S31. Place all the axes in the first figure in the blank space to form the target floor axis grid; S32: The image to be superimposed on the same floor as the first image is sequentially processed as follows: extracting the floor axis symbols of the image to be superimposed and the first image to obtain the floor axes corresponding to the floor axis symbols; extracting a horizontal floor axis and a vertical floor axis from the floor axes; using the intersection of the horizontal floor axis and the vertical floor axis as the superimposition point; and offsetting all axes of the image to be superimposed to the floor target axis network according to the superimposition point. S33, after all the to-be-overlaid images in step S32 are offset to the target floor axis grid, a same-floor axis grid is formed, and axis duplication is performed on the same-floor axis grid to obtain a floor axis grid; S4. Identify all drawings in the two-dimensional drawing that are in the same building but on different floors, and superimpose all floor grids in all drawings in the same building but on different floors in the blank space: S41. Place the first floor grid in the blank space to form the target grid of the building. S42: For the grids to be superimposed that are in the same building but on different floors as the first floor grid, the following steps are performed in sequence: extracting the building common axis symbols of the grid to be superimposed and the first floor grid to obtain common building axes corresponding to the common building axis symbols; extracting a building transverse axis and a building longitudinal axis from the common building axes; using the intersection of the building transverse axis and the building longitudinal axis as a superposition point; and offsetting all axes on the grid to be superimposed to the target building grid according to the superposition point. S43. After all the target axis grids of the buildings in step S42 are offset to the target axis grid of the building, a building axis grid is formed, and the axis grid correspondence between each floor is recorded.

2. The axis grid superposition method according to claim 1, characterized in that: All axis symbols obtained in the two-dimensional drawing in step S1 are specifically: Identify all circles in a two-dimensional drawing and determine whether there are English characters or Arabic characters in the circles. If so, determine the circles containing English characters or Arabic characters as axis symbols.

3. The grid superposition method according to claim 1, characterized in that: The step S2 specifically includes: identifying all axis symbol guide lines through all axis symbols, and identifying all axis lines through all axis symbols and all axis symbol guide lines.

4. The grid superposition method according to claim 3, characterized in that: In step S2, all axis symbol guide lines are identified through all axis symbols as follows: S21. For each axis symbol, with itself as the center and any value less than or equal to 1000 mm as the radius, a guide line screening range is obtained, and all line segments intersecting with the guide line screening range are placed into a set of guide lines to be confirmed; S22, selecting a line segment from the set of guide lines to be confirmed as a first line segment, and determining whether the first line segment is the only line segment intersecting with the corresponding first axis symbol; if so, the first line segment is the first axis symbol guide line; otherwise, continuing to select a line segment from the set of guide lines to be confirmed for determination until the first axis symbol guide line is obtained; S23. From the set of guide lines to be confirmed, mark all line segments that are in the same layer as the first axis symbol guide line and are parallel to at least any line segment in the same layer as axis symbol guide lines; S24. Execute steps S22 and S23 in sequence for other line segments in the guide line set to be confirmed that are not in the same layer as the first axis symbol guide line or are not parallel to all line segments in the guide line set to be confirmed, until all line segments of the guide line set to be confirmed are judged to obtain the axis symbol guide line set.

5. The grid superposition method according to claim 1, characterized in that: In step S2, all axes are identified by using all axis symbols and all axis symbol guide lines. Specifically, S25, determining whether the axis symbol corresponding to the axis symbol guide line has other axis symbols with the same number in the extension direction of the axis symbol guide line; if so, determining whether the line segment between the two axis symbols with the same number is collinear with any of the axis symbol guide lines; if so, marking the line segment between the two axis symbols with the same number as an axis line, wherein the number is an English character or Arabic character within the circle of the axis symbol; if not, executing step S26; S26. Each axis symbol guide line is extended from one end away from the corresponding axis symbol by any value less than or equal to 3000 mm to obtain an axis screening line segment, and a line segment collinear with the axis screening line segment is marked as an axis to be confirmed; S27: If the axis to be confirmed is in the same layer as any axis and is at least parallel to any line segment in the same layer, mark the axis to be confirmed as the axis.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the grid superposition method as described in any one of claims 1 to 5 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the grid superposition method described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Vector building drawing based method for reconstructing three-dimensional model

    CN101673410A

  • Pattern recognition method for electronic building construction drawings

    CN107045526A