Method, device, electronic equipment and medium for outputting three-dimensional model into two-dimensional drawing
By obtaining and processing drawing scene viewport parameters and annotation style parameters in the SketchUp platform, the accuracy problem of outputting 3D models into 2D drawings is solved, achieving the completeness and accuracy of design work completed in the SketchUp platform, and reducing design costs. Difficulty and cost of the job.
Patent Information
- Application Number
- CN202210414798.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-04-20
AI Technical Summary
The existing SketchUp platform cannot directly output 3D models into accurate 2D drawings, causing designers to encounter inaccuracies when marking logo dimensions, and cannot fully represent the line type and pattern filling information required by architectural design specifications, which increases It is difficult to design and leads to information loss and inaccurate expression of specifications and dimensions.
By implementing the method of outputting 3D models into 2D drawings on the SketchUp platform, the drawing scene viewport parameters and annotation style parameters input by the user are obtained, the annotation style parameters are modified according to the conversion instructions, the drawing range of the 2D drawings is determined, and according to the drawing scene Viewport parameters and scene quantities generate target 2D drawings to ensure the completeness and accuracy of information.
It is possible to independently complete the design work from 3D modeling to 2D drawing output on the SketchUp platform, ensuring the integrity of the BIM information model and the accuracy of the design plan, reducing the designer's work difficulty and cost, and improving work efficiency.
Smart Images

Figure CN114781028B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of architectural design tools, and in particular to a method, device, electronic equipment and medium for outputting a three-dimensional model into a two-dimensional drawing. Background Art
[0002] Building Information Modeling (BIM) is a new technology in architecture, engineering and civil engineering. It describes computer-aided design that is mainly based on three-dimensional graphics, object-oriented, and related to architecture. It can be used not only in design, but also in the entire life cycle of construction projects; designing with BIM is digital design. BIM models can not only draw conventional architectural design drawings and drawings for component processing, but also visualize, coordinate, simulate, and optimize buildings, and issue various professional drawings and in-depth drawings to make engineering expressions more detailed.
[0003] However, the existing SketchUp 3D modeling platform can only complete 3D modeling work, and does not have the function of outputting 3D models into 2D drawings. If this work needs to be completed, it is necessary to use other platforms, such as Layout. When using Layout to complete the output of 2D drawings and perform design work such as text information and logo dimensioning, the 2D drawings generated by Layout are presented in the form of images. During the logo dimensioning process, the output image pixels are too low, so the key points cannot be accurately captured, resulting in inaccurate logo dimensions, and Layout cannot read the architectural information carried by the 3D model. Therefore, cross-platform operations not only increase the difficulty of designers' work, but also cause the loss of 3D model information and inaccurate expression of specifications and dimensions, and the line type and pattern fill information in the 2D construction drawings cannot be fully expressed in accordance with the requirements of relevant architectural design specifications.
[0004] Therefore, how to solve the above problems is an issue that needs to be solved urgently. Summary of the invention
[0005] The object of the present invention is to provide a method, device, electronic device and medium for outputting a three-dimensional model into a two-dimensional drawing, which can improve the above-mentioned problem.
[0006] In a first aspect, the present application provides a method for outputting a three-dimensional model into a two-dimensional drawing, the method being applied to a SketchUp platform, the method comprising: obtaining drawing scene viewport parameters and the number of scenes of the drawing scene input by a user, the drawing scene being a scene created by a user in a three-dimensional model created based on the SketchUp platform; obtaining annotation style parameters input by the user based on the drawing scene; mapping the architectural information carried by the three-dimensional model to the drawing scene with the annotation style parameters set by the user; obtaining a conversion instruction; modifying the mapping position of the annotation style parameters on the two-dimensional drawing according to the conversion instruction, and determining the output range of the two-dimensional drawing; arranging the drawing scenes within the output range according to the drawing scene viewport parameters and the number of scenes, and generating a target two-dimensional drawing.
[0007] It can be understood that the present application obtains the drawing scene viewport parameters and the number of scenes of the drawing scene input by the user; obtains the annotation style parameters input by the user based on the drawing scene; maps the architectural information carried by the three-dimensional model to the drawing scene with the annotation style parameters set by the user; obtains the conversion instruction; modifies the mapping position of the annotation style parameters on the two-dimensional drawing according to the conversion instruction, determines the output range of the two-dimensional drawing; arranges the drawing scenes within the output range according to the drawing scene viewport parameters and the number of scenes, and finally directly converts the three-dimensional model into the target two-dimensional drawing. Thus, all design work from three-dimensional modeling to output of two-dimensional drawings can be completed independently on the SketchUp platform, ensuring the integrity of the BIM information model and the accuracy of the design scheme.
[0008] In a possible embodiment, the step of arranging the drawing scenes within the drawing output range according to the drawing scene viewport parameters and the number of scenes to generate a target two-dimensional drawing includes: determining a scaling ratio of each of the drawing scenes according to the drawing scene viewport parameters and the number of scenes; arranging a plurality of the drawing scenes within the drawing output range according to the scaling ratio of each of the drawing scenes to generate a target drawing; and outputting the target drawing as a target two-dimensional drawing.
[0009] It can be understood that by determining the scaling ratio of each drawing scene according to the drawing scene viewport parameters and the number of scenes; arranging multiple drawing scenes within the output range according to the scaling ratio of each drawing scene, generating a target two-dimensional drawing, thereby realizing rapid drawing typesetting.
[0010] In a possible embodiment, the annotation style parameters include: text annotation parameters, dimension annotation parameters, frame parameters and / or index annotation parameters.
[0011] In a possible embodiment, obtaining the annotation style parameters input by the user based on the drawing scene includes: obtaining a drawing design instruction for the drawing scene; popping up a drawing preset interface according to the drawing design instruction; obtaining multiple parameters of the text annotation parameters, the dimension annotation parameters, the drawing frame parameters and / or the index annotation parameters input by the user based on the drawing preset interface.
[0012] It can be understood that by obtaining the drawing design instructions for the drawing scene; popping up the drawing preset interface according to the drawing design instructions; obtaining the text annotation parameters, the dimension annotation parameters, the frame parameters and / or the index annotation parameters input by the user based on the drawing preset interface, so that the designer can customize the parameters in the drawing preset interface, and the customized parameters will be saved in a certain data format. When the user uses the annotation function, the corresponding data will be called, and then the annotation style set by the user will be generated according to the called data. At the same time, the saved data also supports sharing between different design collaboration teams to reduce designers repeating the same work. And by configuring the frame parameters, the Layout file can be directly identified to achieve the purpose of one-click preset.
[0013] In a possible embodiment, modifying the mapping position of the annotation style parameters on the two-dimensional drawing according to the conversion instruction to determine the output range of the two-dimensional drawing includes: determining the frame of the two-dimensional drawing according to the drawing scene viewport parameters; performing two equal-distance outward offsets according to the size of the frame to obtain two sets of reference lines that automatically align the annotation information; when mapping the annotation style parameters annotated in the three-dimensional model to the two-dimensional drawing according to the conversion instruction, modifying the two-dimensional mapping position of the annotation style parameters so that they are automatically aligned to the range defined by the two sets of reference lines to obtain the output range of the two-dimensional drawing.
[0014] In a possible embodiment, the drawing scene includes a first drawing scene and a second drawing scene, and obtaining the annotation style parameters input by the user based on the drawing scene includes: obtaining the first annotation style parameters input by the user based on the first drawing scene; obtaining a parameter synchronization copy instruction; and copying the first annotation style parameters to the second drawing scene based on the parameter synchronization copy instruction.
[0015] It can be understood that by obtaining the first annotation style parameters input by the user based on the first drawing scene; obtaining the parameter synchronization copy instruction; and copying the first annotation style parameters to the second drawing scene based on the parameter synchronization copy instruction, when the user performs dimension annotation in the first drawing scene, when the user needs to continue to perform the same dimension mark in the second drawing scene, the user does not need to re-perform the annotation operation, but only needs to synchronize the dimension annotation completed in the first drawing scene to the second drawing scene through the copy and synchronization function, thereby effectively reducing the workload of the designer (or user) and improving work efficiency.
[0016] In a possible embodiment, the copying of the first annotation style parameters to the second drawing scene based on the parameter synchronization copy instruction includes: obtaining the three-dimensional coordinates of a reference point according to the parameter synchronization copy instruction; synchronizing the first annotation style parameters to the second drawing scene based on the coordinates of the reference point as a base point; wherein the synchronized dimension annotation parameters will adapt their proportions according to the viewport size of the second drawing scene.
[0017] In a possible embodiment, the method further includes:
[0018] Acquire a section plane operation instruction input by a user, wherein the section plane operation instruction is used to add a section plane on the target two-dimensional drawing;
[0019] Acquire a vertical view of the three-dimensional model according to the section operation instruction;
[0020] Converting the acquired elevation view into a two-dimensional plane scene;
[0021] The converted two-dimensional plane scene and the added cutting plane are associated with each other.
[0022] In a possible embodiment, the method further includes:
[0023] Automatically numbering the section planes and generating elevation view index drawing numbers of the drawings;
[0024] The elevation view index drawing number is mapped to a preset area of the drawing frame.
[0025] In a second aspect, the present application provides a device for outputting a three-dimensional model as a two-dimensional drawing, and the device for outputting a three-dimensional model as a two-dimensional drawing is applied to a SketchUp platform, and the device for outputting a three-dimensional model as a two-dimensional drawing includes: a drawing scene configuration unit, used to obtain drawing scene viewport parameters and the number of scenes of the drawing scene input by a user, wherein the drawing scene is a scene created by a user in a three-dimensional model created based on the SketchUp platform; a drawing output preset unit, used to obtain annotation style parameters input by the user based on the drawing scene; an annotation unit, used to map the architectural information carried by the three-dimensional model to the drawing scene with the annotation style parameters set by the user; an instruction acquisition unit, used to obtain a conversion instruction; a first two-dimensional drawing generation unit, used to modify the mapping position of the annotation style parameters on the two-dimensional drawing according to the conversion instruction to obtain an initial two-dimensional drawing; and a second two-dimensional drawing generation unit, used to arrange the drawing scenes within the drawing output range according to the drawing scene viewport parameters and the number of scenes to generate a target two-dimensional drawing.
[0026] In a third aspect, the present application provides an electronic device, comprising: a memory for storing executable instructions; and a processor for executing the executable instructions stored in the memory to implement the method of outputting a three-dimensional model into a two-dimensional drawing as described in one of the first aspects.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processing device, the method of outputting a three-dimensional model into a two-dimensional drawing as described in any one of the first aspects is executed.
[0028] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, optional embodiments are given below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0030] Figure 1 A schematic diagram of the structure of an electronic device provided in the first embodiment of the present application;
[0031] Figure 2 A flowchart of a method for outputting a three-dimensional model into a two-dimensional drawing provided in the second embodiment of the present application;
[0032] Figure 3 for Figure 2 A schematic diagram of the interface operation of a drawing output preset interface in a method of outputting a three-dimensional model into a two-dimensional drawing is shown;
[0033] Figure 4 for Figure 2 A schematic diagram of drawing range alignment of a two-dimensional drawing in a method of outputting a three-dimensional model into a two-dimensional drawing is shown;
[0034] Figure 5 for Figure 2 A schematic diagram of arrangement of drawing scenes on a two-dimensional drawing in a method of outputting a three-dimensional model into a two-dimensional drawing is shown;
[0035] Figure 6 A schematic diagram of the functional modules of a device for outputting a three-dimensional model as a two-dimensional drawing provided in the third embodiment of the present application. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] First embodiment
[0038] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, which can be used in the present application Figure 1 The schematic diagram shown is used to describe an electronic device 100 as an example of a method and apparatus for implementing an embodiment of the present application to output a three-dimensional model into a two-dimensional drawing.
[0039] like Figure 1 The electronic device 100 includes one or more processors 102 and one or more storage devices 104. These components are interconnected via a bus system and / or other forms of connection mechanisms (not shown). It should be noted that Figure 1 The components and structures of the electronic device 100 shown are only exemplary and not restrictive. The electronic device may have Figure 1 Some of the components shown may also have Figure 1 Other components and structures are not shown.
[0040] The processor 102 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.
[0041] It should be understood that the processor 102 in the embodiment of the present application may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0042] The storage device 104 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media.
[0043] It should be understood that the storage device 104 in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0044] Among them, one or more computer program instructions can be stored on the computer-readable storage medium, and the processor 102 can execute the program instructions to implement the client functions (implemented by the processor) in the embodiments of the present application described below and / or other desired functions. Various applications and various data, such as various data used and / or generated by the application, can also be stored in the computer-readable storage medium.
[0045] Second embodiment:
[0046] Reference Figure 2 The flowchart of a method for outputting a three-dimensional model into a two-dimensional drawing is shown. The method for outputting a three-dimensional model into a two-dimensional drawing is applied to the SketchUp platform. The method for outputting a three-dimensional model into a two-dimensional drawing specifically includes the following steps:
[0047] Step S201, obtaining drawing scene viewport parameters and the number of scenes of the drawing scene input by the user.
[0048] The drawing scene is a scene created by a user in a three-dimensional model created based on the SketchUp platform.
[0049] Optionally, the number of scenes can be multiple or one, and is not specifically limited here.
[0050] Among them, the drawing scene viewport parameter is used to characterize the size of the drawing scene viewport. For example, the viewport size of drawing scene 1 is 950mm×2260mm, the viewport size of drawing scene 2 is 4830mm×6780mm, the viewport size of drawing scene 3 is 1830mm×2310mm, and the viewport size of drawing scene 4 is 2700mm×3080mm.
[0051] It should be understood that the above is only an example and not a limitation.
[0052] It should be noted that the above-mentioned user input is not limited to simple data input by the user through an input device, but can also be a series of settings made by the user on the three-dimensional model on the SketchUp platform.
[0053] Step S202, obtaining annotation style parameters input by the user based on the drawing scene.
[0054] The annotation style parameters include: text annotation parameters, dimension annotation parameters, frame parameters and / or index annotation parameters.
[0055] It should be noted that dimensioning is used to continuously mark the space area that needs to be marked. The user only needs to continuously select the reference points to be marked, and the distance between different reference points will be automatically calculated and recorded. As for text information, it will automatically identify the building information that the model needs to carry, such as building materials, pipeline specifications, equipment names, installation heights, etc., based on the 3D model that the user needs to mark.
[0056] As an implementation mode, step S201 includes: obtaining a drawing design instruction for the drawing scene; popping up a drawing preset interface according to the drawing design instruction; obtaining multiple parameters including the text annotation parameters, the dimension annotation parameters, the frame parameters and / or the index annotation parameters input by the user based on the drawing preset interface.
[0057] For example, if Figure 3 As shown, the user clicks on the drawing scene (such as single-clicking or right-clicking) to generate a drawing design instruction to display the drawing scene. Figure 3 In the operation interface shown, the user can enter text annotation parameters (i.e., text style presets in the drawing), dimension annotation parameters (i.e., dimension annotation presets), frame parameters (i.e., frame presets) and / or multiple parameters in the index annotation parameters in the drawing preset interface. When the user clicks the OK button displayed on the drawing preset interface, the input of the annotation style parameters is completed.
[0058] In a possible embodiment, the drawing scene includes a first drawing scene and a second drawing scene, and obtaining the annotation style parameters input by the user based on the drawing scene includes: obtaining the first annotation style parameters input by the user based on the first drawing scene; obtaining a parameter synchronization copy instruction; and copying the first annotation style parameters to the second drawing scene based on the parameter synchronization copy instruction.
[0059] Optionally, copying the first annotation style parameters to the second drawing scene based on the parameter synchronization copy instruction includes: obtaining the three-dimensional coordinates of a reference point according to the parameter synchronization copy instruction; synchronizing the first annotation style parameters to the second drawing scene based on the coordinates of the reference point as a base point; wherein the synchronized dimension annotation parameters will adapt their proportions according to the viewport size of the second drawing scene.
[0060] For example, suppose the user first makes dimension annotations in drawing scene 1. When the user needs to continue to make the same dimension mark in drawing scene 2, the user does not need to re-annotate, but only needs to synchronize the dimension annotations completed in drawing scene 1 to drawing scene 2 through the copy and synchronize function. The copy and synchronize function will record all the annotation information of the current scene. When the user activates the copy and synchronize function and selects the scene to be synchronized, the 3D coordinates of a reference point will be recorded, and then synchronized to the selected scene based on the coordinates of the reference point. At the same time, the synchronized dimension annotations will adapt to the scale according to the viewport size of the current scene.
[0061] Step S203: Mapping the building information carried by the three-dimensional model to the drawing scene according to the annotation style parameters set by the user.
[0062] It should be noted that after the user completes the annotation, a batch of dimension annotation information will be automatically generated, and the annotation lines and dimension values will be mapped to the three-dimensional scene; as for text information, it will be mapped in the three-dimensional scene in the style of text, helping users to quickly complete the corresponding building information annotation during the annotation process.
[0063] Furthermore, the setting of annotation style parameters can be completed in both two-dimensional scenes and three-dimensional scenes.
[0064] Optionally, mapping the architectural information carried by the three-dimensional model to the drawing scene with the annotation style parameters set by the user includes: mapping the architectural information carried by the three-dimensional model to the drawing scene with the text annotation parameters and dimension annotation parameters set by the user.
[0065] Step S204, obtaining a conversion instruction.
[0066] The conversion command is used to convert (or output) a three-dimensional model into a two-dimensional drawing.
[0067] As an implementation mode, the user may generate a conversion instruction by clicking or inputting an instruction on the operation interface.
[0068] Step S205: modifying the mapping position of the annotation style parameters on the two-dimensional drawing according to the conversion instruction, and determining the output range of the two-dimensional drawing.
[0069] As an implementation mode, step S205 includes: determining a drawing frame of a two-dimensional drawing according to the drawing scene viewport parameters; performing two equal-distance outward offsets according to the size of the drawing frame to obtain two sets of reference lines for automatically aligning the annotation information; when mapping the annotation style parameters annotated in the three-dimensional model to the two-dimensional drawing according to the conversion instruction, modifying the position of the two-dimensional mapping of the annotation style parameters so that it is automatically aligned to the range defined by the two sets of reference lines, thereby obtaining the output range of the two-dimensional drawing.
[0070] Among them, the drawing scene viewport parameters are set by the user.
[0071] For example, if Figure 4 As shown, assuming that the drawing frame is A3. When determining the range of the 2D drawing according to the viewport size of the drawing scene (i.e. the viewport parameters of the drawing scene), this range can be regarded as a rectangle, and then two equal-distance offsets are performed outward according to the size of the rectangle, so that two sets of reference lines that automatically align the annotation information can be obtained. When the information annotated in the 3D model is mapped to the 2D drawing, all the annotation information will be retrieved to determine the highest and lowest points of the annotation information, and then the position of the 2D mapping of the annotation information will be modified to automatically align it to the range defined by the reference lines in the four directions of up, down, left, and right, and finally obtain Figure 4 Drawing range shown.
[0072] Step S206, arranging the drawing scenes within the drawing output range according to the drawing scene viewport parameters and the number of scenes, and generating a target two-dimensional drawing.
[0073] As an implementation mode, step S206 includes: determining the scaling ratio of each of the drawing scenes according to the drawing scene viewport parameters and the number of scenes; arranging the plurality of drawing scenes within the output range according to the scaling ratio of each of the drawing scenes to generate a target drawing; and outputting the target drawing as a target two-dimensional drawing.
[0074] For example, if Figure 5As shown, it is assumed that the number of scenes is 4, that is, the drawing scenes include drawing scene 1, drawing scene 2, drawing scene 3 and drawing scene 4. Assume that the drawing scene viewport parameters of drawing scene 1 are 950mm×2260mm, the drawing scene viewport parameters of drawing scene 2 are 4830mm×6780mm, the drawing scene viewport parameters of drawing scene 3 are 1830mm×2310mm, and the drawing scene viewport parameters of drawing scene 4 are 2700mm×3080mm. At this time, after determining the drawing layout space size (that is, when the drawing frame parameter is A3 drawing frame) and the viewport size of each drawing scene, the required viewport ratio will be automatically adjusted according to the viewport size of the corresponding scene on the drawing and the actual size of the viewport in the model scene, and reasonably arranged within the output range of the A3 drawing frame to complete the arrangement of the drawing scenes and form the target drawing. Finally, the target drawing is output as a two-dimensional drawing to obtain the target two-dimensional drawing.
[0075] Optionally, when scaling the viewport, it will be prioritized to scale according to the drawing scale commonly used by designers when drawing architectural plans, elevations, and node details, such as 1:10 / 1:30 / 1:100 and other integer multiples of scaling.
[0076] As an implementation method, commonly used drawing scales may be stored in a pre-processed manner, and when a user (or designer) uses the drawing, the commonly used drawing scales of the corresponding user may be obtained by logging into an account.
[0077] It should be understood that the above is only an example and not a limitation.
[0078] In a possible embodiment, after step S206, the method further includes: automatically generating a drawing catalog according to the order in which the target two-dimensional drawings are output, wherein the drawing catalog is displayed in thumbnail mode.
[0079] In a possible embodiment, after step S206, the method further includes: numbering the target two-dimensional drawing.
[0080] For example, conditional matching is performed according to pre-set numbering rules to achieve flexible numbering effects, or the target two-dimensional drawings are numbered according to the numbering rules set by the designer.
[0081] In a possible embodiment, the method further includes: recording process information of a target two-dimensional drawing generation process.
[0082] The process information includes information such as designer, operation, time and date, and drawing version, so as to facilitate the understanding of the operation status of all target 2D drawing files.
[0083] In a possible embodiment, the method further includes: sending the target two-dimensional drawing to a design collaboration platform.
[0084] It is understandable that by sending the target two-dimensional drawing to the design collaboration platform, the target two-dimensional drawing can be shared. After the drawing is shared to the design collaboration platform, all members of the project team can view and apply for the permission to edit the drawing, so that the collaborative project members can complete the drawing design work together and improve the design work efficiency.
[0085] That is to say, after generating the target two-dimensional drawings, users can manage the drawings in an information-based manner, automatically generate drawing catalogs, number drawings, manage drawing versions, and share drawings, thereby improving design work efficiency while facilitating user management.
[0086] In the embodiment of the method of the present application, by obtaining the drawing scene viewport parameters input by the user and the number of scenes of the drawing scene; obtaining the annotation style parameters input by the user based on the drawing scene; mapping the architectural information carried by the three-dimensional model to the drawing scene with the annotation style parameters set by the user; obtaining the conversion instruction; modifying the mapping position of the annotation style parameters on the two-dimensional drawing according to the conversion instruction, determining the output range of the two-dimensional drawing; arranging the drawing scenes within the output range according to the drawing scene viewport parameters and the number of scenes, and finally directly converting the three-dimensional model into the target two-dimensional drawing. Thus, all design work from three-dimensional modeling to outputting two-dimensional drawings can be completed independently on the SketchUp platform, ensuring the integrity of the BIM information model and the accuracy of the design scheme. On the other hand, the present application breaks through the limitations of the Layout platform, so that the work of outputting the BIM three-dimensional model into a two-dimensional drawing can be completed independently on the SketchUp platform, so that the user (or designer) can quickly complete the process from scheme design to construction drawing design, ensuring the synchronization of building information while achieving the final design effect, greatly reducing the cost of engineering design and accelerating the construction cycle.
[0087] In a possible embodiment, the method further includes:
[0088] Acquire a section plane operation instruction input by a user, wherein the section plane operation instruction is used to add a section plane on the target two-dimensional drawing;
[0089] Acquire a vertical view of the three-dimensional model according to the section operation instruction;
[0090] Converting the acquired elevation view into a two-dimensional plane scene;
[0091] The converted two-dimensional plane scene and the added cutting plane are associated with each other.
[0092] In a possible embodiment, the method further includes:
[0093] Automatically numbering the section planes and generating elevation view index drawing numbers of the drawings;
[0094] The elevation view index drawing number is mapped to a preset area of the drawing frame.
[0095] That is to say, after the user creates a 2D plane scene through a 3D model, he can also add a section plane to the already created 2D plane scene, and then automatically obtain the elevation view in the 3D model according to the direction of the section plane, and convert the obtained elevation view into a 2D plane scene. The converted 2D plane scene and the added section plane are related to each other, and you can quickly jump to the corresponding 2D plane scene by selecting different section planes. At the same time, in the process of adding section planes, the section planes can be automatically numbered, and the elevation view index drawing number of the drawing can be generated according to the design specifications. In the process of generating the drawing, the elevation view index drawing number is mapped to the area specified by the drawing frame.
[0096] For example, if a user creates a top view scene of a three-dimensional model, the user can add up, down, left, right or other non-positive sections to the created top view scene, and then automatically obtain the elevation view of the three-dimensional model corresponding to the top view scene according to the direction of the sections.
[0097] It should be understood that the above is only an example and not a limitation.
[0098] Third embodiment:
[0099] See also Figure 6 A device for outputting a three-dimensional model as a two-dimensional drawing is shown. The device 500 for outputting a three-dimensional model as a two-dimensional drawing is applied to the SketchUp platform. The device 500 for outputting a three-dimensional model as a two-dimensional drawing includes: a drawing scene configuration unit 510, a drawing preset unit 520, a marking unit 530, an instruction acquisition unit 540, a first two-dimensional drawing generation unit 550 and a second two-dimensional drawing generation unit 560.
[0100] The drawing scene configuration unit 510 is used to obtain the drawing scene viewport parameters and the number of scenes of the drawing scene input by the user, wherein the drawing scene is a scene created by the user in the three-dimensional model created based on the SketchUp platform;
[0101] The output preset unit 520 is used to obtain the annotation style parameters input by the user based on the drawing scene;
[0102] A marking unit 530, configured to map the building information carried by the three-dimensional model to the drawing scene using the marking style parameters set by the user;
[0103] An instruction acquisition unit 540, used to acquire a conversion instruction;
[0104] A first two-dimensional drawing generation unit 550 is used to modify the mapping position of the annotation style parameter on the two-dimensional drawing according to the conversion instruction, and determine the output range of the two-dimensional drawing;
[0105] The second two-dimensional drawing generation unit 560 is used to arrange the drawing scenes within the drawing output range according to the drawing scene viewport parameters and the number of scenes to generate a target two-dimensional drawing.
[0106] It should be noted that the specific functions of the device 500 for outputting a three-dimensional model into a two-dimensional drawing can refer to the description of the above method embodiment, and will not be repeated here.
[0107] Furthermore, this embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processing device, the steps of any method of outputting a three-dimensional model into a two-dimensional drawing provided in the above embodiments are executed.
[0108] The computer program product of a method and device for outputting a three-dimensional model as a two-dimensional drawing provided in the embodiments of the present application includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0109] It should be noted that the above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0110] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0111] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0112] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0113] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0114] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0115] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as 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 devices or units, which can be electrical, mechanical or other forms.
[0116] 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.
[0117] 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.
[0118] The above description is only an optional embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for outputting a three-dimensional model into a two-dimensional drawing. It is characterized in that The method is applied to the SketchUp platform, and the method comprises: Acquire the drawing scene viewport parameters and the number of scenes of the drawing scene input by the user, wherein the drawing scene is a scene created by the user in the three-dimensional model created based on the SketchUp platform; Obtaining annotation style parameters input by the user based on the drawing scene; Mapping the building information carried by the three-dimensional model to the drawing scene according to the annotation style parameters set by the user; Get conversion instructions; Modifying the mapping position of the annotation style parameter on the two-dimensional drawing according to the conversion instruction, and determining the output range of the two-dimensional drawing; Arrange the drawing scenes within the drawing output range according to the drawing scene viewport parameters and the number of scenes to generate a target two-dimensional drawing; The annotation style parameters include: multiple parameters of text annotation parameters, dimension annotation parameters, frame parameters and index annotation parameters; the obtaining of the annotation style parameters input by the user based on the drawing scene includes: Obtaining a design instruction for the drawing scene; Pop up a preset drawing interface according to the drawing design instruction; Acquire multiple parameters of the text annotation parameters, the dimension annotation parameters, the frame parameters and the index annotation parameters input by the user based on the output preset interface.
2. The method according to claim 1, It is characterized in that The step of arranging the drawing scenes within the drawing output range according to the drawing scene viewport parameters and the number of scenes to generate a target two-dimensional drawing includes: Determining a scaling ratio of each of the drawing scenes according to the drawing scene viewport parameters and the number of scenes; Arranging the plurality of drawing scenes within the drawing output range according to the scaling ratio of each drawing scene to generate a target drawing; The target drawing is output as a target two-dimensional drawing.
3. The method according to claim 1, It is characterized in that The step of modifying the mapping position of the annotation style parameter on the two-dimensional drawing according to the conversion instruction and determining the output range of the two-dimensional drawing includes: Determine the drawing frame of the two-dimensional drawing according to the drawing scene viewport parameters; Performing two equal-distance outward offsets according to the size of the drawing frame to obtain two sets of reference lines that automatically align the annotation information; When the annotation style parameters annotated in the three-dimensional model are mapped to the two-dimensional drawing according to the conversion instruction, the position of the two-dimensional mapping of the annotation style parameters is modified so that it is automatically aligned within the range defined by the two sets of reference lines to obtain the output range of the two-dimensional drawing.
4. The method according to claim 1, It is characterized in that The drawing scene includes a first drawing scene and a second drawing scene, and obtaining the annotation style parameters input by the user based on the drawing scene includes: Acquire a first annotation style parameter input by a user based on the first drawing scene; Get parameter synchronous replication instructions; The first annotation style parameters are copied to the second drawing scene based on the parameter synchronization copy instruction.
5. The method according to claim 4, It is characterized in that The step of copying the first annotation style parameter to the second drawing scene based on the parameter synchronous copy instruction includes: Acquire the three-dimensional coordinates of the reference point according to the parameter synchronous replication instruction; The first annotation style parameters are synchronized to the second drawing scene based on the three-dimensional coordinates of the reference point; wherein the synchronized dimension annotation parameters are adaptively scaled according to the viewport size of the second drawing scene.
6. The method according to claim 1, It is characterized in that The method further comprises: Acquire a section plane operation instruction input by a user, wherein the section plane operation instruction is used to add a section plane on the target two-dimensional drawing; Acquire a vertical view of the three-dimensional model according to the section operation instruction; Converting the acquired elevation view into a two-dimensional plane scene; The converted two-dimensional plane scene and the added cutting plane are associated with each other.
7. The method according to claim 6, It is characterized in that The method further comprises: Automatically numbering the section planes and generating elevation view index drawing numbers of the drawings; The elevation view index drawing number is mapped to a preset area of the drawing frame.
8. A device for outputting a three-dimensional model into a two-dimensional drawing, It is characterized in that The device for outputting a three-dimensional model into a two-dimensional drawing is applied to the SketchUp platform, and the device for outputting a three-dimensional model into a two-dimensional drawing includes: A drawing scene configuration unit, used to obtain drawing scene viewport parameters and the number of scenes of the drawing scene input by the user, wherein the drawing scene is a scene created by the user in a three-dimensional model created based on the SketchUp platform; A drawing output preset unit, used to obtain annotation style parameters input by a user based on the drawing scene; A marking unit, used for mapping the building information carried by the three-dimensional model to the drawing scene according to the marking style parameters set by the user; An instruction acquisition unit, used for acquiring a conversion instruction; A first two-dimensional drawing generation unit is used to modify the mapping position of the annotation style parameter on the two-dimensional drawing according to the conversion instruction, and determine the output range of the two-dimensional drawing; A second two-dimensional drawing generation unit is used to arrange the drawing scenes within the drawing output range according to the drawing scene viewport parameters and the number of scenes to generate a target two-dimensional drawing; The annotation style parameters include: a plurality of parameters in the text annotation parameters, dimension annotation parameters, frame parameters and index annotation parameters; the output preset unit is specifically used for: Obtaining a design instruction for the drawing scene; Pop up a preset drawing interface according to the drawing design instruction; Acquire multiple parameters of the text annotation parameters, the dimension annotation parameters, the frame parameters and the index annotation parameters input by the user based on the output preset interface.
9. An electronic device, It is characterized in that include: A memory for storing executable instructions; A processor is used to implement the method of outputting a three-dimensional model into a two-dimensional drawing as described in any one of claims 1 to 7 when executing the executable instructions stored in the memory.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processing device, the steps of the method for outputting a three-dimensional model into a two-dimensional drawing as described in any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Drawing design system and method, and electronic equipment
CN108170330A
A method and a device for generating two-dimensional construction drawings base on a three-dimensional model of a civil structure
CN109165401A
Processing method and system for converting three-dimensional model into two-dimensional model and storage medium
CN111488671A
Building component design method based on BIM, electronic equipment and storage medium
CN111651817A
Building model creation method and device and intelligent terminal
CN111833433A
