Structural column label generation method and related device thereof

By identifying and generating annotation lines for special-shaped columns, the problem of low annotation efficiency in the existing technology is solved, automatic adjustment and neat arrangement of structural column annotations are achieved, and the annotation quality and efficiency are improved.

CN120635256AActive Publication Date: 2025-09-12HEFEI LIANGZHEN CONSTR TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511106062.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-08
Publication Date
2025-09-12
Estimated Expiration
2045-08-08

AI Technical Summary

Technical Problem

In building structure design, the marking efficiency of structural columns in the existing technology is low and cannot be automatically adjusted, especially for structural columns of different shapes such as L-shaped and T-shaped, which leads to unreasonable marking positions and increases the workload.

Method used

By identifying the reference lines and the structural columns to be annotated in the target drawing, the minimum circumscribed rectangle of the special-shaped column is obtained, the target shape of the structural column is determined based on the number and positional relationship of the edges, and the annotation line is determined according to the preset annotation line generation rules, so that the annotation line and the reference line are not collinear, and an annotation that conforms to the shape is generated.

Benefits of technology

It improves the efficiency and quality of annotation, reduces the workload of designers, and realizes automatic adjustment and neat arrangement of annotations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120635256A_ABST
    Figure CN120635256A_ABST
Patent Text Reader

Abstract

The invention relates to a method for generating a structural column label and a related device thereof. The method comprises the following steps: identifying a reference line in a target drawing and a to-be-labeled structural column; when the structural column is a special-shaped column, the minimum enclosing rectangle of the structural column is obtained; determining a target shape of the structural column based on the number of the side lines of the structural column and a target position relationship between the side lines of the structural column and the side lines of the minimum enclosing rectangle; determining a marking line of the structural column based on the target shape of the structural column and a preset marking line determination rule; wherein the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column; and when the marking line is parallel to the reference line, generating a mark of the structural column. According to the scheme provided by the invention, the corresponding labeling line can be obtained according to the shape of the structural column, and different labels are generated, so that the labeling efficiency and the labeling quality are improved, and the workload of designers is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of architectural design, and in particular to a method for generating structural column annotations and a related device thereof. Background Art

[0002] In building structure design, after designing various building components in the drawings, a large number of components need to be marked, such as walls, structural columns and other components.

[0003] In the related art, the marking of structural columns in architectural drawings generally needs to be done manually, which is inefficient. When the position or size of the structural columns changes, the corresponding marking cannot be automatically adjusted. In particular, for structural columns of different shapes, such as L-shaped columns and T-shaped columns, it is impossible to make corresponding markings according to the different shapes of structural columns, resulting in unreasonable marking positions and greatly increasing the workload of marking. Summary of the Invention

[0004] In order to solve or partially solve the problems existing in the related art, the present application provides a method for generating structural column annotations and a related device, which can obtain corresponding annotation lines according to the shape of the structural column and generate different annotations, thereby improving the annotation efficiency and annotation quality and reducing the workload of designers.

[0005] According to a first aspect of the present application, a method for generating structural column annotations is provided, comprising: identifying a reference line and a structural column to be annotated in a target drawing; when the structural column is a special-shaped column, obtaining a minimum circumscribed rectangle of the structural column; determining a target shape of the structural column based on the number of side lines of the structural column, a target positional relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; the target positional relationship includes a collinearity relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; determining an annotation line of the structural column based on the target shape of the structural column and a preset annotation line determination rule; wherein the annotation line of the structural column is not collinear with the reference line, and the preset annotation line determination rule is associated with the target shape of the structural column; and generating an annotation for the structural column when the annotation line and the reference line are parallel to each other.

[0006] In combination with the first aspect, in a possible implementation of the first aspect, the target shape of the structural column is determined based on the target position relationship between the number of side lines of the structural column, the side lines of the structural column and the side lines of the minimum circumscribed rectangle, including: determining the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle as the first side line; if the number of side lines of the structural column is 6, the adjacent side lines in the structural column are perpendicular to each other, and the first side lines include four mutually connected first side lines, then the structural column is an L-shaped column; if the number of side lines of the structural column is 8, the adjacent side lines in the structural column are perpendicular to each other, and the first side lines include three mutually connected first side lines and one non-interconnected first side line, then the structural column is a T-shaped column; if If the number of side lines of the structural column is 8, the adjacent side lines in the structural column are perpendicular to each other, the first side lines include two groups of two first side lines connected to each other and the first side lines in different groups are not connected to each other, then the structural column is a Z-shaped column; if the number of side lines of the structural column is 10, the adjacent side lines in the structural column are perpendicular to each other, the first side lines include two first side lines connected to each other and two first side lines not connected to each other, then the structural column is a seven-shaped column; wherein the two first side lines connected to each other do not contact the two first side lines not connected to each other; if the number of side lines of the structural column is 12, the adjacent side lines in the structural column are perpendicular to each other, and the first side lines include four first side lines that are not connected to each other, then the structural column is a cross column.

[0007] In combination with the first aspect, in a possible implementation of the first aspect, the determining the annotation line of the structural column based on the target shape of the structural column and a preset annotation line determination rule includes: when the structural column is an L-shaped column, taking the side line of the structural column that is collinear with and partially overlaps with the side line of the minimum circumscribed rectangle as the second side line; drawing a perpendicular bisector to the second side line and extending it to the side line parallel to the second side line to obtain the center line corresponding to the second side line; if there is a target reference line that is collinear with the center line and intersects with the second side line, taking the side line of the structural column that is parallel to the target reference line and not collinear with the side line of the minimum circumscribed rectangle as the third side line, and determining the side lines of the structural column except the third side line as the annotation lines of the structural column; if the target reference line does not exist, determining all the side lines in the structural column as the annotation lines of the structural column.

[0008] In combination with the first aspect, in a possible implementation of the first aspect, the determining the annotation line of the structural column based on the target shape of the structural column and the preset annotation line generation rule includes: when the structural column is a Z-shaped column, taking the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle as the first side line, and taking the side line of the structural column that is not collinear with the side line of the minimum circumscribed rectangle as the first sub-side line, the second sub-side line, the third sub-side line and the fourth sub-side line, wherein the first sub-side line is parallel to the fourth sub-side line, and the second sub-side line is parallel to the third sub-side line; taking the first side line of the structural column that is parallel to the first sub-side line and closest to the first sub-side line as the fifth sub-side line, the second sub-side line that is parallel to the fourth sub-side line and closest to the fourth sub-side line The first edge closest to the sub-edge is used as the sixth sub-edge; the first area corresponding to the first sub-edge and the fifth sub-edge, the second area corresponding to the second sub-edge and the third sub-edge, and the third area corresponding to the fourth sub-edge and the sixth sub-edge are obtained respectively, and the center lines of the first area, the second area, and the third area are obtained respectively; if there is a target reference line that is collinear with the center line and intersects with the first edge, the edges in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; the edges in the structural column except the third edge are determined as the annotation lines of the structural column; if the target reference line does not exist, all edges in the structural column are determined as the annotation lines of the structural column.

[0009] In combination with the first aspect, in a possible implementation of the first aspect, the determining the annotation line of the structural column based on the target shape of the structural column and the preset annotation line generation rule includes: when the structural column is a T-shaped column, taking the side line of the structural column that is collinear with and partially overlaps with the side line of the minimum circumscribed rectangle as the second side line; drawing a perpendicular midline for a first sub-side line that is not connected to other second side lines in the second side line and extending it to a second side line parallel to the first sub-side line to obtain a center line corresponding to the first sub-side line; and respectively drawing a perpendicular midline for the first sub-side line that is connected to the first sub-side line in the second side line. A perpendicular bisector is drawn between the non-parallel second and third sub-sides and the perpendicular bisectors are extended to the center line to obtain a center line corresponding to the second sub-side and a center line corresponding to the third sub-side. If there is a target reference line that is collinear with the center line and intersects with the second side, the side lines of the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third side lines. The side lines of the structural column except the third side line are determined as the annotation lines of the structural column. If there is no target reference line, all side lines of the structural column are determined as the annotation lines of the structural column.

[0010] In combination with the first aspect, in a possible implementation of the first aspect, the labeling line of the structural column is determined based on the target shape of the structural column and the preset labeling line generation rule, including: when the structural column is a seven-shaped column, the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle is used as the first side line; a first sub-side line and a second sub-side line that are not connected to other first sides in the first side line are respectively perpendicular to the median, and are respectively extended to the side line parallel to the first sub-side line and the side line parallel to the second sub-side line to obtain the center line corresponding to the first sub-side line and the center line corresponding to the second sub-side line; a perpendicular to the median of two first sides connected to each other in the first side line are respectively extended to the side lines parallel to the two first sides to obtain one of the center lines corresponding to the first sub-side line or the center line corresponding to the second sub-side line that intersects with both the first sub-side line and the second sub-side line. non-intersecting target center lines, and delete the other center line; if there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a target reference line that is collinear with the target center line and intersects with the first edge line, then the edges in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; if there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a target reference line that is parallel to and not collinear with the target center line, and intersects with the first edge line, then the edges in the structural column that are parallel to the target reference line and not collinear with the edges of the minimum circumscribed rectangle are used as the third edges; the edges in the structural column except the third edges are determined as the annotation lines of the structural column; if the target reference line does not exist, all edges in the structural column are determined as the annotation lines of the structural column.

[0011] In combination with the first aspect, in a possible implementation of the first aspect, the labeling line of the structural column is determined based on the target shape of the structural column and the preset labeling line generation rule, including: when the structural column is a cross column, the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle is used as the first side line; a perpendicular bisector is drawn for the first sub-side lines of the first side line that are equal in length and parallel to each other to obtain the center line corresponding to the first sub-side line; a perpendicular bisector is drawn for the second sub-side line and the third sub-side line that are unequal in length and parallel to each other in the first side line, and the perpendicular bisectors are respectively extended to the center line corresponding to the first sub-side line to obtain the center line corresponding to the second sub-side line and the center line corresponding to the third sub-side line; if there is a center line corresponding to the first sub-side line and / or a center line corresponding to the second sub-side line, If the center line of the structural column is parallel to the target reference line and located on both sides of the target reference line, and / or the center line corresponding to the third sub-sideline is collinear and intersects with the first sideline, then the sidelines in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third sidelines; if there is a center line corresponding to the first sub-sideline, and / or the center line corresponding to the second sub-sideline, and / or the center line corresponding to the third sub-sideline that are parallel to and not collinear, and a target reference line intersects with the first sideline, then the sidelines in the structural column that are parallel to the target reference line and whose distance from the target reference line is less than a preset threshold are used as the third sidelines; the sidelines in the structural column except the third sideline are determined as the annotation lines of the structural column; if the target reference line does not exist, all sidelines in the structural column are determined as the annotation lines of the structural column.

[0012] In combination with the first aspect, in a possible implementation of the first aspect, when the annotation line and the reference line are parallel to each other, the annotation of the structural column is generated, including: taking the mutually parallel annotation line and the reference line as a target annotation group; if the outermost side line in the target annotation group is the target annotation line, obtaining the target point of the target annotation line; making a perpendicular line to the reference line according to the target point, and generating the annotation of the structural column; if the outermost side line in the target annotation group is the target reference line, obtaining the target annotation line closest to the target reference line; making a perpendicular line to the target annotation line to obtain the target point on the target reference line; making a perpendicular line to the annotation line according to the target point, and generating the annotation of the structural column.

[0013] According to a second aspect of the present application, there is provided a device for generating structural column annotations, comprising: an identification module for identifying reference lines and structural columns to be annotated in a target drawing; an acquisition module for acquiring a minimum circumscribed rectangle of the structural column when the structural column is a special-shaped column; a shape determination module for determining a target shape of the structural column based on the number of side lines of the structural column, the target positional relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; an annotation line determination module for determining the annotation of the structural column based on the target shape of the structural column and a preset annotation line determination rule; wherein the annotation line of the structural column is not collinear with the reference line, and the preset annotation line determination rule is associated with the target shape of the structural column; and a generation module for generating the annotation of the structural column based on a second positional relationship between the annotation line and the reference line.

[0014] A third aspect of the present application provides an electronic device, including: processor; and The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method described above.

[0015] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method described above.

[0016] The technical solution provided by this application may have the following beneficial effects: The present application provides a method for generating structural column annotations and a related device thereof, comprising: identifying a reference line and a structural column to be annotated in a target drawing; when the structural column is a special-shaped column, obtaining a minimum circumscribed rectangle of the structural column; determining a target shape of the structural column based on the number of side lines of the structural column, a target position relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; the target position relationship including a collinear relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; determining an annotation line of the structural column based on the target shape of the structural column and a preset annotation line determination rule; wherein the annotation line of the structural column is not collinear with the reference line, and the preset annotation line determination rule is associated with the target shape of the structural column; generating an annotation of the structural column when the annotation line and the reference line are parallel to each other, and a corresponding annotation line can be obtained according to the shape of the structural column, and different annotations can be generated, thereby improving annotation efficiency and annotation quality and reducing the workload of designers.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0019] Figure 1 1 is a flow chart of a method for generating structural column annotations shown in an embodiment of the present application; Figure 2 Schematic diagram of the structure of a device for generating structural column annotations shown in an embodiment of the present application; Figure 3 is a schematic structural diagram of an electronic device shown in an embodiment of the present application; Figure 4 is a labeled schematic diagram of an embodiment of the present application in which the structural column is an L-shaped column; Figure 5 is a labeled schematic diagram when the structural column shown in the embodiment of the present application is a Z-shaped column; Figure 6 is another labeled schematic diagram when the structural column shown in the embodiment of the present application is a Z-shaped column; Figure 7 is another labeled schematic diagram when the structural column shown in the embodiment of the present application is a Z-shaped column; Figure 8 is a labeled schematic diagram of a case where the structural column shown in the embodiment of the present application is a T-shaped column; Figure 9 is another labeled schematic diagram when the structural column shown in the embodiment of the present application is a T-shaped column; Figure 10 is another labeled schematic diagram when the structural column shown in the embodiment of the present application is a T-shaped column; Figure 11 This is a schematic diagram of a structure column in a seven-shaped column shown in an embodiment of the present application; Figure 12 is another labeled schematic diagram when the structural column shown in the embodiment of the present application is a seven-shaped column; Figure 13 is a labeled schematic diagram of an embodiment of the present application in which the structural column is a cross-shaped column; Figure 14 is another labeled schematic diagram when the structural column shown in the embodiment of the present application is a cross-shaped column; Figure 15 is another labeled schematic diagram when the structural column shown in the embodiment of the present application is a cross-shaped column; Figure 16 This is a schematic diagram of the annotation generation of the structural column shown in the embodiment of the present application. DETAILED DESCRIPTION

[0020] The following describes embodiments of the present application in more detail with reference to the accompanying drawings. Although the accompanying drawings illustrate embodiments of the present application, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. Rather, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0021] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms "a," "an," and "the" used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0022] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0023] The annotation of structural columns is crucial in building design. Traditional 2D CAD environments present three major issues with annotation generation: First, the annotation generation process is cumbersome and inefficient, requiring extensive manual work. Second, there's a lack of linkage between annotations and components, preventing automatic adjustment when component positions or dimensions change. Third, annotation placement is chaotic, making it difficult to achieve neat alignment. This is particularly true for components with specific shapes, such as special-shaped columns, as traditional methods are unable to identify their shape type, resulting in illogical annotation placement and significantly increasing the annotation workload.

[0024] In response to the above problems, an embodiment of the present application provides a method for generating structural column annotations and a related device, which can obtain corresponding annotation lines according to the shape of the structural column and generate different annotations, thereby improving the annotation efficiency and quality and reducing the workload of designers.

[0025] The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0026] Figure 1 It is a flowchart of a method for generating structural column annotations shown in an embodiment of the present application.

[0027] See also Figure 1, a method for generating structural column annotations, comprising: S110: Identify the reference lines and the structural columns to be annotated in the target drawing.

[0028] Specifically, there may be multiple reference lines and multiple structural columns to be labeled in the target drawing, and each structural column to be labeled is separated by a certain distance. The reference line is the axis or auxiliary line used to locate the position of the structural column in the target drawing and can be directly identified in the target drawing. During the drawing design process, the reference line can be pre-set, and the reference line can have different associations with the structural column to be labeled, for example, the reference line intersects or coincides with the edge line of the structural column to be labeled.

[0029] Specifically, a structural column refers to a vertical load-bearing component that needs to be marked in an architectural drawing. The structural column to be marked can be represented as a line in the target drawing. Different structural columns can have different shapes. For example, the shape of a structural column can be a special-shaped column, a rectangular column, or a circular column. Structural columns of different shapes generate corresponding annotations differently.

[0030] S120: When the structural column is a special-shaped column, obtain the minimum circumscribed rectangle of the structural column.

[0031] Specifically, the minimum bounding rectangle refers to the minimum rectangle that surrounds the outline of the special-shaped column. For example, the minimum bounding rectangle can be generated based on the extreme points of the special-shaped column boundary. The minimum bounding rectangle can be used to determine the shape and edge relationship of the structural column.

[0032] S130: Determine a target shape of the structural column based on the number of edges of the structural column and a target positional relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle; the target positional relationship includes a collinear relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle.

[0033] Specifically, structural columns of different shapes have different numbers of edges. The target position relationship is the positional relationship between the structural column edges and the circumscribed quadrilateral edges, such as collinearity, connection, or parallelism. The number of structural column edges and the target position relationship can be used to distinguish structural columns of different shapes. For example, L-shaped, T-shaped, Z-shaped and other special-shaped column types can be distinguished.

[0034] In a possible implementation, a side line in the structural column that is collinear with a side line of the minimum circumscribed rectangle is determined as a first side line; if the number of side lines of the structural column is 6, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include four mutually connected first side lines, then the structural column is an L-shaped column; if the number of side lines of the structural column is 8, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include three mutually connected first side lines and one non-interconnected first side line, then the structural column is a T-shaped column; if the number of side lines of the structural column is 8, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include two mutually connected first side lines, then the structural column is a T-shaped column. If two first sides of a structural column are connected to each other and the first sides of different groups are not connected to each other, the structural column is a Z-shaped column; if the number of sides of the structural column is 10, the adjacent sides of the structural column are perpendicular to each other, and the first sides include two connected first sides and two non-connected first sides, the structural column is a seven-shaped column; wherein the two connected first sides do not touch the two non-connected first sides; if the number of sides of the structural column is 12, the adjacent sides of the structural column are perpendicular to each other, and the first sides include four first sides that are not connected to each other, the structural column is a cross column.

[0035] Specifically, the approximate shape of the structural column is pre-determined by the number of side lines of the structural column. For example, when the number of side lines is 6, the shape of the structural column may be an L-shaped column. When the number of side lines is 8, the shape of the structural column may be a T-shaped column or a Z-shaped column. Then, the shape of the structural column is determined based on the relationship between the first side lines of the structural column. By determining the shape of the structural column, the marking line can be determined for structural columns of different shapes.

[0036] S140: Determine the annotation line of the structural column based on the target shape of the structural column and a preset annotation line determination rule; wherein the annotation line of the structural column is not collinear with the reference line, and the preset annotation line determination rule is associated with the target shape of the structural column.

[0037] Specifically, the annotation line determination rule selects the edge lines to be annotated based on the shape of the special-shaped column. Different special-shaped columns can have different annotation lines determined according to different annotation line determination rules. In particular, during the annotation line determination process, if a column edge line is collinear with the reference line, that edge line can be directly omitted as an annotation line.

[0038] See also Figure 4In a possible implementation, when the structural column is an L-shaped column, a side line of the structural column that is collinear with and partially overlaps with a side line of the minimum circumscribed rectangle is used as a second side line; a perpendicular midline is drawn on the second side line and extended to a side line parallel to the second side line to obtain a center line corresponding to the second side line; if there is a target reference line that is collinear with the center line and intersects with the second side line, a side line of the structural column that is parallel to the target reference line and not collinear with a side line of the minimum circumscribed rectangle is used as a third side line, and sides of the structural column except the third side line are determined as annotation lines of the structural column; if there is no target reference line, all sides of the structural column are determined as annotation lines of the structural column.

[0039] Specifically, when the structural column is an L-shaped column, two outer edge lines that partially overlap with its edge lines can be obtained as the second edge lines, and the second edge lines can be used as the column limbs of the structural column. A perpendicular midline is drawn for each second edge line and extended to the other side edge line parallel to it to form two vertically intersecting center lines. If there is a reference line that is collinear with any center line and passes through the column limb, the edge line in the structural column that is parallel to the reference line and not collinear with the edge line of the minimum circumscribed rectangle is used as the third edge line, and the third edge line is removed from the annotation line set. For example, when the horizontal reference line is collinear with the center line corresponding to the vertical column limb, the horizontal turning edge line inside the L-shaped column is deleted, and the outer edge line is retained as the annotation line. If no qualified reference line is detected, all edge lines are retained as annotation lines, and the corresponding annotation lines can be obtained for the L-shaped column, which can make the subsequently generated annotations more beautiful and concise. Figure 4 In the figure, the purple edge is the annotation line. In this case, the reference lines passing through the second edge are all target reference lines. The edge of the structural column that is parallel to the target reference line and not colinear with the edge of the minimum circumscribed rectangle is used as the third edge.

[0040] See also Figure 5-Figure 7In a possible implementation, when the structural column is a Z-shaped column, the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle is used as the first side line, and the side line of the structural column that is not collinear with the side line of the minimum circumscribed rectangle is used as the first sub-side line, the second sub-side line, the third sub-side line and the fourth sub-side line, wherein the first sub-side line is parallel to the fourth sub-side line, and the second sub-side line is parallel to the third sub-side line; the first side line of the structural column that is parallel to the first sub-side line and closest to the first sub-side line is used as the fifth sub-side line, and the first side line that is parallel to the fourth sub-side line and closest to the fourth sub-side line is used as the sixth sub-side line; Get the first area corresponding to the first and fifth sub-edges, the second area corresponding to the second and third sub-edges, and the third area corresponding to the fourth and sixth sub-edges, and get the center lines of the first, second, and third areas respectively; if there is a target reference line that is collinear with the center line and intersects with the first edge, then the edges in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as the third edges; the edges in the structural column except the third edge are determined as the annotation lines of the structural column; if there is no target reference line, then all edges in the structural column are determined as the annotation lines of the structural column. Figure 7 In the figure, the purple edge is the confirmed annotation line.

[0041] Specifically, for a Z-shaped column, four groups of parallel edges are first identified. Non-collinear edges are divided into two groups of parallel edges, each matched to the closest first edge to form a pairing relationship. For example, the first sub-edge is paired with the fifth sub-edge, and the distance between them determines the boundary of the first region. The centerlines of three independent regions are generated, corresponding to the three limbs of the Z-shaped column. The third edge is then determined based on the relationship between the centerlines and the target reference line. All edges of the column, excluding the third edge, are designated as the column's annotation lines.

[0042] See also Figures 8-10 In a possible embodiment, when the structural column is a T-shaped column, the side line of the structural column that is collinear with and partially overlaps with the side line of the minimum circumscribed rectangle is used as the second side line; a perpendicular bisector is drawn for a first sub-side line that is not connected to other second side lines in the second side line and is extended to a second side line parallel to the first sub-side line to obtain a center line corresponding to the first sub-side line; perpendicular bisectors are drawn for a second sub-side line and a third sub-side line that are not parallel to the first sub-side line in the second side line and are extended to the center line to obtain a center line corresponding to the second sub-side line and a center line corresponding to the third sub-side line; if there is a target reference line that is collinear with the center line and intersects with the second side line, the side lines in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third side lines; the side lines in the structural column except the third side line are determined as the annotation lines of the structural column; if there is no target reference line, all side lines in the structural column are determined as the annotation lines of the structural column.

[0043] Specifically, when the structural column is a T-shaped column, the side line of the structural column that is colinear with and partially overlaps with the side line of the minimum circumscribed rectangle is first taken as the second side line. For the unconnected first sub-side line, the perpendicular line extends to the parallel side line to form the main center line. For example, the perpendicular bisector of the longitudinal end line extends to the transverse side line to form the center line of the longitudinal column limb. For the second and third transverse sub-side lines, the perpendicular line extends to the main center line to form the auxiliary center line of the transverse column limb. If there is a reference line that is colinear with the main center line or the auxiliary center line, for example, the axis coincides with the center line, then the two side lines parallel to the reference line are deleted, and the remaining side lines are retained as annotation lines. If such a reference line does not exist, then all side lines are retained as annotation lines. For example, when there is no corresponding reference line for the three column limb center lines of the T-shaped column, all side lines are retained to ensure the integrity of the annotation. Figure 10 In the figure, the purple edge is the confirmed annotation line.

[0044] See also Figure 11-12 In a possible implementation, when the structural column is a seven-shaped column, the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle is used as the first side line; a perpendicular bisector is drawn for the first sub-side line and the second sub-side line that are not connected to the other first sides in the first side line, and the perpendicular bisectors are respectively extended to the side line parallel to the first sub-side line and the side line parallel to the second sub-side line, to obtain the center line corresponding to the first sub-side line and the center line corresponding to the second sub-side line; a perpendicular bisector is drawn for the two first sides connected to each other in the first side line, and the perpendicular bisectors are respectively extended to the side lines parallel to the two first sides, to obtain a target center line that intersects with one of the center line corresponding to the first sub-side line or the center line corresponding to the second sub-side line and does not intersect with either the first sub-side line or the second sub-side line, and the other center line is deleted. ; If there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a target reference line that is collinear with the target center line and intersects with the first edge line, then the edges in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; If there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a target reference line that is parallel to and not collinear with the target center line and intersects with the first edge line, then the edges in the structural column that are parallel to the target reference line and not collinear with the edges of the minimum circumscribed rectangle are used as third edges; The edges in the structural column except the third edge line are determined as the annotation lines of the structural column; If there is no target reference line, all edges in the structural column are determined as the annotation lines of the structural column.

[0045] Specifically, when the structural column is a seven-shaped column, first identify the four first side lines that are collinear with the four sides of the minimum circumscribed rectangle. For two of the unconnected first sub-side lines, generate center lines perpendicular to them and extending to the corresponding parallel side lines to form the positioning references of the two column limbs. Then make a perpendicular midline for the two interconnected first side lines, and generate a center line after extension. If the center line intersects with one of the center lines and does not pass through the two column limbs, then the center line can be determined as the target center line. Finally, based on the positional relationship between the center line and the reference line, determine the marking line of the structural column. For example, when the horizontal reference line is collinear with a certain center line, the side lines on both sides corresponding to the center line will not be used as marking lines. Figure 12 In the figure, the purple edge is the confirmed annotation line.

[0046] See also Figure 13-15 In a possible embodiment, when the structural column is a cross-shaped column, the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle is used as the first side line; a perpendicular bisector is drawn for the first sub-side lines of the first side line that are equal in length and parallel to each other to obtain the center line corresponding to the first sub-side line; a perpendicular bisector is drawn for the second sub-side lines and the third sub-side lines of the first side line that are unequal in length and parallel to each other, and the perpendicular bisectors are respectively extended to the center line corresponding to the first sub-side line to obtain the center line corresponding to the second sub-side line and the center line corresponding to the third sub-side line; if there is a center line corresponding to the first sub-side line, and / or a center line corresponding to the second sub-side line, and / or a center line corresponding to the third sub-side line that is collinear with the center line corresponding to the first sub-side line, then the center line corresponding to the second sub-side line and the center line corresponding to the third sub-side line are obtained. line and a target reference line intersecting with the first sideline, then the sidelines in the structural column that are parallel to the target reference line and located on both sides of the target reference line are taken as third sidelines; if there is a center line corresponding to the first sub-sideline, and / or a center line corresponding to the second sub-sideline, and / or a center line corresponding to the third sub-sideline that are parallel and non-collinear, and a target reference line intersecting with the first sideline, then the sidelines in the structural column that are parallel to the target reference line and whose distance from the target reference line is less than a preset threshold are taken as third sidelines; the sidelines in the structural column except the third sideline are determined as annotation lines of the structural column; if there is no target reference line, then all sidelines in the structural column are determined as annotation lines of the structural column.

[0047] Specifically, the preset threshold can be pre-set. When there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a center line corresponding to the third sub-edge line that is parallel and non-collinear, and a target reference line that intersects the first edge line, and there are edges of the structural column on both sides of the target reference line, then the edge line farther away from the target reference line can be determined as the annotation line, so the preset threshold can be set dynamically. First, the edge line in the structural column that is collinear with the edge line of the minimum circumscribed rectangle is used as the first edge line. Generally, a cross-shaped column will have a first edge line of equal length and parallel to each other. This first edge line can be used as the first sub-edge line, and the center line corresponding to the first sub-edge line is generated; then, the edges of the first edge line that are unequal in length but parallel to each other are used as the second sub-edge line and the third sub-edge line, respectively, and their corresponding center lines are obtained respectively. At this time, the number of center lines can be three. According to the positional relationship between different center lines and reference lines, the annotation line of the structural column is obtained.

[0048] Specifically, when the four side lines in the first side line are equal in length and parallel to each other, they can all be used as the first sub-side line. At this time, there is no need to obtain the second sub-side line and the third sub-side line. The center line corresponding to each side line in the first side line can be directly generated. At this time, the number of center lines is two. The annotation line of the structural column can be obtained based on the positional relationship between the center line and the side line.

[0049] S150: When the annotation line and the reference line are parallel to each other, the annotation of the structural column is generated.

[0050] See also Figure 16 Specifically, the second positional relationship refers to the parallel relationship, collinear relationship or distance relationship between the annotation line and the reference line. After determining the annotation line, the annotation of the structural column is generated according to the positional relationship between the annotation line and the relevant reference line. This can make the generated annotation concise and beautiful, avoid the problem of annotation confusion, and improve the annotation efficiency and accuracy by automatically annotating the structural columns.

[0051] In one possible implementation, mutually parallel annotation lines and reference lines are used as a target annotation group; if the outermost edge line in the target annotation group is the target annotation line, a target point of the target annotation line is obtained; a perpendicular line is drawn to the reference line based on the target point, and the annotation of the structural column is generated; if the outermost edge line in the target annotation group is the target reference line, a target annotation line closest to the target reference line is obtained; a perpendicular line is drawn to the target annotation line to obtain a target point on the target reference line; a perpendicular line is drawn to the annotation line based on the target point, and the annotation of the structural column is generated.

[0052] Specifically, the division of the target annotation group is based on the parallel relationship between the annotation line and the reference line. When the annotation line is parallel to the reference line, it can be automatically identified and classified into the same target annotation group. If the outermost edge of the target annotation group is the annotation line, the endpoint of the annotation line is extracted as the target point, and the annotation leader is generated by drawing a perpendicular line to the reference line to ensure that the annotation starting point is located at the edge of the component outline. If the outermost edge is the reference line, the annotation line closest to the reference line is obtained, and its perpendicular line is calculated and projected to the reference line to form the target point. The annotation leader is generated in reverse, and the annotation is generated through the target annotation group. When the position or size of the component changes, the annotation line can move with the edge, the target point is automatically updated, and the length of the perpendicular line is adjusted in real time. For example, when the column limbs of the L-shaped column expand outward, its annotation line moves outward synchronously. The outermost edge can be recalculated and a new perpendicular annotation can be generated to achieve the linkage update of the annotation and the component.

[0053] The present application provides a method for generating structural column annotations, comprising: identifying reference lines and structural columns to be annotated in a target drawing; when the structural column is a special-shaped column, obtaining a minimum circumscribed rectangle of the structural column; determining a target shape of the structural column based on the number of side lines of the structural column, a target position relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; the target position relationship including a collinear relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; determining an annotation line of the structural column based on the target shape of the structural column and a preset annotation line determination rule; wherein the annotation line of the structural column is not collinear with the reference line, and the preset annotation line determination rule is associated with the target shape of the structural column; generating an annotation of the structural column when the annotation line is parallel to the reference line, and being able to obtain a corresponding annotation line according to the shape of the structural column, and generating different annotations, thereby improving annotation efficiency and annotation quality and reducing the workload of designers.

[0054] Corresponding to the aforementioned embodiment of the method for realizing the application function, the present application also provides a device for generating structural column annotations, an electronic device, and corresponding embodiments.

[0055] Figure 2 It is a structural schematic diagram of a device for generating structural column annotations shown in an embodiment of the present application.

[0056] See also Figure 2 , a device 200 for generating structural column annotations, comprising: Identification module 210, for identifying reference lines and structural columns to be annotated in a target drawing; An acquisition module 220 is used to acquire the minimum circumscribed rectangle of the structural column when the structural column is a special-shaped column; a shape determination module 230 for determining a target shape of the structural column based on the number of edges of the structural column and a target positional relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle; the target positional relationship includes a collinear relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle; a marking line determination module 240 for determining a marking of the structural column based on a target shape of the structural column and a preset marking line determination rule; wherein the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column; The generating module 250 is used to generate the annotation of the structural column when the annotation line and the reference line are parallel to each other.

[0057] In a possible implementation, the shape determination module 230 is further configured to determine a side line in the structural column that is collinear with a side line of the minimum circumscribed rectangle as a first side line; if the number of side lines of the structural column is 6, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include four mutually connected first side lines, then the structural column is an L-shaped column; if the number of side lines of the structural column is 8, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include three mutually connected first side lines and one non-interconnected first side line, then the structural column is a T-shaped column; if the number of side lines of the structural column is 8, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include three mutually connected first side lines and one non-interconnected first side line, then the structural column is a T-shaped column; If one side line includes two groups of two interconnected first side lines and the first side lines in different groups are not interconnected, then the structural column is a Z-shaped column; if the number of side lines of the structural column is 10, the adjacent side lines in the structural column are perpendicular to each other, and the first side lines include two interconnected first side lines and two non-connected first side lines, then the structural column is a seven-shaped column; wherein the two interconnected first side lines do not touch the two non-connected first side lines; if the number of side lines of the structural column is 12, the adjacent side lines in the structural column are perpendicular to each other, and the first side lines include four first side lines that are not interconnected, then the structural column is a cross column.

[0058] In a possible embodiment, the marking line determination module 240 is also used to, when the structural column is an L-shaped column, use the side line of the structural column that is collinear with and partially overlaps with the side line of the minimum circumscribed rectangle as the second side line; draw a perpendicular midline for the second side line and extend it to the side line parallel to the second side line to obtain the center line corresponding to the second side line; if there is a target reference line that is collinear with the center line and intersects with the second side line, then use the side line of the structural column that is parallel to the target reference line and not collinear with the side line of the minimum circumscribed rectangle as the third side line, and determine the side lines of the structural column except the third side line as the marking lines of the structural column; if there is no target reference line, then all side lines in the structural column are determined as the marking lines of the structural column.

[0059] In a possible implementation, the annotation line determination module 240 is further configured to, when the structural column is a Z-shaped column, use the side line of the structural column that is collinear with the side line of the minimum circumscribed rectangle as the first side line, and use the side line of the structural column that is not collinear with the side line of the minimum circumscribed rectangle as the first sub-side line, the second sub-side line, the third sub-side line, and the fourth sub-side line, wherein the first sub-side line is parallel to the fourth sub-side line, and the second sub-side line is parallel to the third sub-side line; use the first side line of the structural column that is parallel to the first sub-side line and closest to the first sub-side line as the fifth sub-side line, and the first side line that is parallel to the fourth sub-side line and closest to the fourth sub-side line as the fourth sub-side line. Six sub-edges; respectively obtain a first area corresponding to the first sub-edge and the fifth sub-edge, a second area corresponding to the second sub-edge and the third sub-edge, and a third area corresponding to the fourth sub-edge and the sixth sub-edge, and respectively obtain center lines of the first area, the second area, and the third area; if there is a target reference line that is collinear with the center line and intersects with the first edge, then the edges in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; the edges in the structural column except the third edge are determined as the annotation lines of the structural column; if there is no target reference line, then all edges in the structural column are determined as the annotation lines of the structural column.

[0060] In a possible embodiment, the annotation line determination module 240 is also used to, when the structural column is a T-shaped column, use the side line of the structural column that is collinear with and partially overlaps with the side line of the minimum circumscribed rectangle as the second side line; draw a perpendicular bisector for a first sub-side line that is not connected to other second sides in the second side line and extend it to a second side line parallel to the first sub-side line to obtain a center line corresponding to the first sub-side line; draw perpendicular bisectors for a second sub-side line and a third sub-side line that are not parallel to the first sub-side line in the second side line and extend them to the center line to obtain a center line corresponding to the second sub-side line and a center line corresponding to the third sub-side line; if there is a target reference line that is collinear with the center line and intersects with the second side line, use the side lines in the structural column that are parallel to the target reference line and located on both sides of the target reference line as the third side lines; determine the side lines in the structural column except the third side line as the annotation lines of the structural column; if there is no target reference line, determine all side lines in the structural column as the annotation lines of the structural column.

[0061] In a possible embodiment, the annotation line determination module 240 is also used to, when the structural column is a seven-shaped column, use the side line in the structural column that is collinear with the side line of the minimum circumscribed rectangle as the first side line; draw perpendicular bisectors for the first sub-side line and the second sub-side line that are not connected to the other first sides in the first side line, and extend them to the side line parallel to the first sub-side line and the side line parallel to the second sub-side line, respectively, to obtain the center line corresponding to the first sub-side line and the center line corresponding to the second sub-side line; draw perpendicular bisectors for the two first sides connected to each other in the first side line, and extend them to the side lines parallel to the two first sides, respectively, to obtain the target center line that intersects with one of the center line corresponding to the first sub-side line or the center line corresponding to the second sub-side line and does not intersect with both the first sub-side line and the second sub-side line, and delete another center line; if there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a target reference line that is collinear with the target center line and intersects with the first edge line, then the edges in the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; if there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a target reference line that is parallel to and not collinear with the target center line, and intersects with the first edge line, then the edges in the structural column that are parallel to the target reference line and not collinear with the edges of the minimum circumscribed rectangle are used as third edges; the edges in the structural column except the third edge line are determined as the annotation lines of the structural column; if there is no target reference line, then all edges in the structural column are determined as the annotation lines of the structural column.

[0062] In a possible embodiment, the annotation line determination module 240 is further used to, when the structural column is a cross-shaped column, take the side line in the structural column that is collinear with the side line of the minimum circumscribed rectangle as the first side line; draw a perpendicular bisector for the first sub-side lines of equal length and parallel to each other in the first side line to obtain the center line corresponding to the first sub-side line; draw perpendicular bisectors for the second sub-side lines and the third sub-side lines of unequal length and parallel to each other in the first side line, and extend them to the center line corresponding to the first sub-side line respectively to obtain the center line corresponding to the second sub-side line and the center line corresponding to the third sub-side line; if there is a center line corresponding to the first sub-side line, and / or a center line corresponding to the second sub-side line, and / or a center line corresponding to the third sub-side line, If the center line corresponding to the first sub-edge line is collinear and intersects with the target reference line of the first edge line, the edges in the structural column that are parallel to the target reference line and located on both sides of the target reference line are taken as the third edge line; if there is a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a center line corresponding to the third sub-edge line that are parallel and not collinear, and a target reference line that intersects with the first edge line, the edges in the structural column that are parallel to the target reference line and whose distance from the target reference line is less than a preset threshold are taken as the third edge line; the edges in the structural column except the third edge line are determined as the annotation lines of the structural column; if there is no target reference line, all edges in the structural column are determined as the annotation lines of the structural column.

[0063] In a possible embodiment, the generation module 250 is also used to use the mutually parallel marking lines and reference lines as a target marking group; if the outermost edge line in the target marking group is the target marking line, the target point of the target marking line is obtained; a perpendicular line is drawn to the reference line based on the target point, and the marking of the structural column is generated; if the outermost edge line in the target marking group is the target reference line, the target marking line closest to the target reference line is obtained; a perpendicular line is drawn to the target reference line to obtain the target point on the target reference line; a perpendicular line is drawn to the marking line based on the target point, and the marking of the structural column is generated.

[0064] The present application provides a device for generating structural column annotations, comprising: an identification module for identifying reference lines and structural columns to be annotated in a target drawing; an acquisition module for acquiring a minimum circumscribed rectangle of the structural column when the structural column is a special-shaped column; a shape determination module for determining a target shape of the structural column based on the number of side lines of the structural column, a target positional relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; the target positional relationship including a collinear relationship between the side lines of the structural column and the side lines of the minimum circumscribed rectangle; a marking line determination module for determining the annotation of the structural column based on the target shape of the structural column and a preset marking line determination rule; wherein the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column; a generation module for generating the annotation of the structural column when the marking line and the reference line are parallel to each other, and the corresponding marking line can be obtained according to the shape of the structural column, and different markings can be generated, thereby improving the marking efficiency and marking quality and reducing the workload of designers.

[0065] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.

[0066] An embodiment of the present application also provides an electronic device. Figure 3 This is a schematic diagram of the hardware structure of an embodiment of an electronic device of the present application. The electronic device includes a memory 320 and at least one processor 310. The memory 320 is electrically connected to the at least one processor 310. The memory 320 stores instructions, and the at least one processor 310 invokes the instructions in the memory 320, causing the electronic device to execute the method for generating structural column annotations according to any of the aforementioned embodiments of the present application.

[0067] Specifically, the processor 310 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0068] Memory 320 may include a large-capacity memory for data or instructions. By way of example, and not limitation, memory 320 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 320 may include removable or non-removable (or fixed) media. Where appropriate, memory 320 may be internal or external to the integrated gateway disaster recovery device. In certain embodiments, memory 320 is non-volatile solid-state memory. In certain embodiments, memory 320 includes read-only memory (ROM). Where appropriate, the ROM may be mask-programmable ROM, programmable ROM (PROM), erasable programm ...

[0069] In one example, the control device may further include a communication interface 330 and a bus 340. The processor 310, the memory 320, and the communication interface 330 are connected via the bus 340 and communicate with each other.

[0070] The communication interface 330 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0071] Bus 340 includes hardware, software, or both, and couples the components of the online data traffic metering device to each other. By way of example, and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industrial Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Area Network (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 340 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.

[0072] In addition, in conjunction with the method for generating a structural column annotation in the above embodiment, the present application embodiment may provide a computer-readable storage medium for implementation. The computer-readable storage medium stores executable code that, when executed by a processor, implements any of the methods for generating a structural column annotation in the above embodiment.

[0073] The present application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications and additions, or change the order of the steps after understanding the spirit of the present application.

[0074] The functional blocks shown in the above block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, and the like. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored in a machine-readable medium or transmitted over a transmission medium or communication link via a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memory, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. Code segments can be downloaded via a computer network such as the Internet or an intranet.

[0075] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0076] The above is only a specific implementation method of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited to this. Any technician familiar with this technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the scope of protection of this application.

Claims

1. A method for generating structural column annotations, characterized in that: include: Identify the reference lines and structural columns to be annotated in the target drawing; When the structural column is a special-shaped column, obtaining the minimum circumscribed rectangle of the structural column; determining a target shape of the structural column based on the number of edges of the structural column and a target positional relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle; the target positional relationship including a collinear relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle; determining a marking line of the structural column based on the target shape of the structural column and a preset marking line determination rule; wherein the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column; When the annotation line and the reference line are parallel to each other, the annotation of the structural column is generated.

2. The method according to claim 1, characterized in that The determining of the target shape of the structural column based on the number of sides of the structural column and the target positional relationship between the sides of the structural column and the sides of the minimum circumscribed rectangle includes: Determine a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle as a first side line; If the number of side lines of the structural column is 6, adjacent side lines of the structural column are perpendicular to each other, and the first side lines include four first side lines connected to each other, then the structural column is an L-shaped column; If the number of side lines of the structural column is 8, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include three interconnected first side lines and one non-interconnected first side line, then the structural column is a T-shaped column; If the number of side lines of the structural column is 8, adjacent side lines in the structural column are perpendicular to each other, the first side lines include two groups of two first side lines connected to each other, and the first side lines in different groups are not connected to each other, then the structural column is a Z-shaped column; If the number of side lines of the structural column is 10, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include two interconnected first side lines and two non-interconnected first side lines, then the structural column is a seven-shaped column; wherein the two interconnected first side lines do not touch the two non-interconnected first side lines; If the number of side lines of the structural column is 12, adjacent side lines in the structural column are perpendicular to each other, and the first side lines include four first side lines that are not connected to each other, then the structural column is a cross-shaped column.

3. The method according to claim 1, characterized in that The determining of the marking line of the structural column based on the target shape of the structural column and a preset marking line determination rule includes: When the structural column is an L-shaped column, a side line of the structural column that is collinear with and partially overlaps with a side line of the minimum circumscribed rectangle is used as the second side line; Draw a perpendicular midline on the second sideline and extend it to a sideline parallel to the second sideline to obtain a centerline corresponding to the second sideline; If there is a target reference line that is collinear with the center line and intersects the second side line, a side line of the structural column that is parallel to the target reference line and not collinear with a side line of the minimum circumscribed rectangle is used as a third side line, and sides of the structural column other than the third side line are determined as annotation lines of the structural column; If the target reference line does not exist, all edge lines in the structural column are determined as the annotation lines of the structural column.

4. The method according to claim 1, wherein The step of determining the annotation line of the structural column based on the target shape of the structural column and a preset annotation line generation rule includes: When the structural column is a Z-shaped column, a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle is used as a first side line, and a side line of the structural column that is not collinear with a side line of the minimum circumscribed rectangle is used as a first sub-side line, a second sub-side line, a third sub-side line, and a fourth sub-side line, wherein the first sub-side line is parallel to the fourth sub-side line, and the second sub-side line is parallel to the third sub-side line; The first sideline of the structural column that is parallel to the first sub-sideline and closest to the first sub-sideline is used as the fifth sub-sideline, and the first sideline that is parallel to the fourth sub-sideline and closest to the fourth sub-sideline is used as the sixth sub-sideline; Obtaining a first area corresponding to the first sub-sideline and the fifth sub-sideline, a second area corresponding to the second sub-sideline and the third sub-sideline, and a third area corresponding to the fourth sub-sideline and the sixth sub-sideline, and obtaining center lines of the first area, the second area, and the third area respectively; If there is a target reference line that is collinear with the center line and intersects the first side line, then the side lines of the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third side lines; Determining the side lines of the structural column except the third side line as the marking lines of the structural column; If the target reference line does not exist, all edge lines in the structural column are determined as the annotation lines of the structural column.

5. The method according to claim 1, wherein The step of determining the annotation line of the structural column based on the target shape of the structural column and a preset annotation line generation rule includes: When the structural column is a T-shaped column, a side line of the structural column that is collinear with and partially overlaps with a side line of the minimum circumscribed rectangle is used as the second side line; Draw a perpendicular midline for a first sub-sideline of the second sideline that is not connected to other second sidelines and extend the perpendicular midline to a second sideline parallel to the first sub-sideline to obtain a centerline corresponding to the first sub-sideline; Draw perpendicular bisectors for the second sub-sideline and the third sub-sideline that are not parallel to the first sub-sideline in the second sideline, and extend the perpendicular bisectors to the centerline to obtain the centerline corresponding to the second sub-sideline and the centerline corresponding to the third sub-sideline; If there is a target reference line that is collinear with the center line and intersects the second edge line, then the edges of the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; Determining the side lines of the structural column except the third side line as the marking lines of the structural column; If the target reference line does not exist, all edge lines in the structural column are determined as the annotation lines of the structural column.

6. The method according to claim 1, characterized in that The step of determining the annotation line of the structural column based on the target shape of the structural column and a preset annotation line generation rule includes: When the structural column is a seven-shaped column, a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle is used as the first side line; Draw perpendicular bisectors for a first sub-sideline and a second sub-sideline that are not connected to other first sides in the first sideline, and extend the perpendicular bisectors to a sideline parallel to the first sub-sideline and a sideline parallel to the second sub-sideline, respectively, to obtain a centerline corresponding to the first sub-sideline and a centerline corresponding to the second sub-sideline; Draw perpendicular midlines for two mutually connected first sidelines among the first sidelines, and extend them to sidelines parallel to the two first sidelines, to obtain a target centerline that intersects with one of the centerline corresponding to the first sub-sideline or the centerline corresponding to the second sub-sideline and does not intersect with either the first sub-sideline or the second sub-sideline, and delete the other centerline; If there is a centerline corresponding to the first sub-edgeline, and / or a centerline corresponding to the second sub-edgeline, and / or a target reference line that is collinear with the target centerline and intersects the first edgeline, edges of the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; If there exists a center line corresponding to the first sub-edge line, and / or a center line corresponding to the second sub-edge line, and / or a center line parallel to and not collinear with the target center line, and a target reference line intersecting the first edge line, then an edge line in the structural column that is parallel to the target reference line and not collinear with an edge line of the minimum circumscribed rectangle is used as the third edge line; Determining the side lines of the structural column except the third side line as the marking lines of the structural column; If the target reference line does not exist, all edge lines in the structural column are determined as the annotation lines of the structural column.

7. The method according to claim 1, characterized in that The step of determining the annotation line of the structural column based on the target shape of the structural column and a preset annotation line generation rule includes: When the structural column is a cross-shaped column, a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle is used as the first side line; Draw perpendicular midlines for first sub-sidelines of the first sideline that are equal in length and parallel to each other to obtain center lines corresponding to the first sub-sidelines; Draw perpendicular bisectors for the second and third sub-sidelines of the first sideline, which are unequal in length and parallel to each other, and extend them to the centerline corresponding to the first sub-sideline, respectively, to obtain the centerline corresponding to the second and third sub-sidelines; If there is a target reference line that is collinear with the center line corresponding to the first sub-edge line, and / or the center line corresponding to the second sub-edge line, and / or the center line corresponding to the third sub-edge line and intersects with the first edge line, then the edges of the structural column that are parallel to the target reference line and located on both sides of the target reference line are used as third edges; If there is a centerline corresponding to the first sub-edgeline, and / or a centerline corresponding to the second sub-edgeline, and / or a centerline corresponding to the third sub-edgeline that is parallel to and not collinear with the first edgeline, and a target reference line that intersects the first edgeline, then a line in the structural column that is parallel to the target reference line and whose distance from the target reference line is less than a preset threshold is used as the third edgeline; Determining the side lines of the structural column except the third side line as the marking lines of the structural column; If the target reference line does not exist, all edge lines in the structural column are determined as the annotation lines of the structural column.

8. The method according to claim 1, characterized in that When the annotation line and the reference line are parallel to each other, generating the annotation of the structural column includes: Taking the mutually parallel annotation line and the reference line as a target annotation group; If the outermost edge line in the target annotation group is a target annotation line, obtaining a target point of the target annotation line; Draw a perpendicular line to the reference line according to the target point and generate a mark for the structural column; If the outermost edge line in the target annotation group is the target reference line, obtaining the target annotation line closest to the target reference line; Draw a perpendicular line from the target marking line to the target reference line to obtain a target point on the target reference line; A perpendicular line is drawn to the marking line according to the target point, and a marking of the structural column is generated.

9. A device for generating structural column annotations, characterized in that: The device for generating structural column annotations executes the method according to any one of claims 1 to 8, including: A recognition module is used to identify reference lines and structural columns to be annotated in the target drawing; an acquisition module, configured to acquire a minimum circumscribed rectangle of the structural column when the structural column is a special-shaped column; a shape determination module, configured to determine a target shape of the structural column based on the number of edges of the structural column and a target positional relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle; the target positional relationship including a collinear relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle; a marking line determination module, configured to determine a marking of the structural column based on a target shape of the structural column and a preset marking line determination rule; wherein the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column; A generating module is used to generate a label for the structural column when the label line and the reference line are parallel to each other.

10. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to perform the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Horizontal component labeling method based on BIM platform and related equipment

    CN115455519A

  • Revit-based special-shaped linear structure automatic identification and positioning plotting method

    CN115510550A

  • Three-dimensional design method and system for curved surface template of high-rise special-shaped single-column cable bent tower based on BIM (Building Information Modeling)

    CN117610107A

  • BIM (Building Information Modeling)-based special-shaped double-curved-surface hollow floor slab modeling method and system and medium

    CN118709269A

  • Method and apparatus for quickly browsing drawings, storage medium, device and program product

    WO2024093304A1