CN111832906B - CAD drawing complexity evaluation method and device - Google Patents
CAD drawing complexity evaluation method and device Download PDFInfo
- Publication number
- CN111832906B CN111832906B CN202010576686.4A CN202010576686A CN111832906B CN 111832906 B CN111832906 B CN 111832906B CN 202010576686 A CN202010576686 A CN 202010576686A CN 111832906 B CN111832906 B CN 111832906B
- Authority
- CN
- China
- Prior art keywords
- type
- complexity
- types
- character
- coefficient
- 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.)
- Active
Links
- 238000011156 evaluation Methods 0.000 title claims abstract description 107
- 238000000034 method Methods 0.000 claims abstract description 18
- 238000002372 labelling Methods 0.000 claims description 39
- 238000000605 extraction Methods 0.000 claims description 15
- 230000010365 information processing Effects 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 8
- 238000013461 design Methods 0.000 description 15
- 238000004422 calculation algorithm Methods 0.000 description 7
- 230000000875 corresponding effect Effects 0.000 description 7
- 238000004519 manufacturing process Methods 0.000 description 5
- 230000002596 correlated effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 125000000174 L-prolyl group Chemical group [H]N1C([H])([H])C([H])([H])C([H])([H])[C@@]1([H])C(*)=O 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 238000012854 evaluation process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012946 outsourcing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0639—Performance analysis of employees; Performance analysis of enterprise or organisation operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/04—Manufacturing
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Educational Administration (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- Development Economics (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Game Theory and Decision Science (AREA)
- Manufacturing & Machinery (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Image Analysis (AREA)
Abstract
The embodiment of the invention provides a CAD drawing complexity evaluation method and device. The method comprises the following steps: extracting type parameters, marking types and numbers, graphic element types and numbers, character types and numbers and types and numbers of included parts from CAD drawings; and obtaining a complexity evaluation result of the drawing according to the type parameter, the label type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing. According to the CAD drawing complexity evaluation method and device provided by the embodiment of the invention, the complexity evaluation result of the drawing can be obtained more quickly, accurately, simply and conveniently by extracting the type parameter, the label type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing according to the type parameter, the label type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a CAD drawing complexity evaluation method and device.
Background
CAD is widely applied to various fields of engineering design, and is a core tool for helping enterprises to improve design efficiency, optimize design schemes, reduce labor intensity of technicians, shorten design period and strengthen design standardization throughout industries of machinery, automobiles, electronics, aerospace, engineering construction and the like.
The two-dimensional engineering drawing refers to a two-dimensional drawing drawn by two-dimensional CAD software such as AutoCAD and three-dimensional CAD software such as Pro/E, and can enable workers to better assemble and service products. Although three-dimensional design and three-dimensional CAD tools are actively developed in recent years, the two-dimensional engineering drawing is high in standardization degree, simple, visual and convenient to read, and still plays an important role in the fields of mechanical product manufacturing industry and the like at present.
At present, the mainstream design flow of the design and manufacture enterprises of the mechanical product for carrying out three-dimensional design is as follows: firstly, developing a three-dimensional structural design, realizing product functions, determining component interfaces, perfecting dimension parameters, and then converting a three-dimensional model into a two-dimensional engineering drawing. In addition, in the process of developing three-dimensional design, some enterprises need to refer to two-dimensional engineering drawings of external units or the enterprise design, and in the process, the two-dimensional engineering drawings need to be converted into corresponding three-dimensional models.
In the process of converting the three-dimensional model into the two-dimensional engineering drawing and converting the two-dimensional engineering drawing into the three-dimensional model in the product design process, the workload evaluation is required. Designer workload assessment has been a difficult problem for businesses. In the evaluation process, aspects such as product characteristics, structural complexity, demand definition, structural innovation and the like need to be comprehensively considered. At present, the mode of the enterprise in workload assessment is mainly implemented by a senior designer to carry out manual assessment, on one hand, larger assessment errors can be caused due to the difference of subjective experiences of the designer, and on the other hand, certain additional workload can be brought, so that the design cost of the enterprise is increased.
Disclosure of Invention
The embodiment of the invention provides a CAD drawing complexity evaluation method and device, which are used for solving or at least partially solving the defect of inaccurate evaluation result in the prior art.
In a first aspect, an embodiment of the present invention provides a CAD drawing complexity evaluation method, including:
Extracting type parameters, marking types and numbers, graphic element types and numbers, character types and numbers and types and numbers of included parts of the drawing from the CAD drawing;
And obtaining a complexity evaluation result of the drawing according to the type parameter, the labeling type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing.
Preferably, the specific step of obtaining the complexity evaluation result of the drawing according to the type parameter, the label type and the number of the drawing, the graphic element type and the number, the text type and the number, and the type and the number of the included parts includes:
Determining the type of the drawing according to the type parameter;
and obtaining a complexity evaluation result of the drawing according to the type, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts.
Preferably, before extracting the type parameter, the label type and the number, the graphic element type and the number, the character type and the number of the drawing and the type and the number of the included parts from the CAD drawing, the method further comprises:
And if judging that the drawing is in the format created by the CAD software, calling the corresponding CAD software, and opening the drawing.
Preferably, the specific step of obtaining the complexity evaluation result of the drawing according to the type, the label type and the number of the drawing, the type and the number of the graphic elements, the type and the number of the characters and the type and the number of the parts included in the drawing includes:
Determining a complexity coefficient according to the type of the drawing;
And obtaining a complexity evaluation result of the drawing according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the character type and number and the type and number of the included parts.
Preferably, the complexity coefficient includes: basic complexity coefficient, labeling complexity coefficient, graphic complexity coefficient, character complexity coefficient, part type complexity coefficient and part number complexity coefficient.
Preferably, the specific step of obtaining the complexity evaluation result of the drawing according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the text type and number, and the type and number of the included parts includes:
Taking the marking complexity coefficient, the figure complexity coefficient, the character complexity coefficient, the part type complexity coefficient and the part number complexity coefficient as weights to obtain weighted sums of marking types and numbers, figure element types and numbers, character types and numbers and types and numbers containing parts of the drawing;
And obtaining a complexity evaluation result of the drawing according to the basic complexity coefficient and the weighted sum.
Preferably, the type parameter includes: at least one of name, type attribute, map, active area, and number of layers.
In a second aspect, an embodiment of the present invention provides a CAD drawing complexity evaluation apparatus, including:
The information extraction module is used for extracting type parameters, marking types and quantity, graphic element types and quantity, character types and quantity and types and quantity of contained parts of the drawing from the CAD drawing;
The information processing module is used for obtaining the complexity evaluation result of the drawing according to the type parameter, the label type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the program when executed implements the steps of a CAD drawing complexity evaluation method as provided by any one of the various possible implementations of the first aspect.
In a fourth aspect, embodiments of the present invention provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a CAD drawing complexity evaluation method as provided by any one of the various possible implementations of the first aspect.
According to the CAD drawing complexity evaluation method and device, the type parameters, the labeling types and the number, the graphic element types and the number, the character types and the number and the types and the number of the included parts of the drawing are extracted, and the complexity evaluation result of the drawing is obtained according to the type parameters, the labeling types and the number, the graphic element types and the number, the character types and the number and the types and the number of the included parts of the drawing, so that the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently, the evaluation efficiency and accuracy can be improved, the evaluation cost can be reduced, and the production and management efficiency of enterprises can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a CAD drawing complexity evaluation method according to an embodiment of the invention;
Fig. 2 is a schematic structural diagram of a CAD drawing complexity evaluation device according to an embodiment of the present invention;
Fig. 3 is a schematic entity structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to overcome the problems in the prior art, the embodiment of the invention provides a CAD drawing complexity evaluation method and device.
Fig. 1 is a flowchart of a CAD drawing complexity evaluation method according to an embodiment of the present invention. As shown in fig. 1, the method includes: and step S101, extracting type parameters, labeling types and numbers, graphic element types and numbers, character types and numbers and types and numbers of included parts from the CAD drawing.
It should be noted that the CAD drawing complexity evaluation method provided by the embodiment of the invention is especially suitable for evaluating the complexity of the two-dimensional engineering drawing of the mechanical product.
The CAD drawing of the evaluated object can be a drawing with a private format created by CAD software such as AutoCAD, creo, catia or NX, or a drawing with a general format such as PDF or pictures.
The type parameter is a parameter related to the drawing type, such as a name, a drawing, an effective area, and the number of layers.
The annotation types may include, but are not limited to, size annotations, angle annotations, and symbol annotations.
The number of annotations may be the total number of annotations, and may also include the number of various types of annotations.
The graphic element types can include, but are not limited to, straight line graphics, elliptical graphics, and circular arc graphics
The number of graphic elements may be the total number of graphic elements, and may also include the number of various types of graphic elements.
The text types may include, but are not limited to, in-template text, labeling text, and technical requirements text.
The number of words may be the total number of words and may also include the number of words of various types.
For a drawing in a private format, the attribute of each object in the drawing can be acquired based on a CAD software program to extract type parameters, label types and numbers, graphic element types and numbers, character types and numbers and types and numbers of parts.
For drawings in a general format such as PDF or pictures, information such as graphics, characters and the like can be identified through each target identification model trained in advance, and the type parameters, the label types and the number of the drawings, the type and the number of graphic elements, the type and the number of characters and the types and the number of parts are respectively extracted.
Step S102, obtaining a complexity evaluation result of the drawing according to the type parameter, the labeling type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing.
Specifically, since the number of labels, the number of graphic elements, the number of characters and the types and the number of parts contained are positively correlated with the complexity, the complexity of different types of drawings can be the same or different, and the complexity of different types of labels, graphic elements and characters can be the same or different, therefore, based on a preset evaluation algorithm, the complexity evaluation result of the drawings can be obtained according to the type parameters, the types and the number of labels, the types and the number of graphic elements, the types and the number of characters and the types and the number of parts contained.
The preset evaluation algorithm may be an accumulation algorithm, a weighted summation algorithm, or the like, which is not particularly limited in the embodiment of the present invention.
The complexity evaluation result of the drawing can be used for evaluating the workload of a designer, more accurately evaluating the design cost of a product, and can be used as a reference basis for enterprise internal accounting or outsourcing design. Namely, after the complexity evaluation result of the drawing is obtained, the evaluation result of the workload of the designer can be obtained according to the complexity evaluation result of the drawing.
According to the embodiment of the invention, the complexity evaluation result of the drawing is obtained by extracting the type parameter, the label type and the number of the drawing, the type and the number of the graphic elements, the type and the number of the characters and the type and the number of the parts included according to the type parameter, the label type and the number of the drawing, the type and the number of the graphic elements, the type and the number of the characters and the type and the number of the parts included, so that the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently, the evaluation efficiency and the accuracy can be improved, the evaluation cost can be reduced, and the production and management efficiency of enterprises can be improved.
Based on the content of the above embodiments, the specific steps for obtaining the complexity evaluation result of the drawing according to the type parameter, the label type and the number of the drawing, the graphic element type and the number, the text type and the number, and the type and the number of the included parts include: and determining the type of the drawing according to the type parameter.
Specifically, the types of drawings may include, but are not limited to, part drawings and assembly drawings.
The drawing is a part drawing or an assembly drawing according to the type parameters such as the name, the drawing, the effective area, the number of layers and the like.
And obtaining a complexity evaluation result of the drawing according to the type, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts.
Specifically, based on a preset evaluation algorithm, the complexity evaluation result of the drawing can be obtained according to the type, the labeling type and the number of the drawing, the type and the number of the graphic elements, the type and the number of the characters and the type and the number of the parts contained in the drawing.
According to the embodiment of the invention, the complexity evaluation result of the drawing is obtained according to the type, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts, and the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently.
Based on the content of each embodiment, before extracting the type parameter, the label type and the number, the graphic element type and the number, the character type and the number of the drawing and the type and the number of the included parts from the CAD drawing, the method further comprises: and if judging that the drawing is in the format created by the CAD software, calling the corresponding CAD software, and opening the drawing.
Specifically, for a CAD drawing to be evaluated, determining the file format of the drawing.
If the drawing is a drawing which can be in a general format according to PDF or pictures and the like, the drawing can be opened through general PDF software or picture checking software.
If the drawing is a drawing with a private format created by CAD software such as AutoCAD, creo, catia or NX, namely, the file format is dwg format or creo format, the CAD software such as AutoCAD, creo, catia or NX can be correspondingly called, and the drawing is opened to extract the type parameters, the label types and the number of the drawing, the type and the number of the graphic elements, the type and the number of the characters and the types and the number of the parts contained.
According to the embodiment of the invention, the corresponding CAD software is called, and the drawing with the private format created by the CAD software is opened, so that the type parameter, the labeling type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing can be extracted, and the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently.
Based on the content of the above embodiments, the specific steps for obtaining the complexity evaluation result of the drawing according to the type, the label type and the number of the drawing, the graphic element type and the number, the text type and the number and the type and the number of the included parts include: and determining the complexity coefficient according to the type of the drawing.
The complexity coefficient is used for representing types of single labels, graphic elements, characters and parts and complexity of the parts in different types of drawings.
The complexity coefficient may be a constant determined according to the type of drawing.
It will be appreciated that the individual labels, graphic elements, text, types of parts and complexity of the parts may be different for different types of drawings, and thus the complexity factor may be determined based on the type of drawing.
And obtaining a complexity evaluation result of the drawing according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the character type and number and the type and number of the included parts.
Specifically, based on a preset evaluation algorithm, the complexity evaluation result of the drawing can be obtained according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the character type and number and the type and number of the included parts.
According to the embodiment of the invention, the complexity coefficient is determined according to the type of the drawing, and the complexity evaluation result of the drawing is obtained according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the character type and number and the type and number of the included parts, so that the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently.
Based on the content of the above embodiments, the complexity coefficients include: basic complexity coefficient, labeling complexity coefficient, graphic complexity coefficient, character complexity coefficient, part type complexity coefficient and part number complexity coefficient.
Specifically, the basic complexity coefficient is related to the type of the drawing and is used for representing the basic complexity of the type of the drawing. Typically, the base complexity factor of the assembly drawing is greater than the base complexity factor of the part drawing.
The annotation complexity coefficient is used for representing the complexity of a certain annotation. For different annotation types, different annotation complexity coefficients may be set.
And the figure complexity coefficient is used for representing the complexity degree of a certain figure element. Different graphics complexity coefficients may be set for different graphic element types.
The character complexity coefficient is used for representing the complexity degree of a certain character. For different text types, different text complexity coefficients may be set.
The complexity coefficient of the part type is used for representing the complexity degree of the part type.
Part count complexity factor, which is used to represent the complexity of a single part.
According to the embodiment of the invention, the complexity evaluation result of the drawing is obtained by determining the basic complexity coefficient, the labeling complexity coefficient, the graphic complexity coefficient, the character complexity coefficient, the part type complexity coefficient and the part number complexity coefficient, so that the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently.
Based on the content of the above embodiments, the specific steps for obtaining the complexity evaluation result of the drawing according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the text type and number, and the type and number of the included parts include: and taking the labeling complexity coefficient, the graphic complexity coefficient, the character complexity coefficient, the part type complexity coefficient and the part number complexity coefficient as weights to obtain the weighted sum of the labeling type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing.
Specifically, since the number of labels, the number of graphic elements, the number of characters and the type and number of parts to be included are positively correlated with the complexity, the number of labels, the number of graphic elements, the type and number of characters and the type and number of parts to be included can be respectively used as weights of the labels, the number of graphic elements, the characters, the type and number of parts to be included, and a weighted sum of the type and number of labels, the type and number of graphic elements, the type and number of characters and the type and number of parts to be included of a drawing is obtained.
And obtaining a complexity evaluation result of the drawing according to the basic complexity coefficient and the weighted sum.
Specifically, because the basic complexity of various types of drawings is different, the sum of the basic complexity coefficient and the weighted sum can be obtained as the complexity evaluation result of the drawings.
The number of annotations X may include a number of annotations X1, a number of angles X2, a number of symbols X3, … …
The pattern number Y may include a straight line pattern number Y1, an elliptical pattern number Y2, and arc pattern numbers Y3, … …
The word number Z can comprise the word number Z1, the label word number Z2, the technical requirement word number Z3 and … … in the template
The type of the included parts is denoted by M, and the number of the included parts is denoted by N.
The calculation formula of the complexity evaluation result of the drawing can be as follows
Wherein A, B, C, D, E, F is a coefficient, and the coefficient is a constant determined according to the drawing type; a represents a base complexity coefficient; bi represents a labeling complexity coefficient, different labeling types (Xi) correspond to different labeling complexity coefficients (Bi), i is a natural number, and the i-th labeling type is represented; cj represents a graphic complexity coefficient, different graphic element types (Yj) correspond to different graphic complexity coefficients (Cj), j is a natural number, and represents a j-th graphic element type; dk represents a character complexity coefficient, different character types (Zk) correspond to different character complexity coefficients (Dk), k is a natural number, and k represents a k-th graphic element type; e represents a part type complexity coefficient; f represents the part count complexity factor.
The embodiment of the invention takes the labeling complexity coefficient, the figure complexity coefficient, the character complexity coefficient, the part type complexity coefficient and the part number complexity coefficient as weights, obtains the weighted sum of the labeling type and number, the figure element type and number, the character type and number and the type and number of the included parts of the drawing, obtains the complexity evaluation result of the drawing according to the basic complexity coefficient and the weighted sum, and can obtain the complexity evaluation result more quickly, accurately, simply and conveniently.
Based on the content of the above embodiments, the type parameters include: at least one of name, type attribute, map, active area, and number of layers.
Specifically, at least one type of parameters such as a name, a type attribute, a drawing, an effective area, and the number of layers can be acquired, so that the type of the drawing can be determined according to the type parameters.
According to the embodiment of the invention, the type of the drawing can be determined according to the type parameter by acquiring at least one of the name, the type attribute, the drawing, the effective area and the number of layers, so that the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently.
Fig. 2 is a schematic structural diagram of a CAD drawing complexity evaluation device according to an embodiment of the invention. Based on the content of the above embodiments, as shown in fig. 2, the apparatus includes an information extraction module 201 and an information processing module 202, where:
An information extraction module 201, configured to extract, from a CAD drawing, a type parameter, a label type, a label number, a graphic element type, a graphic element number, a text type, a text number, and a type and a number of parts included;
The information processing module 202 is configured to obtain a complexity evaluation result of the drawing according to the type parameter, the label type and number, the graphic element type and number, the text type and number, and the type and number of the included parts of the drawing.
Specifically, the information extraction module 201 is electrically connected to the information processing module 202.
The information extraction module 201 is mainly responsible for extracting information such as drawing type, drawing, effective area of graphics, labeling type and number, graphic element type and number, text type and number, type and number of parts contained in the assembly drawing from the CAD drawing, and sending the information to the information processing module 202.
The CAD drawing complexity evaluation device may include a plurality of information extraction modules 101, respectively for CAD drawings of different formats.
For a private format drawing created by CAD software such as AutoCAD, creo, catia, NX, the information extraction module 101 needs to be opened by calling the corresponding CAD software, and information extraction is performed by the CAD software.
For a CAD drawing in a PDF or picture format, the information extraction module 101 firstly identifies information such as graphics, characters and the like in the PDF or the picture, and then carries out corresponding extraction operation.
The information extraction module 201 can support the extraction of single CAD drawing information, and can also support the batch extraction of multiple CAD drawing information with the same format.
After collecting the CAD drawing information sent by the information extraction module 101, the information processing module 202 processes the information through a complexity evaluation algorithm, and outputs the CAD drawing information and the complexity evaluation result.
The output complexity evaluation result can be in the form of a table, a chart and the like, and supports the export of information into the form of a file.
The method can also interact with a user based on a graphical interface through a display module, and comprises the steps of selecting a model to be evaluated, performing evaluation operation, and viewing and exporting results.
The embodiment of the invention provides a CAD drawing complexity evaluation device, which is used for executing the CAD drawing complexity evaluation method provided by the above embodiments of the invention, and the specific method and flow of each module included in the CAD drawing complexity evaluation device for realizing the corresponding function are detailed in the embodiment of the CAD drawing complexity evaluation method, and are not repeated here.
The CAD drawing complexity evaluation device is used for the CAD drawing complexity evaluation method of each embodiment. Therefore, the description and definition in the CAD drawing complexity evaluation method in the foregoing embodiments may be used for understanding each execution module in the embodiments of the present invention.
According to the embodiment of the invention, the complexity evaluation result of the drawing is obtained by extracting the type parameter, the label type and the number of the drawing, the type and the number of the graphic elements, the type and the number of the characters and the type and the number of the parts included according to the type parameter, the label type and the number of the drawing, the type and the number of the graphic elements, the type and the number of the characters and the type and the number of the parts included, so that the complexity evaluation result can be obtained more quickly, accurately, simply and conveniently, the evaluation efficiency and the accuracy can be improved, the evaluation cost can be reduced, and the production and management efficiency of enterprises can be improved.
Fig. 3 is a schematic entity structure of an electronic device according to an embodiment of the present invention. Based on the content of the above embodiment, as shown in fig. 3, the electronic device may include: a processor (processor) 301, a memory (memory) 302, and a bus 303; wherein the processor 301 and the memory 302 perform communication with each other through the bus 303; the processor 301 is configured to invoke computer program instructions stored in the memory 302 and executable on the processor 301 to perform the CAD drawing complexity evaluation method provided by the method embodiments described above, including, for example: extracting type parameters, marking types and numbers, graphic element types and numbers, character types and numbers and types and numbers of included parts from CAD drawings; and obtaining a complexity evaluation result of the drawing according to the type parameter, the label type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing.
Another embodiment of the present invention discloses a computer program product, including a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, which when executed by a computer, are capable of executing the CAD drawing complexity evaluation method provided by the above method embodiments, for example, including: extracting type parameters, marking types and numbers, graphic element types and numbers, character types and numbers and types and numbers of included parts from CAD drawings; and obtaining a complexity evaluation result of the drawing according to the type parameter, the label type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing.
Further, the logic instructions in memory 302 described above may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art or a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Another embodiment of the present invention provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the CAD drawing complexity evaluation method provided by the above method embodiments, for example, including: extracting type parameters, marking types and numbers, graphic element types and numbers, character types and numbers and types and numbers of included parts from CAD drawings; and obtaining a complexity evaluation result of the drawing according to the type parameter, the label type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing.
The apparatus embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. It is to be understood that the foregoing aspects, in essence, or portions thereof, may be embodied in the form of a software product that may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the various embodiments, or methods of portions of the embodiments, described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (7)
1. The CAD drawing complexity evaluation method is characterized by comprising the following steps of:
Extracting type parameters, marking types and numbers, graphic element types and numbers, character types and numbers and types and numbers of included parts of the drawing from the CAD drawing;
Obtaining a complexity evaluation result of the drawing according to the type parameter, the labeling type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing;
the type parameters are parameters related to drawing types, wherein the drawing types comprise part drawings and assembly drawings;
the specific steps for obtaining the complexity evaluation result of the drawing according to the type parameter, the label type and number, the graphic element type and number, the character type and number and the type and number of the included parts of the drawing comprise the following steps:
Determining the type of the drawing according to the type parameter;
Obtaining a complexity evaluation result of the drawing according to the type, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts;
The specific steps for obtaining the complexity evaluation result of the drawing according to the type, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts comprise:
Determining a complexity coefficient according to the type of the drawing;
Obtaining a complexity evaluation result of the drawing according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the character type and number and the type and number of the included parts;
the complexity coefficients include: basic complexity coefficient, labeling complexity coefficient, graphic complexity coefficient, character complexity coefficient, part type complexity coefficient and part number complexity coefficient.
2. The method for evaluating the complexity of a CAD drawing according to claim 1, wherein before extracting the type parameter, the label type and number, the graphic element type and number, the text type and number, and the type and number of the included parts of the CAD drawing, the method further comprises:
And if judging that the drawing is in the format created by the CAD software, calling the corresponding CAD software, and opening the drawing.
3. The method for evaluating the complexity of a CAD drawing according to claim 1, wherein the specific step of obtaining the complexity evaluation result of the drawing according to the complexity coefficient, the type and number of labels, the type and number of graphic elements, the type and number of characters, and the type and number of parts included comprises:
Taking the marking complexity coefficient, the figure complexity coefficient, the character complexity coefficient, the part type complexity coefficient and the part number complexity coefficient as weights to obtain weighted sums of marking types and numbers, figure element types and numbers, character types and numbers and types and numbers containing parts of the drawing;
And obtaining a complexity evaluation result of the drawing according to the basic complexity coefficient and the weighted sum.
4. A CAD drawing complexity evaluation method according to any one of claims 1 to 3, wherein the type parameters include: at least one of name, type attribute, map, active area, and number of layers.
5. A CAD drawing complexity evaluation device, comprising:
The information extraction module is used for extracting type parameters, marking types and quantity, graphic element types and quantity, character types and quantity and types and quantity of contained parts of the drawing from the CAD drawing;
The information processing module is used for obtaining a complexity evaluation result of the drawing according to the type parameter, the label type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts of the drawing;
the type parameters are parameters related to drawing types, wherein the drawing types comprise part drawings and assembly drawings;
The specific steps of the information processing module for obtaining the complexity evaluation result of the drawing according to the type parameter, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts comprise:
Determining the type of the drawing according to the type parameter;
Obtaining a complexity evaluation result of the drawing according to the type, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts;
The specific steps of the information processing module for obtaining the complexity evaluation result of the drawing according to the type, the labeling type and the number of the drawing, the graphic element type and the number, the character type and the number and the type and the number of the included parts comprise:
Determining a complexity coefficient according to the type of the drawing;
Obtaining a complexity evaluation result of the drawing according to the complexity coefficient, the labeling type and number of the drawing, the graphic element type and number, the character type and number and the type and number of the included parts;
the complexity coefficients include: basic complexity coefficient, labeling complexity coefficient, graphic complexity coefficient, character complexity coefficient, part type complexity coefficient and part number complexity coefficient.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the CAD drawing complexity evaluation method of any one of claims 1 to 4 when the program is executed.
7. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the CAD drawing complexity evaluation method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010576686.4A CN111832906B (en) | 2020-06-22 | 2020-06-22 | CAD drawing complexity evaluation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010576686.4A CN111832906B (en) | 2020-06-22 | 2020-06-22 | CAD drawing complexity evaluation method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111832906A CN111832906A (en) | 2020-10-27 |
CN111832906B true CN111832906B (en) | 2024-06-11 |
Family
ID=72899054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010576686.4A Active CN111832906B (en) | 2020-06-22 | 2020-06-22 | CAD drawing complexity evaluation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111832906B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023169644A1 (en) * | 2022-03-05 | 2023-09-14 | Eaton Intelligent Power Limited | Method and system for extracting knowledge from unstructured text using frequency pattern mining and active learning |
CN115423991B (en) * | 2022-08-22 | 2023-09-12 | 惠州市海葵信息技术有限公司 | Engineering drawing layout method, controller and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06103274A (en) * | 1992-09-18 | 1994-04-15 | Nec Corp | Cost estimating system |
US6993401B1 (en) * | 2001-11-07 | 2006-01-31 | Autodesk, Inc. | Method and apparatus for simplified determination of a design schedule utilizing computer aided design (CAD) model information |
CN106875108A (en) * | 2017-01-25 | 2017-06-20 | 北京数码大方科技股份有限公司 | CAD diagram paper resource consumption analysis method and device |
CN109740435A (en) * | 2018-11-30 | 2019-05-10 | 四川译讯信息科技有限公司 | A kind of picture class file complexity determination method and platform |
CN111226217A (en) * | 2017-08-30 | 2020-06-02 | 雷普利奥利公司 | Manufacturing design modification system |
-
2020
- 2020-06-22 CN CN202010576686.4A patent/CN111832906B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06103274A (en) * | 1992-09-18 | 1994-04-15 | Nec Corp | Cost estimating system |
US6993401B1 (en) * | 2001-11-07 | 2006-01-31 | Autodesk, Inc. | Method and apparatus for simplified determination of a design schedule utilizing computer aided design (CAD) model information |
CN106875108A (en) * | 2017-01-25 | 2017-06-20 | 北京数码大方科技股份有限公司 | CAD diagram paper resource consumption analysis method and device |
CN111226217A (en) * | 2017-08-30 | 2020-06-02 | 雷普利奥利公司 | Manufacturing design modification system |
CN109740435A (en) * | 2018-11-30 | 2019-05-10 | 四川译讯信息科技有限公司 | A kind of picture class file complexity determination method and platform |
Non-Patent Citations (2)
Title |
---|
Camba ; JD ; Contero, M ; Pérez-López, D ; Company, P ; .A DATABASE FRAMEWORK FOR THE CHARACTERIZATION AND CLASSIFICATION OF PARAMETRIC MODELS BASED ON COMPLEXITY METRICS TO SUPPORT DATA ANALYTICS.14th ASME International Manufacturing Science and Engineering Conference.2019,全文. * |
面向信息安全的二维CAD工程图复杂度研究;龙敏; 彭飞;;计算机科学;第38卷(第09期);第260-263页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111832906A (en) | 2020-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112818975B (en) | Text detection model training method and device, text detection method and device | |
CN111461164B (en) | Sample data set capacity expansion method and model training method | |
CN111832906B (en) | CAD drawing complexity evaluation method and device | |
CN111340054A (en) | Data labeling method and device and data processing equipment | |
CN112818457A (en) | BIM (building information modeling) model intelligent generation method and system based on CAD (computer-aided design) drawing | |
CN112528616A (en) | Business form generation method and device, electronic equipment and computer storage medium | |
CN115984662B (en) | Multi-mode data pre-training and identifying method, device, equipment and medium | |
JP5898584B2 (en) | Hexahedral mesh generator | |
CN114005126A (en) | Table reconstruction method and device, computer equipment and readable storage medium | |
CN114708461A (en) | Multi-modal learning model-based classification method, device, equipment and storage medium | |
CN115311469A (en) | Image labeling method, training method, image processing method and electronic equipment | |
CN115375812A (en) | CAD data rendering method and device, electronic equipment and storage medium | |
CN113504865A (en) | Work order label adding method, device, equipment and storage medium | |
CN116188917B (en) | Defect data generation model training method, defect data generation method and device | |
CN116311300A (en) | Table generation method, apparatus, electronic device and storage medium | |
CN112561500B (en) | Salary data generation method, device, equipment and medium based on user data | |
CN113158632B (en) | Table reconstruction method for CAD drawing and computer readable storage medium | |
CN116052195A (en) | Document parsing method, device, terminal equipment and computer readable storage medium | |
CN110110280B (en) | Curve integral calculation method, device and equipment for coordinates and storage medium | |
CN113706019A (en) | Service capability analysis method, device, equipment and medium based on multidimensional data | |
CN114417998A (en) | Data feature mapping method, device, equipment and storage medium | |
CN113066153A (en) | Method, device and equipment for generating pipeline flow chart and storage medium | |
CN108109002B (en) | Data processing method and device | |
CN113177995B (en) | Text reorganization method of CAD drawing and computer readable storage medium | |
CN116306575B (en) | Document analysis method, document analysis model training method and device and electronic equipment |
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 |