A drawing generation method and device, electronic equipment and readable storage medium
By determining the projection perspective of the target part, constructing a datum system, and automatically annotating tolerances in the 3D GD&T drawing generation process, the problem of low drawing generation efficiency is solved, and efficient and accurate drawing generation is achieved.
Patent Information
- Application Number
- CN202510022365.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2045-01-07
AI Technical Summary
Existing technologies for generating 3D GD&T drawings are inefficient, resulting in heavy workloads and a high risk of errors.
By determining the angle with the largest projected area of the target part in the spatial coordinate system, datum points are selected to construct datum surfaces and datum holes. The attribute information of the datum system and the target area is identified, and tolerance files are automatically labeled from the configuration library.
It improves the efficiency of generating drawings with annotation information, reduces the workload of manual design, and lowers the error rate.
Smart Images

Figure CN120068251B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of geometric product manufacturing technology, specifically relating to a drawing generation method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] In recent years, with the rapid development of information and intelligent manufacturing technologies, digital design, as an important way to improve enterprises' rapid design capabilities, has been gradually promoted and applied in enterprise R&D processes. Among these, 3D process model dimensioning involves directly annotating the dimensional and tolerance information of the 3D process model onto the 3D model of the part using 3D modeling or design software. For example, users typically use CATIA software to design 3D geometric dimensioning and tolerance (GD&T) drawings. However, 3D GD&T annotation design is highly specialized, requiring practitioners to possess strong professional knowledge and years of work experience. Furthermore, many products have numerous components, resulting in a huge workload and low drawing generation efficiency. For instance, when designing 3D GD&T drawings for a complete vehicle using CATIA software, 600 to 800 drawings are typically required. When a large number of 3D GD&T drawings are needed, manual drawing design is inefficient and prone to errors due to the heavy workload. Summary of the Invention
[0003] This invention provides a drawing generation method, apparatus, electronic device, and readable storage medium, which can solve the problem of low drawing generation efficiency in related technologies.
[0004] To address the above problems, this invention discloses a drawing generation method, the method comprising:
[0005] Based on the projection of the target part onto the three coordinate axes of the spatial coordinate system, determine the first viewing angle with the largest projected area of the target part;
[0006] Based on the stiffness of the target part, at least three reference points are selected from the first projection plane corresponding to the first viewpoint, and a reference plane is constructed based on the reference points; the reference plane is used to restrict the three degrees of freedom of the target part corresponding to the first viewpoint.
[0007] Based on the distance between any two functional holes on the first projection plane, two reference holes are determined on the first projection plane; the reference holes are used to restrict the target part in all degrees of freedom except for the three degrees of freedom corresponding to the first viewpoint.
[0008] Based on the reference surface and the reference hole, determine the reference system corresponding to the target part;
[0009] Identify the first attribute information of the benchmark system, and call the corresponding configuration file from the basic information configuration library to determine the first tolerance of the benchmark system;
[0010] The second attribute information of the target area on the target part is identified, and the corresponding configuration file is called from the basic information configuration library to determine the second tolerance of the target area; the target area is the area on the target part other than the reference system.
[0011] On the initial drawing of the target part, the first tolerance of the reference system and the second tolerance of the target area are marked;
[0012] Adjust the different views of the target part that have been annotated in the initial drawing to generate the target drawing.
[0013] Optionally, the step of selecting at least three reference points from the first projection plane corresponding to the first viewpoint based on the stiffness of the target part, and constructing a reference plane based on the reference points, includes:
[0014] At least three reference points are selected at the included angle of the first projection plane; each reference point is located at one included angle.
[0015] Wherein, the distance between each reference point and the boundary of the first projection surface is less than or equal to the first reference distance; the area of the reference surface formed by the at least three reference points is greater than or equal to one-half of the area of the first projection surface.
[0016] Optionally, determining two reference holes on the first projection surface based on the distance between any two functional holes on the first projection surface includes:
[0017] Based on the distance between any two functional holes on the first projection surface and a second reference distance, two reference holes are determined from the functional holes; the distance between the two reference holes is greater than or equal to two-thirds of the second reference distance; the second reference distance is the longest distance between two points on the first projection surface.
[0018] Optionally, identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes:
[0019] Perform a boundary check on the target part to determine the gap between the boundary of the target part and the boundaries of other parts on the target vehicle;
[0020] Based on the gap, determine the peripheral matching part corresponding to the target part, and the sealing and fitting surface between the target part and the peripheral matching part;
[0021] Perform whole-vehicle identification on the target vehicle to determine the appearance surfaces and assembly positioning surfaces of the target part in the target vehicle.
[0022] Based on the attribute information of the sealing surface, the appearance surface, and the assembly positioning surface, the sealing surface, the appearance surface, and the assembly positioning surface are matched with all surfaces in the first preset database to determine the surface labels corresponding to the sealing surface, the appearance surface, and the assembly positioning surface.
[0023] The corresponding configuration file is retrieved from the basic information configuration library based on the face label to determine the tolerances of the sealing and bonding surface, the appearance surface, and the assembly positioning surface.
[0024] Optionally, identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes:
[0025] Based on the functional hole information in the target part, the functional holes on the target part are matched with all holes in the second preset database to determine the hole label of the functional hole; the second preset database records the hole label and hole information of each hole according to industry standards.
[0026] The tolerance of the functional hole is determined by retrieving the corresponding configuration file from the basic information configuration library based on the hole label.
[0027] Optionally, identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes:
[0028] Identify each cross-section on the target part and the functional cutting edge information corresponding to the cross-section, and query the functional cutting edge information in the third preset database to determine the cutting edge label corresponding to the functional cutting edge;
[0029] The tolerance of the functional cutting edge is determined by retrieving the corresponding configuration file from the basic information configuration library based on the cutting edge label.
[0030] Optionally, identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes:
[0031] Extract the geometric features of the target region on the target part;
[0032] The geometric features are vectorized to obtain feature vectors;
[0033] The feature vector is input into a pre-trained deep learning model for feature recognition to obtain the annotation information corresponding to the target region;
[0034] Based on the annotation information, the second tolerance of the target area is determined.
[0035] On the other hand, embodiments of the present invention provide a drawing generation apparatus, the apparatus comprising:
[0036] The viewing angle determination module is used to determine the first viewing angle with the largest projected area of the target part based on the projection of the target part on the three coordinate axes of the spatial coordinate system.
[0037] The selection module is used to select at least three reference points from the first projection plane corresponding to the first viewpoint based on the stiffness of the target part, and to construct a reference plane based on the reference points; the reference plane is used to restrict the three degrees of freedom of the target part corresponding to the first viewpoint.
[0038] The reference hole determination module is used to determine two reference holes on the first projection plane based on the distance between any two functional holes on the first projection plane; the reference holes are used to restrict the target part in all degrees of freedom except for the three degrees of freedom corresponding to the first viewpoint.
[0039] A reference system determination module is used to determine the reference system corresponding to the target part based on the reference surface and the reference hole;
[0040] The first tolerance determination module is used to identify the first attribute information of the reference system and call the corresponding configuration file from the basic information configuration library to determine the first tolerance of the reference system.
[0041] The second tolerance determination module is used to identify the second attribute information of the target area on the target part, and call the corresponding configuration file from the basic information configuration library to determine the second tolerance of the target area; the target area is the area on the target part other than the reference system;
[0042] The annotation module is used to annotate the first tolerance of the reference system and the second tolerance of the target area on the initial drawing of the target part;
[0043] The generation module adjusts different views of the target part that have been annotated in the initial drawing to generate the target drawing.
[0044] In another aspect, embodiments of the present invention also disclose an electronic device, which includes a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus. The memory is used to store executable instructions, which cause the processor to execute the aforementioned drawing generation method.
[0045] This invention also discloses a readable storage medium storing a program or instructions that, when executed by a processor, implement the drawing generation method as described in any of the preceding claims.
[0046] The embodiments of the present invention have the following advantages:
[0047] Based on the projection of the target part onto the three coordinate axes of the spatial coordinate system, a first viewing angle with the largest projected area of the target part is determined. Based on the stiffness of the target part, at least three reference points are selected from the first projection plane corresponding to the first viewing angle, and a reference plane is constructed based on these reference points. Based on the distance between any two functional holes on the first projection plane, two reference holes are determined on the first projection plane. Based on the reference plane and the reference holes, a reference system corresponding to the target part is constructed. The first attribute information of the reference system is identified, and the corresponding configuration file is called from the basic information configuration library to determine the first tolerance of the reference system. The second attribute information of the target area on the target part is identified, and the corresponding configuration file is called from the basic information configuration library to determine the second tolerance of the target area. The first tolerance of the reference system and the second tolerance of the target area are annotated on the initial drawing of the target part. Different views of the annotated target part are adjusted to generate the target drawing. This invention improves the efficiency of generating drawings containing annotation information by automatically constructing a reference system and automatically annotating the tolerances of the reference system and the target area on the target part. Attached Figure Description
[0048] Figure 1 This is a flowchart of the steps of a drawing generation method provided in an embodiment of the present invention;
[0049] Figure 2 This is a schematic diagram of a first-view perspective showing the largest projected area of a target part, provided by an embodiment of the present invention;
[0050] Figure 3 This is a schematic diagram of determining a reference point on a first projection plane according to an embodiment of the present invention;
[0051] Figure 4 This is a schematic diagram of determining a reference hole on a first projection plane according to an embodiment of the present invention;
[0052] Figure 5 This is a schematic diagram of a reference system for constructing a target part according to an embodiment of the present invention;
[0053] Figure 6 This is a schematic diagram of an interface for selecting a target part provided in an embodiment of the present invention;
[0054] Figure 7 This is a logic block diagram of a drawing generation device provided in an embodiment of the present invention;
[0055] Figure 8 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0056] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0057] The terms "first," "second," etc., used in the specification and claims of this invention are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and are not limited in number; for example, the first object can be one or more. Furthermore, the term "and / or" in the specification and claims is used to describe the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character "" generally indicates that the preceding and following related objects have an "or" relationship. In embodiments of this invention, the term "multiple" refers to two or more, and other quantifiers are similar.
[0058] Method Implementation Examples
[0059] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a drawing generation method according to the present invention. The method may specifically include the following steps:
[0060] Step 101: Determine the first viewing angle with the largest projected area of the target part based on the projection of the target part on the three coordinate axes of the spatial coordinate system.
[0061] The drawing generation method provided in this invention can be applied to the field of mechanical manufacturing to generate product design drawings. For example, in the field of automobile manufacturing, it can generate design drawings for automobile parts; or in the field of motor manufacturing, it can generate design drawings for motor parts.
[0062] In this invention, the target part refers to an object that constitutes a machine. It can be a basic element of the machine, such as, in the field of automobile manufacturing, a target part can be the front door, roof, or side panel of a car; or it can be the machine itself, such as the entire car. In this embodiment of the invention, the target part is selected by the user.
[0063] The projection of a target part onto the three coordinate axes of a spatial coordinate system refers to the projection of the target part onto three planes: the bottom plane constructed by the horizontal and vertical axes, the front plane constructed by the horizontal and vertical axes, and the side plane constructed by the vertical and vertical axes. Specifically, the projection of the target part onto the horizontal axis refers to the projection of the target part onto the plane constructed by the vertical and vertical axes. For example, when the main viewpoint is perpendicular to the plane constructed by the horizontal and vertical axes, the projection of the target part onto the plane constructed by the horizontal and vertical axes is the front view of the target part, the projection onto the plane constructed by the vertical and vertical axes is the side view of the target part, and the projection onto the plane constructed by the horizontal and vertical axes is the top view of the target part.
[0064] In this embodiment of the invention, the viewing angle with the largest projected area of the target part is determined as the first viewing angle. For example, when the area of the front view of the target part > the area of the top view > the area of the side view, the area of the front view can be determined as the surface with the largest projected area of the target part, and the viewing angle corresponding to this surface is determined as the first viewing angle. Figure 2 As shown, in Figure 2 Using the front door of a car as the target part, the first perspective with the largest projected area of the front door is determined based on the projection of the front door on the three coordinate axes of the spatial coordinate system. Obviously, in this figure, the first perspective with the largest projected area of the front door is perpendicular to the surface constructed by the horizontal and vertical axes.
[0065] It is understood that the embodiments of the present invention do not require calculating the precise value of the projected area of the target part on the three coordinate axes, but only need to determine the maximum projected area on the three coordinate axes. For example, the projection surface of the target part on the coordinate axes is divided into multiple small squares, the area of each square is calculated, and the projected area of the target part on the three coordinate axes is estimated by adding the areas of each square. The viewing angle with the largest projected area is determined as the first viewing angle.
[0066] Step 102: Based on the stiffness of the target part, select at least three reference points from the first projection plane corresponding to the first viewpoint, and construct a reference plane based on the reference points; the reference plane is used to restrict the three degrees of freedom of the target part corresponding to the first viewpoint.
[0067] The stiffness of a target part refers to its ability to undergo elastic deformation under stress. It is used to characterize the ease or difficulty of elastic deformation of the target part and can be determined based on information such as the material thickness of the target part.
[0068] Reference points are used as positioning points on molds and fixtures during the processing and welding of parts. Marking reference points ensures that parts will not wobble during processing and manufacturing.
[0069] It should be noted that the normal planes containing at least three reference points must have the same direction. A normal plane refers to a plane that passes through a reference point and is perpendicular to the first projection plane. The angle between the reference plane formed by the at least three reference points and the first projection plane is less than or equal to a first preset angle. If the angle between the reference plane and the first projection plane is greater than a preset threshold, a new reference point is selected. For example, the first preset angle is 5°. If the angle between the reference plane and the first projection plane is greater than 5°, a new reference point is selected.
[0070] The target part has six degrees of freedom in the spatial coordinate system: translation along the horizontal axis, rotation about the horizontal axis, translation along the vertical axis, rotation about the vertical axis, translation along the longitudinal axis, and rotation about the longitudinal axis.
[0071] The reference plane is used to restrict the three degrees of freedom of the target part corresponding to the first viewpoint, including: the reference plane restricts the three degrees of freedom of the target part in the spatial coordinate system, specifically the translation in the first direction corresponding to the first viewpoint, and the rotation about the directions of the other two coordinate axes; wherein, the first direction corresponds to the direction of one of the coordinate axes in the spatial coordinate system. For example, the first direction corresponding to the first viewpoint with the largest projected area of the target part is the direction of the horizontal axis in the spatial coordinate system, and the first projection plane is the projection plane of the target part in the horizontal axis direction. At least three reference points are selected in the first projection plane. Based on the reference plane formed by at least three reference points, the reference plane can restrict the translation of the target part in the horizontal axis direction, and restrict the rotation of the target part about the vertical axis and the longitudinal axis. Similarly, when the first direction corresponding to the first viewpoint with the largest projected area of the target part is the direction of the vertical axis in the spatial coordinate system, the reference plane formed by the reference points selected on the first projection plane can restrict the translation of the target part in the vertical direction and restrict the rotation of the target part around the horizontal and vertical axes.
[0072] It should be noted that the stiffness of the target parts varies, and the ease with which the target parts deform also varies. Therefore, in this embodiment of the invention, a reference point can be selected based on the stiffness of the target part, and a reference surface can be constructed to accurately prevent the deformation of the target part.
[0073] In embodiments of the present invention, such as Figure 3As shown, based on the rigidity of the car's front door, four reference points were selected on the first projection surface corresponding to the first perspective with the largest projected area of the car's front door. The four solid black circles in the figure are the reference points. The area of the quadrilateral constructed by the four reference points is greater than half of the area of the first projection surface, and all four reference points are 5mm away from the boundary of the first projection surface.
[0074] Optionally, based on the stiffness of the target part, at least three reference points are selected from the first projection plane corresponding to the first viewpoint, and a reference plane is constructed based on the reference points, which may include:
[0075] Step S11: When the stiffness of the target part is greater than or equal to the first preset threshold, select three reference points from the first projection plane corresponding to the first viewpoint, and construct a reference plane based on the reference points.
[0076] Step S12: When the stiffness of the target part is less than the first preset threshold, select at least four reference points from the first projection plane corresponding to the first viewpoint, and construct a reference plane based on the reference points.
[0077] For example, the stiffness of the target part is characterized by its material thickness. A first preset threshold is set to 1 mm. When the material thickness of the target part is greater than or equal to 1 mm, i.e., the stiffness of the target part is greater than or equal to the first preset threshold, three reference points are selected from the first projection plane corresponding to the first viewpoint of the target part. When the material thickness of the target part is less than 1 mm, the target part is determined to be a flexible part, and at least four reference points are selected from the first projection plane corresponding to the first viewpoint of the target part. The specific number is set according to the size of the target part. For example, if the dimension of the target part along any of the three coordinate axes is less than or equal to 80 cm, four reference points are selected on the first projection plane; if the dimension of the target part along any of the three coordinate axes is greater than 80 cm, five reference points are selected on the first projection plane.
[0078] Step 103: Based on the distance between any two functional holes on the first projection surface, determine two reference holes on the first projection surface; the reference holes are used to restrict the target part in all degrees of freedom except the three degrees of freedom corresponding to the first viewpoint.
[0079] The distance between functional holes refers to the distance between the centers of the functional holes.
[0080] Functional holes refer to holes with a specific purpose, and their shapes include circular, pentagonal, etc. As an example, in the automotive manufacturing industry, body process holes ensure the achievement of welding, painting, and final assembly production processes and product design goals. Here, the target part refers to any component that constitutes the overall structure of the vehicle, and the functional hole refers to the process holes used to ensure welding, painting, and final assembly. Based on their purpose, functional holes can be categorized as: main positioning holes, assembly positioning holes, trim panel clip holes, bolt holes, etc.
[0081] Based on the distance between any two functional holes on the first projection plane, two reference holes are determined on the first projection plane, including:
[0082] Record the distances between all functional holes on the first projection surface and any other functional hole. Two functional holes with a distance greater than or equal to a first preset threshold are used as reference holes. The first preset threshold is set by the user according to requirements; specifically, it can be equal to half or three-quarters of the maximum distance between two functional holes on the projection surface. For example, there are five holes H1, H2, H3, H4, and H5 on the first projection surface. Record the distances s1, s2, s3, s4, and s5 between H1 and the other four functional holes, s6, s7, and s8 between H2 and the other three functional holes, and s9, s0, and s1, s2, s3, s4, and s5 between H1 and the other four functional holes, s6, s7, and s8 between H2 and the other three functional holes, and s9, s0, s1, s2, s3, s4, and s5 between H3 and the other two functional holes. 10 The distance s between H4 and H5 11 Set the first preset threshold to half of the maximum distance, and determine s1 to s2. 11 The maximum value in the range, for example, the maximum distance is s7, calculate half of the maximum distance, and select s1 to s7. 11 Two functional holes whose values are greater than half of s7 are used as reference holes. For example... Figure 4 As shown, a reference hole is selected on the first projection plane corresponding to the first perspective with the largest projection area of the front door of the car.
[0083] Once the positions of the two reference holes on the first projection plane are determined, since the reference holes are hollow, the target part cannot move in any direction along the plane formed by the two reference holes. Based on the line connecting the two reference holes, the rotation of the target part around a direction perpendicular to the first projection plane can be restricted. For example, the first direction corresponding to the first viewing angle with the largest projected area of the target part is the direction of the horizontal axis in the spatial coordinate system, and the first projection plane is the projection plane of the target part in the horizontal axis direction. By selecting two reference holes on the first projection plane, the translation of the target part in the vertical axis direction and the translation in the longitudinal axis direction are restricted. Based on the line connecting the two reference holes, the rotation of the target part around the horizontal axis is restricted. As can be seen from the above, the two reference holes can restrict the three degrees of freedom of the target part in the spatial coordinate system.
[0084] Step 104: Determine the reference system corresponding to the target part based on the reference surface and the reference hole.
[0085] Based on the determined reference planes and reference holes, the six degrees of freedom of the target part in the spatial coordinate system can be restricted, thus completing the positioning of the target part in the spatial coordinate system. Based on the reference planes and reference holes, the reference system corresponding to the target part can be determined. For example, when the first direction corresponding to the first viewing angle with the largest projected area of the target part is the direction of the horizontal axis in the spatial coordinate system, the first projection plane is the projection plane of the target part in the horizontal axis direction. By using a reference plane composed of at least three reference points selected on the first projection plane, the translation of the target part in the horizontal axis direction and the rotation of the target part around the vertical and longitudinal axes are restricted; by using two reference holes selected on the first projection plane, the rotation of the target part around the horizontal axis and the movement along the vertical and longitudinal axes are restricted.
[0086] In embodiments of the present invention, such as Figure 5 As shown, after determining the reference plane and reference hole of the car front door, the reference system of the car front door is determined by the reference plane and reference hole, and the reference system is marked.
[0087] It should be noted that the target part can be a basic element constituting the machine or the machine itself. For example, in the field of automotive assembly, the target part can be a specific component of the vehicle, such as the side panel; the target part can also be the entire vehicle. When the target part is the entire vehicle, there is a inheritance relationship between the reference system of the entire vehicle and the reference systems of its components; that is, the reference system of the entire vehicle is selected from the reference systems of each component. The reference system for the tailgate of a car is: reference surface A0, reference holes A1, A2; the reference system for the side panel of a car is: reference surface B0, reference holes B1, B2; and the reference system for the entire vehicle can be: reference surface A0, reference holes A1, B2.
[0088] Step 105: Identify the first attribute information of the benchmark system, and call the corresponding configuration file from the basic information configuration library to determine the first tolerance of the benchmark system.
[0089] The first attribute information of the reference system includes the position, shape, and size of the reference points and reference holes.
[0090] It should be noted that the basic information configuration library stores pre-set configuration files for the datum system on the target part. These configuration files are used to specify the tolerances of the datum system. The configuration file includes: the target part's material type, tolerance type, and tolerance size.
[0091] The datum system includes datum points and datum holes. Identifying the first attribute information of the datum system and determining the first tolerance of the datum system by calling the corresponding configuration file from the basic information configuration library may include:
[0092] Identify the attribute information corresponding to each reference point and reference hole, and query the reference point label corresponding to the reference point and the reference hole label corresponding to the reference hole in the fourth preset database;
[0093] Based on the reference point label and the reference hole label, the corresponding configuration file is retrieved from the basic information configuration library to determine the tolerance corresponding to the reference point and the tolerance corresponding to the reference hole.
[0094] Step 106: Identify the second attribute information of the target area on the target part, and call the corresponding configuration file from the basic information configuration library to determine the second tolerance of the target area.
[0095] The target area refers to the region on the target part excluding the reference system. Specifically, the target area includes functional surfaces, functional holes, functional edges, etc.
[0096] In this embodiment of the invention, the shape, position, size and other attribute information of the target area on the target part, or other information related to the target area, can be identified. This embodiment of the invention does not limit this.
[0097] The basic information configuration library stores pre-defined configuration files for functional surfaces, functional holes, and functional edges on the target part. These configuration files are used to specify tolerances for functional surfaces, functional holes, and functional edges. The configuration file includes: part number and / or part name, material classification, and tolerance type.
[0098] In this embodiment of the invention, a fifth preset database stores the attribute information and corresponding tags of each functional surface, functional hole, and functional edge, recorded according to industry standards or user-defined specifications. For example, industry standards specify that for assembly positioning holes made of stamped steel, the shape tolerance is set to +0.1 / 0, and the position tolerance is set to ±0.2. By matching the shape, position, and size attributes of the functional surfaces, functional holes, and functional edges on the target part with the attribute information stored in the fifth preset database, tags corresponding to the functional surfaces, functional holes, and functional edges are obtained. The tags can be in the form of a number or a name. Based on the obtained tags, the corresponding configuration file is called from the basic information configuration library to determine the tolerances of the functional surfaces, functional holes, and functional edges. The numbers in the fifth preset database and the numbers in the basic information configuration library are in one-to-one correspondence.
[0099] Step 107: Mark the first tolerance of the reference system and the second tolerance of the target area on the initial drawing of the target part.
[0100] In some cases, the tolerances of the reference system and the target area of the target part were not marked on the initial drawings, or only partially marked.
[0101] Based on the tolerance information included in the configuration file, the tolerances of the reference system and the target area are marked on the initial drawings. The tolerance information includes the tolerance size and tolerance type.
[0102] Step 108: Adjust the different views of the target part that have been annotated in the initial drawing to generate the target drawing.
[0103] The different views of the target part can include: the basic view, side view, partial view, and oblique view. The basic view can include: front view, top view, left view, right view, bottom view, and rear view.
[0104] It should be noted that step 108 involves adjusting different views of the target part after annotation, including:
[0105] Adjust the position of different views in the display interface and / or adjust the scale of the views according to the user's work needs.
[0106] In this embodiment of the invention, at least three reference points are selected on the surface of the target part based on its stiffness and projected area in different directions, and a reference surface is constructed based on these reference points. Two reference holes are selected on the first projection surface based on the distance between any two functional holes. The reference system of the target part is determined based on the reference surface and reference holes formed by the reference points. The first attribute information of the reference system is identified, and the corresponding configuration file is called from the basic information configuration library to determine the first tolerance of the reference system. The second attribute information of the target area on the target part is identified, and the corresponding configuration file is called from the basic information configuration library to determine the second tolerance of the target area. After the first tolerance of the reference system and the second tolerance of the target area are marked on the initial drawing, the view of the target part is adjusted to generate the target drawing, improving the efficiency of generating drawings containing tolerance markings.
[0107] Optionally, the step of selecting at least three reference points from the first projection plane corresponding to the first viewpoint based on the stiffness of the target part, and constructing a reference plane based on the reference points, includes:
[0108] At least three reference points are selected at the included angle of the first projection plane; one reference point is located at one included angle; the area of the reference plane formed by the at least three reference points is greater than or equal to one-half of the area of the first projection plane.
[0109] Here, the included angle of the first projection plane refers to the included angle formed between the boundaries of the first projection plane. For example, if the first projection plane is a square, the included angle of the first projection plane refers to the four right angles of the square.
[0110] It should be noted that the area of the reference surface formed by at least three reference points refers to the area of the closed region formed by at least three reference points. Specifically, when three reference points are selected, the area of the triangular region formed by the three reference points is calculated; when four reference points are selected, the area of the quadrilateral region formed by the four reference points is calculated; similarly, when N reference points are selected, the area of the N-sided polygon formed by the N reference points is calculated.
[0111] The first reference distance is preset by the user; for example, it is set to 5mm, and the distance between each reference point and the boundary of the first projection surface is less than or equal to 5mm. At least three reference points are selected at the included angle of the first projection surface, and the distance between each reference point and the boundary of the first projection surface is less than or equal to 5mm. Each reference point is located at an included angle, and the area of the reference surface formed by the selected reference points is greater than or equal to half the area of the first projection surface.
[0112] In the embodiments of the invention, at least three reference points are selected at the angle between the first projection plane and the reference plane is constructed based on the at least three reference points, thereby improving the efficiency of the user in determining the reference plane of the target part.
[0113] Optionally, determining two reference holes on the first projection surface based on the distance between any two functional holes on the first projection surface in step 102 may include:
[0114] Based on the distance between any two functional holes on the first projection surface and a second reference distance, two reference holes are determined from the functional holes; the distance between the two reference holes is greater than or equal to two-thirds of the second reference distance; the second reference distance is the longest distance between two points on the first projection surface.
[0115] Specifically, the second reference distance is determined based on the distance between any two points on the first projection plane.
[0116] In this embodiment of the invention, the second reference distance can be determined in various ways, and this embodiment of the invention does not impose specific limitations on this. For example, points on the boundary are selected sequentially, and the distances between each point and other points (excluding itself) are calculated; all points on the boundary are traversed, and the distances between each point on the boundary and other points (excluding itself) and itself are calculated, and the maximum distance among these distances is selected as the second reference distance.
[0117] It should be noted that, based on the distance between any two functional holes on the first projection plane and the second reference distance, two reference holes are determined from the functional holes. The distance between the two reference holes refers to the distance between the centers of the two reference holes.
[0118] According to industry design specifications, the distance between two functional holes on the first projection surface must be greater than or equal to two-thirds of the second reference distance. If no two functional holes on the first projection surface have a distance greater than or equal to two-thirds of the second reference distance, the manufacturer is guided to design functional holes on the target part that meet preset requirements. These preset requirements refer to the presence of at least two functional holes on the target part with a distance greater than or equal to two-thirds of the second reference distance.
[0119] In this embodiment of the invention, two reference holes are determined from the functional holes based on the distance between any two functional holes on the first projection plane and a second reference distance; wherein the distance between the two reference holes is greater than or equal to two-thirds of the second reference distance; the second reference distance is the longest distance between two points on the first projection plane, thereby improving the efficiency of the user in determining the reference holes of the target part.
[0120] Optionally, identifying the second attribute information of the target area on the target part, and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library, includes:
[0121] Step S21: Perform a boundary check on the target part to determine the gap between the boundary of the target part and the boundaries of other parts on the target vehicle.
[0122] Using a measuring device, the gap between the boundaries of the target part and the boundaries of the surrounding parts is measured, with the boundary of the target part as a reference. For example, n points are uniformly selected on the boundary of the target part, and n points are selected on the boundaries of the surrounding parts that are opposite to the points on the target part's boundary. The distances between these points are calculated, and the average value is taken as the gap between the boundary of the target part and the boundaries of the surrounding parts.
[0123] In this embodiment of the invention, before performing boundary checks on the target part, the user specifies the target part, such as... Figure 6 As shown, a target part selection interface is provided. In this interface, the user selects a specific part as the target part by clicking on the first space. Figure 6 Select the side panel as the target part.
[0124] Step S22: Determine the peripheral matching part corresponding to the target part and the sealing and fitting surface between the target part and the peripheral matching part according to the gap.
[0125] Determining the peripheral matching part corresponding to the target part based on the gap, and the sealing contact surface between the target part and the peripheral matching part, means that the part with a boundary gap of 0 with the target part is identified as the peripheral matching part corresponding to the target part. The sealing contact surface between the target part and its corresponding peripheral matching part is determined based on the relationship between the target part and the peripheral matching part.
[0126] Step S23: Perform whole vehicle identification on the target vehicle to determine the appearance surface and assembly positioning surface of the target vehicle related to the target part.
[0127] In this embodiment of the invention, various methods can be used to identify the target vehicle and determine the appearance surfaces and assembly positioning surfaces related to the target parts within the vehicle. For example, a neural network model is pre-trained using a large number of three-dimensional geometric models of various automotive parts and their associated appearance surfaces and assembly positioning surfaces. This establishes the correlation between the various parts in the vehicle and their associated appearance surfaces and assembly positioning surfaces. The geometric features of the target part are then input into the neural network model, which predicts the appearance surfaces and assembly positioning surfaces related to the target part.
[0128] Step S24: Based on the attribute information of the sealing surface, the appearance surface, and the assembly positioning surface, match the sealing surface, the appearance surface, the assembly positioning surface, and all surfaces in the first preset database to determine the surface labels corresponding to the sealing surface, the appearance surface, and the assembly positioning surface.
[0129] It should be noted that the attribute information of the sealing and bonding surface, the appearance surface, and the assembly positioning surface includes: outline, area, and location. The surface label refers to the number and / or name of the sealing and bonding surface, the appearance surface, and the assembly positioning surface.
[0130] In this embodiment of the invention, a first preset database stores attribute information and labels for all surfaces according to industry standards or user-defined standards. The labels include surface labels and surface names. The attribute information of the sealing and fitting surface, appearance surface, and assembly positioning surface of the target part is matched with the attribute information of all surfaces in the first preset database. If a match is successful, the surface labels corresponding to the sealing and fitting surface, appearance surface, and assembly positioning surface are determined.
[0131] Step S25: Based on the face label, retrieve the corresponding configuration file from the basic information configuration library to determine the tolerances of the sealing and bonding surface, the appearance surface, and the assembly positioning surface.
[0132] For example, the basic information configuration library may include: the numbers and / or names of the sealing surfaces, appearance surfaces, and assembly positioning surfaces related to each part of the target vehicle; and the configuration files corresponding to the sealing surfaces, appearance surfaces, and assembly positioning surfaces related to each part of the target vehicle, with a mapping relationship between the configuration files and the numbers and names. The configuration files include tolerances set for the sealing surfaces, appearance surfaces, and assembly positioning surfaces. When the surface label is the number and / or name of the sealing surface, appearance surface, or assembly positioning surface, the corresponding configuration file is queried from the basic information configuration library according to the number and / or name, and tolerances are marked for the sealing surfaces, appearance surfaces, and assembly positioning surfaces according to the content included in the configuration file. The tolerances for the sealing surfaces, appearance surfaces, and assembly positioning surfaces include: upper tolerance and lower tolerance. The upper tolerance is the maximum permissible deviation value, and the lower tolerance refers to the minimum permissible deviation value.
[0133] As an example, the side panel of a car is selected as the target part, and the gap between the rear quarter window, the side B-pillar trim, and the side panel trim is identified as 0. Based on the attribute information of the matching surface of the rear quarter window gap, the mounting surface of the side B-pillar trim, and the matching surface of the side panel trim bright strip, the corresponding numbers of the matching surfaces of the rear quarter window gap, the mounting surface of the side B-pillar trim, and the matching surface of the side panel trim bright strip are retrieved from the first preset database. Based on the numbers of the matching surfaces of the rear quarter window gap, the mounting surface of the side B-pillar trim, and the matching surface of the side panel trim bright strip, the corresponding configuration files are called from the basic information configuration library to mark the upper tolerance of 0.2 and the lower tolerance of 0 for the matching surface of the rear quarter window gap, the upper tolerance of 0.2 and the lower tolerance of 0 for the mounting surface of the side B-pillar trim, and the upper tolerance of 0.1 and the lower tolerance of 0 for the matching surface of the side panel trim bright strip.
[0134] In this embodiment of the invention, boundary checks are performed on the target part to determine the gap between the boundary of the target part and the boundaries of other parts on the target vehicle. Based on the gap, the corresponding peripheral matching parts and the sealing mating surfaces between the target part and the peripheral matching parts are determined. The target vehicle is identified as a whole vehicle to determine the appearance surfaces and assembly positioning surfaces related to the target part. Based on the attribute information of the sealing mating surfaces, appearance surfaces, and assembly positioning surfaces, the corresponding surface labels are determined. Based on the surface labels, the corresponding configuration files are retrieved from the basic information configuration library to determine the tolerances of the sealing mating surfaces, appearance surfaces, and assembly positioning surfaces. This improves the efficiency of identifying the sealing mating surfaces, appearance surfaces, and assembly positioning surfaces related to the target part, and also improves the efficiency of marking tolerances for the sealing mating surfaces, appearance surfaces, and assembly positioning surfaces.
[0135] Optionally, identifying the second attribute information of the target area on the target part, and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library, includes:
[0136] Step S31: Based on the functional hole information in the target part, match the functional holes on the target part with all holes in the second preset database to determine the hole label of the functional hole; the second preset database records the hole label and hole information of each hole according to industry standards.
[0137] Information about functional holes includes: hole diameter, hole shape, hole location, and the material type of the target part. Hole shape includes: circular holes and non-circular holes.
[0138] In this embodiment of the invention, the second preset database is used to store hole labels and hole information recorded according to industry standards for each hole. The hole label includes: hole name and / or hole number.
[0139] Step S32: Based on the hole label, retrieve the corresponding configuration file from the basic information configuration library to determine the tolerance of the functional hole.
[0140] In this embodiment of the invention, the basic information configuration library may include: configuration files corresponding to all holes related to each part of the target vehicle. The configuration files include hole names and / or hole numbers, tolerance types, and material classifications. Table 1 shows an example of a configuration file provided by this invention.
[0141] Table 1
[0142]
[0143] In practical applications, configuration files can take many forms, such as documents, linked lists, etc., and this invention does not impose any restrictions on them.
[0144] When the hole label is the hole name, the corresponding configuration file is retrieved from the basic information configuration library based on the hole name. Tolerances for the functional holes are then marked according to the contents of the configuration file. The tolerances for functional holes include: form tolerance and position tolerance. Form tolerance refers to the allowable variation in the shape of the hole within a certain range. For example, the roundness of a circular hole; when the form tolerance for a circular hole is marked as 0.1, it means that the boundary of the circular hole lies within two concentric circles on the same plane, differing by 0.1 mm. Position tolerance refers to the allowable variation in the axis (centerline) of the hole within a certain range.
[0145] As an example, the door handle of a car's front door is selected as the target part. The attribute information of each functional hole on the door handle is obtained as follows: 23mm, circular hole, distributed in the inner panel of the front door handle, stamped (steel). The attribute information of this functional hole is matched with the hole information in the second preset database to obtain the hole name of the corresponding functional hole, which is not installed through hole / avoidance hole, and the material classification is stamped (steel). According to the name and material classification of the functional hole, the corresponding configuration file is called from the basic information configuration library to set the position tolerance of the functional hole to ±0.5 and the shape tolerance to 0.5 / 0.
[0146] In this embodiment of the invention, based on the functional hole information in the target part, the functional holes on the target part are matched with all holes in the second preset database to determine the hole labels of the functional holes; based on the hole labels, the corresponding configuration file is called from the basic information configuration library to determine the tolerance of the functional holes; thus improving the efficiency of marking tolerances for functional holes in the target part.
[0147] Optionally, identifying the second attribute information of the target area on the target part, and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library, includes:
[0148] Step S41: Identify each cross-section on the target part and the corresponding functional cutting edge information, and query the functional cutting edge information in the third preset database to determine the cutting edge label corresponding to the functional cutting edge.
[0149] In this context, a cross-section refers to the portion of the target part that is cut off by a cutting plane along a specified direction, where the cutting plane contacts the target part at the cut position. A functional cut edge refers to the edge of the cross-section. Functional cut edge information includes the outline, dimensions, target part name, and target part material type of the functional cut edge.
[0150] In this embodiment of the invention, a third preset database stores information on each functional cutting edge and its label, recorded according to industry standards. The cutting edge label includes the name and / or number of the functional cutting edge. Where two functional cutting edges have identical contours, dimensions, and target part material types, but the target parts are different, the uses of the two functional cutting edges are also different, and consequently, the names stored in the third preset database are also different.
[0151] It should be noted that after obtaining the cross-sectional contours of the target part cut by the cutting plane in different directions, the contours, dimensions, target part name, and material type of the corresponding functional cutting edge are obtained based on the cross-sectional contours. The obtained functional cutting edge information is then matched with the functional cutting edge information stored in the third preset database to obtain the name of the functional cutting edge corresponding to the cross-section.
[0152] Step S42: Based on the edge trimming label, retrieve the corresponding configuration file from the basic information configuration library to determine the tolerance of the functional edge trimming.
[0153] In this embodiment of the invention, the basic information configuration library may include: the numbers and names of all cut edges related to each part of the target vehicle, configuration files for all cut edges, and a mapping relationship between the configuration files and the cut edge names. The configuration files include tolerance settings for the cut edges. When the cut edge label is obtained as the cut edge name, the corresponding configuration file is queried in the basic information configuration library based on the cut edge name, and tolerances are marked for the functional cut edges according to the content contained in the configuration file. Table 2 shows an example of a configuration file provided by this invention.
[0154] Table 2
[0155]
[0156] In practical applications, configuration files can take many forms, such as documents, linked lists, etc., and this invention does not impose any restrictions on them.
[0157] As an example, taking the front door of a car as the target part, the front door is cut off along the horizontal axis by a cutting plane, and the contour, size, position, and target part type of the corresponding cross-section and the corresponding functional cutting edge are obtained. The obtained information of the functional cutting edge is matched with the information in a third preset database to obtain the name corresponding to the functional cutting edge. In the case that the functional cutting edge name is a positioning cutting edge, the contour tolerance of the positioning cutting edge is marked as 0.5 according to the configuration file saved in the basic information configuration library.
[0158] In this embodiment of the invention, the various cross-sections on the target part and the corresponding functional cutting edge information are identified. The functional cutting edge information is queried in the third preset database to determine the cutting edge label corresponding to the functional cutting edge. Based on the cutting edge label, the corresponding configuration file is called from the basic information configuration library to determine the tolerance of the functional cutting edge. This improves the efficiency of identifying the type of functional cutting edge and marking the tolerance of the functional cutting edge.
[0159] Optionally, identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes:
[0160] Step S51: Extract the geometric features of the target region on the target part;
[0161] Step S52: Vectorize the geometric features to obtain feature vectors;
[0162] Step S53: Input the feature vector into a pre-trained deep learning model for feature recognition to obtain the annotation information corresponding to the target region;
[0163] Step S54: Determine the second tolerance of the target area based on the annotation information.
[0164] The target region refers to the functional surfaces, functional holes, and functional edges on the target part. Key features of the target region are used as geometric features, such as the area and contour of the functional surfaces, the diameter and shape of the functional holes, and the contour and dimensions of the functional edges.
[0165] It should be noted that the geometric features of the target region are converted into mathematical vector format to facilitate model processing and analysis.
[0166] The pre-training process of deep learning models includes the following steps:
[0167] Data collection involves gathering a large amount of 3D geometric model data and annotated drawings. Geometric features are extracted from the 3D geometric models, and annotation information is extracted from the drawings with tolerance annotations. The 3D geometric model data can be exported from CATIA and CAD software.
[0168] Dataset splitting involves transforming geometric features into feature vectors and using annotation information as the corresponding labels for those features. The feature vectors and labels are then combined to form a dataset. There are two methods for dataset splitting: one method divides the dataset proportionally into training and testing sets, e.g., 80% training and 20% testing; the other method divides it proportionally into training, validation, and testing sets, e.g., 60% training, 20% validation, and 20% testing. The proportions are set by the user. The training set is then used to optimize the parameters of a deep learning model, constructing a deep learning model that predicts the annotation information corresponding to the geometric features. Deep learning models include convolutional neural networks (CNNs) and graph neural networks (Graph Neural Networks).
[0169] Model training and validation, based on the training set, involves training the model and validating it using the following steps: First, the dataset is divided into training, validation, and test sets. Then, the model is trained using the training set. Next, the model is validated using the validation set. The model is continuously adjusted based on its performance on the validation set, and the best-performing model is selected. The settings of this best-performing model are recorded. Based on these settings, a new model is trained using data from both the training and validation sets. This new model is then used as the final model. Finally, the final model is evaluated using the test set. Specifically, the evaluation metrics include accuracy, recall, and F1 score.
[0170] Based on a trained deep learning model, the corresponding annotation information for a target region can be predicted. For example, the geometric features of a functional hole, including its diameter, shape, and location, can be extracted and vectorized to obtain a feature vector. This feature vector is then input into the deep learning model, which, based on the trained parameters, outputs the tolerance that should be annotated.
[0171] In this embodiment of the invention, a deep learning model is trained using a large number of three-dimensional geometric models and annotated drawings, enabling the deep learning model to predict the annotation information of a specified geometric model, thus making up for the inadequacy of some geometric models being unable to be identified and annotated with tolerances by human-defined rules.
[0172] In summary, the drawing generation method provided by this invention can: determine the first viewing angle with the largest projected area of the target part based on its projection on the three coordinate axes of the spatial coordinate system; select at least three reference points from the first projection plane corresponding to the first viewing angle based on the stiffness of the target part; determine two reference holes on the first projection plane based on the distance between any two functional holes on the first projection plane; determine the reference system corresponding to the target part based on the reference plane and the reference holes; identify the first attribute information of the reference system and call the corresponding configuration file from the basic information configuration library to determine the first tolerance of the reference system; identify the second attribute information of the target area on the target part and call the corresponding configuration file from the basic information configuration library to determine the second tolerance of the target area; annotate the first tolerance of the reference system and the second tolerance of the target area on the initial drawing of the target part; adjust different views of the target part annotated in the initial drawing to generate the target drawing. This invention improves the efficiency of generating drawings containing annotation information by automatically constructing the reference system and automatically annotating the tolerances of the reference system and the target area on the target part.
[0173] Device Examples
[0174] like Figure 7 As shown, Figure 7 A logic block diagram of a drawing generation apparatus provided in an embodiment of this application is shown.
[0175] The viewing angle determination module 710 is used to determine the first viewing angle with the largest projected area of the target part based on the projection of the target part on the three coordinate axes of the spatial coordinate system.
[0176] The selection module 720 is used to select at least three reference points from the first projection plane corresponding to the first viewpoint based on the stiffness of the target part, and to construct a reference plane based on the reference points; the reference plane is used to restrict the three degrees of freedom of the target part corresponding to the first viewpoint.
[0177] The reference hole determination module 730 is used to determine two reference holes on the first projection surface based on the distance between any two functional holes on the first projection surface; the reference holes are used to restrict the target part in other degrees of freedom besides the three degrees of freedom corresponding to the first viewpoint.
[0178] The reference system determination module 740 is used to determine the reference system corresponding to the target part based on the reference surface and the reference hole;
[0179] The first tolerance determination module 750 is used to identify the first attribute information of the reference system and call the corresponding configuration file from the basic information configuration library to determine the first tolerance of the reference system.
[0180] The second tolerance determination module 760 is used to identify the second attribute information of the target area on the target part, and call the corresponding configuration file from the basic information configuration library to determine the second tolerance of the target area. The target area is the area on the target part other than the reference system.
[0181] The annotation module 770 is used to annotate the first tolerance of the reference system and the second tolerance of the target area on the initial drawing of the target part;
[0182] The generation module 780 adjusts different views of the target part that have been annotated in the initial drawing to generate the target drawing.
[0183] In summary, this invention provides a drawing generation device that can determine the first viewing angle with the largest projected area of the target part based on the projection of the target part onto the three coordinate axes of the spatial coordinate system; then, reference points and reference holes are selected on the first projection plane corresponding to the first viewing angle, and reference points construct a reference plane; the reference plane and reference holes construct a reference system for the target part. The first attribute information of the reference system is identified, and the corresponding configuration file is called from the basic information configuration library to determine the first tolerance of the reference system; the second attribute information of the target area on the target part is identified, and the corresponding configuration file is called from the basic information configuration library to determine the second tolerance of the target area; the first tolerance of the reference system and the second tolerance of the target area are marked on the initial drawing of the target part; different views of the target part with tolerance markings are adjusted to generate the target drawing. This invention improves the efficiency of generating drawings including annotation information by automatically constructing the reference system of the target part and automatically marking the tolerances corresponding to the reference system and the target area on the target part.
[0184] As the apparatus embodiment is basically similar to the method embodiment, it is described in a relatively simple manner. For relevant details, please refer to the description of the method embodiment.
[0185] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0186] The drawing generation device in this application embodiment can be an electronic device or a component of an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a GPU BOX, mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0187] The drawing generation device in this application embodiment can be a device with an operating system. This operating system can be Android, Linux, Windows, or other possible operating systems; this application embodiment does not specifically limit it.
[0188] Optionally, such as Figure 8 As shown in the figure, this application embodiment also provides an electronic device, characterized in that the electronic device includes a processor, a memory, a communication interface and a communication bus, the processor, the memory and the communication interface communicate with each other through the communication bus; the memory is used to store executable instructions, the executable instructions cause the processor to execute and implement the various steps of the above drawing generation method embodiment, and can achieve the same technical effect, so to avoid repetition, they will not be described again here.
[0189] In embodiments of this application, the memory can be used to store software programs and various data. The memory may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, applications or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0190] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly handles operations related to the operating system, user interface, and applications, while the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor.
[0191] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described drawing generation method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0192] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0193] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described rice cooker control method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0194] It should be understood that the chip involved in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0195] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above-described drawing generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0196] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0197] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0198] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A method for generating drawings, characterized in that, Applied to electronic devices, the method includes: Based on the projection of the target part onto the three coordinate axes of the spatial coordinate system, determine the first viewing angle with the largest projected area of the target part; Based on the stiffness of the target part, at least three reference points are selected from the first projection plane corresponding to the first viewpoint, and a reference plane is constructed based on the reference points; the reference plane is used to restrict the three degrees of freedom of the target part corresponding to the first viewpoint. Based on the distance between any two functional holes on the first projection plane, two reference holes are determined on the first projection plane; the reference holes are used to restrict the target part in all degrees of freedom except for the three degrees of freedom corresponding to the first viewpoint. Based on the reference surface and the reference hole, determine the reference system corresponding to the target part; Identify the first attribute information of the benchmark system, and call the corresponding configuration file from the basic information configuration library to determine the first tolerance of the benchmark system; Identify the second attribute information of the target area on the target part, and call the corresponding configuration file from the basic information configuration library to determine the second tolerance of the target area; the target area is the area on the target part other than the reference system; On the initial drawing of the target part, the first tolerance of the reference system and the second tolerance of the target area are marked; Adjust the different views of the target part that have been annotated in the initial drawing to generate the target drawing.
2. The method according to claim 1, characterized in that, The step of selecting at least three reference points from the first projection plane corresponding to the first viewpoint based on the stiffness of the target part, and constructing a reference plane based on the reference points, includes: At least three reference points are selected at the included angle of the first projection plane; each reference point is located at one included angle. Wherein, the distance between each reference point and the boundary of the first projection surface is less than or equal to the first reference distance; the area of the reference surface formed by the at least three reference points is greater than or equal to one-half of the area of the first projection surface.
3. The method according to claim 1, characterized in that, The step of determining two reference holes on the first projection surface based on the distance between any two functional holes on the first projection surface includes: Based on the distance between any two functional holes on the first projection surface and a second reference distance, two reference holes are determined from the functional holes; the distance between the two reference holes is greater than or equal to two-thirds of the second reference distance; the second reference distance is the longest distance between two points on the first projection surface.
4. The method according to claim 1, characterized in that, The step of identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes: Perform a boundary check on the target part to determine the gap between the boundary of the target part and the boundaries of other parts on the target vehicle; Based on the gap, determine the peripheral matching part corresponding to the target part, and the sealing and fitting surface between the target part and the peripheral matching part; Perform whole-vehicle identification on the target vehicle to determine the appearance surfaces and assembly positioning surfaces of the target part in the target vehicle. Based on the attribute information of the sealing surface, the appearance surface, and the assembly positioning surface, the sealing surface, the appearance surface, and the assembly positioning surface are matched with all surfaces in the first preset database to determine the surface labels corresponding to the sealing surface, the appearance surface, and the assembly positioning surface. The corresponding configuration file is retrieved from the basic information configuration library based on the face label to determine the tolerances of the sealing and bonding surface, the appearance surface, and the assembly positioning surface.
5. The method according to claim 1, characterized in that, The step of identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes: Based on the functional hole information in the target part, the functional holes on the target part are matched with all holes in the second preset database to determine the hole label of the functional hole; the second preset database records the hole label and hole information of each hole according to industry standards. The tolerance of the functional hole is determined by retrieving the corresponding configuration file from the basic information configuration library based on the hole label.
6. The method according to claim 1, characterized in that, The step of identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes: Identify each cross-section on the target part and the functional cutting edge information corresponding to the cross-section, and query the functional cutting edge information in the third preset database to determine the cutting edge label corresponding to the functional cutting edge; The tolerance of the functional cutting edge is determined by retrieving the corresponding configuration file from the basic information configuration library based on the cutting edge label.
7. The method according to claim 1, characterized in that, The step of identifying the second attribute information of the target area on the target part and determining the second tolerance of the target area by calling the corresponding configuration file from the basic information configuration library includes: Extract the geometric features of the target region on the target part; The geometric features are vectorized to obtain feature vectors; The feature vector is input into a pre-trained deep learning model for feature recognition to obtain the annotation information corresponding to the target region; Based on the annotation information, the second tolerance of the target area is determined.
8. A drawing generation device, characterized in that, The device includes: The viewing angle determination module is used to determine the first viewing angle with the largest projected area of the target part based on the projection of the target part on the three coordinate axes of the spatial coordinate system. The selection module is used to select at least three reference points from the first projection plane corresponding to the first viewpoint based on the stiffness of the target part, and to construct a reference plane based on the reference points; the reference plane is used to restrict the three degrees of freedom of the target part corresponding to the first viewpoint. The reference hole determination module is used to determine two reference holes on the first projection plane based on the distance between any two functional holes on the first projection plane; the reference holes are used to restrict the target part in all degrees of freedom except for the three degrees of freedom corresponding to the first viewpoint. A reference system determination module is used to determine the reference system corresponding to the target part based on the reference surface and the reference hole; The first tolerance determination module is used to identify the first attribute information of the reference system and call the corresponding configuration file from the basic information configuration library to determine the first tolerance of the reference system. The second tolerance determination module is used to identify the second attribute information of the target area on the target part, and call the corresponding configuration file from the basic information configuration library to determine the second tolerance of the target area; the target area is the area on the target part other than the reference system; The annotation module is used to annotate the first tolerance of the reference system and the second tolerance of the target area on the initial drawing of the target part; The generation module adjusts different views of the target part that have been annotated in the initial drawing to generate the target drawing.
9. An electronic device, characterized in that, The electronic device includes a processor, a memory, a communication interface, and a communication bus. The processor, the memory, and the communication interface communicate with each other through the communication bus. The memory is used to store executable instructions, which cause the processor to execute the drawing generation method as described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the drawing generation method of any one of claims 1 to 7.
Citation Information
Patent Citations
Three-dimensional visualized process design system and its design method
CN101339575A
Complex product-oriented assembly quality characterization and optimization method and related device
CN118035299A