CN112541240A - Part drawing method, computer device and storage medium - Google Patents

Part drawing method, computer device and storage medium Download PDF

Info

Publication number
CN112541240A
CN112541240A CN202011569583.1A CN202011569583A CN112541240A CN 112541240 A CN112541240 A CN 112541240A CN 202011569583 A CN202011569583 A CN 202011569583A CN 112541240 A CN112541240 A CN 112541240A
Authority
CN
China
Prior art keywords
template
key
preset
constraint
determining
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
CN202011569583.1A
Other languages
Chinese (zh)
Other versions
CN112541240B (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.)
Suntown Technology Group Co Ltd
Original Assignee
Suntown Technology Group 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 Suntown Technology Group Co Ltd filed Critical Suntown Technology Group Co Ltd
Priority to CN202011569583.1A priority Critical patent/CN112541240B/en
Publication of CN112541240A publication Critical patent/CN112541240A/en
Application granted granted Critical
Publication of CN112541240B publication Critical patent/CN112541240B/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/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/04Constraint-based CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/20Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules

Landscapes

  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application relates to the technical field of computer graphics, and provides a part plotting method, computer equipment and a storage medium, wherein the part plotting method comprises the following steps: responding to an image drawing instruction sent by a user, and determining key parameters corresponding to the image drawing instruction; calling a corresponding part template from a preset template library according to the key parameters; adjusting the size of the part template according to the key parameters to generate a part frame diagram; acquiring a matching auxiliary corresponding to the part template according to a constraint rule corresponding to the part template; and adding the matching auxiliary parts into the part frame diagram according to the constraint rule to generate a part diagram. The drawing efficiency of the part drawing can be improved.

Description

Part drawing method, computer device and storage medium
Technical Field
The present application relates to the field of computer graphics technologies, and in particular, to a part drawing method, a computer device, and a storage medium.
Background
Existing part production drawings are typically drawn using purely manual drawing or using a drawing development tool. The purely manual drawing has low drawing efficiency and high drawing error rate, and a large amount of drawings are required. The current development tool for drawing pictures adopts a mode of drawing primitives in a one-point-one-line mode, and simply replaces manual operation with programs. If a part has hundreds of points or lines, the codes can calculate the coordinate positions and the relations of the hundreds of points, and then the points are connected with each other through primitives such as straight lines, arcs and the like. Therefore, the code development amount required by the drawing development tool is extremely large, the maintainability of software is extremely low, and the drawing development tool needs to be re-developed once the structure of the part is changed, so that the drawing efficiency is low.
Disclosure of Invention
In view of the above, the present application mainly aims to provide a part plotting method, a computer device and a storage medium, and aims to solve the technical problem of how to improve the efficiency of plotting a part production diagram.
A first aspect of the present application provides a part drawing method including:
receiving a drawing instruction, and calling a corresponding part template from a preset template library according to key parameters in the drawing instruction;
adjusting the size of the part template according to the key parameters to generate a part frame diagram;
acquiring a matching auxiliary corresponding to the part template according to a constraint rule corresponding to the part template;
and adding the matching auxiliary parts into the part frame diagram according to the constraint rule to generate a part diagram.
According to an optional embodiment of the present application, the key parameter includes a plurality of key fields, and the retrieving the corresponding part template from the preset template library according to the key parameter in the drawing instruction includes:
identifying the parameter name of each key field in the key parameters, and determining a category field in the key fields according to the identified parameter name;
identifying the category field to determine the part category corresponding to the drawing instruction;
and calling a corresponding part template from a preset template library according to the part category.
According to an alternative embodiment of the present application, the key parameter includes a plurality of key fields, and adjusting the size of the part template according to the key parameter includes:
identifying the parameter name of each key field in the key parameters, and determining a size field in the key fields according to the identified parameter name;
extracting size data in the size field;
adjusting the dimensions of the part template according to the dimensional data.
According to an optional embodiment of the present application, the constraint rule includes an accessory constraint rule, and obtaining the matching accessory corresponding to the part template according to the constraint rule corresponding to the part template includes:
determining the matched auxiliary part number matched with the part template according to the matched constraint rule;
and acquiring the matched auxiliary corresponding to the part template in a preset auxiliary library according to the matched auxiliary serial number.
According to an optional embodiment of the present application, the constraint rule includes a position constraint rule, and the adding the matching accessory to the part frame map according to the constraint rule, generating the part map includes:
determining a target adding area in the part frame diagram according to the position constraint rule;
adding the mating accessory to the target addition area.
According to an optional embodiment of the present application, after the generating the part drawing, the method further comprises:
determining a plurality of key points on the part drawing according to a preset marking rule;
determining a plurality of key point combinations in the plurality of key points according to a preset combination rule, wherein the key point combinations comprise two key points;
and carrying out size marking on the part drawing according to the position of the plurality of key point combinations in the part drawing.
According to an optional embodiment of the present application, the dimensioning the part drawing according to the position of the plurality of key point combinations in the part drawing includes:
determining a straight-line distance between two key points in each key point combination according to the positions of the two key points in the part drawing;
when the straight-line distance between the two key points is smaller than or equal to a preset distance threshold, carrying out size marking on the part drawing by using a first marking method;
and when the linear distance between the two key points is greater than the preset distance threshold, carrying out size marking on the part drawing by using a second marking method.
According to an optional embodiment of the present application, after the generating the part drawing, the method further comprises:
extracting a detail column template corresponding to the part template from a preset attribute library;
and generating a detail column corresponding to the part drawing according to the attribute information corresponding to the part drawing and the detail column template.
A second aspect of the present application provides a computer device comprising:
a memory to store at least one instruction;
a processor configured to implement the part charting method when executing the at least one instruction.
A third aspect of the present application provides a computer-readable storage medium having stored therein at least one instruction which, when executed by a processor, implements a parts map method as described above,
according to the technical scheme, the corresponding part template can be called from a preset template library according to the key parameters corresponding to the drawing instruction, the size of the part template is adjusted according to the key parameters, the part frame diagram is generated, the compiling amount of software codes is reduced, and the generation speed of the part frame diagram is improved; and finally, acquiring the matching auxiliary corresponding to the part template according to the constraint rule corresponding to the part template, and adding the matching auxiliary into the part frame diagram according to the constraint rule to generate the part diagram, so that the drawing efficiency of the part diagram can be improved.
Drawings
FIG. 1 is a flow chart of a part charting method of an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a part template according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a component diagram according to an embodiment of the present application;
fig. 4 is a schematic block diagram of a structure of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a part drawing method, a part drawing device, computer equipment and a computer readable storage medium. The part plotting method can be applied to terminal equipment or a server, the terminal equipment can be electronic equipment such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and wearable equipment, and the server can be a single server or a server cluster consisting of a plurality of servers. The following explanation will be given taking the application of the parts drawing method to a server as an example.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for drawing a part according to an embodiment of the present application.
As shown in FIG. 1, the part-drawing method specifically includes steps S11-S14, and the order of the steps in the flowchart may be changed and some may be omitted according to different requirements.
And S11, receiving the drawing instruction, and calling the corresponding part template from a preset template library according to the key parameters in the drawing instruction.
Illustratively, the client has installed one or more applications and/or applets through which the user can send the chart instructions by clicking, touching, or voice control. The graph instruction may be sent in the form of an HTTP message.
Illustratively, the key parameter corresponding to the chart instruction can be obtained by analyzing the message data corresponding to the chart instruction. Wherein the key parameters comprise related part information of the corresponding part of the drawing instruction.
Illustratively, a part category field is intercepted from the key parameter, a part category corresponding to the plotting instruction is obtained by identifying the part category field, and a part template corresponding to the part category is called from a preset template library according to the part category, namely the part template corresponding to the plotting instruction is called.
In some embodiments, a plurality of part templates are generated in advance according to part categories, and are stored in a preset template library. The part templates corresponding to different part categories are set according to the requirements of users, different parts correspond to different part templates, and the sizes of the part templates can be modified according to key parameters input by the users, so that the part drawings corresponding to the drawing instructions of the users are obtained. The part template comprises shape constraints, and the shape constraints are used for constraining the shape of the part template, so that the part template modified according to key parameters input by a user still keeps a certain shape. The shape constraint can comprise edge proportion constraint and included angle constraint, wherein the edge proportion constraint is used for constraining the proportion relation of the lengths between edges in the part template, and the included angle constraint is used for constraining the angle size of the included angle. For example, fig. 2 shows a corresponding inclined wallboard template, which includes an edge proportion constraint and an included angle constraint, where, for example, under the constraint of the edge proportion constraint, the length proportion of the AB edge to the AD edge is a fixed value of 2.2, and under the constraint of the included angle constraint, the included angle between the AB edge and the AD edge is a fixed value of 90 °. The shape constraint can be set by self according to the requirements of users, and is not limited at all.
For example, the template library may include a mapping table, in which a mapping relationship between the part template and the part category is described. And the part template corresponding to the part category can be quickly acquired from the template library by inquiring the mapping relation table.
In some embodiments, the key parameter includes a plurality of key fields, and the retrieving the corresponding part template from the preset template library according to the key parameter in the drawing instruction includes:
identifying the parameter name of each key field in the key parameters, and determining a category field in the key fields according to the identified parameter name;
identifying the category field to determine the part category corresponding to the drawing instruction;
and calling a corresponding part template from a preset template library according to the part category.
Illustratively, the key parameters include a plurality of key fields, different key fields have different parameter names, and the content represented by the key fields can be known by identifying the parameter names of the key fields, wherein the parameter names include category names, sizes and the like. A category field, such as a category field TQ, is determined among the plurality of key fields based on the identified parameter name. The identification category field TQ determines that the part category corresponding to the drawing instruction is a slant wall panel. And finally, calling the part template corresponding to the inclined wallboard from a preset template library.
In some embodiments, the retrieving the corresponding part template from the preset template library according to the key parameter includes:
obtaining a category segmentation identifier corresponding to the part category from a configuration label library;
segmenting the key parameters based on the category segmentation identifiers to obtain category fields;
identifying the category field to determine the part category corresponding to the drawing instruction;
and calling a corresponding part template from a preset template library according to the part category.
The configuration label library stores a plurality of items and segmentation identifiers corresponding to the items, and the segmentation identifiers are used for determining the position ranges of the items matched with the segmentation identifiers in the key parameters and setting segmentation marks at the starting points and the ending points of the position ranges. The items may include part categories and part parameters, among others.
Illustratively, the key parameter is TQ (w) x (L) - (a) & (K) L, a category segmentation identifier corresponding to the part category is obtained from the configuration tag library, and the key parameter is segmented based on the category segmentation identifier to obtain a category field TQ. The identification category field TQ determines that the part category corresponding to the drawing instruction is a slant wall panel. And finally, calling the part template corresponding to the inclined wallboard from a preset template library.
And S12, adjusting the size of the part template according to the key parameters to generate a part frame diagram.
Determining part parameters of the part according to the key parameters, and adjusting the size of the part template according to the part parameters to generate a part frame diagram.
In some embodiments, the key parameter includes a plurality of key fields, and the adjusting the size of the part template according to the key parameter includes:
identifying the parameter name of each key field in the key parameters, and determining a size field in the key fields according to the identified parameter name;
extracting size data in the size field;
adjusting the dimensions of the part template according to the dimensional data.
Illustratively, the key parameters include a plurality of key fields, different key fields have different parameter names, and the content represented by the key fields can be known by identifying the parameter names of the key fields, wherein the parameter names include category names, sizes and the like. And determining a size field in the plurality of key fields according to the identified parameter name, wherein the size field comprises a width field W, a length field L, an angle field A and a hypotenuse starting hole site field K. Size data such as W:400, L:1600, A:56.6, K:50 in the size field is extracted. And adjusting the size of the part template according to the size data.
In some embodiments, said adjusting the dimensions of said part template according to said key parameters comprises:
determining a plurality of parameter identifications among the key parameters;
extracting size data in the size field;
adjusting the dimensions of the part template according to the dimensional data.
Illustratively, the key parameters comprise a plurality of size data, and the size data comprise a length parameter, a width parameter, a hole position parameter, a tab groove spacing parameter and the like of the part. Different size data have different parameter identifications, and the parameter identifications are used for representing the parameter types corresponding to the size data, for example, W represents a width parameter, L represents a length parameter, A represents an angle parameter, and K represents an inclined edge starting hole position parameter. For example, the key parameters are TQ (W400) X (L1600) - (a56.6) & (K50) including parameter identifications: w, L, A, K are provided. Size data such as W:400, L:1600, A:56.6, K:50 in the size field is extracted. And adjusting the size of the part template according to the size data.
And S13, acquiring the matching auxiliary corresponding to the part template according to the constraint rule corresponding to the part template.
Illustratively, constraint rules corresponding to the part templates are preset, and the constraint rules are used for determining constraints corresponding to the part templates, such as constraint of the types of matched accessories, constraint of the number of matched accessories, constraint of the positions of matched accessories, and the like.
In some embodiments, the constraint rule includes an accessory constraint rule, and the obtaining a matching accessory corresponding to the part template according to the constraint rule corresponding to the part template includes:
determining the matched auxiliary part number matched with the part template according to the matched constraint rule;
and acquiring the matched auxiliary corresponding to the part template in a preset auxiliary library according to the matched auxiliary serial number.
Illustratively, a matching constraint rule corresponding to each part template is preset, the matching constraint rule is used for determining a matching auxiliary corresponding to the part template, and the matching auxiliary is used for being added to the part template to complete a part drawing corresponding to the drawing instruction. The mating aids may include studs and/or closure plates.
And S14, adding the matching auxiliary parts into the part frame diagram according to the constraint rule to generate a part diagram.
And determining a target adding position of a matching auxiliary in the part frame diagram according to the constraint rule, and adding the matching auxiliary to the target position to generate the part diagram.
In some embodiments, the constraint rules include location constraint rules, the adding the mating accessory to the part frame map according to the constraint rules, generating a part map includes:
determining a target adding area in the part frame diagram according to the position constraint rule;
adding the mating accessory to the target addition area.
Illustratively, a position constraint rule corresponding to each part template is preset, and the position constraint rule is used for determining a target area for adding the auxiliary components in a matching manner.
In some embodiments, after the generating the part map, the method further comprises:
determining a plurality of key points on the part drawing according to a preset marking rule;
determining a plurality of key point combinations in the plurality of key points according to a preset combination rule, wherein the key point combinations comprise two key points;
and carrying out size marking on the part drawing according to the position of the plurality of key point combinations in the part drawing.
Illustratively, the preset marking rule includes marking the vertex in the part drawing as a key point and marking the connection point of the matching accessory and the part frame drawing as a key point. As shown in fig. 3, the vertex a, the vertex B, the vertex C, and the vertex D in the part diagram are labeled as key points, and the connection point a, the connection point B, the connection point C, the connection point D, the connection point e, the connection point f, the connection point g, and the connection point h of the mating accessory and the part frame diagram are labeled as key points.
Illustratively, the preset combination rule includes combining two adjacent keypoints on the same edge and/or combining two vertices on one edge. As shown in fig. 3, according to a preset combination rule, fourteen key point combinations can be obtained: (A, a), (a, B), (B, C), (C, D), (D, B), (A, B), (B, C), (C, e), (C, f), (f, g), (g, h), (h, D), (C, D) and (D, A).
And determining the linear distance of the two key points according to the positions of the two key points in each key point combination in the part drawing, and carrying out size marking on the two key points according to the linear distance, namely carrying out size marking on the part drawing.
In some embodiments, the dimensioning the part drawing based on the locations of the plurality of keypoint combinations in the part drawing comprises:
determining a straight-line distance between two key points in each key point combination according to the positions of the two key points in the part drawing;
when the straight-line distance between the two key points is smaller than or equal to a preset distance threshold, carrying out size marking on the part drawing by using a first marking method;
and when the linear distance between the two key points is greater than the preset distance threshold, carrying out size marking on the part drawing by using a second marking method.
When the straight-line distance between two key points is smaller than or equal to a preset distance threshold value, namely, no enough space position is available for drawing an arrow and marking a dimension number, the dimension of the part drawing is marked by using a first marking method, namely, the part drawing is marked by using a marking method in which the arrow or the number is arranged outside the drawing.
And when the linear distance between the two key points is greater than the preset distance threshold, carrying out size marking on the part drawing by using a second marking method, namely carrying out size marking on the part drawing by using a conventional size marking method. In some embodiments, after the generating the part map, the method further comprises:
extracting a detail column template corresponding to the part template from a preset attribute library;
and generating a detail column corresponding to the part drawing according to the attribute information corresponding to the part drawing and the detail column template.
Exemplarily, the content to be filled in the detail column template is determined, and corresponding data information is acquired from the attribute information corresponding to the part drawing according to the content to be filled and is filled in the detail column template to generate the detail column corresponding to the part drawing. Wherein the attribute information may include part name, drawing number and material specification.
In some embodiments, after the generating the part drawing, the method may further include: and calling a picture frame matched with the size of the part drawing from a preset attribute library, and framing the part drawing by using the picture frame.
In some embodiments, after the part map is generated, the part map is stored in a preset storage space, and a PDF file and a DWG file corresponding to the part map are generated.
According to the part plotting method provided by the embodiment, the corresponding part template can be called from the preset template library according to the key parameter corresponding to the plotting instruction, the size of the part template is adjusted according to the key parameter, the part frame diagram is generated, the writing amount of software codes is reduced, and the generation rate of the part frame diagram is improved; and finally, acquiring the matching auxiliary corresponding to the part template according to the constraint rule corresponding to the part template, and adding the matching auxiliary into the part frame diagram according to the constraint rule to generate the part diagram, so that the drawing efficiency of the part diagram can be improved.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present disclosure. The computer device may be a server or a terminal device.
As shown in fig. 4, the computer device 40 includes a processor 401 and a memory 402 connected by a system bus, wherein the memory 402 may include a nonvolatile storage medium and a volatile storage medium.
The memory 402 may store an operating system and computer programs. The computer program includes program instructions that, when executed, cause the processor 401 to perform any of the parts charting methods described herein.
The processor 401 is used to provide computing and control capabilities to support the operation of the overall computer device.
In a possible embodiment, the computer device further comprises a network interface for performing network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that Processor 401 is a Central Processing Unit (CPU), and may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor executes a computer program stored in the memory to implement the steps of:
responding to an image drawing instruction sent by a user, and determining key parameters corresponding to the image drawing instruction;
calling a corresponding part template from a preset template library according to the key parameters;
adjusting the size of the part template according to the key parameters to generate a part frame diagram;
acquiring a matching auxiliary corresponding to the part template according to a constraint rule corresponding to the part template;
and adding the matching auxiliary parts into the part frame diagram according to the constraint rule to generate a part diagram.
Specifically, the specific implementation method of the instruction by the processor may refer to the description of the relevant steps in the foregoing part-drawing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed, the method that is implemented may refer to various embodiments of the method for drawing a graph in this application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
The computer device and the computer-readable storage medium provided in the foregoing embodiment can call a corresponding part template from a preset template library according to the key parameter corresponding to the drawing instruction, and adjust the size of the part template according to the key parameter to generate a part frame diagram, thereby reducing the writing amount of software codes and increasing the generation rate of the part frame diagram; and finally, acquiring the matching auxiliary corresponding to the part template according to the constraint rule corresponding to the part template, and adding the matching auxiliary into the part frame diagram according to the constraint rule to generate the part diagram, so that the drawing efficiency of the part diagram can be improved.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A part charting method, comprising:
receiving a drawing instruction, and calling a corresponding part template from a preset template library according to key parameters in the drawing instruction;
adjusting the size of the part template according to the key parameters to generate a part frame diagram;
acquiring a matching auxiliary corresponding to the part template according to a constraint rule corresponding to the part template;
and adding the matching auxiliary parts into the part frame diagram according to the constraint rule to generate a part diagram.
2. The part drawing method according to claim 1, wherein the key parameters include a plurality of key fields, and the retrieving of the corresponding part template from a preset template library according to the key parameters in the drawing instruction includes:
identifying the parameter name of each key field in the key parameters, and determining a category field in the key fields according to the identified parameter name;
identifying the category field to determine the part category corresponding to the drawing instruction;
and calling a corresponding part template from a preset template library according to the part category.
3. The part charting method of claim 1, wherein the key parameters include a plurality of key fields, and wherein adjusting the dimensions of the part template according to the key parameters includes:
identifying the parameter name of each key field in the key parameters, and determining a size field in the key fields according to the identified parameter name;
extracting size data in the size field;
adjusting the dimensions of the part template according to the dimensional data.
4. The part drawing method according to claim 1, wherein the constraint rules include fitting constraint rules, and the obtaining of the matching auxiliary parts corresponding to the part template according to the constraint rules corresponding to the part template includes:
determining the matched auxiliary part number matched with the part template according to the matched constraint rule;
and acquiring the matched auxiliary corresponding to the part template in a preset auxiliary library according to the matched auxiliary serial number.
5. The part charting method of claim 4, wherein the constraint rules comprise location constraint rules, and wherein adding the mating gadget to the part skeleton map according to the constraint rules generates a part map comprising:
determining a target adding area in the part frame diagram according to the position constraint rule;
adding the mating accessory to the target addition area.
6. The part map method of claim 1, wherein after the generating the part map, the method further comprises:
determining a plurality of key points on the part drawing according to a preset marking rule;
determining a plurality of key point combinations in the plurality of key points according to a preset combination rule, wherein the key point combinations comprise two key points;
and carrying out size marking on the part drawing according to the position of the plurality of key point combinations in the part drawing.
7. The part charting method of claim 6, wherein said dimensioning the part drawing based on the locations of the plurality of keypoint combinations in the part drawing comprises:
determining a straight-line distance between two key points in each key point combination according to the positions of the two key points in the part drawing;
when the straight-line distance between the two key points is smaller than or equal to a preset distance threshold, carrying out size marking on the part drawing by using a first marking method;
and when the linear distance between the two key points is greater than the preset distance threshold, carrying out size marking on the part drawing by using a second marking method.
8. The part map method of any of claims 1-7, wherein after the generating the part map, the method further comprises:
extracting a detail column template corresponding to the part template from a preset attribute library;
and generating a detail column corresponding to the part drawing according to the attribute information corresponding to the part drawing and the detail column template.
9. A computer device, wherein the computer device comprises a memory and a processor;
the memory is to store at least one instruction;
the processor is configured to implement the part charting method of any one of claims 1 to 8 when executing the at least one instruction.
10. A computer-readable storage medium having stored therein at least one instruction which, when executed by a processor, implements the part charting method of any one of claims 1 to 8.
CN202011569583.1A 2020-12-26 2020-12-26 Part drawing method, computer device and storage medium Active CN112541240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011569583.1A CN112541240B (en) 2020-12-26 2020-12-26 Part drawing method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011569583.1A CN112541240B (en) 2020-12-26 2020-12-26 Part drawing method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN112541240A true CN112541240A (en) 2021-03-23
CN112541240B CN112541240B (en) 2024-07-19

Family

ID=75017479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011569583.1A Active CN112541240B (en) 2020-12-26 2020-12-26 Part drawing method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN112541240B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010982A (en) * 2021-03-30 2021-06-22 晟通科技集团有限公司 Lean production method for parts, electronic device, and storage medium
CN114386200A (en) * 2022-03-23 2022-04-22 山东豪迈机械科技股份有限公司 Engineering drawing generation method and equipment based on parameterized template technology

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040656A1 (en) * 2006-08-14 2008-02-14 Microsoft Corporation Instance annotation in object-oriented programming
US20120303334A1 (en) * 2011-05-27 2012-11-29 Craig Storms Importation and representation of part families and dynamic part catalog generation
CN105740539A (en) * 2016-01-29 2016-07-06 中铁第一勘察设计院集团有限公司 Bracket preassembling method based on parameterized parametric constraint model
CN107194074A (en) * 2017-05-24 2017-09-22 中国电建集团贵阳勘测设计研究院有限公司 Method for establishing parametric model of toe board of panel dam by using CATIA three-dimensional software
CN107577873A (en) * 2017-09-06 2018-01-12 中国长江动力集团有限公司 Partition board of steam turbine parameterization design method and device
CN109934894A (en) * 2019-03-14 2019-06-25 中民筑友科技投资有限公司 A kind of CAD goes out drawing method, device and computer readable storage medium
CN110781535A (en) * 2018-07-27 2020-02-11 西安海平方网络科技有限公司 Model plotting method and device, computer equipment and readable storage medium
US20200074216A1 (en) * 2018-09-04 2020-03-05 Alibaba Group Holding Limited Information detection method, apparatus, and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040656A1 (en) * 2006-08-14 2008-02-14 Microsoft Corporation Instance annotation in object-oriented programming
US20120303334A1 (en) * 2011-05-27 2012-11-29 Craig Storms Importation and representation of part families and dynamic part catalog generation
CN105740539A (en) * 2016-01-29 2016-07-06 中铁第一勘察设计院集团有限公司 Bracket preassembling method based on parameterized parametric constraint model
CN107194074A (en) * 2017-05-24 2017-09-22 中国电建集团贵阳勘测设计研究院有限公司 Method for establishing parametric model of toe board of panel dam by using CATIA three-dimensional software
CN107577873A (en) * 2017-09-06 2018-01-12 中国长江动力集团有限公司 Partition board of steam turbine parameterization design method and device
CN110781535A (en) * 2018-07-27 2020-02-11 西安海平方网络科技有限公司 Model plotting method and device, computer equipment and readable storage medium
US20200074216A1 (en) * 2018-09-04 2020-03-05 Alibaba Group Holding Limited Information detection method, apparatus, and device
CN109934894A (en) * 2019-03-14 2019-06-25 中民筑友科技投资有限公司 A kind of CAD goes out drawing method, device and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010982A (en) * 2021-03-30 2021-06-22 晟通科技集团有限公司 Lean production method for parts, electronic device, and storage medium
CN114386200A (en) * 2022-03-23 2022-04-22 山东豪迈机械科技股份有限公司 Engineering drawing generation method and equipment based on parameterized template technology

Also Published As

Publication number Publication date
CN112541240B (en) 2024-07-19

Similar Documents

Publication Publication Date Title
CN109035370B (en) Picture labeling method and system
CN112541240B (en) Part drawing method, computer device and storage medium
CN114818618B (en) Document editing method and system based on signature encryption and medium
CN111553131A (en) PSD file analysis method, device, equipment and readable storage medium
CN109445901B (en) Method and device for drawing vector graphics tool in cross-file format
CN111208998A (en) Method and device for automatically laying out data visualization large screen and storage medium
CN112637541A (en) Audio and video labeling method and device, computer equipment and storage medium
CN112631751A (en) Task scheduling method and device, computer equipment and storage medium
CN108053459B (en) Signature file synthesis method, application server and computer readable storage medium
CN114529933A (en) Contract data difference comparison method, device, equipment and medium
CN114022891A (en) Method, device and equipment for extracting key information of scanned text and storage medium
CN113837194A (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN111143912B (en) Display labeling method and related product
KR20120075626A (en) Apparatus and method for processing electric navigational chart in web-based service
CN108196921B (en) Document development method and device, computer equipment and storage medium
CN109509467B (en) Code generation method and device
CN107861931B (en) Template file processing method and device, computer equipment and storage medium
CN112395834B (en) Brain graph generation method, device and equipment based on picture input and storage medium
CN114968719A (en) Thread running state classification method and device, computer equipment and storage medium
WO2022180705A1 (en) Information acquisition device, information acquisition method, and information acquisition program
CN112417826A (en) PDF online editing method and device, electronic equipment and readable storage medium
CN113449485A (en) Lead generation method, device, equipment and storage medium
CN111738166A (en) Target contour delineation method, device, computer system and readable storage medium
CN113704650A (en) Information display method, device, system, equipment and storage medium
CN111695441A (en) Image document processing method, device and computer 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