Drawing generation method and device, equipment and storage medium
By obtaining the geometric shape set and determining the target view direction, reading the graphic element and attribute information, generating view marking information and integrating it into the drawing, the problem of low efficiency and accuracy of drawing generation in traditional vehicle equipment is solved, and more efficient and accurate Drawing generation.
Patent Information
- Application Number
- CN202411253952.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-31
AI Technical Summary
In the modeling process of traditional vehicle equipment components to assembly assembly, the drawing generation efficiency and accuracy are low, and there is a risk of manual error.
By responding to the assembly drawing generation instructions, obtaining the geometric shape set, determining the target view direction, reading the graphic elements and attribute information, generating view label information, and labeling it in the corresponding view, integrating it into the drawing, and generating assembly drawings.
It improves the generation efficiency and accuracy of assembly drawings, reduces errors caused by manual annotation, and improves the degree of automation.
Smart Images

Figure CN119227161A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial drawing generation, and in particular to a drawing generation method, device, equipment and storage medium. Background Art
[0002] In traditional production methods, the modeling process of vehicle equipment, such as an all-aluminum low-temperature radiator, from parts to assembly requires a lot of manual work, and the production of engineering drawings of each part and assembly requires even more man-hours.
[0003] Faced with multi-project and multi-task work conditions, this production method is obviously less efficient and has the risk of human error. Summary of the invention
[0004] The present invention provides a drawing generation method, device, equipment and storage medium to solve the problems of low efficiency and low accuracy in generating assembly drawings.
[0005] According to one aspect of the present invention, a drawing generation method is provided, the method comprising:
[0006] In response to the received assembly drawing generation instruction, a geometric graphics set is acquired, a target view direction is determined, and a target view set corresponding to the target view direction is searched in the geometric graphics set;
[0007] Reading the graphic elements and graphic element attribute information in the target view set, and outputting the graphic elements as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information, and annotation annotation information;
[0008] The view annotation information is annotated into the view corresponding thereto to obtain at least one sub-view, and at least one sub-view is integrated into the drawing to generate the assembly drawing.
[0009] According to another aspect of the present invention, there is provided a drawing generation device, the device comprising:
[0010] An instruction response module, configured to respond to a received assembly drawing generation instruction, obtain a geometric graphics set, determine a target view direction, and search the geometric graphics set for a target view set corresponding to the target view direction;
[0011] A marking information output module, used for reading the graphic elements and graphic element attribute information in the target view set, and outputting the graphic elements as view marking information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension marking information, benchmark standard information and annotation marking information;
[0012] A drawing generation module is used to annotate the view annotation information into the view corresponding to it to obtain at least one sub-view, and integrate at least one of the sub-views into the drawing to generate the assembly drawing.
[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the drawing generation method described in any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the drawing generation method described in any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention obtains a geometric set in response to a received assembly drawing generation instruction, determines a target view direction, and searches for a target view set corresponding to the target view direction in the geometric set; the target view set corresponding to the target view direction can be accurately queried; then, the graphic elements and graphic element attribute information in the target view set are read, and the graphic elements are output as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information and annotation annotation information; the view annotation information is quickly and accurately generated, and finally, the view annotation information is annotated to the view corresponding to it to obtain at least one sub-view, and at least one of the sub-views is integrated into the drawing to generate the assembly drawing, thereby solving the problem of low efficiency and low accuracy in generating assembly drawings, and achieving the beneficial effect of improving the efficiency and accuracy in generating assembly drawings.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a drawing generation method provided according to the first embodiment of the present invention;
[0022] Figure 2a is a flow chart of a drawing generation method provided according to the second embodiment of the present invention;
[0023] Figure 2b is a flow chart of an optional example of a drawing generation method provided according to the second embodiment of the present invention;
[0024] Figure 2c is a flowchart of digital model update of an optional example of a drawing generation method provided in Embodiment 2 of the present invention;
[0025] Figure 2d is a flowchart of parts replacement of an optional example of a drawing generation method provided in Embodiment 2 of the present invention;
[0026] Figure 3 is a structural schematic diagram of a drawing generation device provided according to Embodiment 3 of the present invention;
[0027] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the drawing generation method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Embodiment 1
[0031] Figure 1 A flowchart of a drawing generation method is provided for the first embodiment of the present invention. This embodiment is applicable to vehicle equipment, such as the generation of assembly drawings of all-aluminum low-temperature radiators. The method can be executed by a drawing generation device, which can be implemented in the form of hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0032] S110. In response to the received assembly drawing generation instruction, a geometric graphics set is obtained, a target view direction is determined, and a target view set corresponding to the target view direction is searched in the geometric graphics set.
[0033] Among them, the geometry set can be understood as a collection of geometric figures with different view directions and dimensions. The geometric figures can be two-dimensional figures (such as circles, triangles, and polygons) or three-dimensional figures (such as cubes, spheres, and cylinders). The view set can be understood as a class for storing processing methods for generating the same view. The view direction can be understood as the direction of viewing the view, and the view direction can include at least one of the front view, top view, and side view.
[0034] Specifically, in response to the received assembly drawing generation instruction, a set of multiple geometric figures or a set of multiple geometric figures pre-generated by a graphics generation algorithm is obtained from a database, at least one target view direction is determined, and a target view set corresponding to each target view direction is searched in the geometric figure set.
[0035] Optionally, before obtaining the geometric graphics set, the method further includes: constructing a three-dimensional part digital model based on a pre-constructed part database and manually input part parameter values, wherein the three-dimensional part digital model stores a parameter selection-part type comparison table, a skeleton-part relationship comparison table and at least one geometric graphics set;
[0036] Specifically, by locating the location of the parts database in the package configuration file, copy the database to the path specified when creating a new project, rename the folder and its internal data, and then open the skeleton data. After manually entering the parameter value in the interface for confirmation, the system assembles the axis position and parameter value information of each parameter according to the skeleton data on the structure tree, quickly generates the digital model by unifying the parameter values of the same-name parameters in the digital model of the required parts, and quickly instantiates and assembles the parts according to the parameter selection-part type, skeleton-part relationship comparison table.
[0037] Among them, skeleton data can be understood as the data of the internal structure and key supporting elements of the part. Skeleton data can include information such as the part's geometry, size, material properties, connection methods, and key supporting points.
[0038] The step of obtaining a geometric figure set includes: obtaining a geometric figure set from the three-dimensional part digital model.
[0039] In the embodiment of the present invention, by directly acquiring the geometric graphics set from the pre-established three-dimensional part digital model, the efficiency of acquiring the collective graphics set is greatly improved.
[0040] Optionally, the method also includes: when updating the three-dimensional part digital model, determining the part parameters to be changed and searching for a parameter set to be changed that includes the part parameters to be changed; and updating the three-dimensional part digital model by changing the part parameters to be changed and the parameters under the parameter set to be changed.
[0041] Specifically, when updating the three-dimensional part digital model, at least one part whose parameters need to be changed is selected, the parameters of the part to be changed are determined, and the parameter set to be changed that contains the parameters of the part to be changed is searched. After selecting the parameters under the parameter set to be changed, the three-dimensional part digital model is updated by assigning new parameter values to the parameters of the part to be changed and the parameters under the parameter set to be changed. Among them, the parameter set to be changed that is the same as the identifier of the part parameter to be changed can be searched based on the identifier of the part parameter to be changed. It is also possible to search for the parameter set to be changed that has a pre-established association relationship with the part parameter to be changed.
[0042] Optionally, the method also includes: in response to a part replacement request for the three-dimensional part digital model, searching for a target geometric set matching the part to be replaced in the skeleton data of the first storage space according to the identification of the part to be replaced; and completing the part replacement by replacing the coordinate axes of the part to be replaced with the coordinate axes in the target geometric set and matching them with the coordinate axes in the skeleton of the part to be replaced.
[0043] The first storage space stores skeleton data of multiple parts.
[0044] Exemplarily, based on the part to be replaced selected by the user, determine whether it is a file of a preset file type. If so, traverse the geometric graphics set in the assembly, search for a target geometric graphics set that matches the part to be replaced in the skeleton data of the first storage space according to the identifier of the part to be replaced, search for a defined coordinate axis in the target geometric graphics set, replace the coordinate axis of the part to be replaced with the coordinate axis in the skeleton of the part to be replaced. If the file currently being processed is not of a preset file type or the target geometric graphics set is not found, check whether a coordinate axis with a preset identifier has been published in the part, read the position and direction information of the coordinate axis with the preset identifier, and align the coordinate axis with the coordinate axis in the skeleton to achieve the same position and direction as the skeleton coordinate axis.
[0045] In the embodiment of the present invention, the parts to be replaced are replaced by searching for matching graphic sets or coordinate axes with preset identifiers, thereby improving the efficiency of parts replacement.
[0046] S120. Read the graphic elements and graphic element attribute information in the target view set, and output the graphic elements as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information and annotation annotation information.
[0047] Among them, graphic elements include point elements, line elements and surface elements, etc. All graphic elements need to be loaded and read from the target view set. Graphic element attribute information includes position attribute information, length attribute information, color attribute information and width attribute information.
[0048] Optionally, each graphic element has a graphic element identifier, which includes the position and size information of the element in the view. The graphic element can be output as view annotation information according to the graphic element identifier.
[0049] Specifically, all graphic elements are loaded and read from the target view set. Each graphic element has its position and size information in the view. Graphic element attribute information of the graphic element is parsed, and based on the parsed graphic element attribute information and according to the graphic element identifier, the graphic element is output as multiple types of dimensioning information, benchmark standard information and annotation information.
[0050] Optionally, the target view set includes a skeleton view set, and the graphic element attribute information includes skeleton element attribute information; accordingly, reading the graphic elements and graphic element attribute information in the target view set, and outputting the graphic elements as view annotation information based on the graphic element attribute information, includes: reading the point elements, line elements and the skeleton element attribute information in the skeleton view set, and outputting the point elements and the line elements as different types of skeleton dimension annotation information and skeleton reference annotation information based on the skeleton element attribute information, wherein the skeleton view set is used to store the graphic elements for constructing a sub-view framework, and the point elements and line elements in the skeleton view set are used to map to the sub-view based on preset mapping rules to annotate the sub-view framework.
[0051] Specifically, the view direction is determined by the direction of the three coordinate axes, the point elements and line elements in the skeleton view set corresponding to the view direction are read, and the point elements and line elements are output as different types of skeleton dimension annotation information and skeleton reference annotation information based on the skeleton element attribute information.
[0052] Optionally, the target view set includes a part graphics set, and the graphic element attribute information includes skeleton element attribute information; accordingly, reading the graphic elements and graphic element attribute information in the target view set, and outputting the graphic elements as view annotation information based on the graphic element attribute information, includes: reading the point elements, line elements and part element attribute information in the part graphics set, and outputting the point elements and the line elements as different types of part dimension annotation information based on the part element attribute information, wherein the part graphics set is used to store graphic elements for constructing sub-view parts, and the point elements and line elements in the part graphics set are used to map to the sub-view based on preset mapping rules to annotate the parts of the sub-view.
[0053] In the embodiment of the present invention, the skeleton and part annotation information of the sub-view are obtained based on the graphic elements in the skeleton view set and the part graphic set, respectively, so as to facilitate the rapid construction of sub-views in multiple viewing directions.
[0054] S130. Annotate the view annotation information to the view corresponding to it to obtain at least one sub-view, and integrate at least one of the sub-views into the drawing to generate the assembly drawing.
[0055] Specifically, the view annotation information is respectively annotated to the corresponding views to obtain at least one sub-view, and the sub-views in multiple directions are integrated into the drawing to generate the assembly drawing.
[0056] In the embodiment of the present invention, the efficiency of sub-view annotation is improved, errors caused by manual annotation are avoided, and the automation level of sub-view construction is improved.
[0057] Optionally, after generating the assembly drawing, the method further includes:
[0058] The parameter values of the three-dimensional part digital model are assigned to the associated parameters of the assembly drawing to update the assembly drawing.
[0059] The associated parameters can be understood as parameters that are associated with the parameters in the three-dimensional part digital model, for example, parameters with the same identifier.
[0060] Specifically, the update of the assembly drawing is achieved by checking the parameter values in the 3D part digital model and assigning them to the associated parameters in the 2D assembly drawing file.
[0061] The technical solution of the embodiment of the present invention obtains a geometric set in response to a received assembly drawing generation instruction, determines a target view direction, and searches for a target view set corresponding to the target view direction in the geometric set; the target view set corresponding to the target view direction can be accurately queried; then, the graphic elements and graphic element attribute information in the target view set are read, and the graphic elements are output as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information and annotation annotation information; the view annotation information is quickly and accurately generated, and finally, the view annotation information is annotated to the view corresponding to it to obtain at least one sub-view, and at least one of the sub-views is integrated into the drawing to generate the assembly drawing, thereby solving the problem of low efficiency and low accuracy in generating assembly drawings, and achieving the beneficial effect of improving the efficiency and accuracy in generating assembly drawings.
[0062] Embodiment 2
[0063] Figure 2a A flowchart of a drawing generation method provided in Embodiment 2 of the present invention, this embodiment is a further refinement of how to integrate at least one of the sub-views into the drawing to generate the assembly drawing in the above embodiment. Optionally, the step of integrating at least one of the sub-views into the drawing to generate the assembly drawing includes: placing at least one of the sub-views at a target position in the drawing according to a preset layout rule to obtain a target view; and hiding the graphic elements in the target view to generate the assembly drawing.
[0064] like Figure 2a As shown, the method includes:
[0065] S210. In response to the received assembly drawing generation instruction, a geometric graphics set is obtained, a target view direction is determined, and a target view set corresponding to the target view direction is searched in the geometric graphics set.
[0066] S220. Read the graphic elements and graphic element attribute information in the target view set, and output the graphic elements as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information and annotation annotation information.
[0067] S230, annotating the view annotation information to the view corresponding thereto to obtain at least one sub-view, and placing at least one of the sub-views at a target position in the drawing according to a preset layout rule to obtain a target view.
[0068] Specifically, the preset layout rules include the arrangement order, spacing, alignment and scaling of the subviews. At least one of the subviews is placed in the target position in the drawing in sequence according to the preset layout rules, and the subviews are adjusted during the placement process to ensure that all subviews comply with the layout rules and the relationship between each other is clear. After all subviews are placed, final adjustments and optimizations are made to obtain the target view. For example: check the spacing and alignment between subviews of the annotation information, optimize the overall layout of the drawing, etc.
[0069] S240: Hide the graphic elements in the target view to generate the assembly drawing.
[0070] Specifically, select the graphic elements to be hidden in the target view, and hide the point elements and line elements in the target view by selecting "Isolate"-"Hide Object" in the tool in the drawing system; or close the preset chart in the coating manager in the drawing system to hide the graphic elements in the target view; or set the transparency of the graphic elements, for example: lower the transparency of the graphic elements to zero, to hide the graphic elements in the target view.
[0071] In the embodiment of the present invention, the graphic elements in the target view are hidden to generate an assembly drawing, thereby reducing visual interference in the assembly drawing and making the assembly drawing more concise and clear.
[0072] The technical solution of the embodiment of the present invention is to obtain a target view by placing at least one of the sub-views at a target position in the drawing according to a preset layout rule. The marked sub-view is placed at a target position in the drawing according to the preset layout rule, thereby reducing errors caused by manual drawing and improving the accuracy of generating the target view. Then, the graphic elements in the target view are hidden to generate the assembly drawing. The visual interference in the assembly drawing is reduced, making the assembly drawing more concise and clear.
[0073] Figure 2bA flowchart of an optional example of a drawing generation method is provided. Figure 2b As shown, the drawing generation method specifically includes the following steps:
[0074] In response to the received assembly drawing generation instruction; obtaining a geometric set; determining a target view direction, searching the geometric set for a target view set corresponding to the target view direction; reading point elements, line elements and the skeleton element attribute information in the skeleton view set, and outputting the point elements and the line elements as different types of skeleton dimension annotation information and skeleton reference annotation information based on the skeleton element attribute information; reading point elements, line elements and the part element attribute information in the part graphics set, and outputting the point elements and the line elements as different types of part dimension annotation information based on the part element attribute information; annotating the view annotation information to the view corresponding to it to obtain at least one sub-view, and integrating at least one of the sub-views into the drawing to generate the assembly drawing.
[0075] The method further comprises:
[0076] The system locates the location of the parts database in the package configuration file, copies the database to the path specified when creating a new project, renames the folder and its internal data, and then opens the skeleton data. After manually entering the parameter value in the interface for confirmation, the system assembles the axis position and parameter value information of each parameter according to the skeleton data on the structure tree, quickly generates the digital model by unifying the parameter values of the same-name parameters in the digital model of the required parts, and quickly instantiates and assembles the parts according to the parameter selection-part type and skeleton-part relationship comparison table.
[0077] Figure 2c A flowchart of a digital model update of an optional example of a drawing generation method is provided. Figure 2c As shown, the method also includes:
[0078] In the parameter adjustment interface, multiple parts to be changed are selected, the parameters of the parts to be changed are determined, and a parameter set to be changed containing the parameters of the parts to be changed is searched; the parameters of the parts to be changed and the parameters under the parameter set to be changed are changed to update the three-dimensional part digital model.
[0079] The technical solution of the embodiment of the present invention realizes the synchronous modification of the digital model of matching parts or parts with similar structures, improves the efficiency of modifying the digital model, and reduces the possibility of human omissions.
[0080] Figure 2d A flowchart of part replacement for an alternative example of a drawing generation method is provided. Figure 2d As shown, the method also includes:
[0081] In response to a part replacement request for the three-dimensional part digital model, a target geometric set corresponding to the part to be replaced is searched in the skeleton data of the first storage space according to the identification of the part to be replaced; the part replacement is completed by replacing the coordinate axes of the part to be replaced with the coordinate axes in the target geometric set and matching them with the coordinate axes in the skeleton of the part to be replaced.
[0082] Part replacement can achieve the replacement between parts, components and components, and between parts and components. Replacement is achieved by replacing the published coordinate axes with the coordinate axes in the skeleton.
[0083] The method further comprises:
[0084] The assembly drawing is generated by reading the preset parameterized points and line sets in the 3D digital model to automatically generate each sub-view and its size, benchmark, etc., so that the drawing tends to be standardized.
[0085] The method further comprises:
[0086] The parameter values of the three-dimensional part digital model are assigned to the parameters of the same name in the assembly drawing to update the assembly drawing.
[0087] Update part drawings in batches, assign the parameter values in the 3D digital model of the selected parts to the parameters with the same name in the 2D drawing file, realize the synchronous update of 2D and 3D, and finally identify the drawing page name and export the preset format file of the required 2D drawing.
[0088] The method further comprises:
[0089] Generate reports quickly, check parts to make reports, calculate the maximum dimensions and weight of the digital model, and take screenshots of isometric views and output them as reports.
[0090] The method further comprises:
[0091] Check the box to convert the components into data in the preset format. The program will save the selected files separately as files in the preset format and save them to the path specified by the user.
[0092] The method further comprises:
[0093] Batch modify file names, retrieve the input replaced characters in the original file name, change them to the specified characters, and batch modify the names of all structure data under the root.
[0094] The technical solution of the embodiment of the present invention can complete the generation of three-dimensional digital models in a short time, greatly shortening the modeling cycle. The details of the parts can be finely adjusted by modifying the parameters as needed to make the design more in line with actual needs. The borrowed parts that have been mass-produced are replaced with the current drawing design to reduce duplication of work and improve design efficiency. The assembly drawings are quickly and automatically generated, and batch updates and conversions of two-dimensional drawings of parts are supported, further simplifying the workflow. Users can choose to export the required report and file format as needed to facilitate subsequent work.
[0095] Embodiment 3
[0096] Figure 3 This is a schematic diagram of the structure of a drawing generation device provided in Embodiment 3 of the present invention. Figure 3 As shown, the device includes: an instruction response module 310, a marking information output module 320 and a drawing generation module 330.
[0097] Among them, the instruction response module 310 is used to respond to the received assembly drawing generation instruction, obtain a geometric set, determine the target view direction, and search for a target view set corresponding to the target view direction in the geometric set; the annotation information output module 320 is used to read the graphic elements and graphic element attribute information in the target view set, and output the graphic elements as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information and annotation annotation information; the drawing generation module 330 is used to annotate the view annotation information to the view corresponding to it to obtain at least one sub-view, and integrate at least one of the sub-views into the drawing to generate the assembly drawing.
[0098] The technical solution of the embodiment of the present invention is to obtain a geometric set, determine a target view direction, and search for a target view set corresponding to the target view direction in the geometric set through an instruction response module in response to a received assembly drawing generation instruction; the target view set corresponding to the target view direction can be accurately queried; then, through an annotation information output module, read the graphic elements and graphic element attribute information in the target view set, and output the graphic elements as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information and annotation annotation information; quickly and accurately generate view annotation information, and finally, through a drawing generation module, annotate the view annotation information to the view corresponding to it to obtain at least one sub-view, integrate at least one of the sub-views into the drawing to generate the assembly drawing, thereby solving the problem of low efficiency and low accuracy in generating assembly drawings, and achieving the beneficial effect of improving the efficiency and accuracy of generating assembly drawings.
[0099] Optionally, the target view set includes a skeleton view set, and the graphic element attribute information includes skeleton element attribute information; accordingly, the annotation information output module is used to:
[0100] The point elements, line elements and attribute information of the skeleton elements in the skeleton view set are read, and based on the attribute information of the skeleton elements, the point elements and the line elements are output as different types of skeleton dimension annotation information and skeleton reference annotation information, wherein the skeleton view set is used to store graphic elements for constructing a sub-view framework, and the point elements and line elements in the skeleton view set are used to be mapped to the sub-view based on preset mapping rules to annotate the sub-view framework.
[0101] Optionally, the drawing generation module includes:
[0102] A target view acquisition unit, used to place at least one of the sub-views at a target position in the drawing according to a preset layout rule to obtain a target view;
[0103] The drawing generation unit is used to hide the graphic elements in the target view to generate the assembly drawing.
[0104] Optionally, the device also includes a digital-analog building module.
[0105] The digital model construction module is used to construct a three-dimensional part digital model based on a pre-constructed part database and manually input part parameter values before obtaining the geometric graphics set, wherein the three-dimensional part digital model stores a parameter selection-part type comparison table, a skeleton-part relationship comparison table and at least one geometric graphics set.
[0106] Optionally, the instruction response module is specifically used to:
[0107] A geometric figure set is obtained from the three-dimensional part digital model.
[0108] Optionally, the device further includes: a parameter set search module and an update module.
[0109] The parameter set search module is used to determine the part parameters to be changed and search for the parameter set to be changed that includes the part parameters to be changed when the three-dimensional part digital model is updated;
[0110] The updating module is used to update the three-dimensional part digital model by changing the part parameters to be changed and the parameters under the parameter set to be changed.
[0111] Optionally, the device further includes: a graphics set search module and a parts replacement module.
[0112] The graphics set search module is used to respond to a part replacement request for the three-dimensional part digital model and search for a target geometric graphics set corresponding to the part to be replaced in the skeleton data of the first storage space according to the identification of the part to be replaced;
[0113] The part replacement module is used to complete the part replacement by replacing the coordinate axes of the part to be replaced with the coordinate axes in the target geometric set and matching them with the coordinate axes in the skeleton of the part to be replaced.
[0114] Optionally, the device further includes: a drawing updating module.
[0115] Among them, the drawing update module is used to assign the parameter value of the three-dimensional part digital model to the associated parameters of the assembly drawing after the assembly drawing is generated, so as to update the assembly drawing.
[0116] The drawing generation device provided in the embodiment of the present invention can execute the drawing generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0117] Embodiment 4
[0118] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0119] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0120] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0121] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as method drawing generation.
[0122] In some embodiments, method drawing generation may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method drawing generation described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform method drawing generation in any other suitable manner (e.g., by means of firmware).
[0123] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0124] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0125] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0126] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0127] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0128] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0129] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0130] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A drawing generation method, characterized in that: include: In response to the received assembly drawing generation instruction, a geometric graphics set is acquired, a target view direction is determined, and a target view set corresponding to the target view direction is searched in the geometric graphics set; Reading the graphic elements and graphic element attribute information in the target view set, and outputting the graphic elements as view annotation information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension annotation information, benchmark standard information, and annotation annotation information; The view annotation information is annotated into the view corresponding thereto to obtain at least one sub-view, and at least one sub-view is integrated into the drawing to generate the assembly drawing.
2. The method according to claim 1, characterized in that The target view set includes a skeleton view set, and the graphic element attribute information includes skeleton element attribute information; reading the graphic elements and the graphic element attribute information in the target view set, and outputting the graphic elements as view annotation information based on the graphic element attribute information, includes: The point elements, line elements and attribute information of the skeleton elements in the skeleton view set are read, and based on the attribute information of the skeleton elements, the point elements and the line elements are output as different types of skeleton dimension annotation information and skeleton reference annotation information, wherein the skeleton view set is used to store graphic elements for constructing a sub-view framework, and the point elements and line elements in the skeleton view set are used to be mapped to the sub-view based on preset mapping rules to annotate the sub-view framework.
3. The method according to claim 1, characterized in that The step of integrating at least one of the sub-views into a drawing to generate the assembly drawing comprises: Placing at least one of the subviews at a target position in the drawing according to a preset layout rule to obtain a target view; The graphic elements in the target view are hidden to generate the assembly drawing.
4. The method according to claim 1, characterized in that Before obtaining the geometric set, the method further includes: Constructing a three-dimensional part digital model based on a pre-constructed part database and manually input part parameter values, wherein the three-dimensional part digital model stores a parameter selection-part type comparison table, a skeleton-part relationship comparison table, and at least one geometric figure set; The step of obtaining a geometric graphics set comprises: A geometric figure set is obtained from the three-dimensional part digital model.
5. The method according to claim 4, characterized in that The method further comprises: When the three-dimensional part digital model is updated, the part parameters to be changed are determined and a set of parameters to be changed including the part parameters to be changed is searched; The three-dimensional part digital model is updated by changing the part parameters to be changed and the parameters under the parameter set to be changed.
6. The method according to claim 4, characterized in that The method further comprises: In response to a part replacement request for the three-dimensional part digital model, searching for a target geometric figure set corresponding to the part to be replaced in the skeleton data of the first storage space according to an identification of the part to be replaced; Part replacement is completed by replacing the coordinate axes of the part to be replaced with the coordinate axes in the target geometric set and matching them with the coordinate axes in the skeleton of the part to be replaced.
7. The method according to claim 4, characterized in that After generating the assembly drawing, the method further includes: The parameter values of the three-dimensional part digital model are assigned to the associated parameters of the assembly drawing to update the assembly drawing.
8. A drawing generation device, characterized in that: include: An instruction response module, configured to respond to a received assembly drawing generation instruction, obtain a geometric graphics set, determine a target view direction, and search the geometric graphics set for a target view set corresponding to the target view direction; A marking information output module, used for reading the graphic elements and graphic element attribute information in the target view set, and outputting the graphic elements as view marking information based on the graphic element attribute information, wherein the graphic element attribute information includes multiple types of dimension marking information, benchmark standard information and annotation marking information; A drawing generation module is used to annotate the view annotation information into the view corresponding to it to obtain at least one sub-view, and integrate at least one of the sub-views into the drawing to generate the assembly drawing.
9. An electronic device, characterized in that: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the drawing generation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the drawing generation method according to any one of claims 1 to 7 when executed.
Citation Information
Cited By
Part standard man-hour automatic generation method, equipment, medium and program product
CN120317034A
