Engineering drawing method, computer readable storage medium and electronic device

By automatically labeling holes and pins in two-dimensional engineering drawings through reference point system information in three-dimensional digital and analog, the problem of cumbersome and error-prone manual labeling in the prior art is solved, and the efficiency and accuracy of engineering drawings are improved.

CN114580046BActive Publication Date: 2024-11-12GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110341019.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-30
Publication Date
2024-11-12
Estimated Expiration
2041-03-30

AI Technical Summary

Technical Problem

In the prior art, the generation process of two-dimensional engineering drawings is cumbersome and prone to errors, and requires manual labeling of positioning holes, pins and tolerances one by one, resulting in large repetitive workload and low efficiency.

Method used

By obtaining the reference point system information in the three-dimensional digital model, a engineering drawing containing positioning reference information is generated, and the holes and pins in the two-dimensional view are automatically marked, including position tolerances and dimensional tolerances, improving the efficiency and accuracy of drawing generation.

Benefits of technology

It realizes automatic generation of engineering drawings, reduces the cumbersomeness and error rate of manual labeling, improves work efficiency and the accuracy of drawings, and reduces the labor demand of technicians.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114580046B_ABST
    Figure CN114580046B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method for generating an engineering drawing, a computer-readable storage medium, and an electronic device. The method for generating an engineering drawing includes: obtaining reference point system information in a three-dimensional digital model of an object to be annotated, the reference point system information includes at least one layer of positioning reference information, wherein one layer of the positioning reference information includes the following information items: positioning surface information for limiting the degree of freedom of an object to be annotated, and positioning hole information and / or positioning pin information; generating the engineering drawing according to the reference point system information, the engineering drawing displays a two-dimensional view of the object to be annotated, and also displays the annotations of holes and / or pins in the two-dimensional view, the reference system table of the object to be annotated, and at least one of the unnoted tolerances of the holes and / or pins. The method can not only improve the efficiency of generating engineering drawings, reduce the labor of technicians, but also improve the accuracy of engineering drawings.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of three-dimensional modeling, and in particular, to an engineering drawing method, a computer-readable storage medium, and an electronic device. Background Art

[0002] After the 3D modeling design is completed in conventional manufacturing, it is usually converted into a 2D engineering drawing and passed to the downstream process to guide production. The drawings are generally marked with conventional frame and other standard markings, datums, unindicated tolerances, geometric tolerances of positioning holes / positioning surfaces and non-positioning holes, coordinates, and hole position descriptions, etc. At present, the datum table, unindicated tolerances, positioning and general hole marking on the 2D view are generally done manually. The drawing process is cumbersome and prone to errors, and the workload is large. Summary of the invention

[0003] The purpose of the present disclosure is to provide a method for generating an engineering drawing, a computer-readable storage medium, and an electronic device, which can improve work efficiency.

[0004] In order to achieve the above objective, according to one aspect of the present disclosure, a method for generating an engineering drawing is provided, which includes:

[0005] Acquire reference point system information in the three-dimensional digital model of the object to be annotated, wherein the reference point system information includes at least one layer of positioning reference information, wherein one layer of the positioning reference information includes the following information items: positioning surface information for defining a degree of freedom of the object to be annotated, and positioning hole information and / or positioning pin information;

[0006] The engineering drawing is generated according to the reference point system information, wherein the engineering drawing displays a two-dimensional view of the object to be annotated, and also displays the annotations of holes and / or pins in the two-dimensional view, a reference system table of the object to be annotated, and at least one of the unannotated tolerances of the holes and / or pins.

[0007] Optionally, the reference system table is obtained in the following manner:

[0008] For each layer of positioning reference information, traverse each information item in the layer of positioning reference information, and update the preset reference system table structure according to each traversed information item, until each information item in each layer of positioning reference information is traversed to obtain the reference system table;

[0009] Wherein, the reference system table includes a main reference table, or the reference system table includes a main reference table and a local reference table, the main reference table is obtained based on the topmost positioning reference information in the reference point system information, and is used to limit the degree of freedom of the object to be annotated, and the local reference table is obtained based on the sub-layer positioning reference information below the topmost layer, and is used to limit the degree of freedom of the parts that have a matching relationship with the object to be annotated; and,

[0010] Each reference table includes the correspondence between a reference unique identifier, a reference type, and a positioning direction.

[0011] Optionally, the unincluded tolerance is obtained by: generating the unincluded tolerance according to the master reference table;

[0012] The step of generating the unindicated tolerance according to the master reference table comprises:

[0013] The reference unique identifier with the same positioning direction is placed in the same reference cell without tolerance.

[0014] Optionally, the engineering drawing includes the two-dimensional view and annotations of holes and / or pins in the two-dimensional view. Accordingly, generating the two-dimensional view in the engineering drawing and annotations of holes and / or pins in the two-dimensional view according to the reference point system information includes:

[0015] Determine the front view of the object to be marked according to the topmost positioning reference information in the reference point system information;

[0016] Based on the front view, determining views of other viewing angles of the object to be annotated;

[0017] For each of the front view and the views from other viewing angles, determine whether there are holes and / or pins to be marked in the view; and,

[0018] When there are holes and / or pins to be marked in the view, the view is used as the two-dimensional view, and the holes and / or pins to be marked on the two-dimensional view are marked, and the marking includes: one or more of position tolerance, dimension value, dimension tolerance, and coordinate information.

[0019] Optionally, marking position tolerances of the holes and / or pins to be marked on the two-dimensional view includes:

[0020] For each hole and / or pin on the two-dimensional view, determining whether there is a target information item corresponding to the hole and / or pin in the reference point system information;

[0021] If there is a target information item corresponding to the hole and / or pin in the reference point system information, the hole and / or pin is used as a positioning hole and / or positioning pin; and,

[0022] Determine whether the target information item is in the positioning reference information of the topmost layer of the reference point system information. If the target information item is in the positioning reference information of the topmost layer of the reference point system information, then mark the position tolerance of the positioning hole and / or positioning pin itself. If the target information item is not in the positioning reference information of the topmost layer of the reference point system information, then mark the position tolerance of the positioning hole and / or positioning pin relative to the main reference and its own position tolerance, wherein the topmost layer of positioning reference information is used as the main reference, and the secondary layer positioning reference information of the reference point system information is used as the local reference.

[0023] Optionally, the position tolerance includes a position tolerance value, and the position tolerance value is determined in the following manner:

[0024] Querying target description information matching the holes and / or pins in the two-dimensional view from the description information in the three-dimensional digital model;

[0025] The size tolerance and position tolerance values ​​of the corresponding holes and / or pins are determined according to the target description information and the tolerance library.

[0026] Optionally, the engineering drawing further includes the datum system table and the unmarked tolerance, each datum table in the datum system table includes a correspondence between a datum unique identifier, a datum type, and a positioning direction, the position tolerance includes a position tolerance datum, and the position tolerance datum is determined in the following manner:

[0027] For the positioning holes and / or positioning pins in the two-dimensional view, based on the information items in the reference point system information that are in the same layer as the target information item and located before the target information item, and the reference system table, the positioning holes and / or positioning pins are marked with position tolerance references;

[0028] For the general hole and / or general pin in the two-dimensional view, the position tolerance reference is marked on the general hole and / or general pin according to the unmarked tolerance.

[0029] Optionally, marking the holes and / or pins to be marked on the two-dimensional view includes:

[0030] For the same holes and / or pins in the two-dimensional view, select one of the holes and / or pins to mark the identification information, as well as the position tolerance, dimension value, dimension tolerance and coordinate information, and for the remaining holes and / or pins in the same hole and / or pin, only mark the coordinate information and identification information.

[0031] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented.

[0032] According to another aspect of the present disclosure, there is also provided an electronic device, comprising:

[0033] a memory having a computer program stored thereon;

[0034] A processor is used to execute the computer program in the memory to implement the steps of the above method.

[0035] The above technical solution can at least achieve the following technical effects:

[0036] The two-dimensional view is automatically generated by using the reference point system information and the information in the three-dimensional digital model, and the reference system table and / or unnoted tolerances are displayed on the two-dimensional view, and / or the holes and / or pins on the objects to be marked are marked. Compared with manually generating engineering drawings, this method saves time and effort, and has high accuracy. It can not only improve the efficiency of generating engineering drawings, reduce the labor of technicians, but also improve the accuracy of engineering drawings.

[0037] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0039] Figure 1 is a flow chart of a method for generating an engineering drawing provided according to an embodiment of the present disclosure;

[0040] Figure 2 is a flow chart of a method for generating an engineering drawing provided according to another embodiment of the present disclosure;

[0041] Figure 3 is a schematic diagram of reference point system information provided according to an embodiment of the present disclosure;

[0042] Figure 4 is a schematic diagram of a benchmark system table provided according to an embodiment of the present disclosure;

[0043] Figure 5 is a schematic diagram of an unnoted tolerance column provided according to an embodiment of the present disclosure;

[0044] Figure 6 is a schematic diagram of the marking of the locating holes and / or locating pins of the primary reference provided according to an embodiment of the present disclosure;

[0045] Figure 7 is a schematic diagram of the marking of the local reference positioning holes and / or positioning pins provided according to an embodiment of the present disclosure;

[0046] Figure 8 is a schematic diagram of the same holes and / or pins provided according to one embodiment of the present disclosure;

[0047] Fig. 9 is a block diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0048] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0049] In order to overcome the tediousness and error-proneness of manual drawing of engineering drawings, Figure 1 and Figure 2 A method for generating engineering drawings in the present disclosure is described in detail with examples. The method can be applied to generate engineering drawings from three-dimensional digital models of parts. The method can be applied to one or more three-dimensional drawing software such as Catia, Solidworks, Autodesk, PRO / E, 3DMAX, and NX, and the present disclosure does not limit this. Figure 1 As shown, the method includes:

[0050] S10, obtaining reference point system (RPS) information in the three-dimensional digital model of the object to be annotated, wherein the reference point system information includes at least one layer of positioning reference information, wherein one layer of the positioning reference information includes the following information items: positioning surface information for defining a degree of freedom of the object to be annotated, and positioning hole information and / or positioning pin information;

[0051] S20. Generate the engineering drawing according to the reference point system information, wherein the engineering drawing displays a two-dimensional view of the object to be annotated, and also displays the annotations of the holes and / or pins in the two-dimensional view, a reference system table of the object to be annotated, and at least one of the unannotated tolerances of the holes and / or pins.

[0052] The reference point system information specifically includes positioning holes, positioning pins and positioning surfaces set at different coordinate points of the object to be annotated for defining the degrees of freedom in different directions, and may include a total of information items for defining six degrees of freedom of the object to be annotated, wherein the positioning surface and multiple positioning pins for defining different directions may be set at the same coordinate point at the same time. Figure 3As shown, taking the object to be labeled represented by RPS200915 as an example, the reference point system information of the object to be labeled is shown. Specifically, Figure 3 The reference point system information shown in also includes information items corresponding to the inner handle installation local reference and the handle cover installation local reference of the components of RPS200915. The information items in these reference point system information are used to limit the degrees of freedom of the object to be annotated.

[0053] Through the above method, the two-dimensional view can be automatically generated through the reference point system information and the information in the three-dimensional digital model, and the reference system table and / or unnoted tolerances can be displayed on the two-dimensional view, and / or the holes and / or pins on the objects to be marked can be marked. Compared with manually generating engineering drawings, this method saves time and effort, and has high accuracy. It can not only improve the efficiency of generating engineering drawings, reduce the labor of technicians, but also improve the accuracy of engineering drawings.

[0054] In a possible implementation, the engineering drawing generated by the embodiment provided by the present disclosure may include a reference system table, and the reference system table may be obtained in the following manner:

[0055] For each layer of positioning reference information, each information item in the layer of positioning reference information is traversed, and the preset reference system table structure is updated according to each traversed information item, until each information item in each layer of positioning reference information is traversed to obtain the reference system table.

[0056] Each information item includes a positioning hole, a positioning pin and a positioning surface arranged at the same coordinate point. Moreover, two positioning pins for defining different directions may be arranged at the same coordinate point. Figure 3 The reference point system information shown in the figure is used as an example for explanation, where H with the word "pin" represents a locating pin, H without the word "pin" represents a locating hole, F / f represents a locating surface, and the subscript xyz of H / F / f represents the locating hole, locating pin and locating surface used to limit the degrees of freedom of the corresponding directions of the object to be annotated. The direction of xyz is the same as that of xyz in the coordinate system of the three-dimensional digital model.

[0057] Wherein, the reference system table includes a main reference table, or the reference system table includes a main reference table and a local reference table, the main reference table is obtained based on the topmost positioning reference information in the reference point system information, and is used to limit the degree of freedom of the object to be annotated, and the local reference table is obtained based on the sub-layer positioning reference information below the topmost layer, and is used to limit the degree of freedom of the parts that have a matching relationship with the object to be annotated; and,

[0058] Each reference table includes the correspondence between a reference unique identifier, a reference type, and a positioning direction.

[0059] by Figure 3 The reference point system information shown in FIG. 1 is used as an example to illustrate that the information items contained in the top layer of the reference point system information belong to the primary reference, such as Figure 3 The RPS200915 hierarchy shown in , and the sub-layers below the top layer are local benchmarks, such as Figure 3 The inner hand is installed at the local reference level as shown in . Figure 3 As shown, the locating holes, locating pins or locating surfaces in the first information item in each level of the reference point system information are used to limit the three degrees of freedom of the object to be marked, the locating holes, locating pins or locating surfaces in the second information item in each level are used to limit two degrees of freedom of the object to be marked, and the locating holes, locating pins or locating surfaces in the third information item in each level are used to limit one degree of freedom of the object to be marked.

[0060] like Figure 3 and Figure 4 As shown, each information item in the topmost positioning reference information is read, and read sequentially from top to bottom, and the positioning surface in the first information item with F / f read is determined as the reference unique identifier "A", and is assigned a serial number 1, therefore, Figure 3 The topmost information item Fy in the reference unique identifier is "A1". The positioning surfaces with the same direction in the same reference point system information level (RPS200915) are numbered one by one in ascending order according to the reading order. Therefore, the reference unique identifiers of RPS2Fy, RPS4Fy, RPS5Fy and RPS6fy are A2, A3, A4 and A5 respectively, which can be abbreviated as surfaces A1-A5 in the description column (i.e., reference type) in the main reference table. Surfaces E1-E5 are also obtained according to the above rules.

[0061] H (locating hole / locating pin) takes values ​​starting from B. The first H in the information item read takes the value B. The remaining positioning holes and / or positioning pins in different directions take values ​​in ascending order according to the reading order from top to bottom, namely C, D, E, F, etc., for each information item in the topmost layer of positioning reference information.

[0062] For those with the character H for “pin”, write “pin” in the description column (i.e., datum type) of the datum system table; for those without the character H for “pin”, write “hole” in the description column (i.e., datum type) of the datum system table.

[0063] The reading rules of the local datum are the same as those of the main datum. After the first layer of the main datum, the datum displacement mark is marked with a serial number. Figure 4 The datum system table shown in the figure includes the main datum AF, the local datum GK, etc. That is, the datum system table displayed on the engineering drawing can be as follows Figure 4 shown.

[0064] It is worth noting that when there is no local datum in the reference point system information, the generated datum system table may not contain the "main datum" row, and may also not contain the following Figure 4 Local reference table shown.

[0065] In a possible implementation manner, the engineering drawing generated by the embodiment provided by the present disclosure may also include an unindicated tolerance, which may be obtained specifically in the following manner:

[0066] The unindicated tolerance is generated according to the master reference table, and the unindicated tolerance is formed into an unindicated tolerance column and displayed in the engineering drawing.

[0067] For example, the generating of the unincluded tolerance according to the master reference table may specifically include: placing the reference unique identifiers with the same positioning direction into the same reference cell of the unincluded tolerance. In this embodiment, the master reference table in the reference system table is applied. The generation method of the reference system table can refer to the above description of Figure 3 and Figure 4 The description will not be repeated here. It should be noted that, in this embodiment, the datum system table can be displayed on the engineering drawing together with the unnoted tolerances, or after the datum system table is calculated, the unnoted tolerances can be generated according to the main datum table in the datum system table and only the unnoted tolerances can be displayed on the generated engineering drawing.

[0068] by Figure 3 The reference point system information shown and Figure 4 Take the benchmark system table shown as an example to illustrate.

[0069] The datum unique identifiers A, B, and C of the main datum table in the datum system table occupy three different datum cells in the unmarked tolerance column. If the description (datum type) corresponding to A, B, and C is hole / pin, the maximum entity M is added after the datum unique identifier A, B, and C. If the description (datum type) corresponding to A, B, and C is surface, the maximum entity M is not added. The generated unmarked tolerance can be as follows Figure 5 The unnoted tolerance bar shown is consistent and appears on the generated engineering drawing.

[0070] If there are also benchmark unique identifiers D, E, and F in the main benchmark table, they are placed after B or C according to the control direction corresponding to the benchmark unique identifier. For example, if D controls the X direction, it is placed after B, which also controls the X direction. For example, if E controls the X direction, it is also placed in the cell where B is located. For example, if F controls the Z direction, it is placed in C, which also controls the Z direction. Among them, if there is a benchmark that controls two directions, such as the B benchmark that can control the X / Y direction, then the first direction X can be identified.

[0071] In the above S20, the engineering drawing includes the two-dimensional view and the annotations of the holes and / or pins in the two-dimensional view. Accordingly, the two-dimensional view in the engineering drawing and the annotations of the holes and / or pins in the two-dimensional view are generated according to the reference point system information, such as Figure 2 As shown, including:

[0072] S23, determining a front view of the object to be marked according to the topmost positioning reference information in the reference point system information;

[0073] S24, determining views of other viewing angles of the object to be annotated based on the front view;

[0074] S25, for each of the front view and the views from other viewing angles, determine whether there are holes and / or pins to be marked in the view; and,

[0075] S26. When there are holes and / or pins to be marked in the view, the view is used as the two-dimensional view, and the holes and / or pins to be marked on the two-dimensional view are marked, and the marking includes: one or more of position tolerance, dimension value, dimension tolerance, and coordinate information.

[0076] by Figure 3 Take the reference point system information shown as an example for explanation.

[0077] The control direction of the first F in the first information item in the topmost positioning reference information of the reference point system information is identified as the front view. Figure 3 As shown in , the first information item is the RSP1HxzFy pin, so the direction controlled by Fy is the front view.

[0078] When the front view is determined, the left view, right view, bottom view or top view from other perspectives are determined according to the projection relationship. If there is no object to be marked in a view from a certain perspective, the corresponding view will not be generated. If there are holes and / or pins to be marked in the view, the view is used as the two-dimensional view, and the holes and / or pins to be marked on the two-dimensional view are marked. The marking includes: one or more of position tolerance, dimension value, dimension tolerance, and coordinate information. Figure 6 As shown in , the position tolerance, dimension value, dimension tolerance, coordinate information and description information (for the main positioning hole) of the hole and / or pin are marked.

[0079] The dimension values ​​and coordinate information of the hole and / or pin can be directly obtained from the three-dimensional digital model and marked above and below the position tolerance. The dimension tolerance can be obtained from the tolerance database based on the description information of the hole and / or pin and marked after the dimension value. The following will introduce how to mark the position tolerance of the hole and / or pin.

[0080] In S26, the position tolerance of the holes and / or pins to be marked on the two-dimensional view is marked, including: for each hole and / or pin on the two-dimensional view, determining whether there is a target information item corresponding to the hole and / or pin in the reference point system information; if there is a target information item corresponding to the hole and / or pin in the reference point system information, then the hole and / or pin is used as a positioning hole and / or positioning pin; and, determining whether the target information item is in the positioning reference information of the top layer of the reference point system information; if the target information item is in the positioning reference information of the top layer of the reference point system information, then the target information item belongs to the main reference, and the position tolerance of the positioning hole and / or positioning pin itself is marked.

[0081] like Figure 6 As shown, if the target information item is not in the positioning reference information of the top layer of the reference point system information, the position tolerance of the positioning hole and / or positioning pin relative to the main reference and its own position tolerance are marked, such as Figure 7 As shown, the first layer is the position tolerance requirement of the positioning hole and / or positioning pin relative to the main reference, specifically, the position tolerance requirement, the specific value defaults to "1.0", and the second layer value defaults to "0", which is marked according to the requirements relative to the local reference. Among them, the positioning reference information of the top layer of the reference point system information is used as the main reference, and the positioning reference information of the second layer of the reference point system information is used as the local reference.

[0082] In one embodiment of the present disclosure, when marking the position tolerance of locating holes and / or locating pins, the symbol representing the position tolerance is filled in the cell of the tolerance symbol by default, and only the position tolerance of the locating holes and / or locating pins is marked.

[0083] The position tolerance described in the embodiment of the present disclosure may specifically include a position tolerance value, and the position tolerance value may be determined in the following manner:

[0084] From the description information in the three-dimensional digital model, query the target description information that matches the holes and / or pins in the two-dimensional view; determine the size tolerance and position tolerance values ​​of the corresponding holes and / or pins based on the target description information and the tolerance library.

[0085] The target description information may include one or more of φ, rectangular hole, oblong hole or square hole. According to the target description information corresponding to the hole and / or pin, the corresponding position tolerance value is extracted from the tolerance library. Among them, each hole and / or pin corresponds to its description information one by one through coordinate information, and the matching target description information can be queried through the coordinate information of the hole and / or pin.

[0086] The position tolerance described in the embodiment of the present disclosure may also include a position tolerance reference, which may be determined based on the reference system table and the unmarked tolerance, specifically including:

[0087] For the positioning holes and / or positioning pins in the two-dimensional view, based on the information items in the reference point system information that are in the same layer as the target information item and located before the target information item, and the reference system table, the positioning holes and / or positioning pins are marked with position tolerance references;

[0088] For the general hole and / or general pin in the two-dimensional view, the position tolerance reference is marked on the general hole and / or general pin according to the unmarked tolerance.

[0089] For example, assuming that the positioning hole is located at Figure 3 RPS3hx in the reference information system shown, the information items located before the target information item are RPS1HxzFy and RPS2HzFy. These two information items correspond to the unique datum identifications A, B, and C in the datum system table. Therefore, the tolerance datum of the locating hole is determined to be A, B, and C.

[0090] The non-locating holes and / or locating pins are general holes and / or general pins. For the general holes and / or general pins in the two-dimensional view, the uninjected tolerance datum of the general holes and / or general pins is determined directly by reading the above-mentioned uninjected tolerances, and the maximum entity symbol is added after the hole or pin (i.e. H or h).

[0091] In an embodiment of the present disclosure, in order to improve the simplicity and clarity of the marking of holes and / or pins, in S26, marking the holes and / or pins to be marked on the two-dimensional view may include:

[0092] For the same holes and / or pins in the two-dimensional view, select one of the holes and / or pins to mark the identification information, as well as the position tolerance, dimension value, dimension tolerance and coordinate information, and for the remaining holes and / or pins in the same hole and / or pin, only the coordinate information and identification information are marked.

[0093] For example, Figure 8As shown, the description information and dimension values ​​that match the holes and / or pins are used to determine whether there are the same holes and / or pins in the two-dimensional view. When the same holes and / or pins exist, one of the holes and / or pins is selected to mark the identification information, as well as the position tolerance, dimension value, dimension tolerance and coordinate information. The same holes and / or pins have the same identification information. If there are multiple groups of the same holes and / or pins in the same two-dimensional view, unique identification information is marked for each group of holes and / or pins. For example, it can be read from top to bottom in the digital model structure tree in the three-dimensional digital model, and the same holes and / or pins are marked with a, b, c, etc. in sequence. The same holes and / or pins in the first group are all marked with "a", the same holes and / or pins in the second group are all marked with "b", the same holes and / or pins in the third group are all marked with "c", and so on.

[0094] According to another aspect of the present disclosure, the present disclosure further provides an electronic device, the electronic device comprising:

[0095] a memory having a computer program stored thereon;

[0096] A processor is used to execute the computer program in the memory to implement the steps of any of the above methods.

[0097] An exemplary structural diagram of the electronic device can be as follows Fig. 9 As shown, the electronic device 700 includes: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.

[0098] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned vehicle warning method. The memory 702 is used to store various types of data to support the operation of the electronic device 700, and these data may include, for example, instructions for any application or method used to operate on the electronic device 700, and data related to the application. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. The I / O interface 704 provides an interface between the processor 701 and other interface modules, which may be a keyboard, a mouse, buttons, etc. These buttons may be virtual buttons or physical buttons.

[0099] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned vehicle warning method.

[0100] According to another aspect of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the method for generating an engineering drawing are implemented. In another exemplary embodiment, a computer-readable storage medium is also provided, which contains a computer program that can be executed by a programmable device, and the computer program has a code portion for executing the above-mentioned method for generating an engineering drawing when executed by the programmable device.

[0101] For example, the computer-readable storage medium may be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions may be executed by the processor 701 of the electronic device 700 to complete the above-mentioned method for generating an engineering drawing.

[0102] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0103] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0104] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A method for generating an engineering drawing, characterized in that: include: Acquire reference point system information in the three-dimensional digital model of the object to be annotated, wherein the reference point system information includes at least one layer of positioning reference information, wherein one layer of the positioning reference information includes the following information items: positioning surface information for defining a degree of freedom of the object to be annotated, and positioning hole information and / or positioning pin information; Generate the engineering drawing according to the reference point system information, wherein the engineering drawing displays a two-dimensional view of the object to be annotated, and also displays at least one of the annotations of the holes and / or pins in the two-dimensional view, a reference system table of the object to be annotated, and an unannotated tolerance of the holes and / or pins; The engineering drawing includes the two-dimensional view and the annotations of the holes and / or pins in the two-dimensional view. Accordingly, generating the two-dimensional view in the engineering drawing and the annotations of the holes and / or pins in the two-dimensional view according to the reference point system information includes: Determine the front view of the object to be marked according to the topmost positioning reference information in the reference point system information; Based on the front view, determining views of other viewing angles of the object to be annotated; For each of the front view and the views from other viewing angles, determine whether there are holes and / or pins to be marked in the view; and, When there are holes and / or pins to be marked in the view, the view is used as the two-dimensional view, and the holes and / or pins to be marked on the two-dimensional view are marked, and the marking includes: one or more of position tolerance, dimension value, dimension tolerance, and coordinate information.

2. The method according to claim 1, characterized in that The reference system table is obtained in the following manner: For each layer of positioning reference information, traverse each information item in the layer of positioning reference information, and update the preset reference system table structure according to each traversed information item, until each information item in each layer of positioning reference information is traversed to obtain the reference system table; Wherein, the reference system table includes a main reference table, or the reference system table includes a main reference table and a local reference table, the main reference table is obtained based on the topmost positioning reference information in the reference point system information, and is used to limit the degree of freedom of the object to be annotated, and the local reference table is obtained based on the sub-layer positioning reference information below the topmost layer, and is used to limit the degree of freedom of the parts that have a matching relationship with the object to be annotated; and, Each reference table includes the correspondence between a reference unique identifier, a reference type, and a positioning direction.

3. The method according to claim 2, characterized in that The unfilled tolerance is obtained by: generating the unfilled tolerance according to the master reference table; The step of generating the unindicated tolerance according to the master reference table comprises: The reference unique identifier with the same positioning direction is placed in the same reference cell without tolerance.

4. The method according to claim 1, characterized in that: Marking the position tolerance of the holes and / or pins to be marked on the two-dimensional view includes: For each hole and / or pin on the two-dimensional view, determining whether there is a target information item corresponding to the hole and / or pin in the reference point system information; If there is a target information item corresponding to the hole and / or pin in the reference point system information, the hole and / or pin is used as a positioning hole and / or positioning pin; and, Determine whether the target information item is in the positioning reference information of the topmost layer of the reference point system information. If the target information item is in the positioning reference information of the topmost layer of the reference point system information, then mark the position tolerance of the positioning hole and / or positioning pin itself. If the target information item is not in the positioning reference information of the topmost layer of the reference point system information, then mark the position tolerance of the positioning hole and / or positioning pin relative to the main reference and its own position tolerance, wherein the topmost layer of positioning reference information is used as the main reference, and the secondary layer positioning reference information of the reference point system information is used as the local reference.

5. The method according to claim 4, characterized in that The position tolerance includes a position tolerance value, and the position tolerance value is determined in the following manner: Querying target description information matching the holes and / or pins in the two-dimensional view from the description information in the three-dimensional digital model; The size tolerance and position tolerance values ​​of the corresponding holes and / or pins are determined according to the target description information and the tolerance library.

6. The method according to claim 4, characterized in that The engineering drawing also includes the datum system table and the unmarked tolerance. Each datum table in the datum system table includes the correspondence between the datum unique identifier, the datum type and the positioning direction. The position tolerance includes the position tolerance datum. The position tolerance datum is determined in the following manner: For the positioning holes and / or positioning pins in the two-dimensional view, based on the information items in the reference point system information that are in the same layer as the target information item and located before the target information item, and the reference system table, the positioning holes and / or positioning pins are marked with position tolerance references; For the general hole and / or general pin in the two-dimensional view, the position tolerance reference is marked on the general hole and / or general pin according to the unmarked tolerance.

7. The method according to claim 1, characterized in that The marking of the holes and / or pins to be marked on the two-dimensional view includes: For the same holes and / or pins in the two-dimensional view, select one of the holes and / or pins to mark the identification information, as well as the position tolerance, dimension value, dimension tolerance and coordinate information, and for the remaining holes and / or pins in the same hole and / or pin, only mark the coordinate information and identification information.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

9. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.