Construction drawing generation method and related device
By obtaining and processing drawing information in 3D design tools, the plan, elevation and countertop drawings of the cabinet are generated, and the problems of low drawing efficiency and error-prone in the existing technology are solved, and efficient construction drawing generation is achieved, suitable for home decoration platforms. interior design.
Patent Information
- Application Number
- CN202210001443.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-04
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-01-04
AI Technical Summary
Existing 3D design tools cannot effectively generate floor plans, elevation plans and countertops of cabinet models, resulting in low drawing efficiency and error-proneness, affecting construction and production.
By obtaining drawing information in the 3D design tool, loading layer information, building a spatial coordinate system, determining the edge point coordinates of buildings and cabinets, generating floor plans, elevation plans and countertops based on this information, and converting them into CAD drawings Files, sent to 3D design tools for export.
It improves the accuracy and efficiency of drawing, ensures that the cabinet model can be accurately applied to construction and production, and meets the interior design needs of the home decoration platform.
Smart Images

Figure CN114297762B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and more particularly to a method for generating construction drawings and related devices. Background Art
[0002] With the development of computer technology, 3D design tools are increasingly used in the interior design industry, and cabinet design is an indispensable part of interior design. The cabinet model after design needs to be applied to actual production and life, and the 3D designed cabinet model needs to be able to generate CAD drawings for later construction and production.
[0003] Existing 3D design tools are designed for freely constructed and designed cabinet models, and cannot generate the floor plans, elevations, countertops, etc. into CAD drawings. The output and dimensioning of floor plans, elevations, and countertops require manual drawing by draftsmen, resulting in low drawing efficiency and prone to errors. The cabinet models cannot be directly applied to construction production, which brings certain inconveniences to the actual construction process. Summary of the invention
[0004] The purpose of this application is to provide a construction drawing generation method and related devices, aiming to solve the technical problems of low efficiency and easy errors in cabinet model drawing in the prior art.
[0005] The first aspect of the present application provides a method for generating construction drawings, comprising:
[0006] Acquire drawing information in a 3D design tool, wherein the drawing information includes a building and a cabinet;
[0007] Loading the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each layer information;
[0008] Constructing a spatial coordinate system, and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system;
[0009] Based on the layer information and the spatial coordinates, drawing the plan view, elevation view and countertop view of the building and the cabinet, and generating a target CAD graphic file;
[0010] The target CAD graphic file is sent to the 3D design tool, and the target CAD graphic file is exported through an editor in the 3D design tool.
[0011] Optionally, the drawing information includes a plurality of sub-information, and the loading of the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each of the layer information includes:
[0012] Splitting the drawing information to obtain a plurality of layer information;
[0013] After the splitting is completed, a layer list of the layer information is obtained;
[0014] The sub-information in the drawing information is further determined according to the layer list.
[0015] Optionally, the sub-information may be one or more of a building or a cabinet.
[0016] Optionally, the constructing of a spatial coordinate system and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system includes:
[0017] Determine the building and the cabinet included in the layer information;
[0018] Determining the spatial positional relationship between the building and the cabinet based on the spatial coordinates of each edge point of the building and the cabinet;
[0019] Determine whether the spatial positions of the building and the cabinet are connected.
[0020] Optionally, if the spatial positions of the building and the cabinet are connected, the method further includes:
[0021] determining a connecting surface of the building and the cabinet;
[0022] Based on the spatial coordinate system, determining the coordinates of each edge point of the contact surface;
[0023] The plan views of the building and the cabinet, and the plan view of the adjoining surfaces are further outputted.
[0024] Optionally, the further outputting of the plan views of the building and the cabinet, and the plan view of the connecting surface, further includes:
[0025] If one face of the cabinet and one face of the building are in parallel position;
[0026] The positional relationship between the building and the cabinet in the plan view is determined according to the coordinates of the edge points of the building and the cabinet.
[0027] Optionally, if the spatial positions of the building and the cabinet are not connected, the method further includes:
[0028] Determine the spatial coordinates of each edge point of the cabinet's facade and countertop;
[0029] The elevation drawing and the countertop drawing of the building and the cabinet are further outputted.
[0030] A second aspect of the present application provides a construction drawing generation device, comprising:
[0031] An information acquisition unit, used to acquire drawing information in a 3D design tool, wherein the drawing information includes buildings and cabinets;
[0032] A layer loading unit, used for loading the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each layer information;
[0033] A coordinate construction unit, used for constructing a spatial coordinate system, and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system;
[0034] A graphics generating unit, for drawing a plan view, an elevation view and a countertop view of the building and the cabinet based on the layer information and the space coordinates, and generating a target CAD graphics file;
[0035] The graphics sending unit is used to send the target CAD graphics file to the 3D design tool, and export the target CAD graphics file through an editor in the 3D design tool.
[0036] A third aspect of the present application provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the construction drawing generation method as described above.
[0037] A fourth aspect of the present application provides a computer device, a storage medium storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the construction drawing generation method as described above.
[0038] The construction drawing generation method provided by the present application obtains drawing information in a 3D design tool, wherein the drawing information includes buildings and cabinets; loads the layers in the drawing information, obtains multiple layer information, and determines the drawing information corresponding to each layer information; constructs a spatial coordinate system, determines the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system; based on the layer information and the spatial coordinates, draws the plan view, elevation view and countertop view of the building and the cabinet, and generates a target CAD graphic file; sends the target CAD graphic file to the 3D design tool, and exports the target CAD graphic file through the editor in the 3D design tool, so as to quickly load the corresponding drawing information in each layer, and obtain the plan view, elevation view and countertop view of the cabinet, which is suitable for the interior design needs of the home improvement platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flowchart of an embodiment of the method for generating construction drawings of the present application;
[0040] Figure 2 It is a schematic diagram of an embodiment of the process of obtaining layer information of the method for generating construction drawings of the present application;
[0041] Figure 3 It is a flowchart of another embodiment of the method for generating construction drawings of the present application;
[0042] Figure 4 It is a flowchart of another embodiment of the method for generating construction drawings of the present application;
[0043] Figure 5 It is a schematic diagram of drawing information of an embodiment of the method for generating construction drawings of the present application;
[0044] Figure 6 It is a drawing information plan view of an embodiment of the method for generating construction drawings of the present application;
[0045] Figure 7 It is a drawing information elevation diagram of another embodiment of the method for generating construction drawings of the present application;
[0046] Figure 8 is a schematic diagram of the device structure provided in an embodiment of the present application;
[0047] Fig. 9 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application;
[0048] Fig.10 It is a schematic diagram of the structure of the server provided in the embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0051] As will be appreciated by those skilled in the art, the term "device" as used herein includes both wireless signal receiver devices, which are devices that only have a transmitting signal receiver without transmitting capability, and transmitting and receiving hardware devices, which are devices that have receiving and transmitting hardware capable of performing two-way communications over a two-way communications link. Such devices may include: cellular or other communications devices, which have a single line display or a multi-line display or a cellular or other communications device without a multi-line display; a PCS (Personal Communications Service), which may combine voice, data processing, fax and / or data communications capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, Internet / Intranet access, a web browser, a notepad, a calendar and / or a GPS (Global Positioning System) receiver; a conventional palmtop computer or other device, which has and / or includes a conventional laptop and / or palmtop computer or other device with and / or including a radio frequency receiver.
[0052] like Figure 1 The figure is a flow chart of an embodiment of a method for generating construction drawings.
[0053] In this embodiment, the construction drawing generation method includes:
[0054] S1000, obtaining drawing information in a 3D design tool, wherein the drawing information includes a building and a cabinet;
[0055] The construction drawings are first designed in a 3D design tool according to actual needs, wherein the 3D design tool is a professional drawing software, such as 3D Studio Max, Sketch Up, etc. The number of buildings and cabinets included in the drawing information is multiple, and their positional relationships can be designed and planned according to the actual needs of the user.
[0056] The building in this embodiment refers to information constituting the building, such as walls, floors, and ceilings, and is not limited here; the cabinets may include cabinets such as vertical cabinets and wall cabinets used for interior design.
[0057] S2000, loading the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each layer information;
[0058] The drawing information includes a plurality of layer information. After the layers in the drawing information are loaded, the layer information can be obtained, so that the drawing information corresponding to each layer information can be determined.
[0059] For example, each of the layer information may include the buildings and cabinets in one or more of the drawing information. After acquiring the layer information, the drawing information corresponding to the layer information may be selected, thereby further determining the drawing information to be generated.
[0060] S3000, constructing a spatial coordinate system, and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system;
[0061] The edge points in this embodiment are vertices of the edge positions of the building and the cabinet. After obtaining the corresponding drawing information in the layer information, a coordinate system is constructed, firstly determining the building and the cabinet contained in the drawing information, and further determining the edge points of the building and the cabinet and the spatial coordinates corresponding to the edge points.
[0062] S4000, based on the layer information and the space coordinates, draw the plan view, elevation view and countertop view of the building and the cabinet, and generate a target CAD graphic file;
[0063] In this embodiment, the spatial position relationship between the building and the cabinet is determined by acquiring the layer information and the spatial coordinate information corresponding to each edge point of the building and the cabinet. The spatial position relationship between the building and the cabinet includes parallel, vertical and connected situations.
[0064] According to the spatial positional relationship between the building and the cabinet, the plan view, elevation view and countertop view of the building and the cabinet are drawn, and a target CAD graphic file is generated.
[0065] S5000: Send the target CAD graphic file to the 3D design tool, and export the target CAD graphic file through an editor in the 3D design tool.
[0066] After obtaining the target CAD file, the target CAD graphic file is sent to the 3D design tool through a background service platform, and the target CAD graphic file is exported through an editor in the 3D design tool.
[0067] The construction drawing generation method provided in the embodiment of the present application obtains the layer information in the drawing information, determines the building and the cabinet contained in the drawing information, further determines the edge points of the building and the cabinet and the spatial coordinates corresponding to the edge points, determines the spatial position relationship between the building and the cabinet according to the spatial coordinate information corresponding to the edge points, draws the plan view, elevation view and countertop view of the building and the cabinet, and generates a target CAD graphic file. The method can accurately judge the spatial position relationship between the building and the cabinet, and further generate the plan view, elevation view and countertop view of the building and the cabinet, thereby ensuring the correctness of the acquired target CAD graphic file, improving the efficiency of drawing generation, and being suitable for the interior design needs of home improvement platforms.
[0068] like Figure 2 The figure shows a flow chart of an embodiment of layer information acquisition of the construction drawing generation method of the present application.
[0069] The drawing information includes a plurality of sub-information, and the loading of the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each of the layer information includes:
[0070] S2100, splitting the drawing information to obtain a plurality of layer information;
[0071] S2200, after the splitting is completed, a layer list of the layer information is obtained;
[0072] S2300. Further determine the sub-information in the drawing information according to the layer list.
[0073] The drawing information obtained in this embodiment includes multiple layers. First, the drawing information is split to obtain multiple layers of information.
[0074] After the splitting is completed, you can see the layer list in the layer information. Here you can select any layer in the layer list according to actual needs. By selecting the layer, you can see the drawing information corresponding to each layer information.
[0075] After the layer is selected, the sub-information in the drawing information can be determined according to the layer list. In this embodiment, the sub-information can be one or more of a building or a cabinet.
[0076] The embodiment of the present application obtains the layer information by splitting the drawing information, and further obtains a layer list of the layer information, and determines the sub-information in the drawing information according to the layer list, so as to quickly identify and select the target layer without further processing all the layers in the drawing information, thereby effectively simplifying the processing amount of the drawing information and improving the processing efficiency of the drawing information.
[0077] like Figure 3 and Figure 5 Shown is a flowchart of another embodiment of a method for generating construction drawings, and a schematic diagram of the drawing information.
[0078] The step of constructing a spatial coordinate system and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system includes:
[0079] S3100, determining the building and the cabinet included in the layer information;
[0080] S3200: Determine the spatial position relationship between the building and the cabinet based on the spatial coordinates of each edge point of the building and the cabinet;
[0081] S3300: Determine whether the spatial positions of the building and the cabinet are connected.
[0082] In this embodiment, the building and the cabinet contained in the layer information, such as the number and size of the cabinets, are first determined, and then the spatial position relationship between the building and the cabinet is determined based on the spatial coordinates of each edge point of the building and the cabinet, and it is further determined whether the spatial positions of the building and the cabinet are connected.
[0083] When judging whether the spatial positions of the building and the cabinet are connected, it is mainly to judge whether part of the structure of the cabinet is connected to the building. For example, the cabinet has a bottom surface, a vertical surface and a countertop, and not all positions of the cabinet are connected to the building. Some positions are parallel to the building.
[0084] If the spatial positions of the building and the cabinet are connected, the method further includes:
[0085] S3310, determining the interface between the building and the cabinet;
[0086] S3320, determining the coordinates of each edge point of the contact surface based on the spatial coordinate system;
[0087] S3330. Further output the plan views of the building and the cabinet, and the plan view of the connecting surfaces.
[0088] In this embodiment, after the connecting surface between the building and the cabinet is determined, the coordinates of each edge point of the connecting surface are determined based on the spatial coordinate system. The connecting surface is a plane where the building and the cabinet are in contact.
[0089] After the connecting surface is determined, the plan views of the building and the cabinet, as well as the plan view of the connecting surface, can be further outputted according to the coordinates of the edge points of the connecting surface.
[0090] The embodiment of the present application can accurately output the plan view of the connecting surfaces through the coordinates of each edge point of the connecting surfaces, thereby preventing errors from occurring during the drawing generation process and improving the accuracy of drawing generation.
[0091] In this embodiment, the further outputting of the plan views of the building and the cabinet, and the plan view of the connecting surface, further includes:
[0092] S3340: If one surface of the cabinet and one surface of the building are in parallel position;
[0093] S3350: Determine the positional relationship between the building and the cabinet in the plan view according to the coordinates of the edge points of the building and the cabinet.
[0094] The purpose of the embodiment of the present application is to further distinguish how to accurately output the plan view of the drawing information when one surface of the cabinet and one surface of the building are in parallel positions.
[0095] In this embodiment, further combined Figure 6 As shown, if one surface of the cabinet is parallel to one surface of the building, the countertop of the cabinet in this embodiment is parallel to the bottom surface of the building. Figure 5 and Figure 6 Marked in.
[0096] The countertop of the cabinet and the bottom surface of the building are in parallel positions, and the positional relationship between the building and the cabinet in the plan view is determined according to the coordinates of the edge points of the building and the cabinet, that is, by comparing the coordinates of the edge points of the countertop of the cabinet and the bottom surface of the building, the positional relationship between the countertop of the cabinet and the bottom surface of the building in the plan view can be further determined, so that the plan view including the building and the cabinet can be accurately output, wherein the plan view also includes a countertop view of the cabinet.
[0097] If the spatial positions of the building and the cabinet are not connected, the method further includes:
[0098] S3301, determining the spatial coordinates of each edge point of the facade and countertop of the cabinet;
[0099] S3302. Further output the elevation drawing and countertop drawing of the building and the cabinet.
[0100] In this embodiment, further combined Figure 7 As shown, Figure 7 The elevation of the cabinet has been marked. If the spatial positions of the building and the cabinet are not connected, where the non-connection means that a certain surface of the cabinet has no contact relationship with the contact object, then the plan of the non-connected part of the building and the cabinet can be directly output, and the plan includes the elevation and countertop drawings of the building and the cabinet.
[0101] The spatial positions of the building and the cabinet are not connected, and the spatial coordinates of the facade and the edge points of the countertop of the cabinet can be directly determined. According to the spatial coordinates of the facade and the edge points of the countertop of the cabinet, the facade drawings of the building and the cabinet can be output.
[0102] The construction drawing generation method provided in the embodiment of the present application is for the case where the spatial positions of the building and the cabinet are not connected. In this embodiment, the elevation drawings and countertop drawings of the building and the cabinet can be quickly output, effectively improving the efficiency of construction drawing generation.
[0103] like Figure 8 As shown, the present application also provides a construction drawing generation device, comprising:
[0104] The acquisition unit 1000 is used to acquire service information in the first frame and the second frame;
[0105] A first determining unit 2000 is configured to determine, in the service information, a second service of the second framework that needs to be migrated to the first framework;
[0106] The second determining unit 3000 is configured to determine, from the service information, a third service of the first framework that needs to be migrated to the second framework;
[0107] The registration unit 4000 is used to register the second service with the registration center in the first framework, and register the third service with the registration center in the second framework, so that the first framework can call the second service in the second framework, and the second framework can call the third service in the first framework.
[0108] Since the above-mentioned construction drawing generation device is a device that corresponds one-to-one to the construction drawing generation method, its implementation principle is the same as that of the construction drawing generation method, and will not be repeated here.
[0109] In this embodiment, please refer to Fig. 9, provides a basic structural block diagram of computer equipment.
[0110] The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected via a system bus. The non-volatile storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor may implement a method for generating construction drawings. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device may store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor may execute a method for generating construction drawings. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0111] The processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0112] The present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the construction drawing generation method described in any of the above embodiments.
[0113] The memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory is used to store at least one instruction, which is used to be executed by the processor to implement the construction drawing generation method provided in the method embodiment of the present application.
[0114] like Fig.10 The schematic diagram of the structure of a server provided in one embodiment of the present application is shown. The server is used to implement the construction drawing generation method provided in the above embodiment. Specifically:
[0115] The server includes a central processing unit (CPU), a system memory including a random access memory (RAM) and a read-only memory (ROM), and a system bus connecting the system memory and the central processing unit. The server also includes a basic input / output system (I / O system) that helps transfer information between various components in the computer, and a large-capacity storage device for storing an operating system, application programs, and other program modules.
[0116] The basic input / output system includes a display for displaying information and an input device such as a mouse and a keyboard for a user to input information. The display and the input device are connected to the central processing unit through an input / output controller connected to the system bus. The basic input / output system may also include an input / output controller for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus.
[0117] The mass storage device is connected to the central processing unit via a mass storage controller (not shown) connected to the system bus. The mass storage device and its associated computer readable medium provide non-volatile storage for the server. That is, the mass storage device may include a computer readable medium (not shown) such as a hard disk or a CD-ROM drive.
[0118] Without loss of generality, the computer readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid-state storage technologies, CD-ROM, DVD or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the above. The above-mentioned system memory and mass storage devices may be collectively referred to as memory.
[0119] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0120] The embodiments of the present invention are each process and / or box in the flowchart and / or block diagram of the method, terminal device (system) and computer program product according to the embodiments of the present invention, and the combination of the processes and / or boxes in the flowchart and / or block diagram. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the process in the process. Figure 1 A device that specifies the functions in a block or multiple blocks in a process or multiple processes and / or a block diagram.
[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified by one or more boxes.
[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0123] In addition, each functional device in each embodiment of the present invention may be integrated into the same data processing device, or each device may exist physically separately, or two or more devices may be integrated into the same device.
[0124] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other devices or steps, and the singular does not exclude the plural. Multiple devices or computer devices stated in the computer device claim can also be implemented by the same computer device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0125] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions or improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A method for generating construction drawings, characterized in that: include: Acquire drawing information in a 3D design tool, wherein the drawing information includes a building and a cabinet; Loading the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each layer information; Constructing a spatial coordinate system, and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system; Based on the layer information and the spatial coordinates, drawing the plan view, elevation view and countertop view of the building and the cabinet, and generating a target CAD graphic file; Sending the target CAD graphic file to the 3D design tool, and exporting the target CAD graphic file through an editor in the 3D design tool; The step of constructing a spatial coordinate system and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system includes: Determine the building and the cabinet included in the layer information; Determining the spatial positional relationship between the building and the cabinet based on the spatial coordinates of each edge point of the building and the cabinet; Determining whether the spatial positions of the building and the cabinet are connected; If the spatial positions of the building and the cabinet are connected, the method further includes: determining a connecting surface of the building and the cabinet; Based on the spatial coordinate system, determining the coordinates of each edge point of the contact surface; Further outputting the plan views of the building and the cabinet, and the plan view of the connecting surfaces; The further outputting of the plan views of the building and the cabinet, and the plan view of the connecting surface, further includes: If one face of the cabinet and one face of the building are in parallel position; then determining the positional relationship between the building and the cabinet in the plan view according to the coordinates of each edge point of the building and the cabinet; If the spatial positions of the building and the cabinet are not connected, the method further includes: Determine the spatial coordinates of each edge point of the cabinet's facade and countertop; The elevation drawing and the countertop drawing of the building and the cabinet are further outputted.
2. The method for generating construction drawings according to claim 1, characterized in that: The drawing information includes a plurality of sub-information, and the loading of the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each of the layer information includes: Splitting the drawing information to obtain a plurality of layer information; After the splitting is completed, a layer list of the layer information is obtained; The sub-information in the drawing information is further determined according to the layer list.
3. The method for generating construction drawings according to claim 2, characterized in that: The sub-information is one or more of buildings or cabinets.
4. A construction drawing generation device, characterized in that: include: An information acquisition unit, used to acquire drawing information in a 3D design tool, wherein the drawing information includes buildings and cabinets; A layer loading unit, used for loading the layers in the drawing information, obtaining a plurality of layer information, and determining the drawing information corresponding to each layer information; A coordinate construction unit, used for constructing a spatial coordinate system, and determining the spatial coordinates of each edge point of the building and the cabinet in the spatial coordinate system; The coordinate construction unit is specifically used for Determine the building and the cabinet included in the layer information; Determining the spatial positional relationship between the building and the cabinet based on the spatial coordinates of each edge point of the building and the cabinet; Determining whether the spatial positions of the building and the cabinet are connected; A graphics generating unit, for drawing a plan view, an elevation view and a countertop view of the building and the cabinet based on the layer information and the space coordinates, and generating a target CAD graphics file; The graphics generation unit is specifically used for: If the spatial positions of the building and the cabinet are connected, determining the connecting surface of the building and the cabinet; Based on the spatial coordinate system, determining the coordinates of each edge point of the contact surface; Further outputting the plan views of the building and the cabinet, and the plan view of the connecting surfaces; If one face of the cabinet and one face of the building are in parallel position; then determining the positional relationship between the building and the cabinet in the plan view according to the coordinates of each edge point of the building and the cabinet; If the spatial positions of the building and the cabinet are not connected, the method further includes: Determine the spatial coordinates of each edge point of the cabinet's facade and countertop; Further outputting elevation drawings and countertop drawings of the building and the cabinet; The graphics sending unit is used to send the target CAD graphics file to the 3D design tool, and export the target CAD graphics file through an editor in the 3D design tool.
5. A computer device, characterized in that: It includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the construction drawing generation method according to any one of claims 1 to 3.
6. A storage medium storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the construction drawing generation method as described in any one of claims 1 to 3.
