Design drawing processing method and system, electronic device and storage medium

By calculating the center of the node of the layout line segment and extending the line segment to the center, the installation deviation problem caused by the non-intersection of adjacent line segments in the design drawing is solved, and efficient and accurate design drawing processing is achieved.

CN115186359BActive Publication Date: 2025-10-24CHINA CONSTR STEEL STRUCTURE ENG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210875785.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-25
Publication Date
2025-10-24
Estimated Expiration
2042-07-25

AI Technical Summary

Technical Problem

In existing technologies, the non-intersection of adjacent layout line segments in the design drawings leads to installation positioning deviations, and the manual connection method is inefficient and inaccurate when dealing with complex design drawings.

Method used

By acquiring the endpoint coordinates and node radius data of the staking line segments, calculating the coordinates of the node center, extending the line segments to the node center, and making adjacent staking line segments intersect at the center, an automatic connection is achieved using a computer-aided method.

Benefits of technology

This improved the efficiency of design drawings and the accuracy of wiring, ensuring the dimensional accuracy of the space frame structure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115186359B_ABST
    Figure CN115186359B_ABST
Patent Text Reader

Abstract

The application discloses a design drawing processing method and system, electronic equipment and a storage medium. The design drawing processing method comprises the following steps: obtaining first coordinate data of a first end point, second coordinate data of a second end point, first radius data of a first node and second radius data of a second node from a target application; obtaining first center coordinate data of the first node according to the first coordinate data, the second coordinate data and the first radius data; obtaining second center coordinate data of the second node according to the first coordinate data, the second coordinate data and the second radius data; performing a first connection operation on a lofting line segment according to the first center coordinate data and the first coordinate data, and performing a second connection operation on the lofting line segment according to the second center coordinate data and the second coordinate data. The design drawing processing method can make all adjacent two lofting line segments in a design drawing intersect at the center of a node, thereby improving the design efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of engineering design, and in particular, to a design drawing processing method and system, an electronic device, and a storage medium. BACKGROUND

[0002] At present, a design drawing is used to design the roof net rack structure of various facilities such as industrial plants, airports, and stadiums. The net rack structure includes a plurality of rod members and a plurality of ball members, and the rod members and the ball members are alternately connected. In the design drawing corresponding to the net rack structure, the rod members are represented by lofted line segments, and the ball members are represented by circular nodes. In actual operation, that is, during the installation of the facilities described above according to the design drawing of the net rack structure, the rod members are connected to each other, and the ball members are installed on the connecting nodes between adjacent two rod members to stabilize the connection of the rod members. However, in the design drawing, the circular nodes will block the intersection between two lofted line segments, that is, the two adjacent lofted line segments in the design drawing are not intersected, thereby causing positioning deviation of the installation of the rod members during actual installation using the design drawing of the net rack structure, and further causing low size precision of the entire net rack structure.

[0003] In related technologies, the two adjacent lofted line segments are connected to each other in the design drawing by a manual connection method to solve the above problem. However, when a complex design drawing is encountered, the manual connection method will be very tedious, thereby causing low design efficiency. At the same time, the manual connection method also has the problem of low connection precision. SUMMARY

[0004] The present application aims to at least solve one of the problems in the prior art. To this end, the present application provides a design drawing processing method, which can make all adjacent two lofted line segments in the design drawing intersect at the center of the node, thereby improving the design efficiency.

[0005] The present application also provides a design drawing processing system, an electronic device applying the design drawing processing method, and a computer readable storage medium applying the design drawing processing method.

[0006] The design drawing processing method according to the first aspect of the present application, the design drawing includes a plurality of connection components, the connection component includes a first node, a second node, and a lofted line segment, the lofted line segment includes a first end point and a second end point, the first end point is connected to the first node, the second end point is connected to the second node, the first node and the second node are both circular, and the design drawing processing method includes:

[0007] obtaining first coordinate data of the first end point, second coordinate data of the second end point, first radius data of the first node, and second radius data of the second node from a target application;

[0008] obtaining first center coordinate data of the first node according to the first coordinate data, the second coordinate data, and the first radius data;

[0009] obtaining second center coordinate data of the second node according to the first coordinate data, the second coordinate data, and the second radius data;

[0010] performing a first connection operation on the lofted line segment according to the first center coordinate data and the first coordinate data, and performing a second connection operation on the lofted line segment according to the second center coordinate data and the second coordinate data.

[0011] The design drawing processing method according to the embodiment of the present application has at least the following beneficial effects: first coordinate data of a first end point, second coordinate data of a second end point, first radius data of a first node, and second radius data of a second node are obtained. The first end point and the second end point are two end points of a lofted line segment, the first end point is connected with the first node, the second end point is connected with the second node, and the first node and the second node are both circular. After the above data are obtained, first center coordinate data of the first node is obtained according to the first coordinate data, the second coordinate data, and the first radius data, and second center coordinate data of the second node is obtained according to the first coordinate data, the second coordinate data, and the second radius data. Finally, a first connection operation is performed on the lofted line segment according to the first center coordinate data and the first coordinate data, and a second connection operation is performed on the lofted line segment according to the second center coordinate data and the second coordinate data. That is, the two ends of the lofted line segment are extended, one end of the lofted line segment is extended to the center of the first node, and the other end of the lofted line segment is extended to the center of the second node. At this time, all adjacent two lofted line segments in the design drawing can intersect at the center of the circular node. The design drawing processing method of the embodiment can make all adjacent two lofted line segments in the design drawing intersect at the center of the node, thereby improving the design efficiency. Meanwhile, the design drawing processing method of the embodiment can accurately determine the intersection point of all adjacent two lofted line segments, thereby improving the accuracy of the design drawing connection line.

[0012] According to some embodiments of the present application, the first center coordinate data of the first node is obtained according to the first coordinate data, the second coordinate data, and the first radius data, including:

[0013] length data of the lofted line segment is obtained according to the first coordinate data and the second coordinate data;

[0014] According to the length data, the first radius data and the first coordinate data, first center coordinate data of the first node is obtained.

[0015] According to some embodiments of the present application, the length data comprises first line segment length data, first projection length data and second projection length data; wherein the first projection length data is used to represent the projection length data of the lofting line segment in a first direction, and the second projection length data is used to represent the projection length data of the lofting line segment in a second direction, which is a perpendicular direction of the first direction.

[0016] The first center coordinate data of the first node is obtained according to the length data and the first radius data, comprising:

[0017] According to the first line segment length data, the first projection length data, the second projection length data and the first radius data, third projection length data and fourth projection length data are obtained; wherein the third projection length data is used to represent the projection length data of the radius of the first node in the first direction, and the fourth projection length data is used to represent the projection length data of the radius of the first node in the second direction.

[0018] The first center coordinate data of the first node is obtained according to the third projection length data, the fourth projection length data and the first coordinate data.

[0019] According to some embodiments of the present application, the second center coordinate data of the second node is obtained according to the first coordinate data, the second coordinate data and the second radius data, comprising:

[0020] The length data of the lofting line segment is obtained according to the first coordinate data and the second coordinate data.

[0021] The second center coordinate data of the second node is obtained according to the length data, the second radius data and the second coordinate data.

[0022] According to some embodiments of the present application, the second center coordinate data of the second node is obtained according to the length data, the second radius data and the second coordinate data, comprising:

[0023] According to the first line segment length data, the first projection length data, the second projection length data and the second radius data, fifth projection length data and sixth projection length data are obtained; wherein the fifth projection length data is used to represent the projection length data of the radius of the second node in the first direction, and the sixth projection length data is used to represent the projection length data of the radius of the second node in the second direction.

[0024] According to the fifth projection length data, the sixth projection length data and the second coordinate data, second center coordinate data of the second node is obtained.

[0025] According to some embodiments of the present application, the target application comprises AutoCAD.

[0026] The processing system of the design drawing according to the second aspect embodiment of the present application comprises:

[0027] The first processing module is configured to obtain first coordinate data of a first end point, second coordinate data of a second end point, first radius data of a first node and second radius data of a second node from a target application;

[0028] The second processing module is configured to obtain first center coordinate data of the first node according to the first coordinate data, the second coordinate data and the first radius data, and obtain second center coordinate data of the second node according to the first coordinate data, the second coordinate data and the second radius data;

[0029] The extension module is configured to perform a first connection operation on a lofted line segment according to the first center coordinate data and the first coordinate data, and perform a second connection operation on the lofted line segment according to the second center coordinate data and the second coordinate data.

[0030] The processing system of the design drawing according to the embodiments of the present application has at least the following beneficial effects: by using the above design drawing processing method, all adjacent two lofted line segments in the design drawing are made to intersect at the center of the node, thereby improving the design efficiency. Meanwhile, by using the above design drawing processing method, the intersection point of all adjacent two lofted line segments is accurately determined, thereby improving the accuracy of the connecting line of the design drawing.

[0031] The electronic device according to the third aspect embodiment of the present application comprises:

[0032] At least one processor, and a memory connected with the at least one processor in communication;

[0033] The memory stores instructions, and the at least one processor executes the instructions to make the at least one processor implement the design drawing processing method of the first aspect embodiment when the instructions are executed.

[0034] The computer readable storage medium according to the fourth aspect embodiment of the present application stores computer executable instructions, and the computer executable instructions are used to make a computer execute the design drawing processing method of the first aspect embodiment.

[0035] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0037] Figure 1 A schematic diagram of a design diagram in the related art;

[0038] Figure 2 A flowchart of a specific embodiment of a method for processing a design diagram of the present invention;

[0039] Figure 3 A schematic diagram of a set-out line segment, a first node, and a second node in a specific embodiment of a method for processing a design drawing of the present invention;

[0040] Figure 4 A flowchart of another specific embodiment of the method for processing a design diagram of the present invention;

[0041] Figure 5 A flowchart of another specific embodiment of the method for processing a design diagram of the present invention;

[0042] Figure 6 A flowchart of another specific embodiment of the method for processing a design diagram of the present invention;

[0043] Figure 7 A flowchart of another specific embodiment of the method for processing a design diagram of the present invention;

[0044] Figure 8 A module block diagram of a specific embodiment of a processing system for design diagrams of the present invention.

[0045] Reference numerals:

[0046] Stakeout line segment 100 , first node 200 , second node 300 , first processing module 400 , second processing module 500 , and extension module 600 . DETAILED DESCRIPTION

[0047] The following describes embodiments of the present invention in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended only to explain the present invention and are not to be construed as limiting the present invention.

[0048] In the description of the present application, it should be understood that the orientation description, such as the orientation or position relationship indicated by the upper, lower, front, rear, left, right and the like, is based on the orientation or position relationship shown in the drawings, and is only for the purpose of facilitating the description of the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present application.

[0049] In the description of the present application, if the meaning of several is more than one, the meaning of multiple is more than two, greater than, less than, more than and the like are understood as not including the number, above, below, within and the like are understood as including the number. If the first, second is described, it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance of the indicated technical features or implicitly indicating the number of the indicated technical features or the order of the indicated technical features.

[0050] In the description of the present application, unless otherwise explicitly limited, the words such as setting, installing, connecting and the like should be understood in a broad sense, and the person skilled in the art can reasonably determine the specific meaning of the above words in the present application in combination with the specific content of the technical scheme.

[0051] In the description of the present application, the description of the reference terms "one embodiment", "some embodiments", "illustrative embodiment", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in combination with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0052] In the related art, the circular node in the design drawing will block the intersection between the two lofted line segments, and in the net rack structure corresponding to the design drawing, the lofted line segment represents a rod, and the circular node represents a spherical piece. For example Figure 1In the design drawing, the intersection point between the lofted line segment A and the lofted line segment B is blocked by the circular node C. In actual operation, the two bars corresponding to the line segment A and the line segment B are connected to each other, and after the bars are connected to each other, the ball corresponding to the circular node C is installed on the connection node between the two bars to stabilize the connection of the bars. Among them, the connection node of the two adjacent bars in the grid structure should be located at the center of the ball, that is, the intersection point of the two adjacent lofted line segments A and B in the corresponding design drawing should be located at the center of the circular node C. If the two adjacent lofted line segments in the design drawing do not intersect, the positioning deviation of the installation of the bars will occur in the actual installation process using the design drawing, and thus the size precision of the entire grid structure is low. In the prior art, in order to solve the above problem, the manual connection mode is used to connect the two adjacent lofted line segments to each other to form an intersection point. However, when a complex design drawing is encountered, for example, when there are too many lofted line segments and circular nodes, the manual connection mode will be very tedious, and thus the design efficiency is low. At the same time, the manual connection mode also has the problem of low connection precision.

[0053] As shown in Figure 2 , Figure 3 The embodiment of the present application provides a design drawing processing method, and the design drawing includes a plurality of connection components, the connection components include a lofted line segment 100, a first node 200 and a second node 300, the lofted line segment 100 includes a first end point and a second end point, the first end point is connected with the first node 200, and the second end point is connected with the second node 300, and the first node 200 and the second node 300 are both circular. The design drawing processing method includes but is not limited to steps S110 to S140.

[0054] S110, obtaining first coordinate data of the first end point, second coordinate data of the second end point, first radius data of the first node and second radius data of the second node from a target application.

[0055] Specifically, the lofted line segment 100 represents any one bar in an actual grid structure, and the first end point and the second end point represent two ends of the bar. The first node 200 represents a ball connected with one end of the bar in the actual grid structure, and the second node 300 represents another ball connected with the other end of the bar in the actual grid structure. Figure 3 The schematic diagram of the first node 200, the second node 300 and the lofted line segment 100 intercepted in the design drawing is shown. Referring to Figure 3, the first coordinate data is the coordinate of the first end point P1 of the lofted line segment 100 in the coordinate system O-XY, and the second coordinate data is the coordinate of the second end point P2 of the lofted line segment 100 in the coordinate system O-XY. The target application is a device or software with a function of acquiring graphic data, and the target application can acquire the coordinate of the first end point P1, the coordinate of the second end point P2, the radius of the first node 200, and the radius of the second node 300 from the design drawing.

[0056] S120, obtaining first center coordinate data of the first node according to the first coordinate data, the second coordinate data, and the first radius data.

[0057] S130, obtaining second center coordinate data of the second node according to the first coordinate data, the second coordinate data, and the second radius data.

[0058] S140, performing a first connection operation on the lofted line segment according to the first center coordinate data and the first coordinate data, and performing a second connection operation on the lofted line segment according to the second center coordinate data and the second coordinate data.

[0059] Specifically, referring to Figure 3 , the first coordinate data (i.e., the coordinate of the first end point P1), the second coordinate data (i.e., the coordinate of the second end point P2), and the first radius data (i.e., the first radius R1 of the first node 200) obtained through the foregoing steps can be used to solve the coordinate of the first center O1 of the first node 200. The first coordinate data (i.e., the coordinate of the first end point P1), the second coordinate data (i.e., the coordinate of the second end point P2), and the second radius data (i.e., the radius R2 of the second node 300) obtained through the foregoing steps can be used to solve the coordinate of the second center O2 of the second node 300. Further, the first end point P1 and the first center O1 of the first node 200 are connected to obtain a first connection line, and the second end point P2 and the second center O2 of the second node 300 are connected to obtain a second connection line, so as to obtain an extended line segment of the lofted line segment 100, the extended line segment having one end at the first center O1 of the first node 200 and the other end at the second center O2 of the second node 300. Through the first connection operation and the second connection operation on all the lofted line segments 100 in the design drawing, the present embodiment can make all the adjacent two lofted line segments intersect at the center of the circular node connected by the two lofted line segments, thereby improving the design efficiency of the design drawing.

[0060] According to the design drawing processing method, the first node first circle center coordinate data is obtained according to the first coordinate data, the second coordinate data and the first radius data, and the second node second circle center coordinate data is obtained according to the first coordinate data, the second coordinate data and the second radius data. The lofting line segment is subjected to the first connection operation according to the first circle center coordinate data and the first coordinate data, and the lofting line segment is subjected to the second connection operation according to the second circle center coordinate data and the second coordinate data, so as to extend two ends of the lofting line segment. One end of the lofting line segment is extended to the first node circle center, and the other end of the lofting line segment is extended to the second node circle center. At this time, all adjacent two lofting line segments in the design drawing can intersect at the circle center of the circular node. The design drawing processing method can make all adjacent two lofting line segments in the design drawing intersect at the circle center of the node, thereby improving the design efficiency. Meanwhile, the design drawing processing method can accurately determine the intersection point of all adjacent two lofting line segments, thereby improving the accuracy of the design drawing connection line.

[0061] As shown in Figure 3 , Figure 4 in some embodiments of the present application, step S120 includes but is not limited to sub-step S210 to sub-step S220.

[0062] S210, obtaining the length data of the lofting line segment according to the first coordinate data and the second coordinate data.

[0063] S220, obtaining the first circle center coordinate data of the first node according to the length data, the first radius data and the first coordinate data.

[0064] Specifically, referring to Figure 3 , after obtaining the first coordinate data (i.e. the coordinate of the first end point P1) and the second coordinate data (i.e. the coordinate of the second end point P2), the length data of the lofting line segment 100 can be obtained according to the coordinate of the first end point P1 and the coordinate of the second end point P2. For example, the length data includes the length of the lofting line segment 100 and the lengths of other two mutually connected line segments, which can form a first triangle when connected with the lofting line segment 100. After obtaining the length data of the lofting line segment 100, the coordinate of the first circle center O1 of the first node 200 can be calculated according to the first radius data (i.e. the first radius R1 of the first node 200), the above length data and the first coordinate data (i.e. the coordinate of the first end point P1). For example, according to the side lengths of the above first triangle, the side lengths of a second triangle with the first radius R1 of the first node 200 as one side are calculated by the similar triangle principle, and then the coordinate of the first circle center O1 of the first node 200 can be calculated with the coordinate of the first end point P1 as the reference point.

[0065] As shown in Figure 3 ,Figure 5 In some embodiments of the present application, the length data includes first line segment length data, first projection length data, and second projection length data. The first projection length data is used to represent the projection length of the lofting line segment 100 in the first direction, and the second projection length data is used to represent the projection length of the lofting line segment 100 in the second direction. The second direction is perpendicular to the first direction. Step S220 includes, but is not limited to, sub-step S310 to sub-step S320.

[0066] S310, obtaining third projection length data and fourth projection length data according to the first line segment length data, the first projection length data, the second projection length data, and the first radius data.

[0067] S320, obtaining first center coordinate data of the first node according to the third projection length data, the fourth projection length data, and the first coordinate data.

[0068] The third projection length data is used to represent the projection length of the first radius of the first node in the first direction, and the fourth projection length data is used to represent the projection length of the first radius of the first node in the second direction.

[0069] Specifically, the first direction is the direction of the X-axis in the coordinate system O-XY, and the second direction is the direction of the Y-axis in the coordinate system O-XY. The first direction and the second direction are perpendicular to each other. The first line segment length data represents the length of the lofting line segment 100, the first projection length data represents the projection length of the lofting line segment 100 on the X-axis, the second projection length data represents the projection length of the lofting line segment 100 on the Y-axis, the third projection length data represents the projection length of the first radius R1 of the first node 200 on the X-axis, and the fourth projection length data represents the projection length of the first radius R1 of the first node 200 on the Y-axis. Figure 3 The first projection Lx is the projection of the lofting line segment 100 on the X-axis, the second projection Ly is the projection of the lofting line segment 100 on the Y-axis, the third projection Rx1 is the projection of the first radius R1 on the X-axis, and the fourth projection Ry1 is the projection of the first radius R1 on the Y-axis. The first projection Lx and the second projection Ly are perpendicular to each other, and the first projection Lx, the second projection Ly, and the lofting line segment 100 form a first right triangle. The third projection Rx1 and the fourth projection Ry1 are perpendicular to each other, and the third projection Rx1, the fourth projection Ry1, and the first radius R1 form a second right triangle.

[0070] After obtaining the first coordinate data (i.e., the coordinates of the first endpoint P1) and the second coordinate data (i.e., the coordinates of the second endpoint P2), the length of the first projection LX can be obtained by subtracting the X-axis coordinate of the second endpoint P2 from the X-axis coordinate of the first endpoint P1. The length of the second projection LY can be obtained by subtracting the Y-axis coordinate of the second endpoint P2 from the Y-axis coordinate of the first endpoint P1. The length of the first projection LX and the length of the second projection LY can then be calculated using the Pythagorean theorem.

[0071] Assume that the length of the first projection LX is lx, the length of the second projection LY is ly, the length of the lofted line segment 100 is l, the length of the first radius R1 is r1, the length of the third projection RX1 is rx1, and the length of the fourth projection is ry1. According to the principle of similar triangles, the following equations (1) and (2) can be obtained:

[0072]

[0073]

[0074] Since the length lx of the first projection LX, the length ly of the second projection LY, the length l of the lofted line segment 100, and the length r1 of the first radius R1 are known, the length rx1 of the third projection RX1 and the length ry1 of the fourth projection RY1 can be obtained by equations (1) and (2).

[0075] Because the two ends of the first radius R1 are the first center O1 and the first endpoint P1 of the first node 200, respectively, the X-axis coordinate of the first center O1 can be obtained based on the length rx1 of the third projection RX1 and the X-axis coordinate of the first endpoint P1. The Y-axis coordinate of the first center O1 can be obtained based on the length ry1 of the fourth projection RY1 and the Y-axis coordinate of the first endpoint P1. Thus, the coordinates of the first center O1 of the first node 200 can be determined.

[0076] like Figure 3 、 Figure 6 As shown, in some specific embodiments of the present invention, step S130 includes but is not limited to sub-steps S410 to S420.

[0077] S410 , obtaining length data of the lofted line segment according to the first coordinate data and the second coordinate data.

[0078] S420 , obtaining second circle center coordinate data of the second node according to the length data, the second radius data, and the second coordinate data.

[0079] Specifically, refer to Figure 3After the first coordinate data (i.e. the coordinate of the first end point P1) and the second coordinate data (i.e. the coordinate of the second end point P2) are obtained, the length data of the lofted line segment 100 can be obtained according to the coordinate of the first end point P1 and the coordinate of the second end point P2. For example, the length data includes the length of the lofted line segment 100 and the lengths of other two mutually connected line segments which are connected with the lofted line segment 100 to form a first triangle. After the length data of the lofted line segment 100 is obtained, the coordinate of the second center O2 of the second node 300 can be calculated according to the second radius data (i.e. the second radius R2 of the second node 300), the length data and the second coordinate data (i.e. the coordinate of the second end point P2). For example, according to the side lengths of the first triangle, the side lengths of a third triangle with the second radius R2 of the second node 300 as one of the sides are calculated by the principle of similar triangles, and then the coordinate of the second center O2 of the second node 300 can be calculated with the coordinate of the second end point P2 as the reference point.

[0080] As shown in FIG. 4, in some embodiments of the present application, step S420 includes but is not limited to sub-step S510 to sub-step S520. Figure 3 Figure 7 As shown in FIG. 4, in some embodiments of the present application, step S420 includes but is not limited to sub-step S510 to sub-step S520.

[0081] S510, obtaining fifth projection length data and sixth projection length data according to the first line segment length data, the first projection length data, the second projection length data and the second radius data.

[0082] S520, obtaining second center coordinate data of the second node according to the fifth projection length data, the sixth projection length data and the second coordinate data.

[0083] The fifth projection length data is used to represent the projection length data of the radius of the second node in the first direction, and the sixth projection length data is used to represent the projection length data of the radius of the second node in the second direction.

[0084] Specifically, the first direction is the direction of the X-axis in the coordinate system O-XY, and the second direction is the direction of the Y-axis in the coordinate system O-XY, and the first direction and the second direction are perpendicular to each other. The first line segment length data represents the length of the lofted line segment 100, the first projection length data represents the projection length of the lofted line segment 100 on the X-axis, the second projection length data represents the projection length of the lofted line segment 100 on the Y-axis, the fifth projection length data represents the projection length of the second radius R2 of the second node 300 on the X-axis, and the sixth projection length data represents the projection length of the second radius R2 of the second node 300 on the Y-axis. Figure 3 ​In the specific embodiment, the first projection LX is a projection of the lofting line segment 100 on the X axis, the second projection LY is a projection of the lofting line segment 100 on the Y axis, the fifth projection RX2 is a projection of the second radius R2 on the X axis, and the sixth projection RY2 is a projection of the second radius R2 on the Y axis. The first projection LX and the second projection LY are perpendicular to each other, and the first projection LX, the second projection LY, and the lofting line segment 100 enclose a first right-angled triangle. The fifth projection RX2 and the sixth projection RY2 are perpendicular to each other, and the fifth projection RX2, the sixth projection RY2, and the second radius R2 enclose a third right-angled triangle.

[0085] After the first coordinate data (i.e., the coordinates of the first end point P1) and the second coordinate data (i.e., the coordinates of the second end point P2) are obtained, the length of the first projection LX can be obtained by subtracting the X-axis coordinate of the first end point P1 from the X-axis coordinate of the second end point P2, and the length of the second projection LY can be obtained by subtracting the Y-axis coordinate of the first end point P1 from the Y-axis coordinate of the second end point P2. The length of the lofting line segment 100 can be calculated by using the lengths of the first projection LX and the second projection LY according to the Pythagorean theorem.

[0086] Let the length of the first projection LX be lx, the length of the second projection LY be ly, the length of the lofting line segment 100 be l, the length of the second radius R2 be r2, the length of the fifth projection RX2 be rx2, and the length of the sixth projection RY2 be ry2. According to the principle of similar triangles, the following equations (3) and (4) can be obtained:

[0087]

[0088]

[0089] Since the length lx of the first projection LX, the length ly of the second projection LY, the length l of the lofting line segment 100, and the length r2 of the second radius R2 are known, the length rx2 of the fifth projection RX2 and the length ry2 of the sixth projection RY2 can be obtained by using the equations (3) and (4).

[0090] Since the two ends of the second radius R2 are the second center O2 of the second node 300 and the second end point P2, respectively, the X-axis coordinate of the second center O2 can be obtained according to the length rx2 of the fifth projection RX2 and the X-axis coordinate of the second end point P2, and the Y-axis coordinate of the second center O2 can be obtained according to the length ry2 of the sixth projection RY2 and the Y-axis coordinate of the second end point P2. Thus, the coordinates of the second center O2 of the second node 300 can be obtained.

[0091] In some specific embodiments of the present application, the target application includes AutoCAD.

[0092] Specifically, AutoCAD is a drawing software with functions of graphic editing and data exchange. In the embodiment, the design drawing is opened by AutoCAD, and the coordinate data of the first end point and the second end point of all lofting line segments, the first radius data of the first node and the second radius data of the second node in the design drawing can be quickly obtained by AutoCAD.

[0093] As shown in Figure 8 the embodiment of the present application further provides a design drawing processing system, comprising:

[0094] The first processing module 400 is configured to obtain the first coordinate data of the first end point, the second coordinate data of the second end point, the first radius data of the first node and the second radius data of the second node from a target application.

[0095] The second processing module 500 is configured to obtain the first center coordinate data of the first node according to the first coordinate data, the second coordinate data and the first radius data, and obtain the second center coordinate data of the second node according to the first coordinate data, the second coordinate data and the second radius data.

[0096] The extending module 600 is configured to perform a first connection operation on the lofting line segment according to the first center coordinate data and the first coordinate data, and perform a second connection operation on the lofting line segment according to the second center coordinate data and the second coordinate data.

[0097] It can be seen that the content of the design drawing processing method embodiment is applicable to the design drawing processing system embodiment, the design drawing processing system embodiment specifically realizes the same functions as the design drawing processing method embodiment, and achieves the same beneficial effects as the design drawing processing method embodiment.

[0098] The embodiment of the present application further provides an electronic device, comprising at least one processor and a memory connected with the at least one processor in communication; wherein the memory stores instructions, and the instructions are executed by the at least one processor to make the at least one processor realize the design drawing processing method as described in any of the above embodiments when the at least one processor executes the instructions.

[0099] The embodiment of the present application further provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are used to make a computer execute the design drawing processing method as described in any of the above embodiments.

[0100] The system embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separate, i.e., can be located in one place, or can be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purposes of the embodiments.

[0101] Those of ordinary skill in the art understand that all or some steps in the above disclosed method and system can be implemented as software, firmware, hardware and appropriate combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software can be distributed on a computer readable medium, which can include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and that can be accessed by a computer. Furthermore, it is known to those of ordinary skill in the art that communication media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and can include any information delivery media.

[0102] The embodiments of the present application are described in detail above with reference to the accompanying drawings, but the present application is not limited to the above embodiments, and various changes can be made within the knowledge of those of ordinary skill in the art without departing from the spirit of the present application. Furthermore, the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

Claims

1. A method of processing a design drawing, characterized by, The design diagram includes a plurality of connection components, each of which includes a first node, a second node, and a lofted line segment. The lofted line segment includes a first endpoint and a second endpoint. The first endpoint is connected to the first node, and the second endpoint is connected to the second node. Both the first node and the second node are circular. The processing method of the design diagram includes: Acquire first coordinate data of the first endpoint, second coordinate data of the second endpoint, first radius data of the first node, and second radius data of the second node from a target application; Obtain first center coordinate data of the first node according to the first coordinate data, the second coordinate data, and the first radius data; Obtaining second center coordinate data of the second node according to the first coordinate data, the second coordinate data, and the second radius data; A first connection operation is performed on the lofted line segment according to the first circle center coordinate data and the first coordinate data, and a second connection operation is performed on the lofted line segment according to the second circle center coordinate data and the second coordinate data.

2. The design drawing processing method according to claim 1, wherein The obtaining the first center coordinate data of the first node according to the first coordinate data, the second coordinate data, and the first radius data includes: Obtaining length data of the lofted line segment according to the first coordinate data and the second coordinate data; The first center coordinate data of the first node is obtained according to the length data, the first radius data, and the first coordinate data.

3. The design drawing processing method according to claim 2, wherein The length data includes first line segment length data, first projection length data, and second projection length data; wherein the first projection length data is used to represent the projection length data of the lofted line segment in a first direction, and the second projection length data is used to represent the projection length data of the lofted line segment in a second direction, and the second direction is perpendicular to the first direction; The obtaining the first center coordinate data of the first node according to the length data and the first radius data includes: Obtaining third projection length data and fourth projection length data according to the first line segment length data, the first projection length data, the second projection length data, and the first radius data; wherein the third projection length data is used to represent the projection length data of the radius of the first node in the first direction, and the fourth projection length data is used to represent the projection length data of the radius of the first node in the second direction; The first circle center coordinate data of the first node is obtained according to the third projection length data, the fourth projection length data, and the first coordinate data.

4. The design drawing processing method according to claim 3, wherein The obtaining the second center coordinate data of the second node according to the first coordinate data, the second coordinate data, and the second radius data includes: Obtaining length data of the lofted line segment according to the first coordinate data and the second coordinate data; The second center coordinate data of the second node is obtained according to the length data, the second radius data, and the second coordinate data.

5. The design drawing processing method according to claim 4, wherein The second center coordinate data of the second node is obtained according to the length data, the second radius data and the second coordinate data, and the obtaining comprises: fifth projection length data and sixth projection length data are obtained according to the first line segment length data, the first projection length data, the second projection length data and the second radius data, wherein the fifth projection length data is used for representing the projection length data of the radius of the second node in the first direction, and the sixth projection length data is used for representing the projection length data of the radius of the second node in the second direction; second center coordinate data of the second node is obtained according to the fifth projection length data, the sixth projection length data and the second coordinate data.

6. The method of processing a design drawing according to any one of claims 1 to 5, wherein The target application comprises AutoCAD.

7. A processing system of design drawings, characterized in that The method comprises: a first processing module, which is used for obtaining first coordinate data of a first end point, second coordinate data of a second end point, first radius data of a first node and second radius data of a second node from a target application; a second processing module, which is used for obtaining first center coordinate data of the first node according to the first coordinate data, the second coordinate data and the first radius data, and obtaining second center coordinate data of the second node according to the first coordinate data, the second coordinate data and the second radius data; an extending module, which is used for performing a first connection operation on a lofted line segment according to the first center coordinate data and the first coordinate data, and performing a second connection operation on the lofted line segment according to the second center coordinate data and the second coordinate data.

8. An electronic device, characterized by The method comprises: at least one processor, and a memory connected with the at least one processor in communication; wherein the memory stores instructions, and the instructions are executed by the at least one processor to cause the at least one processor to perform the design drawing processing method as claimed in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that The computer readable storage medium stores computer executable instructions for causing a computer to execute the design drawing processing method as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • System and method for using 3D scanning data recognizing initial design intention

    CN101071453A

  • Bending calculation method of bevel angle steel for connecting different planes of pipe steel beam

    CN102629292A