CN113094770A - Drawing generation method and device, computer equipment and storage medium - Google Patents
Drawing generation method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113094770A CN113094770A CN202110268047.6A CN202110268047A CN113094770A CN 113094770 A CN113094770 A CN 113094770A CN 202110268047 A CN202110268047 A CN 202110268047A CN 113094770 A CN113094770 A CN 113094770A
- Authority
- CN
- China
- Prior art keywords
- component
- model
- target
- initial
- dimensional
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/12—Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Optimization (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Human Computer Interaction (AREA)
- Pure & Applied Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The application relates to a drawing generation method, a drawing generation device, computer equipment and a storage medium. The method comprises the following steps: acquiring an initial three-dimensional model of a drawing to be generated; receiving a model range selection instruction, and determining a model range according to the model range selection instruction; reading component parameters of each component in the model range; and calling the component parameters to generate a target drawing. By adopting the method, the drawing quality can be improved, and the method is more intelligent.
Description
Technical Field
The present application relates to the technical field of computer aided design, and in particular, to a drawing generation method, apparatus, computer device, and storage medium.
Background
With the advent of the BIM technology in the building design industry, the more popular BIM software is Revit, which achieves a three-dimensional visualization effect of building design.
Conventionally, after a model is designed according to Revit at present, drawings need to be derived, but at present, CAD drawings are derived according to view effects according to the scheme for deriving drawings based on Revit, the quality of drawings is low, and a large amount of manual processing is needed subsequently, so that the intelligence level for deriving drawings based on Revit at present is low.
Disclosure of Invention
In view of the above, it is necessary to provide a drawing generation method, an apparatus, a computer device, and a storage medium capable of improving the quality of a drawing.
A drawing generation method, comprising:
acquiring an initial three-dimensional model of a drawing to be generated;
receiving a model range selection instruction, and determining a model range according to the model range selection instruction;
reading component parameters of each component in the model range;
and calling the component parameters to generate a target drawing.
In one embodiment, the invoking the component parameter to generate the target drawing includes:
acquiring a current projection surface corresponding to a current view;
generating a two-dimensional drawing according to the model range and the projection plane;
and annotating on the two-dimensional drawing according to the acquired component parameters to obtain a target drawing.
In one embodiment, the invoking the component parameter to generate the target drawing includes:
classifying the component according to the component parameter;
counting the number of components in each classification;
generating a unified parameter description for the components in each classification according to the component parameters;
and generating a component parameter table according to the parameter description and the quantity of the components.
In one embodiment, the initial three-dimensional model is generated by:
receiving a component type selection instruction, and calling a component parameter input interface according to the component type selection instruction;
receiving input component parameters through the component parameter input interface;
and selecting a corresponding basic template according to the type of the component, processing the basic model through the component parameters to obtain the component, and determining the position of the component according to the position information of the component parameters to generate an initial three-dimensional model.
In one embodiment, after the obtaining the initial three-dimensional model of the drawing to be generated, the method further includes:
acquiring a component to be processed in the initial three-dimensional model, and extracting initial model data corresponding to the component to be processed;
processing the initial model data to obtain entity information, and adding the generated entity information to the initial three-dimensional model to obtain a target three-dimensional model;
the calling the component parameters to generate the target drawing comprises the following steps:
acquiring entity information corresponding to the model range in the target three-dimensional model;
and displaying the component parameters and the entity information through a three-dimensional visualization effect.
In one embodiment, the method further comprises:
extracting target model data from the target three-dimensional model;
acquiring a calculation amount generation template;
and processing the target model data according to the calculated amount generation template to obtain the corresponding material calculated amount.
In one embodiment, the method further comprises:
receiving a selection instruction of a component, and extracting component parameters of the selected component according to the selection instruction of the component;
extracting associated information from the target three-dimensional model according to the component parameters;
and generating construction details according to the component parameters and the associated information, and displaying the construction details.
A drawing generation apparatus, the apparatus comprising:
the model acquisition module is used for acquiring an initial three-dimensional model of the drawing to be generated;
the model range determining module is used for receiving a model range selecting instruction and determining a model range according to the model range selecting instruction;
the component parameter reading module is used for reading the component parameters of each component in the model range;
and the drawing generation module is used for calling the component parameters to generate a target drawing.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method in any of the above embodiments when the processor executes the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method in any of the above-mentioned embodiments.
According to the drawing generation method, the drawing generation device, the computer equipment and the storage medium, after the initial three-dimensional model is obtained, the selected model range and the required components are filtered, and the drawing is generated according to parameters of each component in the initial three-dimensional model, so that the drawing quality is improved, and the intelligence level of drawing generation is improved.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a drawing generation method according to an embodiment;
FIG. 2 is a simplified diagram of a target drawing resulting from visualization of a graph in one embodiment;
FIG. 3 is a simplified diagram of a target drawing for parameterizing graphs in one embodiment;
FIG. 4 is a flow diagram of a manner in which an initial three-dimensional model may be generated in one embodiment;
FIG. 5 is a schematic diagram of a rebar computation generating template in one embodiment;
FIG. 6 is a block diagram showing the construction of a drawing generation apparatus according to an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In an embodiment, as shown in fig. 1, a drawing generation method is provided, and this embodiment is illustrated by applying the method to a terminal, and it is to be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and is implemented by interaction between the terminal and the server. In this embodiment, the method includes the steps of:
s102: and acquiring an initial three-dimensional model of the drawing to be generated.
Specifically, the initial three-dimensional model refers to a pre-established BIM model, such as a building model established in Revit, and the like, wherein the initial three-dimensional model may include at least one member, and each member includes a position, a size, a structure, constraints, and the like of the member.
The obtaining of the initial three-dimensional model of the drawing to be generated may be opening a file corresponding to the initial three-dimensional model in Revit, or directly creating the initial three-dimensional model in Revit.
S104: and receiving a model range selection instruction, and determining a model range according to the model range selection instruction.
Specifically, the model range selection instruction may be an instruction for a user to select a frame in the initial three-dimensional model by using a mouse or the like, and may be used to select some or all components in the initial three-dimensional model, where the user may select a model range in which a drawing needs to be generated as needed.
The model range refers to a range of the drawing to be generated, for example, an initial three-dimensional model in a selection box corresponding to the model range selection instruction is the model range.
In one embodiment, the terminal is provided with a plug-in developed secondarily through RevitAPI, and the plug-in can select a component corresponding to an initial three-dimensional model in a model range framed by a model range selection instruction and extract a corresponding component parameter after the terminal receives the model range selection instruction.
Specifically, in the above embodiment, in the step of selecting the model range, the components in the selected model range may be filtered (Filtering) according to the model range selection instruction input by the user through a pre-developed function, for example, the terminal acquires the selection frame corresponding to the model range selection instruction, and then determines the position of the selection frame in the initial three-dimensional model, so as to compare the coordinate range of the selection frame and the coordinates of the position of the component, so as to determine the component whose position is within the coordinate range, thereby completing the selection of the component. The coordinate comparison comprises the coordinate comparison of the position of the component, namely the position of a source point (Origin), and if the central position of the component is located in the coordinate range of the selection frame, the component is determined to be the selected component.
S106: component parameters of each component within the model are read.
Specifically, the terminal reads the components within the model, for example, reads the unique identification of the component, i.e., the component ID, and then obtains the corresponding component parameters according to the ID of the component.
The component parameters include the position, size, structure, and constraints of the component, and if the component requires a solid body, such as a rebar, the component parameters also include a textual description of the solid body. The establishment of a building block in Revit is reflected in the increase of overall data, namely building block parameters. For example, the origin coordinates (X, Y, Z) of the component, the dimensions of the component (length X width X height), the elevation at which the component is located, and so on.
S108: and calling the component parameters to generate a target drawing.
Specifically, after the terminal generates the initial three-dimensional model, each component parameter is obtained according to the selected model range, so that a drawing is generated according to the component parameters, and the drawing comprises a large amount of information, so that the quality of the drawing is improved.
In one embodiment, the manner of generating the drawing can include visualization drawing and parameterization drawing. The visualized drawing refers to that after a two-dimensional drawing is generated according to component parameters, the two-dimensional drawing is annotated according to the component parameters, such as a text annotation (TextNote), a Dimension annotation (Dimension), an independent mark (IndependentTag), an annotation symbol (annotation symbol), and the like. The parameterized drawing is classified and generalized according to the component parameters, and then the target drawing meeting the requirements is generated. Therefore, optionally, when the target drawing is generated, the terminal may determine whether to perform visualization drawing or parameterization drawing according to the drawing mode selected by the user, and then generate the target drawing according to the drawing logic corresponding to the corresponding drawing mode.
In one embodiment, it should be noted that the reading of the component parameters may be a function developed by Visual C #, that is, the Visual C # obtains data in the Revit model through RevitAPI, and then processes the read component parameters through Matlab, because the capability of processing data of the Visual C # is much smaller than that of Matlab, Matlab is used to sort the data, so that the efficiency of data obtaining and the efficiency of processing can be ensured. The step of processing the read component parameters by Matlab, that is, generating the target drawing, may specifically refer to the specific description of the visual chart and the parametric chart in the foregoing.
According to the drawing generation method, after the initial three-dimensional model is obtained, the selected model range and the required components are filtered, and the drawing is generated according to parameters of each component in the initial three-dimensional model, so that the drawing quality is improved, and the intelligent level of drawing generation is improved.
In one embodiment, invoking component parameters to generate a target drawing comprises: acquiring a current projection surface corresponding to a current view; generating a two-dimensional drawing according to the model range and the projection plane; and annotating on the two-dimensional drawing according to the acquired component parameters to obtain a target drawing.
Specifically, the current projection plane includes a plane, a vertical plane, or a cross section, specifically, a plane, a vertical plane, or a cross section corresponding to a viewing angle of a view currently displayed by Revit, that is, if a certain part in the model needs to be expressed, the current projection plane is obtained by directly projecting in the model.
In this embodiment, the terminal acquires the two-dimensional cross section corresponding to each component according to the current plane, facade or section, so as to generate a two-dimensional drawing according to the two-dimensional cross section of each component in the model range, and then annotate according to the component parameters in the two-dimensional drawing. The generation mode of the two-dimensional drawing can be calling the function of the original visual graph in Revit, and the automatic annotation is calling the function after secondary development for annotation.
The annotation is an automatic annotation, for example, the terminal may add or directly obtain a reference surface (refer) along a side line of each component or a centerline of the component in the two-dimensional drawing, and then perform size labeling according to the component parameters and the reference surface; and adding text comments, independent marks, comment symbols and the like to the corresponding positions of the two-dimensional drawing according to the text description in the component parameters. The calculation principle is as follows: the method comprises the steps of obtaining source point coordinates and size information of a component, calculating to obtain boundary information of the component, creating or obtaining reference surfaces at corresponding positions, attaching the reference surfaces to reference surface sets (refereenearray) one by one, carrying out size marking according to View positions (View) and marking styles (DimensionType), outputting the condition that the number of the reference surface sets is more than or equal to 2, obtaining the source point coordinates and the size information of the component, and obtaining annotation coordinates according to a drawing standard to generate the corresponding positions.
Specifically, referring to fig. 2, fig. 2 is a simplified diagram of a target drawing obtained by visualizing a drawing in one embodiment, in which annotation information is given.
In the embodiment, the secondary development is performed by combining the visual plotting scheme of the original Revit to call the component parameters to obtain the annotation information in the two-dimensional drawing, and then the annotation is performed to the corresponding position of the two-dimensional drawing, so that the data in the generated drawing is complete, and the quality of the drawing is improved.
In one embodiment, invoking component parameters to generate a target drawing comprises: classifying the component according to the component parameter; counting the number of components in each classification; generating a unified parameter description for the components in each classification according to the component parameters; and generating a component parameter table according to the parameter description and the quantity of the components.
Specifically, in this embodiment, a parameterized graph is mainly introduced, wherein after a user selects a model range, components in the model range are classified, for example, the components are classified according to component types and component sizes in component parameters, a terminal may classify the components according to the component types, for example, the components are classified into doors, windows, and the like, then the components in each class are classified according to the component sizes, for example, the class of doors, and the class of the components are classified according to the component sizes, so that the components are divided into a plurality of subclasses, so that the terminal counts the number of the components in each subclass, then a unified parameter description, for example, the size, name, and the like of the component, is generated according to the parameter description and the number of the components, so that a graph is obtained, which can be generated as needed, and accurately describes data required by the user, the drawing quality is high.
Specifically, as shown in fig. 3, fig. 3 is a simplified diagram of a target drawing of a parametric drawing in an embodiment, in which members are divided into doors and windows, the doors are divided into a plurality of types of doors, and the size, name, and the like of each type of door are given.
In one embodiment, fields related to unified parameter descriptions in the component parameter table may be predefined by a user, and when the terminal generates the component parameter table, the terminal may determine corresponding fields according to the unified parameter descriptions preset by the user, and then obtain corresponding field values from the component parameters according to field obtaining logic, for example, directly obtain or obtain the corresponding field values by calculation according to the component parameters. In addition, the types of the components and the like in the component parameter table may be predefined by the user, so that the components of the corresponding types are acquired according to the component parameter table, and the required data is acquired.
In the above embodiment, the required drawing is directly obtained, and no post-processing, i.e., what is required and what is generated, is required.
In one embodiment, specifically, referring to fig. 4, fig. 4 is a flowchart of a generation manner of an initial three-dimensional model in an embodiment, where the generation manner of the initial three-dimensional model includes:
s402: and receiving a component type selection instruction, and calling a component parameter input interface according to the component type selection instruction.
Specifically, the component type selection instruction may be a selection instruction in a drop-down box of a component type provided in a software interface, the component parameter input interface is an interface for acquiring a component parameter input by a user, a model parameter input interface is provided in this embodiment, the terminal first receives the selected component type, and then displays the component parameter input interface, and a field of the component parameter corresponding to the component type is displayed in the interface, so that the user may input a parameter value after the corresponding field.
S404: and receiving the input component parameters through the component parameter input interface.
The component parameters include the position, size, structure, and constraints of the component, and if the component requires a solid body, such as a rebar, the component parameters also include a textual description of the solid body. The establishment of a building block in Revit is reflected in the increase of overall data, namely building block parameters. For example, the origin coordinates (X, Y, Z) of the component, the dimensions of the component (length X width X height), the elevation at which the component is located, and so on.
The terminal may generate the component from the component parameters by calling an existing component generation function. Specifically, the process of generating is a process of generating a three-dimensional model from parameters of the component. An initial three-dimensional model may include at least one component to complete modeling, i.e., data corresponding to a large scale is stored, and then a program is written to obtain the data for processing.
The user can input the parameter value after the corresponding field, so that the terminal can acquire the parameter value input by the user.
S406: and selecting a corresponding basic template according to the type of the component, processing the basic model through the component parameters to obtain the component, and determining the position of the component according to the position information of the component parameters to generate an initial three-dimensional model.
Specifically, the basic template is a three-dimensional template corresponding to the component, and the size of the basic template may be a default, so that the terminal receives relevant parameters, such as a position coordinate, a size, a bottom elevation, a top elevation and the like of the component, input by a user, where optionally, if the units of the parameters are not uniform, the terminal preferentially unifies the units, then adjusts the basic model according to the parameter values of the unified units to obtain the component, and processes the multiple components to obtain the initial three-dimensional model.
In the embodiment, the component is generated according to the input component parameters, and the component is not drawn manually by a user, so that the intelligent level and the three-dimensional visualization effect are improved.
In one embodiment, after obtaining the initial three-dimensional model of the drawing to be generated, the method further includes: acquiring a component to be processed in the initial three-dimensional model, and extracting initial model data corresponding to the component to be processed; and processing the initial model data to obtain entity information, and adding the generated entity information to the initial three-dimensional model to obtain a target three-dimensional model.
Specifically, the component to be processed may be a component in which entity information needs to be generated, for example, a component in which a textual description of a reinforcing bar exists, or a component in which a textual description of other entity information exists. The model data may refer to a portion of the component parameters, and in one embodiment, the model data may refer to the component parameters of the selected component to be processed.
The terminal can receive a selection instruction of the to-be-processed member input by the user, so that the to-be-processed member is selected, and after the to-be-processed member is determined, the terminal extracts model data corresponding to the to-be-processed member, wherein the model data comprises a text description of an entity, such as a text description of a steel bar.
Specifically, the entity information is information for converting the model data into a three-dimensional displayed model, for example, text description of a steel bar is converted into information of the steel bar of the entity, so that the target three-dimensional model can be obtained by adding the information of the steel bar of the entity obtained by conversion into the initial three-dimensional model, and the target three-dimensional model includes abundant data, so that data of a drawing generated according to the target three-dimensional model in the following process is also abundant.
Optionally, the extracting the model data corresponding to the member to be processed includes: and extracting initial model data from the initial three-dimensional model by calling a model data acquisition function developed by Visual C #. Processing the initial model data to obtain entity information, including: and processing the model data by calling a model data processing function developed by matlab to obtain entity information.
Further, processing the model data to obtain entity information, including: and generating an entity position according to the position information and the size information of the member to be processed in the model data, and obtaining entity information according to the type of the selected entity and the entity position.
Specifically, the terminal may first obtain the position information and the size information of the member to be processed, so that the spatial position coordinates of the entity, for example, the spatial position coordinates of the reinforcing steel bar, may determine the model line according to the control position coordinates, and then convert the model line into the required longitudinal reinforcing steel bar, hoop reinforcement, and the like according to the selected type of the entity, for example, the type of the reinforcing steel bar and the type of the hook, thereby implementing the generation of the entity information.
Therefore, calling component parameters to generate a target drawing, comprising: acquiring entity information corresponding to a model range in a target three-dimensional model; and displaying the component parameters and the entity information through a three-dimensional visualization effect.
Specifically, the terminal can obtain each component parameter and entity information in the target three-dimensional model by calling a drawing generation function developed by Visual C #, and display the component parameters and the entity information through a three-dimensional visualization effect. In this embodiment, the Visual C # is called to obtain data in the Revit model through revitappi, so that rapid data reading can be realized, and then the read data is displayed according to a preset visualization effect, so as to realize a three-dimensional visualization effect.
In one embodiment, the drawing generation method may further include: extracting target model data from the target three-dimensional model; acquiring a calculation amount generation template; and processing the target model data according to the calculated amount generation template to obtain the corresponding material calculated amount.
Specifically, the target model data is data of a material, such as a steel bar, for which a material calculation amount needs to be calculated, and therefore, in this embodiment, the target model data may be acquired first, for example, the target model data is extracted by using C #, then the model data is processed to obtain the material calculation amount, for example, the model data is processed by using matlab, and then the final material calculation amount is output, for example, the final material calculation amount is output by using C #.
For clarity of explanation, the calculated amount of the steel bar is taken as an example in the present embodiment, and in other embodiments, the calculated amount of other materials or the calculated amount of engineering (including the calculated amount of all materials) may also be used.
When matlab is used for processing, a calculation amount generation template is obtained firstly, the calculation amount generation template can be specifically shown in fig. 5, the template can comprise the types of the steel bars, the number of the steel bars, the types of the steel bars, the lengths of the steel bars and the like, model data are classified to obtain the types of the steel bars, the number of the steel bars, the types of the steel bars and the lengths of the steel bars under each type are counted, and the data, the types of the steel bars, the number of the steel bars, the types of the steel bars and the lengths of the steel bars are filled in the calculation amount generation template to obtain the calculation amount of the steel bars. And then outputting the calculated amount of the steel bar through C #, and in other embodiments, adding other data, and acquiring corresponding data when acquiring model data.
In the above embodiment, the flexibility of the detail list can be improved, and the content of the detail list, that is, what is needed and what is generated can be clearly represented.
In one embodiment, the drawing generation method further includes: receiving a selection instruction of a component, and extracting component parameters of the selected component according to the selection instruction of the component; extracting associated information from the target three-dimensional model according to the component parameters; and generating construction details according to the component parameters and the associated information, and displaying the construction details.
Specifically, the current construction is carried out on site by using a two-dimensional design drawing, which is various in drawings and inconvenient to look up; in the embodiment, the Revit model is used, the three-dimensional visualization function is exerted for construction, and only one portable computer or tablet computer is needed on site. In the embodiment, a three-dimensional model lightweight technology is adopted, a component needing to be constructed is found in a model, the component is clicked, and then construction details of the component are popped up. The construction detail comprises: the location of the component (distance from the nearest axis and elevation), the design of the component, the material usage gauge of the component, certain details of the component (if desired).
After the component is clicked, the terminal automatically extracts the information of the component, extracts the matched associated data from the overall data, and automatically generates construction details in a DXF format.
In the embodiment, the final output is in a CAD format, and if there is ambiguous data during construction, the data can be obtained by utilizing the measurement function of the CAD, so that the method is more intelligent.
In the above embodiment, the two-dimensional drawing does not need to be printed, construction can be directly performed through the drawing at the design end, and even if the construction is performed on site by using a portable computer or a tablet computer, the design, calculation and construction can be completed by using the same model.
It should be understood that although the steps in the flowcharts of fig. 1 and 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided a drawing generation apparatus including: the model acquisition module 100, the model range determination module 200, the component parameter reading module 300, and the drawing generation module 400, wherein:
the model obtaining module 100 is configured to obtain an initial three-dimensional model of a drawing to be generated;
the model range determining module 200 is configured to receive a model range selection instruction, and determine a model range according to the model range selection instruction;
a component parameter reading module 300, configured to read component parameters of each component within a model range;
and the drawing generation module 400 is used for calling the component parameters to generate the target drawing.
In one embodiment, the drawing generation module 400 includes:
the projection surface acquisition unit is used for acquiring a current projection surface corresponding to a current view;
the two-dimensional drawing generation unit is used for generating a two-dimensional drawing according to the model range and the projection plane;
and the annotation unit is used for annotating the two-dimensional drawing according to the acquired component parameters to obtain a target drawing.
In one embodiment, the drawing generation module 400 includes:
the classification unit is used for classifying the components according to the component parameters;
a counting unit for counting the number of components in each classification;
the unified parameter description generation unit is used for generating unified parameter description for the components in each classification according to the component parameters;
and the parameter table generating unit is used for generating a component parameter table according to the parameter description and the quantity of the components.
In one embodiment, the drawing generation apparatus further includes:
the first receiving module is used for receiving the component type selection instruction and calling a component parameter input interface according to the component type selection instruction;
the component parameter input module is used for receiving input component parameters through a component parameter input interface;
and the initial three-dimensional model generation module is used for selecting a corresponding basic template according to the type of the component, processing the basic model through the component parameters to obtain the component, and determining the position of the component according to the position information of the component parameters to generate an initial three-dimensional model.
In one embodiment, the drawing generation apparatus further includes:
the initial model data acquisition module is used for acquiring a component to be processed in the initial three-dimensional model and extracting initial model data corresponding to the component to be processed;
the entity information generation module is used for processing the initial model data to obtain entity information and adding the generated entity information into the initial three-dimensional model to obtain a target three-dimensional model;
the drawing generation module 400 may include:
the entity information acquisition unit is used for acquiring entity information corresponding to the model range in the target three-dimensional model;
and the display unit is used for displaying the component parameters and the entity information through a three-dimensional visualization effect.
In one embodiment, the drawing generation apparatus further includes:
the extraction module is used for extracting target model data from the target three-dimensional model;
the computation generation template acquisition module is used for acquiring a computation generation template;
and the material calculation amount calculation module is used for processing the target model data according to the calculation amount generation template to obtain the corresponding material calculation amount.
In one embodiment, the drawing generation apparatus further includes:
the second receiving module is used for receiving a selection instruction of the component and extracting the component parameters of the selected component according to the selection instruction of the component;
the associated information extraction module is used for extracting associated information from the target three-dimensional model according to the component parameters;
and the construction detail display module is used for generating construction details according to the component parameters and the associated information and displaying the construction details.
For specific limitations of the drawing generation apparatus, reference may be made to the above limitations of the drawing generation method, which is not described herein again. All or part of the modules in the drawing generation device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a drawing generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: acquiring an initial three-dimensional model of a drawing to be generated; receiving a model range selection instruction, and determining a model range according to the model range selection instruction; reading component parameters of each component in the model range; and calling the component parameters to generate a target drawing.
In one embodiment, invoking component parameters implemented by a processor executing a computer program generates a target drawing, comprising: acquiring a current projection surface corresponding to a current view; generating a two-dimensional drawing according to the model range and the projection plane; and annotating on the two-dimensional drawing according to the acquired component parameters to obtain a target drawing.
In one embodiment, invoking component parameters implemented by a processor executing a computer program generates a target drawing, comprising: classifying the component according to the component parameter; counting the number of components in each classification; generating a unified parameter description for the components in each classification according to the component parameters; and generating a component parameter table according to the parameter description and the quantity of the components.
In one embodiment, the initial three-dimensional model generated by the processor when executing the computer program is generated by: receiving a component type selection instruction, and calling a component parameter input interface according to the component type selection instruction; receiving input component parameters through a component parameter input interface; and selecting a corresponding basic template according to the type of the component, processing the basic model through the component parameters to obtain the component, and determining the position of the component according to the position information of the component parameters to generate an initial three-dimensional model.
In one embodiment, the obtaining the initial three-dimensional model of the drawing to be generated, which is implemented when the processor executes the computer program, further includes: acquiring a component to be processed in the initial three-dimensional model, and extracting initial model data corresponding to the component to be processed; processing the initial model data to obtain entity information, and adding the generated entity information to the initial three-dimensional model to obtain a target three-dimensional model; the method for generating the target drawing by calling the component parameters when the processor executes the computer program comprises the following steps: acquiring entity information corresponding to a model range in a target three-dimensional model; and displaying the component parameters and the entity information through a three-dimensional visualization effect.
In one embodiment, the processor, when executing the computer program, further performs the steps of: extracting target model data from the target three-dimensional model; acquiring a calculation amount generation template; and processing the target model data according to the calculated amount generation template to obtain the corresponding material calculated amount.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving a selection instruction of a component, and extracting component parameters of the selected component according to the selection instruction of the component; extracting associated information from the target three-dimensional model according to the component parameters; and generating construction details according to the component parameters and the associated information, and displaying the construction details.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: acquiring an initial three-dimensional model of a drawing to be generated; receiving a model range selection instruction, and determining a model range according to the model range selection instruction; reading component parameters of each component in the model range; and calling the component parameters to generate a target drawing.
In one embodiment, invoking component parameters, implemented by a computer program when executed by a processor, generates a target drawing, comprising: acquiring a current projection surface corresponding to a current view; generating a two-dimensional drawing according to the model range and the projection plane; and annotating on the two-dimensional drawing according to the acquired component parameters to obtain a target drawing.
In one embodiment, invoking component parameters, implemented by a computer program when executed by a processor, generates a target drawing, comprising: classifying the component according to the component parameter; counting the number of components in each classification; generating a unified parameter description for the components in each classification according to the component parameters; and generating a component parameter table according to the parameter description and the quantity of the components.
In one embodiment, the initial three-dimensional model generated when the computer program is executed by the processor is generated by: receiving a component type selection instruction, and calling a component parameter input interface according to the component type selection instruction; receiving input component parameters through a component parameter input interface; and selecting a corresponding basic template according to the type of the component, processing the basic model through the component parameters to obtain the component, and determining the position of the component according to the position information of the component parameters to generate an initial three-dimensional model.
In one embodiment, the obtaining the initial three-dimensional model of the drawing to be generated, when the computer program is executed by the processor, further includes: acquiring a component to be processed in the initial three-dimensional model, and extracting initial model data corresponding to the component to be processed; processing the initial model data to obtain entity information, and adding the generated entity information to the initial three-dimensional model to obtain a target three-dimensional model; invoking component parameters, implemented when the computer program is executed by a processor, to generate a target drawing, comprising: acquiring entity information corresponding to a model range in a target three-dimensional model; and displaying the component parameters and the entity information through a three-dimensional visualization effect.
In one embodiment, the computer program when executed by the processor further performs the steps of: extracting target model data from the target three-dimensional model; acquiring a calculation amount generation template; and processing the target model data according to the calculated amount generation template to obtain the corresponding material calculated amount.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving a selection instruction of a component, and extracting component parameters of the selected component according to the selection instruction of the component; extracting associated information from the target three-dimensional model according to the component parameters; and generating construction details according to the component parameters and the associated information, and displaying the construction details.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A drawing generation method is characterized by comprising the following steps:
acquiring an initial three-dimensional model of a drawing to be generated;
receiving a model range selection instruction, and determining a model range according to the model range selection instruction;
reading component parameters of each component in the model range;
and calling the component parameters to generate a target drawing.
2. The method of claim 1, wherein the invoking the component parameter to generate a target drawing comprises:
acquiring a current projection surface corresponding to a current view;
generating a two-dimensional drawing according to the model range and the projection plane;
and annotating on the two-dimensional drawing according to the acquired component parameters to obtain a target drawing.
3. The method of claim 1, wherein the invoking the component parameter to generate a target drawing comprises:
classifying the component according to the component parameter;
counting the number of components in each classification;
generating a unified parameter description for the components in each classification according to the component parameters;
and generating a component parameter table according to the parameter description and the quantity of the components.
4. The method of claim 1, wherein the initial three-dimensional model is generated in a manner comprising:
receiving a component type selection instruction, and calling a component parameter input interface according to the component type selection instruction;
receiving input component parameters through the component parameter input interface;
and selecting a corresponding basic template according to the type of the component, processing the basic model through the component parameters to obtain the component, and determining the position of the component according to the position information of the component parameters to generate an initial three-dimensional model.
5. The method according to any one of claims 1 to 4, wherein after obtaining the initial three-dimensional model of the drawing to be generated, the method further comprises:
acquiring a component to be processed in the initial three-dimensional model, and extracting initial model data corresponding to the component to be processed;
processing the initial model data to obtain entity information, and adding the generated entity information to the initial three-dimensional model to obtain a target three-dimensional model;
the calling the component parameters to generate the target drawing comprises the following steps:
acquiring entity information corresponding to the model range in the target three-dimensional model;
and displaying the component parameters and the entity information through a three-dimensional visualization effect.
6. The method of claim 5, further comprising:
extracting target model data from the target three-dimensional model;
acquiring a calculation amount generation template;
and processing the target model data according to the calculated amount generation template to obtain the corresponding material calculated amount.
7. The method of claim 5, further comprising:
receiving a selection instruction of a component, and extracting component parameters of the selected component according to the selection instruction of the component;
extracting associated information from the target three-dimensional model according to the component parameters;
and generating construction details according to the component parameters and the associated information, and displaying the construction details.
8. A drawing generation apparatus, characterized in that the apparatus comprises:
the model acquisition module is used for acquiring an initial three-dimensional model of the drawing to be generated;
the model range determining module is used for receiving a model range selecting instruction and determining a model range according to the model range selecting instruction;
the component parameter reading module is used for reading the component parameters of each component in the model range;
and the drawing generation module is used for calling the component parameters to generate a target drawing.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110268047.6A CN113094770B (en) | 2021-03-12 | 2021-03-12 | Drawing generation method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110268047.6A CN113094770B (en) | 2021-03-12 | 2021-03-12 | Drawing generation method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113094770A true CN113094770A (en) | 2021-07-09 |
CN113094770B CN113094770B (en) | 2022-02-18 |
Family
ID=76667363
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110268047.6A Active CN113094770B (en) | 2021-03-12 | 2021-03-12 | Drawing generation method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113094770B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113379872A (en) * | 2021-07-13 | 2021-09-10 | 重庆云图软件科技有限公司 | Engineering drawing generation method, device and system and computer readable storage medium |
CN113468626A (en) * | 2021-09-01 | 2021-10-01 | 深圳须弥云图空间科技有限公司 | Drawing generation method and device, electronic equipment and storage medium |
CN113536409A (en) * | 2021-08-06 | 2021-10-22 | 北京涌联恒创电力工程设计有限公司 | Power engineering design method and device applied to single software and electronic equipment |
CN113591197A (en) * | 2021-09-26 | 2021-11-02 | 深圳须弥云图空间科技有限公司 | Online editing method and device, electronic equipment and storage medium |
CN113849895A (en) * | 2021-10-18 | 2021-12-28 | 广东电网有限责任公司广州供电局 | Modeling method and device for assembly type enclosure wall and computer equipment |
CN113935091A (en) * | 2021-10-18 | 2022-01-14 | 广东电网有限责任公司广州供电局 | Hole marking method and device, computer equipment and readable storage medium |
CN114912162A (en) * | 2021-12-14 | 2022-08-16 | 四川蓉信开工程设计有限公司 | Rapid design system and method for biochemical pool |
CN115344905A (en) * | 2022-10-19 | 2022-11-15 | 青岛艾德软件有限公司 | Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104537191A (en) * | 2015-01-21 | 2015-04-22 | 中国电建集团华东勘测设计研究院有限公司 | Drawing method for three-dimensional rebar model schematic diagram |
CN108563847A (en) * | 2018-03-27 | 2018-09-21 | 上海市城市建设设计研究总院(集团)有限公司 | The method that three-dimensional bridge model is generated into two-dimensional arrangement figure with CATIA softwares |
CN108615143A (en) * | 2018-06-12 | 2018-10-02 | 湖南建工集团有限公司 | Device and method based on BIM models Yu O&M information exchange in intelligent building management |
CN109165401A (en) * | 2018-07-09 | 2019-01-08 | 国核电力规划设计研究院有限公司 | A kind of method and apparatus that two-dimentional construction drawing is generated based on civil engineering structure threedimensional model |
CN110472299A (en) * | 2019-07-23 | 2019-11-19 | 天津大学 | The three-dimensional parameterized Intelligentized design method of diversion works and system based on BIM |
JP2020064454A (en) * | 2018-10-17 | 2020-04-23 | トヨタ自動車株式会社 | Method for automatically correcting cad drawing element |
CN111553964A (en) * | 2020-04-29 | 2020-08-18 | 武汉凌云建筑装饰工程有限公司 | BIM technology-based design drawing method |
US20200265121A1 (en) * | 2019-02-15 | 2020-08-20 | Procore Technologies, Inc. | Generating Technical Drawings From Building Information Models |
CN111859511A (en) * | 2020-07-28 | 2020-10-30 | 苏州金螳螂三维软件有限公司 | Method and device for generating vertical face construction drawing by building model |
CN112257137A (en) * | 2019-07-22 | 2021-01-22 | 成都笔木智绘科技有限公司 | Building structure BIM forward automatic design method based on Revit |
CN112365590A (en) * | 2020-12-12 | 2021-02-12 | 同济大学建筑设计研究院(集团)有限公司 | Drawing generation method and device, computer equipment and storage medium |
-
2021
- 2021-03-12 CN CN202110268047.6A patent/CN113094770B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104537191A (en) * | 2015-01-21 | 2015-04-22 | 中国电建集团华东勘测设计研究院有限公司 | Drawing method for three-dimensional rebar model schematic diagram |
CN108563847A (en) * | 2018-03-27 | 2018-09-21 | 上海市城市建设设计研究总院(集团)有限公司 | The method that three-dimensional bridge model is generated into two-dimensional arrangement figure with CATIA softwares |
CN108615143A (en) * | 2018-06-12 | 2018-10-02 | 湖南建工集团有限公司 | Device and method based on BIM models Yu O&M information exchange in intelligent building management |
CN109165401A (en) * | 2018-07-09 | 2019-01-08 | 国核电力规划设计研究院有限公司 | A kind of method and apparatus that two-dimentional construction drawing is generated based on civil engineering structure threedimensional model |
JP2020064454A (en) * | 2018-10-17 | 2020-04-23 | トヨタ自動車株式会社 | Method for automatically correcting cad drawing element |
US20200265121A1 (en) * | 2019-02-15 | 2020-08-20 | Procore Technologies, Inc. | Generating Technical Drawings From Building Information Models |
CN112257137A (en) * | 2019-07-22 | 2021-01-22 | 成都笔木智绘科技有限公司 | Building structure BIM forward automatic design method based on Revit |
CN110472299A (en) * | 2019-07-23 | 2019-11-19 | 天津大学 | The three-dimensional parameterized Intelligentized design method of diversion works and system based on BIM |
CN111553964A (en) * | 2020-04-29 | 2020-08-18 | 武汉凌云建筑装饰工程有限公司 | BIM technology-based design drawing method |
CN111859511A (en) * | 2020-07-28 | 2020-10-30 | 苏州金螳螂三维软件有限公司 | Method and device for generating vertical face construction drawing by building model |
CN112365590A (en) * | 2020-12-12 | 2021-02-12 | 同济大学建筑设计研究院(集团)有限公司 | Drawing generation method and device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
张远艳 等: "BIM模式下二维图纸输出研究", 《吉林建筑大学学报》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113379872A (en) * | 2021-07-13 | 2021-09-10 | 重庆云图软件科技有限公司 | Engineering drawing generation method, device and system and computer readable storage medium |
CN113536409A (en) * | 2021-08-06 | 2021-10-22 | 北京涌联恒创电力工程设计有限公司 | Power engineering design method and device applied to single software and electronic equipment |
CN113536409B (en) * | 2021-08-06 | 2024-04-05 | 北京涌联恒创电力工程设计有限公司 | Electric power engineering design method and device applied to single software and electronic equipment |
CN113468626A (en) * | 2021-09-01 | 2021-10-01 | 深圳须弥云图空间科技有限公司 | Drawing generation method and device, electronic equipment and storage medium |
CN113468626B (en) * | 2021-09-01 | 2021-12-14 | 深圳须弥云图空间科技有限公司 | Drawing generation method and device, electronic equipment and storage medium |
CN113591197A (en) * | 2021-09-26 | 2021-11-02 | 深圳须弥云图空间科技有限公司 | Online editing method and device, electronic equipment and storage medium |
CN113849895A (en) * | 2021-10-18 | 2021-12-28 | 广东电网有限责任公司广州供电局 | Modeling method and device for assembly type enclosure wall and computer equipment |
CN113935091A (en) * | 2021-10-18 | 2022-01-14 | 广东电网有限责任公司广州供电局 | Hole marking method and device, computer equipment and readable storage medium |
CN114912162A (en) * | 2021-12-14 | 2022-08-16 | 四川蓉信开工程设计有限公司 | Rapid design system and method for biochemical pool |
CN115344905A (en) * | 2022-10-19 | 2022-11-15 | 青岛艾德软件有限公司 | Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model |
CN115344905B (en) * | 2022-10-19 | 2023-02-03 | 青岛艾德软件有限公司 | Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model |
Also Published As
Publication number | Publication date |
---|---|
CN113094770B (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113094770B (en) | Drawing generation method and device, computer equipment and storage medium | |
US10964025B2 (en) | Assembly monitoring method and device based on deep learning, and readable storage medium | |
CN111161406B (en) | GIM file visualization processing method, system, readable storage medium and computer | |
KR101494844B1 (en) | System for Transforming Chart Using Metadata and Method thereof | |
CN110781537B (en) | Building modeling method, device, computer equipment and readable storage medium | |
US9158297B2 (en) | Computing device and method for generating measurement program of product | |
CN111208998B (en) | Method, device and storage medium for automatic layout of data visualization large screen | |
CN105512265A (en) | Method and device for displaying data through figure | |
CN109656652B (en) | Webpage chart drawing method, device, computer equipment and storage medium | |
JP2003288372A (en) | Analytic result data processor for cad, analytic result data processing method for cad, and analytic result data processing program for cad | |
CN110188495A (en) | A method of the two-dimentional floor plan based on deep learning generates three-dimensional floor plan | |
CN113553453A (en) | Two-dimensional drawing marking method and device and electronic equipment | |
CN116956838A (en) | Project determining method and device for engineering quantity list | |
CN108133116B (en) | Method and system for automatically identifying wall thickness of CAD house type graph | |
CN113139371A (en) | Visual chart construction method, device and system and storage medium | |
CN113342249A (en) | Content management method, device, equipment and storage medium capable of previewing in real time | |
CN111414508B (en) | Method and terminal for searching and realizing visualization in design model | |
CN117390195A (en) | Knowledge traceability connecting method, system, equipment and medium based on graph editor | |
CN111737896A (en) | Open caisson key point calculation stress automatic extraction and analysis system and method based on ABAQUS | |
CN111046472A (en) | Model component information display method and device, computer equipment and storage medium | |
CN115830184A (en) | General file and picture annotation method, system and medium | |
US10055811B2 (en) | System and method for generating interactive 2D projection of 3D model | |
CN112529984B (en) | Method, device, electronic equipment and storage medium for drawing polygon | |
CN116956837A (en) | Project determining method and device for engineering quantity list | |
CN114240737A (en) | Method, apparatus, device and medium for generating digital model from drawings |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |