CAD graphics component alignment method, device, storage medium and electronic device

Through automated component -to -be -to -law methods, obtaining the three -dimensional model and two -dimensional graphic component data to be paired and generated by generating a associated form to solve the problem of low -bit efficiency of the three -dimensional model and two -dimensional drawing components in existing technologies. View the efficient pairing and results.

CN119048685BActive Publication Date: 2025-01-28BEIJING EXPLORER SOFTWARE CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411454951.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-17
Publication Date
2025-01-28
Estimated Expiration
2044-10-17

AI Technical Summary

Technical Problem

In the prior art, the component alignment efficiency of three-dimensional models and two-dimensional drawings in CAD clients is low, and requires manual alignment, which is time-consuming and cumbersome.

Method used

By responding to the bearing request triggered by the component of the CAD graphics, obtain the component data in the three -dimensional model and the two -dimensional graphics, to the right school, generate a associated table, and simultaneously display the three -dimensional model, two -dimensional graphic and associated tables.

Benefits of technology

The component pairs of the component between the three -dimensional model and the two -dimensional graphics are achieved automatically and efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048685B_ABST
    Figure CN119048685B_ABST
Patent Text Reader

Abstract

The present application discloses a component alignment method, device, storage medium and electronic device for CAD graphics, wherein the component alignment method for CAD graphics comprises: in response to an alignment request triggered by a first component of at least one first CAD graphic, obtaining first component data of the first component in the first CAD graphic and second component data of the second component of the second CAD graphic in the second CAD graphic; performing alignment proofreading based on the first component data and the second component data to obtain the component alignment result between the first component and the second component; using the first component data, the second component data and the component alignment result, generating an association table between the first component and the second component, wherein the association table is used to locate the first component and the second component, and to display the alignment result; and displaying the first CAD graphic, the second CAD graphic and the association table. The present application solves the technical problem of low component alignment efficiency of CAD graphics in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method, device, storage medium and electronic device for CAD graphic component alignment. Background Art

[0002] In the related technology, the 3D model is adjusted in coordination in the CAD client, and then modified and proofread in the corresponding 2D drawing. In this process, the 3D model and the 2D drawing need to be checked for alignment on the components. In this regard, the related technology is often a manual alignment method, which is not only time-consuming, but also cumbersome to operate, which leads to low alignment efficiency of the 3D model and the 2D drawing on the components.

[0003] Therefore, the related art has the problem of low component alignment efficiency of CAD graphics. Summary of the invention

[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for CAD graphic component alignment, so as to at least solve the technical problem of low efficiency of CAD graphic component alignment in the related art.

[0005] According to one aspect of an embodiment of the present application, a component alignment method for a CAD drawing is provided, comprising: in response to an alignment request triggered by a first component of at least one first CAD drawing, obtaining first component data of the first component in the first CAD drawing and second component data of the second component of the second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in a CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing; performing alignment proofreading based on the first component data and the second component data to obtain a component alignment result between the first component and the second component; generating an association table between the first component and the second component using the first component data, the second component data and the component alignment result, wherein the association table is used to locate the first component and the second component, and to display the alignment result; and displaying the first CAD drawing, the second CAD drawing and the association table.

[0006] According to another aspect of an embodiment of the present application, a component alignment device for a CAD drawing is also provided, including: an acquisition unit, for responding to an alignment request triggered by a first component of at least one first CAD drawing, to acquire first component data of the first component in the first CAD drawing and second component data of the second component of the second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in the CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing; an alignment unit, for performing alignment proofreading based on the first component data and the second component data to obtain a component alignment result between the first component and the second component; a generation unit, for generating an association table of the first component and the second component using the first component data, the second component data and the component alignment result, wherein the association table is used to locate the first component and the second component, and to display the alignment result; a display unit, for displaying the first CAD drawing, the second CAD drawing and the association table.

[0007] According to another aspect of the embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the component alignment method of the above CAD graphics.

[0008] According to another aspect of the embodiment of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the component alignment method of the CAD graphics through the computer program.

[0009] Through the embodiment provided by the present application, in response to the alignment request triggered by the first component of the three-dimensional model in the CAD client, the first component data of the first component and the second component data of the second component of the two-dimensional graphic corresponding to the three-dimensional model are obtained, and alignment proofreading is performed based on the first component data and the second component data to obtain the component alignment result between the first component and the second component. The association table of the first component and the second component is generated using the first component data, the second component data and the component alignment result, and the three-dimensional model, the two-dimensional graphic and the association table are displayed. In this way, the component alignment proofreading between the three-dimensional model and the two-dimensional graphic can be automatically and efficiently completed, and the alignment result and the associated component data are synchronously displayed in the association table, and the association table is synchronously displayed with the three-dimensional model and the two-dimensional graphic, which not only improves the efficiency of generating the alignment result between the three-dimensional model and the two-dimensional graphic, but also improves the viewing and comparison efficiency of the alignment result through the synchronous display of the association table with the three-dimensional model and the two-dimensional graphic, thereby further improving the component alignment efficiency of the three-dimensional model and the two-dimensional graphic, and achieving the technical effect of improving the component alignment efficiency of the CAD graphic. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0012] Figure 1 It is a hardware structure block diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0013] Figure 2 is a schematic diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0014] Figure 3 is a schematic diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0015] Figure 4 is a schematic diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0016] Figure 5 is a schematic diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0017] Figure 6is a schematic diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0018] Figure 7 is a schematic diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0019] Figure 8 is a schematic diagram of a component alignment method of a CAD graphic according to an embodiment of the present application;

[0020] Fig. 9 is a schematic diagram of a component alignment device for a CAD graphic according to an embodiment of the present invention;

[0021] Fig.10 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal of a PAM4 signal modulation method according to an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining the mapping relationship in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0027] Optionally, as an optional implementation, as Figure 2 As shown, the component alignment methods of CAD graphics include:

[0028] S202, in response to an alignment request triggered on a first component of at least one first CAD drawing, obtaining first component data of the first component in the first CAD drawing and second component data of the second component of the second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in a CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing;

[0029] S204, performing alignment verification based on the first component data and the second component data to obtain a component alignment result between the first component and the second component;

[0030] S206, generating an association table of the first component and the second component using the first component data, the second component data and the component alignment result, wherein the association table is used to locate the first component and the second component and to display the alignment result;

[0031] S208, displaying the first CAD drawing, the second CAD drawing and the associated table.

[0032] Optionally, in this embodiment, the first CAD drawing may be but is not limited to a three-dimensional model in the CAD client, and the first component of the first CAD drawing may be but is not limited to a three-dimensional beam, column, wall, plate, etc. in the three-dimensional model.

[0033] Optionally, in this embodiment, the second CAD drawing may be but is not limited to a two-dimensional drawing (two-dimensional drawing) in the CAD client, and the second component of the second CAD drawing may be but is not limited to a component corresponding to the first component of the first CAD drawing, such as a two-dimensional beam, column, wall, plate, etc.

[0034] Optionally, in this embodiment, the first component data of the first component may include but is not limited to cross-sectional data of the first component, position data of the first component in the first CAD drawing, etc., and the second cross-sectional position data of the second component may include but is not limited to cross-sectional data of the second component, position data of the second component in the second CAD drawing, etc.

[0035] Optionally, in this embodiment, the component alignment result between the first component and the second component can be, but is not limited to, used to indicate a situation where the first component meets the expected alignment conditions with the second component, and can also be, but is not limited to, used to indicate a situation where the first component does not meet the expected alignment conditions with the second component.

[0036] It should be noted that the first component may be, but is not limited to, a component of a certain type, and may include, but is not limited to, multiple components, such as multiple beams of the same type or multiple beams of different types.

[0037] It should also be noted that the alignment expectation condition may be, but is not limited to, used to indicate whether the alignment is consistent. It is understandable that the above-mentioned situation that meets the alignment expectation condition may be, but is not limited to, the number of reference components used to indicate consistent alignment and the information of each reference component (such as cross-sectional information, position information, identification information, etc.), and the above-mentioned situation that does not meet the alignment expectation condition may be, but is not limited to, the number of deviation components used to indicate inconsistent alignment and the information of each deviation component (such as cross-sectional information, position information, identification information, etc.).

[0038] Optionally, in this embodiment, the first component data, the second component data and the component alignment result are used to generate an association table between the first component and the second component.

[0039] It can be understood that the associated table may include but is not limited to multiple rows of data, wherein each row of data includes three-dimensional cross-sectional data of each first component, two-dimensional cross-sectional data of the corresponding second component, alignment results and other data, and may also include but is not limited to first identification information of each first component and second identification information of the corresponding second component.

[0040] It should be noted that the association table can also be used but is not limited to being used to locate the first component and the second component, wherein the corresponding first component is located and displayed on the first CAD drawing by performing a touch operation (or click operation) on the table area displaying the first component on the association table, and the corresponding second component is located and displayed on the second CAD drawing by performing a touch operation (or click operation) on the table area displaying the second component on the association table.

[0041] It should be noted that it is also possible but not limited to performing a touch operation (or click operation) on the table area displaying the alignment result on the associated table, while positioning and displaying the first component associated with the alignment result on the first CAD drawing and the second component associated with the alignment result on the second CAD drawing.

[0042] Through the embodiment provided by the present application, in response to the alignment request triggered by the first component of the three-dimensional model in the CAD client, the first component data of the first component and the second component data of the second component of the two-dimensional graphic corresponding to the three-dimensional model are obtained, and alignment proofreading is performed based on the first component data and the second component data to obtain the component alignment result between the first component and the second component. The association table of the first component and the second component is generated using the first component data, the second component data and the component alignment result, and the three-dimensional model, the two-dimensional graphic and the association table are displayed. In this way, the component alignment proofreading between the three-dimensional model and the two-dimensional graphic can be automatically and efficiently completed, and the alignment result and the associated component data are synchronously displayed in the association table, and the association table is synchronously displayed with the three-dimensional model and the two-dimensional graphic, which not only improves the efficiency of generating the alignment result between the three-dimensional model and the two-dimensional graphic, but also improves the viewing and comparison efficiency of the alignment result through the synchronous display of the association table with the three-dimensional model and the two-dimensional graphic, thereby further improving the component alignment efficiency of the three-dimensional model and the two-dimensional graphic, and achieving the technical effect of improving the component alignment efficiency of the CAD graphic.

[0043] As an optional solution, based on the first component data, the second component data and the component alignment result, an association table between the first component and the second component is generated, including:

[0044] Determine the three-dimensional cross-sectional data of the first component from the first component data, determine the two-dimensional cross-sectional data of the second component from the second component data, and determine the number of deviation components in the first component that do not meet the desired alignment conditions with the second component from the alignment result;

[0045] An association table is generated according to the first identification information and the three-dimensional cross-sectional data of the first component, the second identification information and the two-dimensional cross-sectional data of the second component, and the number of components.

[0046] Optionally, in this embodiment, the first component data may include, but is not limited to, three-dimensional cross-sectional data for indicating the cross-sectional size of the first component, and may also include, but is not limited to, identification data for indicating the position of the first component. The second component data may include, but is not limited to, two-dimensional cross-sectional data for indicating the cross-sectional size of the second component, and may also include, but is not limited to, identification data for indicating the position of the second component.

[0047] Optionally, in this embodiment, the alignment expectation condition may be, but is not limited to, used to indicate whether the alignment is consistent. It is understandable that the situation that meets the alignment expectation condition may be, but is not limited to, the number of reference components used to indicate consistent alignment and the information of each reference component (such as cross-sectional information, position information, identification information, etc.), and the situation that does not meet the alignment expectation condition may be, but is not limited to, the number of deviation components used to indicate inconsistent alignment and the information of each deviation component (such as cross-sectional information, position information, identification information, etc.).

[0048] It should be noted that the association table is generated based on the first identification information and three-dimensional cross-sectional data of the first component, the second identification information and two-dimensional cross-sectional data of the second component, and the number of deviation components.

[0049] To further illustrate, a schematic diagram of an optional association table is shown as follows: Figure 3 As shown, the 3D model is a 3D beam, including rectangular beam 1, rectangular beam 2, and rectangular beam 3. The 2D figure is a 2D beam, including beam components KL4[1 / 2A], KL4[2 / 2A], KL4[A / 2A], L1[1 / 1], L2[1 / 1], and KL2[1 / 3]. Taking rectangular beam 3 and 2D beam KL4[1 / 2A] as examples, the 3D beam section information of rectangular beam 3 is 300x700, and the 2D beam section information of 2D beam KL4[1 / 2A] is 300x700. After alignment and verification, it is determined that the total number of components that do not meet the expected alignment conditions is 0, that is, both meet the expected alignment conditions.

[0050] Through the embodiments provided in the present application, the efficiency of viewing and comparing the alignment results is improved by synchronously displaying the associated table with the three-dimensional model and the two-dimensional graphics, thereby further improving the component alignment efficiency of the three-dimensional model and the two-dimensional graphics, thereby achieving the technical effect of improving the component alignment efficiency of the CAD graphics.

[0051] As an optional solution, after displaying the first CAD drawing, the second CAD drawing and the associated table, the method further includes:

[0052] In response to a first touch operation triggered on a first table area on the associated table, the first component is positioned and displayed on the first CAD drawing according to a first display style, wherein the first table area includes a first table sub-area for displaying the first identification information and a second table sub-area for displaying the three-dimensional cross-section data; or,

[0053] In response to a second touch operation triggered on a second table area on the associated table, the second component is positioned and displayed on the second CAD drawing according to a second display style, wherein the second table area includes a third table sub-area for displaying second identification information and a fourth table sub-area for displaying two-dimensional cross-sectional data.

[0054] Optionally, in this embodiment, the associated table may include, but is not limited to, a first table area, wherein the first table area includes a first table sub-area for displaying the first identification information and a second table sub-area for displaying the three-dimensional cross-sectional data.

[0055] To further illustrate, Figure 3 As shown, the three-dimensional beam column is the first table sub-area on the associated table, and the three-dimensional beam section column is the second table sub-area on the associated table. The user can touch (or click) the first table sub-area or the second table sub-area (by mouse or other means) to position and display the corresponding three-dimensional beam in the first display style on the first CAD drawing, for example, by highlighting it with a first preset color.

[0056] Optionally, in this embodiment, the associated table may include, but is not limited to, a second table area, wherein the second table area includes a third table sub-area for displaying the second identification information and a fourth table sub-area for displaying the two-dimensional cross-sectional data.

[0057] To further illustrate, Figure 3As shown, the two-dimensional beam column is the third table sub-area on the associated table, and the two-dimensional beam section column is the fourth table sub-area on the associated table. The user can touch (or click) the third table sub-area or the fourth table sub-area (by mouse or other means) to position and display the corresponding two-dimensional beam in the second display style on the second CAD drawing, for example, by highlighting it with a second preset color.

[0058] Through the embodiments provided by the present application, while displaying the corresponding content on the associated table, by performing a touch operation on the corresponding table sub-area on the associated table, the components of the CAD graphics associated with the corresponding content on the associated table can be quickly positioned and displayed in the corresponding display style on the CAD graphics, thereby improving the efficiency of viewing and comparing the alignment results, thereby further improving the alignment efficiency of the components of the three-dimensional model and the two-dimensional graphics, and achieving the technical effect of improving the alignment efficiency of the components of the CAD graphics.

[0059] As an optional solution, after displaying the first CAD drawing, the second CAD drawing and the associated table, the method further includes:

[0060] In response to a third touch operation triggered on a third table area on the associated table, the deviation component is positioned and displayed on the first CAD drawing according to a third display style, and the component corresponding to the deviation component is positioned and displayed on the second CAD drawing according to the third display style, wherein the third table area includes a number for displaying the deviation component.

[0061] Optionally, in this embodiment, the association table may include, but is not limited to, a third table area, wherein the third table area includes a number for displaying deviation components.

[0062] To further illustrate, Figure 3 As shown, the column for the total number that does not meet the requirements is a third table area on the associated table. The user can perform a touch operation (or click operation) on the third table area (by mouse or other means) to position and display the three-dimensional beams that do not meet the expected alignment conditions in a third display style on the first CAD drawing, and simultaneously position and display the two-dimensional beams that do not meet the expected alignment conditions in a third display style on the second CAD drawing, for example, by highlighting them in a third preset color.

[0063] Through the embodiments provided in the present application, while displaying the corresponding content on the associated table, by performing touch operations on the corresponding table sub-area on the associated table, it is possible to quickly and synchronously display components that do not meet the expected alignment conditions on the first CAD drawing and the second CAD drawing, thereby improving the efficiency of viewing and comparing the alignment results, thereby further improving the component alignment efficiency of the three-dimensional model and the two-dimensional drawing, and achieving the technical effect of improving the component alignment efficiency of the CAD drawing.

[0064] As an optional solution, alignment proofreading is performed based on the first component data and the second component data to obtain a component alignment result between the first component and the second component, including:

[0065] Based on the first component data, a three-dimensional plane profile of the first component is obtained, and a first length angle sequence of the three-dimensional plane profile is obtained;

[0066] Based on the second component data, a two-dimensional plane profile of the second component is obtained, and a second length angle sequence of the two-dimensional plane profile is obtained;

[0067] Obtaining overlapping reference sequence segments in the first length angle sequence and the second length angle sequence;

[0068] According to the reference sequence segment, the two-dimensional plane contour is virtually rotated and moved to align with the three-dimensional plane contour;

[0069] A plane alignment result between a three-dimensional plane contour and a two-dimensional plane contour is obtained, wherein the component alignment result is used to indicate the plane alignment result.

[0070] Optionally, in this embodiment, based on the first component data, the three-dimensional plane profile of the first component is obtained, and a first length angle sequence of the three-dimensional plane profile is obtained; based on the second component data, the two-dimensional plane profile of the second component is obtained, and a second length angle sequence of the two-dimensional plane profile is obtained.

[0071] For example, Figure 4As shown, the three-dimensional plane contour corresponding to the three-dimensional model is on the left, and the first length angle sequence of the three-dimensional plane contour is [2800, 270°, 1200, 90°, 1200, 90°, 1200, 270°, 1200, 71°, 1272, 109°, 779, 270°, 2400, 90°, 800, 90°, 1200, 270°, 1600, 65°, 1760, 295°, 1932, 117°, 894, 63°]. Located on the right is the two-dimensional plane contour corresponding to the two-dimensional figure (the two-dimensional model in the figure), and the second length angle sequence of the two-dimensional plane contour is [1200, 270°, 1200, 71°, 1272, 109°, 779, 270°, 2400, 90°, 800, 90°, 1200, 270°, 1148, 78°, 1664, 282°, 1932, 117°, 894, 63°, 2800, 270°, 1200, 90°, 1200, 90°].

[0072] The overlapping reference sequence segments in the first length angle sequence and the second length angle sequence are intercepted to obtain the reference sequence segment [1932, 117°, 894, 63°, 2800, 270°, 1200, 90°, 1200, 90°, 200, 270°, 1200, 71°, 1272, 109°, 779, 270°, 2400, 90°, 800, 90°, 1200, 270°].

[0073] According to the above reference sequence segments, the outer contour points A, B, C, D, E, F, G, H, I, J, K, L, M, and N corresponding to the reference sequence segments of the two-dimensional graphics are virtually rotated and moved to align with the plane of the three-dimensional model. A schematic diagram of a state of the rotation movement process is shown in FIG. Figure 5 As shown in the figure, the state diagram after the rotation movement is completed is as follows Figure 6 As shown, the white line graphic is the three-dimensional cross-section of the three-dimensional model, and the yellow line graphic is the two-dimensional cross-section of the two-dimensional graphic (the two-dimensional model in the figure).

[0074] After alignment, the three-dimensional plane contour is matched one-to-one with the two-dimensional plane contour according to the principle of proximity, and the plane alignment result between the three-dimensional plane contour and the two-dimensional plane contour is obtained, wherein the component alignment result is used to indicate the plane alignment result.

[0075] Through the embodiments provided in the present application, alignment reference points are found based on proximity of positions and comparison of geometric figures, and component alignment results are obtained quickly and efficiently, thereby achieving the technical effect of improving the efficiency of component alignment of CAD graphics.

[0076] As an optional solution, the plane alignment result between the 3D plane profile and the 2D plane profile is obtained, including:

[0077] The first plane line segments corresponding to the first component are obtained in sequence from the three-dimensional plane contour, and the following operations are performed on each first plane line segment:

[0078] When there is no second plane line segment corresponding to the first plane line segment in the two-dimensional plane contour, determining that the plane alignment result of the first plane line segment is that the alignment does not meet the expected condition;

[0079] When there is a second plane line segment corresponding to the first plane line segment in the two-dimensional plane contour, comparing the first plane line segment with the second plane line segment;

[0080] When the first plane line segment and the second plane line segment are consistent with each other, determining that the plane alignment result of the first plane line segment is that the alignment does not meet the expected condition;

[0081] When the first plane line segment and the second plane line segment are consistent with each other, it is determined that the plane alignment result of the first plane line segment is that the alignment meets the expected condition.

[0082] Optionally, in this embodiment, when there is no second plane line segment corresponding to the first plane line segment in the two-dimensional plane contour, it is determined that the alignment process does not find the corresponding component, and the plane alignment result is directly determined to not meet the expected conditions.

[0083] Optionally, in this embodiment, when there is a second plane line segment corresponding to the first plane line segment in the two-dimensional plane contour, the first plane line segment and the second plane line segment are compared. If the two are consistent, the plane alignment result is determined to meet the expected conditions; otherwise, the plane alignment result is determined to not meet the expected conditions.

[0084] As an optional solution, displaying the first CAD drawing, the second CAD drawing and the associated table includes:

[0085] The first CAD graphic and the second CAD graphic are displayed side by side in the first display area, and the association table is displayed in the second display area, wherein the first display area and the second display area are arranged in parallel.

[0086] Optionally, in this embodiment, the first CAD drawing and the second CAD drawing are displayed side by side in the first display area, which may include but is not limited to including the first CAD drawing being displayed on the left side of the second CAD drawing, or the second CAD drawing being displayed on the left side of the first CAD drawing.

[0087] Optionally, in this embodiment, the association table may be but is not limited to being displayed in the second display area, the second display area and the second display area may be distributed side by side, and may be but is not limited to including the second display area being displayed on the upper side of the first display area, or the first display area being displayed on the upper side of the second display area.

[0088] It should be noted that after the association table is generated, the first CAD graphic and the second CAD graphic are displayed side by side in the first display area, and the association table is displayed in the second display area. In this process, the first component and / or the second component can be positioned and displayed on the first CAD graphic and / or the second CAD graphic according to the corresponding display style in response to, but not limited to, a target touch operation triggered on a target table area on the association table, wherein the target table area can be, but not limited to, the above-mentioned first table area, the above-mentioned second table area, and the above-mentioned third table area, and the target touch operation can be, but not limited to, the above-mentioned first touch operation, the second touch operation, and the third touch operation.

[0089] Through the embodiments provided in the present application, by displaying the first CAD drawing and the second CAD drawing side by side in the first display area and displaying the associated table in the second display area, a direct comparison display of the two drawings can be achieved, and touch operations can be performed in conjunction with the associated table to further compare the differences between the two drawings, thereby improving the precision and accuracy of component comparison of the CAD drawings.

[0090] As an optional solution, the above-mentioned CAD graphics component alignment method is applied to the CAD client's scene of viewing 2D plane data and 3D model data. In this scenario, based on the above-mentioned CAD graphics component alignment method, the 2D drawing position corresponding to the 3D model component can be quickly located on the drawing, effectively reducing labor costs; the modified 2D drawings are intelligently proofread to avoid the problems of low efficiency and easy omissions in manual proofreading.

[0091] To further illustrate, take the alignment beam component as an example, click the "alignment beam" button in the CAD client, and the "alignment beam setting" function interface will pop up, such as Figure 7 As shown, the function interface includes 3D model layer options, 2D drawing layer options, and alignment result display options, wherein the 3D model layer option is used to display the selected 3D model, the 2D drawing layer option is used to display the selected 2D drawing, and the alignment result display option is used to display the display color style of components with inconsistent alignment.

[0092] Further, in Figure 7 In the function interface shown, click "Select 3D Model" to select the 3D model, and click "Select 2D Drawing" to select the 2D drawing.

[0093] Further, after selecting, press Enter, and a table of associations between the 3D model and the 2D drawing will pop up, such as Figure 3 Double-click the 3D Beam and 3D Beam Section columns to locate the corresponding 3D beam in the 3D model, and display the 3D beam position in magenta. Double-click the 2D Beam and 2D Beam Section columns to locate the corresponding 2D beam in the 2D drawing, and display the 2D beam position in magenta.

[0094] It should be noted that any inconsistent beam alignment is displayed in red.

[0095] Specifically, before generating the above-mentioned association table, the cross-section, position and other information of the beam component in the three-dimensional model is identified, and the cross-section, position and other information of the beam component in the two-dimensional drawing is identified.

[0096] After considering the scale, the geometric figures of the 3D model plane and the outer contours of the 2D drawing are compared;

[0097] Starting from the upper left point, write down the length and angle sequence of the outer contour in a clockwise direction [L1, a1, L2, a2, ..., Ln, an], such as Figure 8 It should be noted that [L1, a1, L2, a2, …, Ln, an] = [L2, a2, …, Ln, an, L1, a1].

[0098] The local sequence segments with the largest number of the same length angle sequences between the 3D model and the 2D drawing are intercepted, and the outer contour points corresponding to the local sequence segments of the 2D drawing are virtually rotated and moved to align with the 3D model plane.

[0099] For example, Figure 4As shown: The length angle sequence of the three-dimensional model is: [2800, 270°, 1200, 90°, 1200, 90°, 1200, 270°, 1200, 71°, 1272, 109°, 779, 270°, 2400, 90°, 800, 90°, 1200, 270°, 1600, 65°, 1760, 295°, 1932, 117°, 894, 63°], the length angle sequence of the two-dimensional drawing is: [1200, 270°, 1200, 71°, 1272, 109°, 779, 270°, 2400, 90°, 800, 90°, 1200, 270°, 1148, 78°, 1664, 282°, 1932, 117°, 894, 63°, 2800, The local sequence segment is [1932, 117°, 894, 63°, 2800, 270°, 1200, 90°, 1200, 90°, 200, 270°, 1200, 71°, 1272, 109°, 779, 270°, 2400, 90°, 800, 90°, 1200, 270°].

[0100] The outer contour points A, B, C, D, E, F, G, H, J, K, L, M, and N corresponding to the local sequence segment of the two-dimensional drawing are virtually rotated and moved to align with the plane of the three-dimensional model. The alignment results are shown as follows Figure 6 shown.

[0101] After alignment, the beam components in the two-dimensional drawing are matched one by one with the beam components in the three-dimensional model according to the principle of proximity. If no corresponding three-dimensional model or beam component in the two-dimensional drawing is found, it is directly classified as inconsistent in alignment. If the corresponding three-dimensional model and the beam component in the two-dimensional drawing are found, the cross-section, position and other data are compared. If they are completely consistent, they are classified as consistent in alignment. In all other cases, they are classified as inconsistent in alignment.

[0102] Fill in the names, sections and other data of all beam components of the 3D model and the 2D drawing into the associated table; associate the table with the beam component entity, one row of data in the two columns of data of 3D beam and 3D beam section corresponds to a beam entity in the 3D model, and one row of data in the two columns of data of 2D beam and 2D beam section corresponds to a beam entity in the 2D drawing; when double-clicking, the beam component can be quickly located by calculating the position through the beam entity and scaling the viewport.

[0103] Through the embodiments provided in the present application, the efficiency of aligning two-dimensional drawings with three-dimensional models is improved, which is beneficial to the promotion and application of three-dimensional models; and provides a more convenient and efficient tool for users to view three-dimensional models and two-dimensional data at the same time.

[0104] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0105] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0106] According to another aspect of the embodiment of the present application, a CAD graphics component alignment device for implementing the above-mentioned CAD graphics component alignment method is also provided. Fig. 9 As shown, the device comprises:

[0107] An acquisition unit 902 is configured to acquire, in response to an alignment request triggered on a first component of at least one first CAD drawing, first component data of the first component in the first CAD drawing and second component data of the second component of the second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in a CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing;

[0108] An alignment unit 904 is used to perform alignment verification based on the first component data and the second component data to obtain a component alignment result between the first component and the second component;

[0109] A generating unit 906 is used to generate an association table of the first component and the second component by using the first component data, the second component data and the component alignment result, wherein the association table is used to locate the first component and the second component and to display the alignment result;

[0110] The display unit 908 is used to display the first CAD drawing, the second CAD drawing and the associated table.

[0111] As an optional solution, the generating unit 1306 includes:

[0112] A first determination module is used to determine the three-dimensional cross-sectional data of the first component from the first component data, determine the two-dimensional cross-sectional data of the second component from the second component data, and determine the number of deviation components in the first component that do not meet the expected alignment conditions with the second component from the alignment result;

[0113] The generation module is used to generate an association table according to the first identification information and three-dimensional cross-sectional data of the first component, the second identification information and two-dimensional cross-sectional data of the second component, and the number of deviation components.

[0114] As an optional solution, the device also includes:

[0115] A first display module is used to display the first CAD drawing and the second CAD drawing side by side in the first display area, and after displaying the associated table in the second display area, in response to a first touch operation triggered on a first table area on the associated table, position and display the first component on the first CAD drawing according to a first display style, wherein the first table area includes a first table sub-area for displaying the first identification information and a second table sub-area for displaying the three-dimensional cross-section data; or

[0116] The second display module is used to display the first CAD figure and the second CAD figure side by side in the first display area, and after the associated table is displayed in the second display area, in response to a second touch operation triggered on the second table area on the associated table, position and display the second component on the second CAD figure according to the second display style, wherein the second table area includes a third table sub-area for displaying second identification information and a fourth table sub-area for displaying two-dimensional cross-sectional data.

[0117] As an optional solution, the device also includes:

[0118] The third display module is used to display the first CAD graphic and the second CAD graphic side by side in the first display area, and after displaying the associated table in the second display area, in response to a third touch operation triggered on the third table area on the associated table, position and display the deviation component on the first CAD graphic according to the third display style, and position and display the component corresponding to the deviation component on the second CAD graphic according to the third display style, wherein the third table area includes a number for displaying the deviation component.

[0119] As an optional solution, the alignment unit 904 includes:

[0120] A second determination module is used to obtain a three-dimensional plane profile of the first component based on the first component data, and obtain a first length angle sequence of the three-dimensional plane profile;

[0121] A third determination module, based on the second component data, obtains a two-dimensional plane profile of the second component and obtains a second length angle sequence of the two-dimensional plane profile;

[0122] A first acquisition module is used to acquire overlapping reference sequence segments in the first length angle sequence and the second length angle sequence;

[0123] A moving module is used to virtually rotate and move the two-dimensional plane contour according to the reference sequence segment to align it with the three-dimensional plane contour;

[0124] The second acquisition module is used to acquire a plane alignment result between the three-dimensional plane contour and the two-dimensional plane contour, wherein the component alignment result is used to indicate the plane alignment result.

[0125] As an optional solution, the second acquisition module includes:

[0126] The execution submodule is used to sequentially obtain the first plane line segments corresponding to the first component from the three-dimensional plane contour, and perform the following operations on each first plane line segment:

[0127] A first determination submodule is used to determine that the plane alignment result of the first plane line segment does not meet the expected alignment condition when there is no second plane line segment corresponding to the first plane line segment in the two-dimensional plane contour;

[0128] A comparison submodule, configured to compare the first plane line segment with the second plane line segment when there is a second plane line segment corresponding to the first plane line segment in the two-dimensional plane contour;

[0129] A second determination submodule is used to determine that the plane alignment result of the first plane line segment does not meet the expected condition when the first plane line segment and the second plane line segment are consistent with each other;

[0130] The third determining submodule is used to determine that the plane alignment result of the first plane line segment is that the alignment meets the expected condition when the first plane line segment and the second plane line segment are consistent with each other.

[0131] As an optional solution, the display unit 908 includes:

[0132] The fourth display module is used to display the first CAD graphic and the second CAD graphic side by side in the first display area, and to display the associated table in the second display area, wherein the first display area and the second display area are arranged in parallel.

[0133] For a specific embodiment, reference may be made to the example shown in the component alignment method of the above-mentioned CAD drawing, which will not be described in detail in this example.

[0134] According to another aspect of the embodiment of the present application, an electronic device for implementing the component alignment method of the above-mentioned CAD graphics is also provided, such as Fig.10 As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.

[0135] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0136] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0137] S1, in response to an alignment request triggered on a first component of at least one first CAD drawing, obtaining first component data of the first component in the first CAD drawing and second component data of the second component of the second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in a CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing;

[0138] S2, performing alignment verification based on the first component data and the second component data to obtain a component alignment result between the first component and the second component;

[0139] S3, generating an association table of the first component and the second component using the first component data, the second component data and the component alignment result, wherein the association table is used to locate the first component and the second component and to display the alignment result;

[0140] S4, displaying the first CAD drawing, the second CAD drawing and the associated table.

[0141] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only, and the electronic device may also be a terminal device such as a smart phone, a tablet computer, a PDA, a mobile Internet device (MID), a PAD, etc. Fig.10 The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations are shown.

[0142] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the component alignment method and device of the CAD graphics in the embodiment of the present application. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, realizing the above-mentioned component alignment method of the CAD graphics. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1002 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. Among them, the memory 1002 can be specifically but not limited to being used to store first component data, second component data and other information. As an example, such as Fig.10 As shown, the memory 1002 may include, but is not limited to, the acquisition unit 902, the alignment unit 904, the generation unit 906, and the display unit 908 in the data transmission device of the CAD client. In addition, other module units in the data transmission device of the CAD client may also be included but are not limited to, which will not be repeated in this example.

[0143] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0144] In addition, the electronic device further includes: a display 1008 for displaying information such as the first component data and the second component data; and a connection bus 1010 for connecting various module components in the electronic device.

[0145] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0146] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.

[0147] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0148] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0149] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.

[0150] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0151] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.

[0152] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0153] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0154] S1, in response to an alignment request triggered on a first component of at least one first CAD drawing, obtaining first component data of the first component in the first CAD drawing and second component data of the second component of the second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in a CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing;

[0155] S2, performing alignment verification based on the first component data and the second component data to obtain a component alignment result between the first component and the second component;

[0156] S3, generating an association table of the first component and the second component using the first component data, the second component data and the component alignment result, wherein the association table is used to locate the first component and the second component and to display the alignment result;

[0157] S4, displaying the first CAD drawing, the second CAD drawing and the associated table.

[0158] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0159] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0160] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.

[0161] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0162] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0165] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A component alignment method for CAD graphics, characterized in that: include: In response to an alignment request triggered on a first component of at least one first CAD drawing, obtaining first component data of the first component in the first CAD drawing and second component data of a second component of a second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in a CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing; Performing alignment proofreading based on the first component data and the second component data to obtain a component alignment result between the first component and the second component; Determine the three-dimensional cross-sectional data of the first component from the first component data, determine the two-dimensional cross-sectional data of the second component from the second component data, and determine the number of deviation components in the first component that do not meet the expected alignment conditions with the second component from the alignment result; Generate an association table of the first component and the second component according to the first identification information of the first component, the three-dimensional cross-sectional data, the second identification information of the second component, the two-dimensional cross-sectional data, and the number of the deviation components, wherein the association table is used to locate the first component and the second component, and to display the alignment result; The first CAD drawing, the second CAD drawing and the association table are displayed.

2. The method according to claim 1, characterized in that After displaying the first CAD drawing, the second CAD drawing and the association table, the method further includes: In response to a first touch operation triggered on a first table area on the association table, the first component is positioned and displayed on the first CAD drawing according to a first display style, wherein the first table area includes a first table sub-area for displaying the first identification information and a second table sub-area for displaying the three-dimensional cross-sectional data; or In response to a second touch operation triggered on a second table area on the associated table, the second component is positioned and displayed on the second CAD drawing according to a second display style, wherein the second table area includes a third table sub-area for displaying the second identification information and a fourth table sub-area for displaying the two-dimensional cross-sectional data.

3. The method according to claim 1, characterized in that After displaying the first CAD drawing, the second CAD drawing and the association table, the method further includes: In response to a third touch operation triggered on a third table area on the associated table, the deviation component is positioned and displayed on the first CAD drawing according to a third display style, and the component corresponding to the deviation component is positioned and displayed on the second CAD drawing according to the third display style, wherein the third table area includes a portion for displaying the number of the deviation components.

4. The method according to claim 1, characterized in that: The performing alignment check based on the first component data and the second component data to obtain a component alignment result between the first component and the second component includes: Based on the first component data, a three-dimensional plane profile of the first component is obtained, and a first length angle sequence of the three-dimensional plane profile is obtained; Based on the second component data, a two-dimensional plane profile of the second component is obtained, and a second length angle sequence of the two-dimensional plane profile is obtained; Acquire overlapping reference sequence segments in the first length angle sequence and the second length angle sequence; According to the reference sequence segment, the two-dimensional plane contour is virtually rotated and moved to align with the three-dimensional plane contour; A plane alignment result between the three-dimensional plane contour and the two-dimensional plane contour is obtained, wherein the component alignment result is used to indicate the plane alignment result.

5. The method according to claim 4, characterized in that The obtaining of the plane alignment result between the three-dimensional plane contour and the two-dimensional plane contour includes: Sequentially obtain first plane line segments corresponding to the first component from the three-dimensional plane contour, and perform the following operations on each of the first plane line segments: When there is no second plane line segment corresponding to the first plane line segment in the two-dimensional plane contour, determining that the plane alignment result of the first plane line segment is that the alignment does not meet the expected condition; When the second plane line segment corresponding to the first plane line segment exists in the two-dimensional plane contour, comparing the first plane line segment with the second plane line segment; When the first plane line segment and the second plane line segment are consistent with each other, determining that the plane alignment result of the first plane line segment is that the alignment does not meet the expected condition; When the first plane line segment and the second plane line segment are consistent with each other, it is determined that the plane alignment result of the first plane line segment is that the alignment meets the expected condition.

6. The method according to any one of claims 1 to 5, characterized in that: The displaying of the first CAD graphic, the second CAD graphic and the association table comprises: The first CAD graphic and the second CAD graphic are displayed side by side in a first display area, and the association table is displayed in a second display area, wherein the first display area and the second display area are arranged in parallel.

7. A component alignment device for CAD graphics, characterized in that: include: an acquisition unit, configured to acquire, in response to an alignment request triggered on a first component of at least one first CAD drawing, first component data of the first component in the first CAD drawing and second component data of a second component of a second CAD drawing in the second CAD drawing, wherein the first CAD drawing is a three-dimensional model in a CAD client, and the second CAD drawing is a two-dimensional drawing corresponding to the first CAD drawing; An alignment unit, configured to perform alignment verification based on the first component data and the second component data to obtain a component alignment result between the first component and the second component; The device is further used to determine the three-dimensional cross-sectional data of the first component from the first component data, determine the two-dimensional cross-sectional data of the second component from the second component data, and determine the number of deviation components in the first component that do not meet the expected alignment conditions with the second component from the alignment result; The device is further used to generate an association table of the first component and the second component according to the first identification information of the first component, the three-dimensional cross-sectional data, the second identification information of the second component, the two-dimensional cross-sectional data, and the number of the deviation components, wherein the association table is used to locate the first component and the second component, and to display the alignment result; A display unit is used to display the first CAD drawing, the second CAD drawing and the association table.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6 when executed.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.

Citation Information

Patent Citations

  • Three-dimensional house type graph generation method and device, equipment and storage medium

    CN110163956A

  • Heterogeneous engineering file display processing device

    CN113722781A