CN112926221A - Mechanical icon annotation method and device and electronic equipment - Google Patents

Mechanical icon annotation method and device and electronic equipment Download PDF

Info

Publication number
CN112926221A
CN112926221A CN202110319755.8A CN202110319755A CN112926221A CN 112926221 A CN112926221 A CN 112926221A CN 202110319755 A CN202110319755 A CN 202110319755A CN 112926221 A CN112926221 A CN 112926221A
Authority
CN
China
Prior art keywords
target model
labeling
marking
mechanical
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110319755.8A
Other languages
Chinese (zh)
Other versions
CN112926221B (en
Inventor
刘龙斌
伍嗣灿
黄晓锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Haikui Information Technology Co ltd
Guangdong Lyric Robot Automation Co Ltd
Original Assignee
Guangdong Lyric Robot Intelligent Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Lyric Robot Intelligent Automation Co Ltd filed Critical Guangdong Lyric Robot Intelligent Automation Co Ltd
Priority to CN202110319755.8A priority Critical patent/CN112926221B/en
Publication of CN112926221A publication Critical patent/CN112926221A/en
Application granted granted Critical
Publication of CN112926221B publication Critical patent/CN112926221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the technical field of mechanical icon annotation, in particular to a mechanical icon labeling method and device and electronic equipment. The mechanical icon annotation method provided by the embodiment of the application comprises the following steps: after the target model is imported into the drawing software, acquiring the target model; judging whether the target model meets the preset marking requirement or not; and if the target model meets the preset marking requirements, determining the modeling type of the target model, and marking the target model by combining the modeling type. The mechanical drawing marking method provided by the embodiment of the application can realize automatic marking of the mechanical drawing, and because the marking is automatic, compared with the scheme of manual marking in the prior art, the marking efficiency can be improved, the waste of human resources is reduced, and the marking error rate can be reduced.

Description

Mechanical icon annotation method and device and electronic equipment
Technical Field
The application relates to the technical field of mechanical icon annotation, in particular to a mechanical icon labeling method and device and electronic equipment.
Background
The mechanical drawing is a technical document for exactly representing the shape, size, working principle and technical requirements of a mechanical structure, and therefore, after the shape of the mechanical structure is drawn by drawing software, a label is added thereto. In the prior art, mechanical icon annotation is usually completed manually, so that the problems of low annotation efficiency and high error rate exist.
Disclosure of Invention
An object of the present application is to provide a method and an apparatus for labeling a mechanical diagram, and an electronic device, so as to solve the above problems.
In a first aspect, the present application provides a mechanical icon annotation method, including:
after the target model is imported into the drawing software, acquiring the target model;
judging whether the target model meets the preset marking requirement or not;
and if the target model meets the preset marking requirements, determining the modeling type of the target model, and marking the target model by combining the modeling type.
According to the mechanical icon annotation method provided by the embodiment of the application, after the target model is imported into the drawing software, the target model is obtained, whether the target model meets the preset annotation requirement is judged, and when the target model meets the preset annotation requirement, the modeling type of the target model is determined, so that the target model is annotated by combining the modeling type. Obviously, the mechanical drawing labeling method provided by the embodiment of the application can realize automatic labeling of the mechanical drawing, and because the labeling is automatic, compared with the scheme of manual labeling in the prior art, the labeling efficiency can be improved, the waste of human resources is reduced, and the labeling error rate can be reduced.
With reference to the first aspect, an embodiment of the present application further provides a first optional implementation manner of the first aspect, where before determining whether the target model meets the preset annotation requirement, the mechanical icon annotation method further includes:
judging whether the file format of the target model belongs to an agreed format or not;
and if the file format of the target model belongs to the agreed format, executing the step of judging whether the target model meets the preset marking requirement.
In the above embodiment, the step of determining whether the target model meets the preset labeling requirement may be performed only after it is determined that the file format of the target model belongs to the agreed format, and if the file format of the target model does not belong to the agreed format, the subsequent step is not performed, thereby avoiding erroneous execution and further improving the labeling efficiency.
With reference to the first aspect, an embodiment of the present application further provides a second optional implementation manner of the first aspect, where determining whether the target model meets the preset labeling requirement includes:
judging whether the target model is complete or not, and avoiding overall interference on the target model;
if the target model is complete and no overall interference exists about the target model, judging that the target model meets the preset labeling requirement;
and if the target model is incomplete or overall interference about the target model exists, judging that the target model does not meet the preset labeling requirement.
In the above embodiment, the preset labeling requirement is more perfect, specifically, the target model is complete, and there is no integrity interference about the target model, so that after the target model is judged to meet the preset labeling requirement, when the target model is labeled, the labeling effect can be ensured.
With reference to the first aspect or the second optional implementation manner of the first aspect, an embodiment of the present application further provides a third optional implementation manner of the first aspect, and after determining whether the target model meets the preset labeling requirement, the mechanical icon annotation method further includes:
if the target model does not meet the preset marking requirement, determining error content causing the target model not to meet the preset marking requirement;
and generating and displaying prompt information according to the error content.
In the above embodiment, if the target model does not meet the preset labeling requirement, it is further determined that the error content causing the target model not to meet the preset labeling requirement is determined, and prompt information is generated according to the error content and displayed. Therefore, the operator can directly and manually correct the target model according to the prompt message without manually searching for wrong contents, and the labeling efficiency is further improved.
With reference to the first aspect, an embodiment of the present application further provides a fourth optional implementation manner of the first aspect, where determining a modeling type of a target model, and labeling the target model with the modeling type includes:
identifying a modeling type of a target model, wherein the modeling type comprises a component type and a part type;
if the modeling type of the target model is the component type, judging that the target model comprises a plurality of parts, determining the labeling form of the parts for each part in the plurality of parts, labeling the parts according to the labeling form to finish the integral labeling of the target model or perform the integral labeling of the target model, judging that the target model comprises a plurality of parts, determining the labeling form of the parts for each part in the plurality of parts, and labeling the parts according to the labeling form;
and if the modeling type of the target model is a part type, judging that the target model is a part, determining the marking form of the part, and marking the part according to the marking form to finish the overall marking of the target model.
In the above embodiment, labeling can be completed adaptively no matter the modeling type of the target model is a component type or a part type, that is, the mechanical icon labeling method provided by the above embodiment can be compatible with labeling of the component type model and the part type model, and the application range is wide.
With reference to the fourth optional implementation manner of the first aspect, this application provides a fifth optional implementation manner of the first aspect, and labeling the component according to a labeling form includes:
calling a feature function library to perform feature recognition on the part through feature data stored in the feature function library to obtain a feature recognition result;
and marking the part by combining the marking form and the characteristic identification result.
In the above embodiment, labeling the part according to the labeling form specifically includes: and calling the feature function library to perform feature recognition on the part through the feature data stored in the feature function library to obtain a feature recognition result, and labeling the part by combining a labeling form and the feature recognition result, thereby further improving the labeling efficiency.
With reference to the fourth optional implementation manner of the first aspect, an embodiment of the present application further provides a sixth optional implementation manner of the first aspect, where if the modeling type of the target model is a component class, the modeling type of the target model is determined, and the target model is labeled with the modeling type, and the method further includes:
calling a material list table of the target model;
and after the target model is labeled, outputting a mechanical engineering drawing comprising a labeling result and a material list table.
In the foregoing embodiment, if the modeling type of the target model is a component class, determining the modeling type of the target model, and labeling the target model by combining the modeling type, further includes: and calling the material list table of the target model so as to output the mechanical engineering drawing comprising the labeling result and the material list table after the labeling of the target model is completed, thereby ensuring the comprehensiveness of the information contained in the mechanical engineering drawing.
In a second aspect, an apparatus for labeling mechanical drawings provided in an embodiment of the present application includes:
the importing module is used for acquiring the target model after the target model is imported into the drawing software;
the condition judgment module is used for judging whether the target model meets the preset marking requirement or not;
and the marking module is used for determining the marking form of the part aiming at each part in the target model when the target model meets the preset marking requirement, and marking the part according to the marking form so as to finish marking the target model.
The mechanical drawing marking device provided in the embodiment of the present application has the same beneficial effects as those of the mechanical drawing marking method provided in the first aspect, or any one of the optional implementations of the first aspect, and details are not repeated here.
In a third aspect, an electronic device provided in an embodiment of the present application includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the computer program to implement the mechanical icon annotation method provided in the first aspect or any one of the optional implementation manners of the first aspect.
The electronic device provided in the embodiment of the present application has the same beneficial effects as those of the mechanical diagram labeling method provided in the first aspect or any one of the optional implementation manners of the first aspect, and details are not repeated here.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed, the mechanical icon annotation method provided in the first aspect or any one of the optional implementation manners of the first aspect is implemented.
The computer-readable storage medium provided in the embodiment of the present application has the same beneficial effects as those of the mechanical drawing labeling method provided in the first aspect or any one of the optional implementations of the first aspect, and details are not repeated here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural block diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating steps of a method for labeling a mechanical diagram according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of an object model according to an embodiment of the present application.
Fig. 4 is a mechanical engineering drawing output after labeling the target model shown in fig. 3 by the mechanical icon labeling method provided in the embodiment of the present application.
Fig. 5 is a schematic view of a complete specific implementation manner of a mechanical drawing labeling method according to an embodiment of the present application.
Fig. 6 is a schematic structural block diagram of a mechanical diagram labeling apparatus provided in an embodiment of the present application.
Reference numerals: 100-an electronic device; 110-a processor; 120-a memory; 200-a mechanical drawing marking device; 210-import module; 220-condition judgment module; 230-labeling module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Furthermore, it should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Referring to fig. 1, a schematic block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. In the embodiment of the present application, the electronic device 100 may be a computer or a server, which is not limited in the embodiment of the present application.
Structurally, electronic device 100 may include a processor 110 and a memory 120.
The processor 110 and the memory 120 are electrically connected, directly or indirectly, to enable data transfer or interaction, for example, the components may be electrically connected to each other via one or more communication buses or signal lines. The mechanical icon means includes at least one software module which may be stored in the memory 120 in the form of software or Firmware (Firmware) or solidified in an Operating System (OS) of the electronic device 100. The processor 110 is configured to execute executable modules stored in the memory 120, such as software functional modules and computer programs included in the mechanical icon annotating device, so as to implement the mechanical icon annotating method.
The processor 110 may execute the computer program upon receiving the execution instruction. The processor 110 may be an integrated circuit chip having signal processing capabilities. The Processor 110 may also be a general-purpose Processor, for example, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a discrete gate or transistor logic device, a discrete hardware component, which can implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application, and furthermore, the general-purpose Processor may be a microprocessor or any conventional Processor.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), and an electrically Erasable Programmable Read-Only Memory (EEPROM). The memory 120 is used for storing a program, and the processor 110 executes the program after receiving the execution instruction.
It should be understood that the structure shown in fig. 1 is merely an illustration, and the electronic device 100 provided in the embodiment of the present application may have fewer or more components than those shown in fig. 1, or may have a different configuration than that shown in fig. 1. Further, the components shown in fig. 1 may be implemented by software, hardware, or a combination thereof.
Please refer to fig. 2, which is a flowchart illustrating a mechanical icon annotation method according to an embodiment of the present disclosure, the method is applied to the electronic device 100 shown in fig. 1. It should be noted that, the mechanical icon notation method provided in the embodiment of the present application is not limited to the sequence shown in fig. 2 and the following, and the specific flow and steps of the mechanical icon notation method are described below with reference to fig. 2.
Step S100, after the target model is imported into the drawing software, the target model is obtained.
In the embodiment of the present application, the target model may be a mechanical model created by mapping software such as Creo parameter, 3Ds MAX, Solidworks, pro, and unicetics NX, and generally belongs to a three-dimensional model, and the "mapping software" described in step S100 of the embodiment of the present application may be any one of the mapping software such as Creo parameter, 3Ds MAX, Solidworks, pro, and unicetics NX. However, it should be noted that the "mapping software" described in step S100 of the embodiment of the present application and the software for creating the target model may be the same mapping software or different mapping software. For example, the target model is a mechanical model created by Solidworks, and the "cartographic software" described in step S100 of the embodiment of the present application may be Creo parameter, as long as the "cartographic software" described in step S100 can smoothly open the target model.
Further, the modeling types of the machine drawings are generally classified into a component class and a part class, and for the component class, which generally includes a plurality of parts, the part class is actually a machine model including one part, and the modeling types of the machine drawings are distinguishable by file formats, for example, the file format of the component class is "asm", "sldasm", or the like, and the file format of the part class is "prt", "sldprt", or the like. Based on this, the mechanical icon annotation method provided in the embodiment of the present application may further include step S001 and step S002 after step S100 is executed to import the target model into the drawing software.
And S001, judging whether the file format of the target model belongs to an agreed format.
Judging whether the file format of the target model is in an "asm" format, an "sldasm" format, a "prt" format or an "sldprt" format, if the file format of the target model is in the "asm" format, the "sldasm" format, the "prt" format or the "sldprt" format, indicating that the file format of the target model belongs to an agreed format, that is, the agreed format is in the "asm" format, the "sldasm" format, the "prt" format or the "sldprt" format, but not limited thereto.
And step S002, if the file format of the target model belongs to the agreed format, executing the step of judging whether the target model meets the preset labeling requirement.
In the embodiment of the present application, if the file format of the target model belongs to the agreed format, the subsequent steps are directly executed, that is, step S200, to determine whether the target model meets the preset labeling requirement, and if the file format of the target model does not belong to the agreed format, the labeling is ended and an error is reported.
In addition, in the embodiment of the present application, if the file format of the target model does not belong to the agreed format, for example, the file format is a general format such as "step" or "stp", the target model may be converted from the "step" format or "stp" format into the agreed format, then step S200 is performed to determine whether the target model meets the preset labeling requirement, and if the target model cannot be converted into the agreed format, the labeling is terminated and an error is reported, so as to avoid that the wrong execution affects the labeling efficiency.
And step S200, judging whether the target model meets the preset labeling requirement.
In general, a mechanical model with strong readability needs to be complete, and there is no overall interference with the target model, where the mechanical model is complete and can be understood as: with a modelled coordinate system, reference datum and full view etc. and incomplete mechanical models can be understood as: missing at least one of the modeled coordinate system, the reference datum and the full view, the global intervention with respect to the target model may be understood as: for example, if the model type of the target model is a component type, the interference between the parts in the plurality of parts included in the target model is not considered. However, during the processes of model splitting, model importing, model exporting, model format converting and the like, a modeling coordinate system, a reference plane or a complete view may be lost, and overall interference of the mechanical model with respect to the target model may also occur, and these situations all affect the labeling effect. Therefore, the mechanical icon annotation method provided by the embodiment of the application can also complete the target model, and has no integral interference about the target model as a perfect preset annotation requirement, so that after the target model is judged to meet the preset annotation requirement, the annotation effect can be ensured when the target model is integrally annotated.
Based on the above description, in the embodiment of the present application, the determining whether the target model meets the preset labeling requirement may specifically include: and judging whether the target model is complete and integrity interference about the target model does not exist, if the target model is complete and integrity interference about the target model does not exist, judging that the target model meets the preset labeling requirement, and if the target model is incomplete or integrity interference about the target model exists, judging that the target model does not meet the preset labeling requirement.
In order to further improve the annotation efficiency, the mechanical icon annotation method provided in the embodiment of the present application may further include step S003 and step S004 after step S200 is executed and whether the target model meets the preset annotation requirement is determined.
And S003, if the target model does not meet the preset labeling requirement, determining the error content causing the target model not to meet the preset labeling requirement.
With reference to step S200, it can be understood that, in the embodiment of the present application, the error content that causes the target model not to meet the preset labeling requirement may be at least one of a missing part of the modeling coordinate system, a missing part of the reference plane, and a missing part of the complete view, or an overall interference of the target model with respect to the target model, so that if the target model does not meet the preset labeling requirement, the error content that causes the target model not to meet the preset labeling requirement may be further determined, and meanwhile, a specific occurrence position of the error content may be calibrated.
And step S004, generating and displaying prompt information according to the error content.
After the error content causing the target model not to meet the preset labeling requirement is determined, prompt information is generated according to the error content, for example, the prompt information including the error content and the specific occurrence position of the error content can be generated and highlighted. Therefore, the operator can directly and manually correct the target model according to the prompt message without manually searching the error content and the specific occurrence position of the error content, and the labeling efficiency is further improved.
After the manual correction, step S200 may be executed again to determine whether the target model meets the preset labeling requirement, if the target model meets the preset labeling requirement after the manual correction, the subsequent steps are executed, that is, step S300 determines the modeling type of the target model to perform integral labeling on the target model by combining the modeling type, and if the target model does not meet the preset labeling requirement after the manual correction, through step S003 and step S004, the error content causing the target model not meeting the preset labeling requirement is determined again, and a prompt message is generated according to the error content and displayed to prompt the operator to perform manual correction on the target model again.
And step S300, if the target model meets the preset marking requirement, determining the modeling type of the target model, and marking the target model by combining the modeling type.
As mentioned above, for a mechanical model of a component class, which generally includes a plurality of parts, the part class is actually a mechanical model including one part, and therefore, in the actual labeling process, it is necessary to identify whether the modeling type of the target model is the component class or the part class, and a specific identification process can be implemented by identifying a file format of the target model, for example, the file format is "asm", "sldasm", etc., and then determining the modeling type of the target model is the component class, and the file format is "prt", "sldprt", etc., and then determining the modeling type of the target model is the part class.
If the modeling type of the target model is a component type, in this embodiment of the application, as a first optional implementation manner, it may be determined that the target model includes a plurality of parts, and for each part of the plurality of parts, a labeling form of the part is determined, and the part is labeled according to the labeling form, so as to complete the overall labeling of the target model. Based on this, it can be understood that, in the foregoing embodiment, if the modeling type of the target model is a component class, the labeling of each part in the target model may be considered to be completed only after the labeling of each part in the target model is completed.
If the modeling type of the target model is a component type, in this embodiment of the application, as a second optional implementation manner, the target model may also be wholly labeled, and it is determined that the target model includes a plurality of parts, and for each part of the plurality of parts, a labeling form of the part is determined, and the part is labeled according to the labeling form. Based on this, it can be understood that, in the foregoing embodiment, the whole labeling of the target model and the labeling of the plurality of parts included in the target model are performed independently, and in the foregoing embodiment, the whole labeling of the target model can be understood as: the target model is integrally used as an inseparable mechanical model, the visible part of the target model is subjected to integral marking, and when the target model is integrally marked, the adopted marking form can be preset according to business requirements, and the method is not limited in the embodiment of the application.
And if the modeling type of the target model is a part type, judging that the target model is a part, determining the marking form of the part, and marking the part according to the marking form to finish the overall marking of the target model. Based on this, it can be understood that, in the embodiment of the present application, if the modeling type of the target model is a part type, it is determined that the target model is a part, and then, it is only necessary to complete the labeling of the part to be considered to complete the overall labeling of the target model.
In addition, it should be noted that, in the embodiment of the present application, the labeling form may include a linear labeling and a coordinate labeling, but is not limited thereto.
In order to further improve the labeling efficiency, in the embodiment of the application, after the whole labeling of the target model is completed, the labeling result can be automatically corrected to avoid labeling errors such as interference and dislocation, and after the automatic correction is completed, the labeling error rate can be further reduced through manual correction.
Further, in the embodiment of the present application, a specific implementation process of "determining a labeling form of a part" includes: and acquiring the material number of the part to acquire a labeling form corresponding to the material number, namely, the corresponding relation between the material number and the labeling form is preset.
Each part has a unique corresponding material number, when a target model is introduced into drawing software, the material number can be introduced into the drawing software as model information of the target model, when the target model is displayed through the drawing software, the material number can be embodied in a design tree of the target model, and the corresponding relation between the material number and a labeling form can be set according to business requirements, for example, the labeling form corresponding to the material number 'BJ 20211156603' of a metal plate is 'linear labeling', and when the business requirements need to be changed, the labeling form corresponding to the material number 'BJ 20211156603' of the metal plate can be changed into 'coordinate labeling'. In addition, in the embodiment of the application, the corresponding relationship between the material number and the labeling form can be stored through a labeling form information table.
In the embodiment of the present application, the specific implementation process of "labeling a part according to a labeling form" is as follows: and calling the feature function library to perform feature recognition on the part through the feature data stored in the feature function library to obtain a feature recognition result, and labeling the part by combining the labeling form and the feature recognition result. The part feature recognition can be understood as recognizing part features such as holes, grooves and fillets on the part, and a large amount of feature data are stored in the feature function library, so that the part feature recognition can be performed through the feature data stored in the feature function library to obtain a feature recognition result, and then the part features represented by the feature recognition result can be labeled according to a labeling form.
Because the target model usually belongs to a three-dimensional model, after the target model is labeled, a three-dimensional labeling graph is usually obtained, and therefore, a mechanical engineering graph with labels at any required view angle can be output according to the requirements of an actual user in the subsequent graph guide process. Of course, if the modeling type of the target model is a component type, in the subsequent drawing guiding process, not only the mechanical engineering drawing with the label at any view angle of the target model itself can be output, but also the mechanical engineering drawing with the label at any view angle of each part in the target model can be output separately. Referring to fig. 3 and fig. 4, assuming that the target model is "a 01 rack class 1", the top view thereof is shown as the left part in fig. 3, and the left side view thereof is shown as the right part in fig. 3, after the target model is labeled, if only the labeled mechanical engineering drawing in the top view of the target model itself needs to be output in the subsequent drawing guiding process, the labeled mechanical engineering drawing shown in fig. 4 can be finally output.
As for the condition that the modeling type of the target model is a part type, because the target model is a part, the mechanical engineering drawing with the label at any view angle of the part can be output.
In order to ensure the comprehensiveness of the information included in the mechanical engineering drawing, in this embodiment of the application, if the modeling type of the target model is a component class, in the execution process of step S300, a Bill of Material (BOM) of the target model may also be called, so that after the target model is labeled, the mechanical engineering drawing including the labeling result and the BOM table is output, that is, the BOM table is appended to the mechanical engineering drawing of the target model itself. The labeling result is mainly determined according to the actual user requirement, namely, the mechanical engineering drawing with the label at any view angle of the target model is output according to the actual user requirement, and the mechanical engineering drawing with the label at any view angle of each part in the target model can also be independently output.
TABLE 1
Figure BDA0002992331010000131
As shown in Table 1, the BOM table may include the material number, drawing number, material name, material, specification, brand, quantity and remark information of each part in the target model. Based on this, the final output mechanical engineering drawing also comprises the BOM table besides the target model, so that the comprehensiveness of the information covered in the mechanical engineering drawing can be ensured.
A complete detailed description of the mechanical icon method provided by the embodiments of the present application will be described in conjunction with fig. 5.
Firstly, after a target model is imported into drawing software, the target model is obtained, then whether the file format of the target model belongs to an agreed format or not is judged, if the file format of the target model belongs to the agreed format, the step of judging whether the target model meets the preset labeling requirement or not is executed, and if the file format of the target model does not belong to the agreed format, labeling is finished and an error is reported.
In the process of judging whether the target model meets the preset labeling requirement, if the target model does not meet the preset labeling requirement, determining error content causing the target model not to meet the preset labeling requirement, generating prompt information according to the error content, displaying the prompt information, and enabling an operator to directly and manually correct the target model according to the prompt information, if the target model meets the preset labeling requirement, identifying the modeling type of the target model, if the modeling type of the target model is a component type, calling a BOM (Bill of materials) of the target module, judging that the target model comprises a plurality of parts, aiming at each part in the plurality of parts, matching the labeling form according to the material number of the part, and if the modeling type of the target model is a part type, judging that the target model is a part, and matching the labeling form according to the material number of the part.
And then, carrying out feature recognition on the part through feature data stored in the feature function library to obtain a feature recognition result, marking the part by combining the marking form and the feature recognition result to finish marking the target model, and correcting the marking result.
And finally, outputting the mechanical engineering drawing according to the requirement, and if the modeling type of the target model is a component class, adding the BOM into the mechanical engineering drawing of the target model.
Based on the same inventive concept as the mechanical icon annotation method, the embodiment of the present application further provides a mechanical icon annotation device 200. Referring to fig. 6, a machine drawing labeling apparatus 200 according to an embodiment of the present disclosure includes an importing module 210, a condition determining module 220, and a labeling module 230.
And the importing module 210 is used for acquiring the target model after the target model is imported into the drawing software.
And the condition judgment module 220 is configured to judge whether the target model meets a preset labeling requirement.
And the labeling module 230 is configured to determine a labeling form of the part for each part in the target model when the target model meets the preset labeling requirement, and label the part according to the labeling form to complete labeling of the target model.
The mechanical diagram labeling apparatus 200 provided in the embodiment of the present application may further include a format condition determining module 220 and a skip module.
And the format judging module is used for judging whether the file format of the target model belongs to the agreed format.
And the skip module is used for executing the step of judging whether the target model meets the preset labeling requirement when the file format of the target model belongs to the agreed format.
In this embodiment, the condition determining module 220 includes a condition determining unit, a first conclusion obtaining unit, and a second conclusion obtaining unit.
And the condition judging unit is used for judging whether the target model is complete or not and has no overall interference about the target model.
And the first conclusion acquisition unit is used for judging that the target model meets the preset labeling requirement when the target model is complete and no overall interference exists about the target model.
And the second conclusion obtaining unit is used for judging that the target model does not meet the preset labeling requirement when the target model is incomplete or overall interference exists on the target model.
The mechanical diagram labeling device 200 provided by the embodiment of the application can further comprise a content determination module and an information display module.
And the content determining module is used for determining error content causing the target model not to meet the preset labeling requirement when the target model does not meet the preset labeling requirement.
And the information display module is used for generating and displaying prompt information according to the error content.
In the embodiment of the present application, the labeling module 230 may include a type identification unit, a first labeling unit, and a second labeling unit.
And the type identification unit is used for identifying the modeling type of the target model, and the modeling type comprises a component class and a part class.
The first labeling unit is used for judging that the target model comprises a plurality of parts when the modeling type is the component type, determining the labeling form of the parts aiming at each part in the plurality of parts, labeling the parts according to the labeling form, integrally labeling the target model or the target model, judging that the target model comprises the plurality of parts, determining the labeling form of the parts aiming at each part in the plurality of parts, and labeling the parts according to the labeling form.
And the second labeling unit is used for judging that the target model is a part when the modeling type is a part type, determining the labeling form of the part, and labeling the part according to the labeling form so as to finish the integral labeling of the target model.
Optionally, in this embodiment of the application, labeling the part according to a labeling form includes:
and calling the feature function library to perform feature recognition on the part through the feature data stored in the feature function library to obtain a feature recognition result.
And marking the part by combining the marking form and the characteristic identification result.
In this embodiment, the annotation module 230 may further include a list calling unit and an appearance unit.
And the list calling unit is used for calling the material list table of the target model.
And the drawing unit is used for outputting the mechanical engineering drawing comprising the marking result and the material list table after the marking of the target model is finished.
Since the mechanical icon annotation apparatus 200 provided in the embodiment of the present application is implemented based on the same inventive concept as the mechanical icon annotation method, specific descriptions of each software module in the mechanical icon annotation apparatus 200 can be referred to the related descriptions of the corresponding steps in the mechanical icon annotation method embodiment, which are not described herein again.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed, the method for mechanical icon annotation provided in the foregoing method embodiment is implemented.
In summary, the mechanical icon annotation method provided by the embodiment of the application can acquire the target model after the target model is imported into the drawing software, judge whether the target model meets the preset annotation requirement, determine the modeling type of the target model when the target model meets the preset annotation requirement, and annotate the target model by combining the modeling type. Obviously, the mechanical drawing labeling method provided by the embodiment of the application can realize automatic labeling of the mechanical drawing, and because the labeling is automatic, compared with the scheme of manual labeling in the prior art, the labeling efficiency can be improved, the waste of human resources is reduced, and the labeling error rate can be reduced.
The mechanical drawing labeling device, the electronic device and the computer readable storage medium provided by the embodiment of the application have the same beneficial effects as the mechanical drawing labeling method, and are not repeated herein.
In the several embodiments provided in the examples of the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, the functional modules in each embodiment of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Further, the functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in each embodiment of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It is further noted that, herein, relational terms such as "first," "second," "third," and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.

Claims (10)

1. A method for labeling a mechanical drawing, comprising:
after a target model is imported into mapping software, acquiring the target model;
judging whether the target model meets the preset marking requirement or not;
and if the target model meets the preset marking requirement, determining the modeling type of the target model, and marking the target model by combining the modeling type.
2. The mechanical icon annotating method according to claim 1, wherein before the step of judging whether the target model meets the preset annotation requirement, the mechanical icon annotating method further comprises the following steps:
judging whether the file format of the target model belongs to an agreed format or not;
and if the file format of the target model belongs to the agreed format, executing the step of judging whether the target model meets the preset labeling requirement.
3. The mechanical icon annotation method of claim 1, wherein the determining whether the target model meets a preset annotation requirement comprises:
judging whether the target model is complete or not, and not having integral interference about the target model;
if the target model is complete and no overall interference exists about the target model, judging that the target model meets a preset labeling requirement;
and if the target model is incomplete or overall interference related to the target model exists, judging that the target model does not meet the preset labeling requirement.
4. The mechanical icon annotating method according to claim 1 or 3, wherein after judging whether the target model meets a preset annotation requirement, the mechanical icon annotating method further comprises:
if the target model does not meet the preset marking requirement, determining error content causing the target model not to meet the preset marking requirement;
and generating prompt information according to the error content and displaying the prompt information.
5. The mechanical icon annotation method of claim 1, wherein the determining a modeling type of the target model to label the target model in combination with the modeling type comprises:
identifying a modeling type of the target model, wherein the modeling type comprises a component class and a part class;
if the modeling type of the target model is a component type, judging that the target model comprises a plurality of parts, determining the labeling form of the parts for each part in the plurality of parts, labeling the parts according to the labeling form to finish the overall labeling of the target model or perform the overall labeling of the target model, judging that the target model comprises a plurality of parts, determining the labeling form of the parts for each part in the plurality of parts, and labeling the parts according to the labeling form;
and if the modeling type of the target model is a part type, judging that the target model is a part, determining the labeling form of the part, and labeling the part according to the labeling form to finish the overall labeling of the target model.
6. The mechanical iconic marking method of claim 5, wherein said marking said part according to said marking form comprises:
calling a feature function library to perform feature recognition on the part through feature data stored in the feature function library to obtain a feature recognition result;
and marking the part by combining the marking form and the feature recognition result.
7. The mechanical icon annotating method according to claim 5, wherein if the modeling type of the target model is a component class, the determining the modeling type of the target model to label the target model in combination with the modeling type further comprises:
calling a material inventory table of the target model;
and after the target model is labeled, outputting a mechanical engineering drawing comprising the labeling result and the material inventory table.
8. A mechanical drawing marking device, comprising:
the importing module is used for acquiring the target model after the target model is imported into the drawing software;
the condition judgment module is used for judging whether the target model meets the preset marking requirement or not;
and the marking module is used for determining the marking form of the part aiming at each part in the target model when the target model meets the preset marking requirement, and marking the part according to the marking form so as to finish marking the target model.
9. An electronic device comprising a processor and a memory, the memory having a computer program stored thereon, the processor being configured to execute the computer program to implement the mechanical iconic notation method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed, implements a mechanical iconic annotation method as claimed in any one of claims 1 to 7.
CN202110319755.8A 2021-03-25 2021-03-25 Mechanical icon annotation method and device and electronic equipment Active CN112926221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110319755.8A CN112926221B (en) 2021-03-25 2021-03-25 Mechanical icon annotation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110319755.8A CN112926221B (en) 2021-03-25 2021-03-25 Mechanical icon annotation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112926221A true CN112926221A (en) 2021-06-08
CN112926221B CN112926221B (en) 2022-02-25

Family

ID=76176005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110319755.8A Active CN112926221B (en) 2021-03-25 2021-03-25 Mechanical icon annotation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112926221B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742805A (en) * 2021-08-24 2021-12-03 杭州群核信息技术有限公司 Interaction method, interaction device, computer readable storage medium and processor

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180260308A1 (en) * 2017-03-08 2018-09-13 International Business Machines Corporation Checking a computer processor design for soft error handling
CN109165401A (en) * 2018-07-09 2019-01-08 国核电力规划设计研究院有限公司 A kind of method and apparatus that two-dimentional construction drawing is generated based on civil engineering structure threedimensional model
CN109446607A (en) * 2018-10-16 2019-03-08 江南造船(集团)有限责任公司 Boat segmental part three-dimensional labeling method, electronic device and storage medium
US20190354639A1 (en) * 2018-05-21 2019-11-21 Dassault Systemes Solidworks Corporation Three-Dimensional Graphical Annotations With Semantic Attributes
US20190366644A1 (en) * 2018-06-03 2019-12-05 Castor Technologies Ltd. Optimization for 3d printing
CN110633649A (en) * 2019-08-22 2019-12-31 广东博智林机器人有限公司 Mechanical diagram auditing method and device
CN110750840A (en) * 2019-09-17 2020-02-04 东莞市超图软件科技有限公司 Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN111104542A (en) * 2020-01-07 2020-05-05 成都睿琪科技有限责任公司 Part identification management method and device
CN112241445A (en) * 2020-10-26 2021-01-19 竹间智能科技(上海)有限公司 Labeling method and device, electronic equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180260308A1 (en) * 2017-03-08 2018-09-13 International Business Machines Corporation Checking a computer processor design for soft error handling
US20190354639A1 (en) * 2018-05-21 2019-11-21 Dassault Systemes Solidworks Corporation Three-Dimensional Graphical Annotations With Semantic Attributes
US20190366644A1 (en) * 2018-06-03 2019-12-05 Castor Technologies Ltd. Optimization for 3d printing
CN109165401A (en) * 2018-07-09 2019-01-08 国核电力规划设计研究院有限公司 A kind of method and apparatus that two-dimentional construction drawing is generated based on civil engineering structure threedimensional model
CN109446607A (en) * 2018-10-16 2019-03-08 江南造船(集团)有限责任公司 Boat segmental part three-dimensional labeling method, electronic device and storage medium
CN110633649A (en) * 2019-08-22 2019-12-31 广东博智林机器人有限公司 Mechanical diagram auditing method and device
CN110750840A (en) * 2019-09-17 2020-02-04 东莞市超图软件科技有限公司 Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN111104542A (en) * 2020-01-07 2020-05-05 成都睿琪科技有限责任公司 Part identification management method and device
CN112241445A (en) * 2020-10-26 2021-01-19 竹间智能科技(上海)有限公司 Labeling method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742805A (en) * 2021-08-24 2021-12-03 杭州群核信息技术有限公司 Interaction method, interaction device, computer readable storage medium and processor

Also Published As

Publication number Publication date
CN112926221B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
US7349911B2 (en) Data processing method and apparatus
CN102334095A (en) Software development support tool
CN112926221B (en) Mechanical icon annotation method and device and electronic equipment
CN111400387B (en) Conversion method and device for import and export data, terminal equipment and storage medium
US9886546B2 (en) Methods and apparatus to label radiology images
CN111159982B (en) Document editing method, device, electronic equipment and computer readable storage medium
CN112799655A (en) Multi-type code automatic generation method, device and medium based on pre-training
CN110837727B (en) Document template generation method, device, terminal equipment and medium
CN108334335B (en) Method and device for determining software source code version
CN111832906B (en) CAD drawing complexity evaluation method and device
CN110248093B (en) Data acquisition method, system and terminal equipment
CN112131841A (en) Document quality evaluation method and system
CN116956838A (en) Project determining method and device for engineering quantity list
CN106570004B (en) Data management method and device
CN116956837A (en) Project determining method and device for engineering quantity list
CN115268846A (en) Method and device for adding attribute information and computer readable storage medium
CN112131858A (en) Power grid panoramic model importing automatic adaptation method and device and storage medium
CN115107381A (en) Label printing data generation method and device
CN113326034A (en) Policy implementation calling method and device, electronic equipment and storage medium
CN111859863A (en) Document structure conversion method and device, storage medium and electronic equipment
CN114171166B (en) Management system of model of visual digital pathological artificial intelligence
CN113656486B (en) Method, device, terminal equipment and storage medium for generating visualized object
CN116842611B (en) Revit-based drawing annotation rapid drawing method, storage medium and equipment
CN115599855A (en) Data visualization method and device
CN111079378A (en) Automatic numbering method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220829

Address after: 516057 No.4, Xinpeng Road, Ma'an Town, Huicheng District, Huizhou City, Guangdong Province

Patentee after: GUANGDONG LYRIC ROBOT AUTOMATION Co.,Ltd.

Patentee after: Huizhou Haikui Information Technology Co.,Ltd.

Address before: 516000 No.4, Xinpeng Road, Ma'an Town, Huicheng District, Huizhou City, Guangdong Province

Patentee before: GUANGDONG LYRIC ROBOT AUTOMATION Co.,Ltd.

TR01 Transfer of patent right