CN115344905A - Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model - Google Patents

Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model Download PDF

Info

Publication number
CN115344905A
CN115344905A CN202211276234.XA CN202211276234A CN115344905A CN 115344905 A CN115344905 A CN 115344905A CN 202211276234 A CN202211276234 A CN 202211276234A CN 115344905 A CN115344905 A CN 115344905A
Authority
CN
China
Prior art keywords
dimensional model
dimensional
finished product
engineering drawing
building
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
Application number
CN202211276234.XA
Other languages
Chinese (zh)
Other versions
CN115344905B (en
Inventor
杨炅楠
廉苹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Aide Software Co ltd
Original Assignee
Qingdao Aide Software Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qingdao Aide Software Co ltd filed Critical Qingdao Aide Software Co ltd
Priority to CN202211276234.XA priority Critical patent/CN115344905B/en
Publication of CN115344905A publication Critical patent/CN115344905A/en
Application granted granted Critical
Publication of CN115344905B publication Critical patent/CN115344905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method and a system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, which relate to the technical field of intelligent construction of model views, and the method comprises the following steps: rapidly building an initial three-dimensional model of a finished product; modifying the initial three-dimensional model of the finished product according to the requirement to obtain a target three-dimensional model of the finished product; acquiring an intermediate file based on the target three-dimensional model of the finished product; the intermediate file comprises a two-dimensional engineering drawing obtained based on the conversion of the target three-dimensional model and related drawing data of the target three-dimensional model; and calling a pre-stored corresponding layout mode according to the type of the finished product, and automatically laying out in combination with the selected map node on the basis of obtaining the intermediate file to obtain the two-dimensional engineering drawing. The method can automatically generate the two-dimensional engineering drawing from the three-dimensional model quickly and efficiently, has high efficiency, reduces the participation process of designers, improves the utilization rate of manpower, material resources and time, and promotes the popularization of the use of pure three-dimensional modeling software.

Description

Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model
Technical Field
The invention relates to the technical field of intelligent construction of model views, in particular to a method and a system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model.
Background
The engineering drawing is a projection plane for expressing an object according to a projection method, and is divided into a forward projection and an oblique projection according to different projection modes, and the most common engineering drawing is a one-dimensional projection, a two-dimensional projection and a stereoscopic projection, namely a three-dimensional projection. The engineering drawing is an essential part in the production process of the product as a basis for guiding the production, processing and detection of the product. At present, engineering drawings are obtained by adopting different projection modes on the basis of completing the design of a three-dimensional model. The engineering drawings not only comprise the three views obtained by projection, but also comprise descriptions of the three views, including but not limited to dimensions, labels, descriptions, tables, manufacturing requirements, drawing descriptions and the like.
At present, most three-dimensional modeling software does not support automatic generation of two-dimensional finished engineering drawings, for example, although three-dimensional modeling software CAD can convert three-dimensional into two-dimensional, the three-dimensional modeling software CAD only converts three-dimensional graphics into two-dimensional graphics, but not into two-dimensional finished engineering drawings. In the conversion process, although the two-dimensional engineering drawing of most finished products does not change in the figures and the proportion, the engineering drawing needs to be modified correspondingly considering that users often have customized requirements, such as changes of product parameters, technical requirements and the like. In order to meet personalized requirements of different users, designers often need to construct a three-dimensional model first, then draw a two-dimensional engineering drawing according to the three-dimensional model, and if the user requirements change, the corresponding file needs to be opened again, and manual modification of the three-dimensional model first and the two-dimensional engineering drawing is repeatedly performed. The designer needs to repeat the work of three-dimensional modeling and two-dimensional drawing for many times, the efficiency of generating the two-dimensional finished engineering drawing is low, a large amount of manpower, material resources and time are consumed, and the problems of three-dimensional model building errors or two-dimensional finished engineering drawing labeling errors, layout errors and the like are easily caused by the manual building and modifying mode. In addition, the above problems further make the pure three-dimensional modeling software difficult to popularize.
Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a method and a system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, which realize the quick and correct construction of the three-dimensional model through a plurality of three-dimensional model construction modes, acquire the relevant graph data of the model in the construction process, avoid the problems of logic errors in the model construction and low efficiency in acquiring the relevant graph data of the model, reduce the participation process of designers, quickly generate the two-dimensional engineering drawing through automatic layout, avoid the problems of manual view description labeling and manual layout, and improve the generation efficiency.
In a first aspect, the present disclosure provides a method for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, including:
rapidly building an initial three-dimensional model of a finished product;
modifying the initial three-dimensional model of the finished product according to the requirement to obtain a target three-dimensional model of the finished product;
acquiring an intermediate file based on the target three-dimensional model of the finished product; the intermediate file comprises a two-dimensional engineering drawing obtained based on target three-dimensional model conversion and related drawing data of the target three-dimensional model, wherein the related drawing data comprises finished product information, drawing information, manufacturing information and a node diagram;
and calling a pre-stored corresponding layout mode according to the type of the finished product, and automatically laying out in combination with the selected map node on the basis of obtaining the intermediate file to obtain the two-dimensional engineering drawing.
According to the further technical scheme, the method for quickly building the initial three-dimensional model comprises the following steps:
pulling an upstream condition; the upstream conditions comprise names, equipment names, engineering names, bit numbers and process conditions;
and judging whether a case similar to the finished product exists according to the upstream condition, if so, judging that the case exists, selecting and calling the case to directly construct the initial three-dimensional model, and if not, re-constructing the initial three-dimensional model.
According to a further technical scheme, the rebuilding of the initial three-dimensional model comprises the following steps:
judging whether a building tool for building the finished product exists or not, and if so, inputting each component of the three-dimensional model of the finished product to be built and the type of the component into the building tool to obtain an initial three-dimensional model; otherwise, the initial three-dimensional model is built by using the seed equipment.
According to a further technical scheme, the building tool comprises a user interface, a rendering logic module and a part library;
the user interface is used for providing an interface window for user input and acquiring information input by the user; the part library is pre-stored with a plurality of parts of different types, and each part comprises the shape, the size, the material, the processing technology and the painting color; and the rendering logic module is preset with construction logic among all parts in the part library and is used for calling parts of corresponding types in the part library according to the part types input by a user, searching and matching the construction logic among the called parts, automatically constructing and outputting the constructed three-dimensional model.
According to a further technical scheme, the initial three-dimensional model is built by using the seed equipment, and the method comprises the following steps:
selecting seed parts required for building the initial three-dimensional model of the finished product to be built in the seed equipment, and adjusting the positions and the sizes of the seed parts to obtain the initial three-dimensional model of the finished product.
According to the technical scheme, the seed equipment comprises a plurality of seed parts, the seed parts comprise specific business for constructing the three-dimensional model, and the specific business is internal logic existing among the seed parts in the process of constructing and combining the seed parts.
According to a further technical scheme, the seed part further comprises a corresponding coordinate system, a shape, a size, a material, a processing technology and a painting color, and a node map of the seed part matched with other seed parts and a node map of the seed part.
In a second aspect, the present disclosure provides a system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, including:
the three-dimensional model building module is used for building an initial three-dimensional model of a finished product quickly, modifying the initial three-dimensional model of the finished product according to requirements and obtaining a target three-dimensional model of the finished product;
the three-dimensional model conversion two-dimensional engineering drawing module is used for acquiring an intermediate file based on a target three-dimensional model of a finished product; calling a pre-stored corresponding layout mode according to the type of a finished product, and performing automatic layout by combining the selected drawing nodes on the basis of obtaining the intermediate file to obtain a two-dimensional engineering drawing;
the intermediate file comprises a two-dimensional engineering drawing obtained based on target three-dimensional model conversion and related map data of the target three-dimensional model, wherein the related map data comprises finished product information, drawing information, manufacturing information and a node map.
According to the technical scheme, the three-dimensional model conversion two-dimensional engineering drawing module comprises a data extraction module, an automatic layout module and a rendering drawing module, wherein the data extraction module is used for extracting an intermediate file required by conversion based on a target three-dimensional model of a finished product; the automatic layout module is used for calling a prestored corresponding layout mode according to the type of a finished product and carrying out automatic layout by combining the selected chart node on the basis of acquiring the intermediate file; the rendering plotting module is used for generating a two-dimensional engineering drawing in a rendering mode.
According to the further technical scheme, the three-dimensional model building module comprises a case selection module and a case storage module, the case storage module is used for storing a plurality of three-dimensional model cases of different finished products, and relevant information of the stored cases is stored in a format of upstream conditions; the case selection module is used for selecting cases similar to the finished product to be built according to the upstream conditions of the stored three-dimensional model cases, calling the similar cases and directly building the initial three-dimensional model.
The above one or more technical solutions have the following beneficial effects:
1. the invention provides a method and a system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, which can quickly and efficiently automatically generate the two-dimensional engineering drawing from the three-dimensional model, have high efficiency, reduce the participation process of designers, improve the utilization rate of manpower, material resources and time, and promote the popularization of the use of pure three-dimensional modeling software.
2. According to the invention, on one hand, the pre-stored similar finished product three-dimensional model case can be selected through comparison, the three-dimensional model can be built directly, on the other hand, the three-dimensional model can be generated rapidly by means of the building tool, on the other hand, the seed equipment can be used for building the three-dimensional model, compared with the method of directly building the three-dimensional model by only using the existing software such as CAD, the efficiency is higher, and in the building process, the building logic is preset in the building tool and the seed part, compared with the existing three-dimensional drawing software without building logic, the parameter process of a designer can be reduced, and the problem of drawing errors caused by the fact that the finished product is not known during three-dimensional drawing can be avoided.
3. According to the invention, the three-dimensional model of the finished product is constructed and the related map data of the finished product is acquired, so that the problem of map efficiency reduction caused by acquiring the related map data only by traversing the part according to the three-dimensional model after the three-dimensional model is constructed is solved, and the map efficiency is improved.
4. The invention also provides a scheme for automatically generating the two-dimensional engineering drawing, which is characterized in that based on the acquired intermediate files, namely the view, the node map, the finished product information, the drawing information, the manufacturing information and the like, the corresponding layout mode is automatically called according to the type of the finished product, the two-dimensional engineering drawing is generated by combining the given drawing nodes and automatic layout, the problems of manual marking and manual layout of the view description are avoided, the generation efficiency of the two-dimensional engineering drawing is further improved, and the utilization rates of manpower, material resources and time are improved.
5. The system provided by the invention is carried in the existing pure three-dimensional modeling software, so that the automatic generation of the two-dimensional engineering drawing based on the three-dimensional model can be realized, and the popularization of the pure three-dimensional modeling software is facilitated.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the invention and together with the description serve to explain the invention and not to limit the invention.
Fig. 1 is an overall flowchart of a method for automatically generating a two-dimensional engineering drawing based on a three-dimensional model according to an embodiment of the present invention.
Detailed Description
It is to be understood that the following detailed description is exemplary and is intended to provide further explanation of the invention as claimed. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
Example one
The embodiment provides a method for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, as shown in fig. 1, the method includes:
s1, quickly building an initial three-dimensional model of a finished product;
s2, modifying the initial three-dimensional model of the finished product according to the requirement to obtain a target three-dimensional model of the finished product;
s3, acquiring an intermediate file based on the target three-dimensional model of the finished product;
and S4, according to the intermediate file, combining the selected map node to perform automatic layout to obtain a two-dimensional engineering drawing.
And further, the method also comprises a step S5 of checking whether the two-dimensional engineering drawing meets the requirement of the target two-dimensional engineering drawing, if so, outputting the drawing serving as the target two-dimensional engineering drawing, and otherwise, carrying out manual fine adjustment until the requirement of the target two-dimensional engineering drawing is met.
In this embodiment, in step S1, an initial three-dimensional model of a finished product is quickly built based on three-dimensional modeling software, and the step of quickly building the initial three-dimensional model includes:
pulling an upstream condition;
and judging whether a case similar to the finished product exists according to the upstream condition, if so, judging that the case exists, selecting and calling the case to directly construct the initial three-dimensional model, and if not, re-constructing the initial three-dimensional model.
Specifically, the three-dimensional modeling software pre-stores a plurality of three-dimensional model cases of finished products, and the stored information related to the three-dimensional model cases is stored in the format of upstream conditions, where the upstream conditions include names, equipment names, engineering names, bit numbers, process conditions, and the like, as shown in table 1 below.
TABLE 1 upstream conditions for a certain product
Figure DEST_PATH_IMAGE001
That is, the above-mentioned pulling upstream condition means that, in the storage list of the three-dimensional modeling software pre-stored case, the selection is performed according to the name, equipment name, engineering name, position number, etc., and after the upstream condition (name, equipment name, engineering name, position number, process condition, etc.) of the pre-stored case shown in table 1 above is selected, the detailed design condition of the corresponding case is displayed, that is, the related information corresponding to each case under the upstream condition is displayed, for example, the "position number" is selected to display the "acid gas removal (1100)", the "equipment name" is selected to display the "cyclic methanol cooler",. The "acid gas removal (1100)", and the "cyclic methanol cooler" is the detailed design condition. Judging whether the pre-stored cases are similar to the cases to be modeled or not based on the detailed design conditions, namely comparing the detailed design conditions of the pre-stored cases displayed by selecting the upstream conditions with the detailed design conditions of the finished product cases to be modeled, if the detailed design conditions under each upstream condition are the same, considering that the selected pre-stored cases are similar to the finished product cases to be modeled, selecting the similar cases, reading the three-dimensional model cases, and directly obtaining an initial three-dimensional model; otherwise the initial three-dimensional model needs to be rebuilt.
Furthermore, the case prestored in the three-dimensional modeling software contains a three-dimensional model of a finished product, and also contains related chart data of the three-dimensional model, including finished product information, drawing information, manufacturing information, node diagrams and the like, wherein the finished product information and the manufacturing information refer to parameter information such as shapes, sizes, materials, processing techniques, painting colors and the like of all components of the three-dimensional model, the node diagrams refer to the intersection points of more than two decorative surfaces, and a part which cannot be clearly shown in the whole diagram is taken out separately to show the specific structure of the part, namely a diagram showing the details of the structure of the finished product.
In the process of rebuilding the initial three-dimensional model, firstly, judging whether a building tool for building the finished product exists or not, if so, inputting the types of all component parts of the three-dimensional model of the finished product to be built into the building tool to obtain the initial three-dimensional model; otherwise, the initial three-dimensional model is built by using the seed equipment, namely, the seed parts required for building the initial three-dimensional model of the finished product to be built in the seed equipment are selected, the positions and the sizes of the seed parts are adjusted, and the initial three-dimensional model of the finished product is obtained.
The building tool is designed by depending on application software of the method of the embodiment, and is generated based on the existing computer program, and comprises a user interface, a rendering logic module (namely a building module) and a part library.
Specifically, the user interface is used for providing an interface window for user input and acquiring information input by the user; the part library is pre-stored with a plurality of parts of different types, and each part comprises parameter information such as the shape, the size, the material, the processing technology, the painting color and the like; the rendering logic module is preset with building logics among all parts in the part library, and is used for calling parts of corresponding types in the part library according to the part types input by a user, searching and matching the building logics among the called parts, automatically building and outputting a built three-dimensional model.
The building tool is a tool for building a three-dimensional model, so that whether the building tool is carried by the three-dimensional modeling software or not is judged, and whether the building tool for building the finished product exists or not is checked. In the embodiment, the building tool comprises a building tool for general products such as cups, vases, teapots and the like. For example, when a three-dimensional model of a tea cup is built, a user interface inputs 'cup cover 1+ cup body 1+ handle 2', the rendering logic module reads input information, according to the type of a part input by a user, a cup cover with the type 1, a cup body with the type 1 and a handle with the type 2 in a part library are called, and based on building logics among all parts preset in the rendering logic module, the three-dimensional model of 'the cup cover 1 is located on the cup body 1 and the handle 2 is located on the side face of the cup body 1' is built automatically.
Furthermore, the building tool can automatically complete the process of 'adding, deleting and modifying' the three-dimensional model according to the input of the user. After the three-dimensional model of the teacup is built, inputting the cup cover 1 on a user input interface, and deleting the cup cover in the built three-dimensional model.
Preferably, a node map which is built by every two component parts is also prestored in the rendering logic module, so as to more clearly describe how the two component parts are built, and the rendering logic module outputs the node map which contains the component parts in the built three-dimensional model.
The seed equipment comprises a plurality of seed parts, wherein the seed parts are used as the most basic structures for forming finished products and comprise specific services for constructing a three-dimensional model, each seed part also comprises parameter information such as a corresponding coordinate system (for example, a three-dimensional coordinate system taking the midpoint of the seed part as an origin), shape, size, material, processing technology, painting color and the like, a node diagram of the seed part matched with other seed parts and a node diagram of the seed part.
Specifically, each product comprises a plurality of structures, and certain internal logic exists between the structures in the building and combining process, and the internal logic is the specific service. For example, for a finished product of a tea cup comprising a cup body, a cup cover and a handle, certain internal logic exists among the structures: the cup cover is designed on the cup body, the handle is arranged on the side face of the cup body, the teacup is abstracted into seed equipment at the moment, logic among the cup body, the cup cover and the handle does not need to be exposed outwards, and the logic, namely specific business knowledge, is arranged in various sub-parts.
The seed equipment is also a tool for building a three-dimensional model, and comprises a plurality of seed parts, and the seed parts are used as the most basic structures for forming a finished product and contain specific services for building the three-dimensional model, namely the internal logics among the seed parts. The seed parts containing specific services are preset and not automatically generated, and as the most basic structure for constructing the three-dimensional model of the product, the method can provide convenience for operators to construct the three-dimensional model: the seed parts are provided with logics, and when the logics are wrong, the construction between the seed parts can not be established, so that the error caused by artificial construction is avoided.
In the process of constructing the seed part, the seed part is obtained by three-dimensional or two-dimensional software drawing, and a coordinate system is set according to the characteristics of the seed part in the drawing process. Meanwhile, constraints (such as constraints on shapes) of the seed part are defined, the size of the seed part is defined, and parameter information such as materials, processing techniques and painting colors of the seed part is described.
The construction tool and the seed equipment are tools for constructing the three-dimensional model, compared with a scheme for directly generating the three-dimensional model according to similar cases, the construction tool and the seed equipment are used for constructing the three-dimensional model, corresponding component parts of a finished product need to be input for construction, the three-dimensional model is directly obtained according to the similar cases, and the generation efficiency of the three-dimensional model can be improved.
The method realizes the rapid building of the three-dimensional model, and is equivalent to providing a 'template' closest to the finished three-dimensional graph. On the basis of obtaining the initial three-dimensional model of the finished product, executing the step S2, namely modifying the initial three-dimensional model according to the requirement to obtain the target three-dimensional model of the finished product, wherein the modification comprises the operations of adding or deleting parts, modifying parts and information thereof and the like on the initial three-dimensional model, such as modifying the size of the parts according to the input certain part size (such as a part A:20 x 50), calling the parts according to the input part (such as a + part B) to add the parts and the like. It should be noted that, during the modification process, the related graph data of the three-dimensional model also changes. That is, the step S2 is to modify the details on the "template" model to meet the design requirements.
And in the steps S3 and S4, acquiring an intermediate file based on the target three-dimensional model of the finished product, and automatically arranging according to the intermediate file and the selected map node to obtain the two-dimensional engineering drawing.
Specifically, considering that the engineering drawing is used to guide the manufacturing of a product, the engineering drawing includes not only three views but also an explanation of the three views, so that in this embodiment, based on the finished product target three-dimensional model constructed as described above, an intermediate file of the target three-dimensional model is obtained, where the intermediate file includes both a two-dimensional engineering drawing (such as a three-view) obtained by converting based on the target three-dimensional model, and also includes related drawing data of the target three-dimensional model, which specifically includes finished product information, drawing information, manufacturing information, node diagrams, and the like.
Furthermore, according to a finished product three-dimensional model constructed by similar cases, because the cases pre-store relevant chart data, intermediate files of the finished product can be obtained by directly calling; the construction tool and the seed part are inherent in the system, so that the three-dimensional model is constructed and the related graph data of the three-dimensional model is obtained at the same time.
The two-dimensional engineering drawing obtained based on the target three-dimensional model conversion is obtained by converting the three-dimensional coordinates into two-dimensional coordinates under corresponding views through matrix conversion on the basis of the target three-dimensional model of the finished product and considering that the three-dimensional model contains three-dimensional coordinate information of each component part. Specifically, unifying the three-dimensional coordinate system of each component part in the three-dimensional model, obtaining a three-dimensional coordinate matrix describing the three-dimensional model according to the coordinates of each component part, performing three-dimensional coordinate matrix transformation according to a preset plotting visual angle which is set as a left view, a main view and a top view in the embodiment, obtaining a two-dimensional coordinate matrix under a corresponding view, describing a two-dimensional view of the finished product, further obtaining a two-dimensional engineering drawing of the finished product, and completing the transformation.
Further, taking a cuboid three-dimensional model as an example, the cuboid three-dimensional model has 8 three-dimensional vertex coordinates, the cuboid is represented in a matrix form of the coordinates, the three-dimensional coordinate system coordinates are converted into two-dimensional coordinate system coordinates on the premise that a drawing view angle (such as a top view) is clear, namely the two-dimensional coordinates of 8 vertices of the cuboid at the top view angle are obtained, the coordinates are still represented in the matrix form, the two-dimensional coordinate information of a product can be obtained through the matrix transformation, and the two-dimensional top view can be obtained according to the two-dimensional coordinates.
As another implementation, the acquisition of the finished two-dimensional engineering drawing may also be implemented by using the existing scheme of converting the three-dimensional model into the two-dimensional engineering drawing.
Based on the method, an intermediate file is obtained, and the intermediate file is used for describing the three-dimensional model relation and comprises a two-dimensional engineering drawing and related drawing data. And then, carrying out automatic layout based on the intermediate file, and carrying out automatic layout by combining the selected node of the graph to obtain the two-dimensional engineering drawing. Specifically, the automatic layout module calls a corresponding layout mode according to the type of the finished product, and performs automatic layout by combining the selected map node on the basis of obtaining the intermediate file to obtain the two-dimensional engineering drawing.
Considering that the contents of the drawings required by different types of products/equipment are different, the drawings are required to be drawn according to the requirements of users, and therefore on the basis of obtaining the intermediate file, the automatic layout module carries out automatic layout according to the drawing rules of the two-dimensional engineering drawing. The engineering drawings contain a lot of contents, including two-dimensional engineering drawings (three views), finished product information, drawing information, manufacturing information, node diagrams and the like, the placing positions of intermediate files of different types of finished products are different, and a placing mode meeting the industry requirements is a layout mode. In the automatic layout process, an out-graph node is selected, and the out-graph node is the out-graph position of the product/equipment; and the automatic layout module is preset with layout modes of various finished products of different types, namely the drawing rules of the two-dimensional engineering drawings, namely the corresponding placing modes meeting the industrial requirements.
As another implementation mode, step S5 is executed to check whether the two-dimensional engineering drawing meets the requirements of the target two-dimensional engineering drawing, if so, the drawing is output as the target two-dimensional engineering drawing, otherwise, manual fine adjustment is performed until the requirements of the target two-dimensional engineering drawing are met.
Specifically, the two-dimensional engineering drawing comprises a view and also comprises a description of the view, specifically comprising a node diagram, finished product information, drawing information, manufacturing information and the like, and the engineering drawing comprises a plurality of contents, wherein the placing positions of different contents are different, and a placing mode meeting the industrial requirements is a layout mode. And manually judging whether the layout mode of the two-dimensional engineering drawing is the drawing mode according to the industry requirement of the finished product two-dimensional engineering drawing, wherein if the view is positioned in the middle of the drawing, the node diagram is positioned at the bottom of the drawing, and the finished product information, the manufacturing information and the drawing information are sequentially positioned on the right side of the drawing from top to bottom. Through the judgment, the formed target two-dimensional engineering drawing is further ensured to be correct.
And on the basis of obtaining the two-dimensional engineering drawing, judging, and if the two-dimensional engineering drawing does not meet the requirement, manually adjusting, such as increasing and decreasing related information, adjusting the position of a layout object and the like, so that the adjusted two-dimensional engineering drawing meets the industrial requirement.
Example two
The embodiment provides a system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, which comprises:
the three-dimensional model building module is used for building an initial three-dimensional model of a finished product quickly, modifying the initial three-dimensional model of the finished product according to requirements and obtaining a target three-dimensional model of the finished product;
the three-dimensional model conversion two-dimensional engineering drawing module is used for acquiring an intermediate file based on a target three-dimensional model of a finished product; calling a pre-stored corresponding layout mode according to the type of the finished product, and automatically laying out in combination with the selected map-making node on the basis of obtaining the intermediate file to obtain a two-dimensional engineering drawing;
the intermediate file comprises a two-dimensional engineering drawing obtained by conversion based on a target three-dimensional model and related drawing data of the target three-dimensional model, wherein the related drawing data comprises finished product information, drawing information, manufacturing information and a node diagram.
Further, the three-dimensional model conversion two-dimensional engineering drawing module comprises a data extraction module, an automatic layout module and a rendering and plotting module, wherein the data extraction module is used for extracting an intermediate file required by conversion based on a target three-dimensional model of a finished product; the automatic layout module is used for calling a prestored corresponding layout mode according to the type of a finished product and carrying out automatic layout by combining the selected chart node on the basis of acquiring the intermediate file; and the rendering plotting module is used for rendering and generating the two-dimensional engineering drawing.
Furthermore, the three-dimensional model building module comprises a case selection module and a case storage module, the case storage module is used for storing a plurality of three-dimensional model cases of different finished products, and the related information of the stored cases is stored in the format of upstream conditions; the case selection module is used for selecting cases similar to the finished product to be built according to the upstream conditions of the stored three-dimensional model cases, calling the similar cases and directly building the initial three-dimensional model.
The three-dimensional model building module also comprises a building tool and seed equipment, wherein the building tool comprises a user interface, a rendering logic module and a part library; specifically, the user interface is used for providing an interface window for user input and acquiring information input by the user; the part library is pre-stored with a plurality of parts of different types, and each part comprises parameter information such as the shape, the size, the material, the processing technique and the painting color of the part; the rendering logic module is preset with building logics among all parts in the part library, and is used for calling parts of corresponding types in the part library according to the part types input by a user, searching and matching the building logics among the called parts, automatically building and outputting a built three-dimensional model.
The seed equipment comprises a plurality of seed parts, wherein the seed parts are used as the most basic structures for forming finished products and comprise specific services for constructing a three-dimensional model, each seed part also comprises parameter information such as a corresponding coordinate system (for example, a three-dimensional coordinate system taking the midpoint of the seed part as an origin), shape, size, material, processing technology, painting color and the like, a node diagram of the seed part matched with other seed parts and a node diagram of the seed part.
The steps related to the second embodiment correspond to the first embodiment of the method, and the detailed description thereof can be found in the relevant description of the first embodiment.
Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using general purpose computer means, or alternatively, they can be implemented using program code that is executable by computing means, such that they are stored in memory means for execution by the computing means, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps of them are fabricated into a single integrated circuit module. The present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A method for automatically generating a two-dimensional engineering drawing based on a three-dimensional model is characterized by comprising the following steps:
rapidly building an initial three-dimensional model of a finished product;
modifying the initial three-dimensional model of the finished product according to the requirement to obtain a target three-dimensional model of the finished product;
acquiring an intermediate file based on the target three-dimensional model of the finished product; the intermediate file comprises a two-dimensional engineering drawing obtained based on target three-dimensional model conversion and related drawing data of the target three-dimensional model, wherein the related drawing data comprises finished product information, drawing information, manufacturing information and a node diagram;
and calling a pre-stored corresponding layout mode according to the type of the finished product, and automatically laying out in combination with the selected map node on the basis of obtaining the intermediate file to obtain the two-dimensional engineering drawing.
2. The method for automatically generating the two-dimensional engineering drawing based on the three-dimensional model as claimed in claim 1, wherein the fast building of the initial three-dimensional model comprises the following steps:
pulling an upstream condition; the upstream conditions comprise names, equipment names, engineering names, bit numbers and process conditions;
and judging whether a case similar to the finished product exists according to the upstream condition, if so, judging that the case exists, selecting and calling the case to directly construct the initial three-dimensional model, and if not, re-constructing the initial three-dimensional model.
3. The method of claim 2 for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, wherein rebuilding the initial three-dimensional model comprises:
judging whether a building tool for building the finished product exists or not, and if so, inputting each component of the three-dimensional model of the finished product to be built and the type of the component into the building tool to obtain an initial three-dimensional model; otherwise, the initial three-dimensional model is built by using the seed equipment.
4. The method for automatically generating the two-dimensional engineering drawing based on the three-dimensional model as claimed in claim 3, wherein the building tool comprises a user interface, a rendering logic module and a part library;
the user interface is used for providing an interface window for user input and acquiring information input by the user; the part library is pre-stored with a plurality of parts of different types, and each part comprises the shape, the size, the material, the processing technology and the painting color; and the rendering logic module is preset with construction logic among all parts in the part library and is used for calling parts of corresponding types in the part library according to the part types input by a user, searching and matching the construction logic among the called parts, automatically constructing and outputting the constructed three-dimensional model.
5. The method of claim 3 for automatically generating a two-dimensional engineering drawing based on a three-dimensional model, wherein the building of the initial three-dimensional model using seed equipment comprises:
selecting seed parts required for building the initial three-dimensional model of the finished product to be built in the seed equipment, and adjusting the positions and the sizes of the seed parts to obtain the initial three-dimensional model of the finished product.
6. The method for automatically generating the two-dimensional engineering drawing based on the three-dimensional model as claimed in claim 5, wherein the seed equipment comprises a plurality of seed parts, the seed parts comprise specific services for building the three-dimensional model, and the specific services are inherent logics existing among the seed parts in the building and combining processes of the various seed parts.
7. The method according to claim 6, wherein the seed part further comprises a corresponding coordinate system, shape, size, material, processing technique, painting color, node map of the seed part matching with other seed parts and node map of the seed part itself.
8. A system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model is characterized by comprising the following components:
the three-dimensional model building module is used for building an initial three-dimensional model of a finished product quickly, modifying the initial three-dimensional model of the finished product according to requirements and obtaining a target three-dimensional model of the finished product;
the three-dimensional model conversion two-dimensional engineering drawing module is used for acquiring an intermediate file based on a target three-dimensional model of a finished product; calling a pre-stored corresponding layout mode according to the type of the finished product, and automatically laying out in combination with the selected map-making node on the basis of obtaining the intermediate file to obtain a two-dimensional engineering drawing;
the intermediate file comprises a two-dimensional engineering drawing obtained based on target three-dimensional model conversion and related drawing data of the target three-dimensional model, wherein the related drawing data comprises finished product information, drawing information, manufacturing information and a node diagram.
9. The system for automatically generating two-dimensional engineering drawings based on three-dimensional models according to claim 8, wherein the three-dimensional model conversion two-dimensional engineering drawing module comprises a data extraction module, an automatic layout module and a rendering drawing module, and the data extraction module is used for extracting intermediate files required by conversion based on a target three-dimensional model of a finished product; the automatic layout module is used for calling a prestored corresponding layout mode according to the type of a finished product and carrying out automatic layout by combining the selected chart node on the basis of acquiring the intermediate file; and the rendering plotting module is used for rendering and generating the two-dimensional engineering drawing.
10. The system for automatically generating a two-dimensional engineering drawing based on a three-dimensional model as claimed in claim 8, wherein the three-dimensional model building module comprises a case selection module and a case storage module, the case storage module is used for storing a plurality of three-dimensional model cases of different finished products, and the related information of the stored cases is stored in the format of upstream conditions; the case selection module is used for selecting cases similar to the finished product to be built according to the upstream conditions of the stored three-dimensional model cases, calling the similar cases and directly building the initial three-dimensional model.
CN202211276234.XA 2022-10-19 2022-10-19 Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model Active CN115344905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211276234.XA CN115344905B (en) 2022-10-19 2022-10-19 Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211276234.XA CN115344905B (en) 2022-10-19 2022-10-19 Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model

Publications (2)

Publication Number Publication Date
CN115344905A true CN115344905A (en) 2022-11-15
CN115344905B CN115344905B (en) 2023-02-03

Family

ID=83957025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211276234.XA Active CN115344905B (en) 2022-10-19 2022-10-19 Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model

Country Status (1)

Country Link
CN (1) CN115344905B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115993803A (en) * 2023-03-22 2023-04-21 中科航迈数控软件(深圳)有限公司 Machining parameter adjusting method based on numerical control machine tool and related equipment
CN116029009A (en) * 2023-03-29 2023-04-28 北京中昌工程咨询有限公司 Building intelligent drawing method and system based on BIM technology
CN117115406A (en) * 2023-10-24 2023-11-24 玛斯特轻量化科技(天津)有限公司 Automatic drawing method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060176296A1 (en) * 2005-02-04 2006-08-10 Hoffman Donley B Systems and methods for rendering three-dimensional graphics in a multi-node rendering system
CN103886143A (en) * 2014-03-10 2014-06-25 陕西省电力设计院 Method for rapidly generating framework girder construction drawing through nodes
CN113094770A (en) * 2021-03-12 2021-07-09 广州珠江外资建筑设计院有限公司 Drawing generation method and device, computer equipment and storage medium
US20220044476A1 (en) * 2020-11-23 2022-02-10 Beijing Baidu Netcom Science Technology Co., Ltd Three-dimensional model processing method, electronic device, and storage medium
CN114154223A (en) * 2021-12-03 2022-03-08 国网经济技术研究院有限公司 Method, system, storage medium and equipment for generating two-dimensional engineering drawing by three-dimensional model
CN114781028A (en) * 2022-04-20 2022-07-22 天宫开物(深圳)科技有限公司 Method, device, electronic equipment and medium for outputting three-dimensional model as two-dimensional drawing
CN115081075A (en) * 2022-06-28 2022-09-20 上海铭迪软件技术有限公司 Automatic method for converting three-dimensional information model into two-dimensional design drawing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060176296A1 (en) * 2005-02-04 2006-08-10 Hoffman Donley B Systems and methods for rendering three-dimensional graphics in a multi-node rendering system
CN103886143A (en) * 2014-03-10 2014-06-25 陕西省电力设计院 Method for rapidly generating framework girder construction drawing through nodes
US20220044476A1 (en) * 2020-11-23 2022-02-10 Beijing Baidu Netcom Science Technology Co., Ltd Three-dimensional model processing method, electronic device, and storage medium
CN113094770A (en) * 2021-03-12 2021-07-09 广州珠江外资建筑设计院有限公司 Drawing generation method and device, computer equipment and storage medium
CN114154223A (en) * 2021-12-03 2022-03-08 国网经济技术研究院有限公司 Method, system, storage medium and equipment for generating two-dimensional engineering drawing by three-dimensional model
CN114781028A (en) * 2022-04-20 2022-07-22 天宫开物(深圳)科技有限公司 Method, device, electronic equipment and medium for outputting three-dimensional model as two-dimensional drawing
CN115081075A (en) * 2022-06-28 2022-09-20 上海铭迪软件技术有限公司 Automatic method for converting three-dimensional information model into two-dimensional design drawing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
沈培玉: "基于Auto CAD的三维实体快速生成零件的二维图样", 《机械研究与应用》 *
王玉琨等: "基于建筑施工图的三维重建方法研究", 《微计算机信息》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115993803A (en) * 2023-03-22 2023-04-21 中科航迈数控软件(深圳)有限公司 Machining parameter adjusting method based on numerical control machine tool and related equipment
CN116029009A (en) * 2023-03-29 2023-04-28 北京中昌工程咨询有限公司 Building intelligent drawing method and system based on BIM technology
CN117115406A (en) * 2023-10-24 2023-11-24 玛斯特轻量化科技(天津)有限公司 Automatic drawing method and device and electronic equipment
CN117115406B (en) * 2023-10-24 2024-03-08 玛斯特轻量化科技(天津)有限公司 Automatic drawing method and device and electronic equipment

Also Published As

Publication number Publication date
CN115344905B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN115344905B (en) Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model
CN105975562A (en) Method and apparatus for automatically generating budget table of engineering drawing
CN108573112B (en) Space flight test emission two-dimensional layout analysis method based on digital simulation
CN109871567B (en) Automatic generation method of photovoltaic module arrangement drawing
CN109614671B (en) Three-dimensional MBD process model organization and expression method based on view
CN109783886A (en) Emerging system and method for GIM model and IFC model
JP7264989B2 (en) Visualization method, device and recording medium for multi-source earth observation image processing
CN109636301A (en) Workflow configuration method, system, terminal and the readable storage medium storing program for executing of financial business
JP2000155859A (en) Method for preparing mesh for analyzing numerical value and its device
CN104504171B (en) Modeling method based on unified modeling environment
CN110032368B (en) Information configuration method and device
CN107273543A (en) A kind of conversion method of DGN data formats
CN109739490A (en) Quick electrical component model creating method based on QT graph framework
CN106844610A (en) A kind of distributed structured three-dimensional point cloud image processing method and system
CN111612686B (en) Structure mapping method from EBOM to PBOM
CN101789030A (en) Virtual geographical environment (VGE) symbolic model and map symbol sharing system and method based on same
CN111062179A (en) Interactive design method of MCAD and ECAD
CN107729511B (en) Customizable geographic information data rectangular framing method
Techasarntikul et al. Guidance and visualization of optimized packing solutions
CN101706837A (en) Mathematical model based method for establishing database of fixture components
CN106294968B (en) Tyre tread 3d designing system and its method based on Engineering Semantics interactive mode
CN117574469A (en) Parameterized model generation method for rapidly generating complex model
CN112270034A (en) Wall splitting method, device and system
CN115827809A (en) Method and device for generating Geographic Information System (GIS) application
CN115629723A (en) Engineering drawing batch printing method based on CATIA V6

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