CN117115406B - Automatic drawing method and device and electronic equipment - Google Patents

Automatic drawing method and device and electronic equipment Download PDF

Info

Publication number
CN117115406B
CN117115406B CN202311377612.8A CN202311377612A CN117115406B CN 117115406 B CN117115406 B CN 117115406B CN 202311377612 A CN202311377612 A CN 202311377612A CN 117115406 B CN117115406 B CN 117115406B
Authority
CN
China
Prior art keywords
frame
dimensional
size
projection
present application
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
Application number
CN202311377612.8A
Other languages
Chinese (zh)
Other versions
CN117115406A (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.)
Master Lightweight Technology Tianjin Co ltd
Original Assignee
Master Lightweight Technology Tianjin 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 Master Lightweight Technology Tianjin Co ltd filed Critical Master Lightweight Technology Tianjin Co ltd
Priority to CN202311377612.8A priority Critical patent/CN117115406B/en
Publication of CN117115406A publication Critical patent/CN117115406A/en
Application granted granted Critical
Publication of CN117115406B publication Critical patent/CN117115406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Some embodiments of the present application provide a method, an apparatus, and an electronic device for automatic mapping, where the method includes: responding to an operation instruction of a user, and determining a projection object of the three-dimensional model file; acquiring the projection parameters of the projection object, and calling a picture frame based on the projection parameters, wherein the projection parameters comprise: positioning unit number or size information; and adding the two-dimensional view of the drawing object into the frame, reading attribute information from the three-dimensional model file, and filling the attribute information into an information field in the frame to obtain a two-dimensional drawing. Some embodiments of the present application may implement automatic mapping of three-dimensional model files, both fast and accurate.

Description

Automatic drawing method and device and electronic equipment
Technical Field
The application relates to the technical field of three-dimensional model processing, in particular to an automatic drawing method, an automatic drawing device and electronic equipment.
Background
In order to detect and analyze the three-dimensional tooling model or the part model, the host factory needs to map the three-dimensional tooling model or the part model so as to perform targeted operation through the obtained corresponding view.
At present, when a three-dimensional model file is mapped, a mapping object is required to be selected, then a related person is inserted into a corresponding frame to map, and information in the frame is modified and adjusted to obtain a mapping result. However, because of the large number and variety of three-dimensional model files, a large amount of repeated work needs to be performed by the related personnel, and the labor and time costs are high.
Therefore, how to provide a technical solution of an efficient automatic mapping method is a technical problem to be solved.
Disclosure of Invention
An aim of some embodiments of the present application is to provide a method, an apparatus and an electronic device for automatic drawing, by which automatic drawing of a three-dimensional model file can be realized, and the method, the apparatus and the electronic device have high efficiency and high accuracy, and reduce labor and time costs.
In a first aspect, some embodiments of the present application provide a method for automatic mapping, including: responding to an operation instruction of a user, and determining a projection object of the three-dimensional model file; acquiring the projection parameters of the projection object, and calling a picture frame based on the projection parameters, wherein the projection parameters comprise: positioning unit number or size information; and adding the two-dimensional view of the drawing object into the frame, reading attribute information from the three-dimensional model file, and filling the attribute information into an information field in the frame to obtain a two-dimensional drawing.
According to the method and the device, after the drawing object of the three-dimensional model file is selected, the drawing frame can be automatically called based on drawing parameters, finally, the drawing object is added into the drawing frame, information column content in the drawing frame is automatically filled in, and a complete two-dimensional drawing is output. Some embodiments of the application can realize automatic drawing of three-dimensional model files, and the system is high in efficiency and accuracy, and reduces labor and time cost.
In some embodiments, the determining, in response to an operation instruction of a user, a projection object of the three-dimensional model file includes: responding to a first operation instruction of the user, and importing the three-dimensional model file; reading and displaying a structure tree of the three-dimensional model file; and responding to a second operation instruction of the user, and displaying the selected projection object from the structure tree.
Some embodiments of the present application provide effective data support for subsequent drawings by importing a three-dimensional model file and displaying a corresponding structure tree in response to a user's operation, so that the user selects a drawing object.
In some embodiments, the types of frames include: at least one of a jig assembly drawing, a unit part drawing and a homemade part drawing.
Some embodiments of the present application may be adapted to a variety of frame types, with wider applicability.
In some embodiments, when the frame is the fixture assembly drawing, the obtaining the drawing parameters of the drawing object and retrieving the frame based on the drawing parameters includes: determining the number of positioning units in the projection object; if the number of the positioning units is not larger than the preset value, the clamp assembly drawing is called from a standard library; if the number of the positioning units is larger than the preset value, drawing the fixture assembly drawing and naming and storing.
According to the method and the device for obtaining the clamp assembly drawing, when the drawing frame is the clamp assembly drawing, the drawing object is analyzed, the obtaining mode of the clamp assembly drawing can be confirmed, and the drawing accuracy is improved.
In some embodiments, before the obtaining the two-dimensional drawing, the method further includes: and marking the size of the two-dimensional view of the fixture assembly in the fixture assembly drawing, and hiding hidden lines, central lines and thread lines in the two-dimensional view of the fixture assembly.
Some embodiments of the present application facilitate outputting high accuracy mapping results by processing relevant elements in the jig assembly map.
In some embodiments, the marking the dimensions of the two-dimensional view of the fixture assembly in the fixture assembly drawing includes: reading a part name and a part size in the fixture assembly two-dimensional view from the three-dimensional model file, and marking the part size on a part corresponding to the part name; or, identifying a part model in the fixture assembly two-dimensional view, and generating an envelope body corresponding to the part model; the size of the part model is marked through the size of the enveloping body; identifying hole attribute information of holes in the part model, and marking the holes based on the hole attribute information; and identifying and marking the lengths of other line segments except the part model in the two-dimensional view of the fixture assembly.
According to the method and the device, the automatic labeling of the relevant sizes can be achieved, and the labeling efficiency and accuracy are improved.
In some embodiments, the obtaining the projection parameters of the projection object includes: when the frame is the unit assembly drawing or the self-made part drawing, a minimum enveloping body corresponding to the drawing object is created, the minimum enveloping body is measured, and the size information is determined, wherein the size information comprises: the length and width of the drawing object; when the frame is the unit part diagram, the size information is read from the three-dimensional model file; the frame retrieving based on the projection parameters comprises the following steps: and calling the picture frame matched with the size information.
According to the method and the device, the corresponding picture frames are automatically called through confirming the size information of the picture throwing object, manual participation is not needed, efficiency is high, and the called accuracy is high.
In some embodiments, the retrieving the frame that matches the size information includes: determining a size range set to which the size information belongs; and determining the proportion of the picture frame through the size range set, and calling the picture frame corresponding to the proportion.
According to the method and the device, the size information is analyzed, the picture frames of the relevant proportion are called, and accuracy of the picture casting result is guaranteed.
In a second aspect, some embodiments of the present application provide an apparatus for automatic mapping, including: the operation module is used for responding to an operation instruction of a user and determining a projection object of the three-dimensional model file; the invoking module is used for acquiring the drawing parameters of the drawing object and invoking the drawing frame based on the drawing parameters, wherein the drawing parameters comprise: positioning unit number or size information; and the output module is used for adding the two-dimensional view of the drawing object into the picture frame, reading attribute information from the three-dimensional model file and filling the attribute information into an information field in the picture frame to obtain a two-dimensional drawing.
In a third aspect, some embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs a method according to any of the embodiments of the first aspect.
In a fourth aspect, some embodiments of the present application provide an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, can implement a method according to any of the embodiments of the first aspect.
In a fifth aspect, some embodiments of the present application provide a computer program product comprising a computer program, wherein the computer program, when executed by a processor, is adapted to carry out the method according to any of the embodiments of the first aspect.
Drawings
In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings that are required to be used in some embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort to a person having ordinary skill in the art.
FIG. 1 is a system diagram of an automatic mapping provided in some embodiments of the present application;
FIG. 2 is a flow chart of a method for automatic mapping provided in some embodiments of the present application;
FIG. 3 is a block diagram of an automatic mapping apparatus according to some embodiments of the present application;
fig. 4 is a schematic diagram of an electronic device according to some embodiments of the present application.
Detailed Description
The technical solutions in some embodiments of the present application will be described below with reference to the drawings in some embodiments of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
In the related art, the steps of 2D drawing call frame and automatic drawing in the existing host factory are as follows: the designer opens the 3D (three-dimensional) model to be mapped, manually selects engineering drawings in the CATIA, selects a front view icon, selects a unit to be mapped on the CATIA interface, selects a projection view icon, maps three views, selects an isometric view icon, selects a view angle of the unit to be mapped on the CATIA interface, and finishes mapping. When the frame is called, a designer opens a 2D model which needs to be called, selects a proper frame from the standard frames, inserts the frame, modifies the title bar and detail bar of the frame, and modifies the technical requirements. All the steps need to be operated by a designer to realize targeted itemization. According to the related art, when the drawing object is selected in the prior art, one-key drawing of the sub-item part in the 3D model cannot be realized quickly, a large amount of repeated operation contents are needed manually, the workload is large, and the efficiency is low.
In view of this, some embodiments of the present application provide an automatic drawing method, where after a drawing object is determined according to an operation instruction of a user, drawing parameters may be automatically obtained, and corresponding frames are automatically called based on the drawing parameters, and finally the drawing object is automatically put into the frames, and meanwhile, information fields in the frames may be automatically filled by reading attribute information in a three-dimensional model file, so as to output a complete two-dimensional drawing. According to the method and the device, repeated operation content of a user (namely a designer) is avoided, automatic drawing of the 3D model file is achieved, efficiency is high, accuracy is high, and workload of the designer is greatly reduced.
The overall composition of an automatic mapping system provided in accordance with some embodiments of the present application is described below by way of example in conjunction with fig. 1.
As shown in fig. 1, some embodiments of the present application provide an automatic mapping system comprising: and a terminal 200. Designer 100 (as a specific example of a user) may operate on terminal 200 to determine a casting object for a three-dimensional model file and to determine corresponding casting parameters. After obtaining the drawing object and the drawing parameter, the terminal 200 can call the corresponding drawing frame from the local based on the drawing parameter, finally, put the drawing object into the drawing frame, automatically fill the information field in the drawing frame by automatically reading the attribute information of the three-dimensional model file, and output the complete two-dimensional drawing.
In some embodiments of the present application, the terminal 200 may be a mobile terminal or a non-portable computer terminal, which is not specifically limited herein.
The implementation of automatic mapping performed by the terminal 200 provided in some embodiments of the present application is described below by way of example in conjunction with fig. 2.
Referring to fig. 2, fig. 2 is a flowchart of a method for automatically mapping according to some embodiments of the present application, where the method for automatically mapping includes:
s210, responding to an operation instruction of a user, and determining a projection object of the three-dimensional model file.
For example, in some embodiments of the present application, designer 100 may select a corresponding projection object on a 3D (i.e., three-dimensional) model file displayed on terminal 200. The types of the operation instructions may include: single click, double click, etc., embodiments of the present application are not so limited.
In some embodiments of the present application, S210 may further include: responding to a first operation instruction of the user, and importing the three-dimensional model file; reading and displaying a structure tree of the three-dimensional model file; and responding to a second operation instruction of the user, and displaying the selected projection object from the structure tree.
For example, in some embodiments of the present application, CATIA software deployed by the terminal 200 may provide a single click or double click (as a specific example of the first operation instruction) to open a 3D file (as a specific example of a three-dimensional model file, where the 3D file format requiring the drawing is in CATProduct or Part format) selected by the designer 100 that requires the 2D drawing. The designer 100 can enter the automatic drawing function interface by clicking a 2D drawing button displayed on the page of the single-click terminal 200, click a "read structure tree" on the left side of the 2D drawing interface, and display a structure tree of the read 3D file on the left side of the software, and the structure hierarchy defaults to the assembly drawing hierarchy. The boxes of each level of the structural tree on the left side of the software may be checked by the designer 100 (as a specific example of the second operation instruction) as a drawing object; if the default is selected, all the levels of the structure tree are all checked states, namely, all the levels are the drawing objects. It is to be understood that the drawing object may be one or more objects, and embodiments of the present application are not specifically limited herein.
S220, acquiring the projection parameters of the projection object, and calling a picture frame based on the projection parameters, wherein the projection parameters comprise: positioning unit number or size information.
For example, in some embodiments of the present application, the terminal 200 may automatically measure and obtain the projection parameters of the projection object, and may further call the frame corresponding to the projection parameters.
In some embodiments of the present application, the types of frames include: at least one of a jig assembly drawing, a unit part drawing and a homemade part drawing.
For example, in some embodiments of the present application, a plurality of drawing pictures are stored in the terminal 200, and may be adapted to a plurality of tools or part models, and may be added and extended according to actual situations, in addition to the four types of the above examples, and embodiments of the present application are not limited thereto.
In some embodiments of the present application, when the frame is the jig assembly drawing, S220 may include: determining the number of positioning units in the projection object; if the number of the positioning units is not larger than the preset value, the clamp assembly drawing is called from a standard library; if the number of the positioning units is larger than the preset value, drawing the fixture assembly drawing and naming and storing.
For example, in some embodiments of the present application, for ease of viewing, the number of locating units in the drawing object needs to be verified when generating the jig assembly drawing in order to verify whether the drawing frame is directly fetched from the standard library or is fetched after drawing. For example, the fixture assembly drawing is selected from A2 or A1, and is transversely placed. If the number of the positioning units in the whole fixture (as a specific example of the drawing object) exceeds 15 (as a specific example of the preset value), the axonometric drawing is preferably drawn independently, so that the observation is convenient. Wherein, the three-view page and the axonometric page of the clamp assembly drawing are named: A01-030-ST01-W594-C68 (1/2), A01-030-ST01-W594-C68 (2/2). The drawing name of the clamp assembly drawing is as follows: (fixture code) + (1/2) is a three-view drawing; name (fixture number) + (2/2) is an isometric drawing. For example, the jig assembly drawing is now specified to be divided into 2 pages; the first page is a three-view of the fixture assembly, and the second page is an isometric view of the fixture assembly; the clamp assembly three-view page name is: (fixture code) + (1/2); the clamp assembly shaft view page name is: (fixture code) + (2/2).
And S230, adding the two-dimensional view of the drawing object into the frame, and reading attribute information from the three-dimensional model file and filling the attribute information into an information field in the frame to obtain a two-dimensional drawing.
For example, in some embodiments of the present application, when the frame is a fixture assembly drawing, after the positioning unit in the whole fixture is put into the fixture assembly drawing, after a three-view page and an axonometric page are obtained, the frame is filled in completely by data (as a specific example of attribute information) read from the 3D file. Details of the jig assembly drawing to be filled are shown in table 1:
TABLE 1
The title bar of the jig assembly map is filled in as shown in table 2:
TABLE 2
The header column page number of the clamp assembly drawing requires that if the clamp exceeds 15 units, the axonometric drawing is a single drawing; the three-view drawing page number is 1, and the total page number is 2; the axonometric drawing has a page number of 2 and a total page number of 2.
In some embodiments of the present application, when the frame is a jig assembly drawing, S230 may further include: and marking the size of the two-dimensional view of the fixture assembly in the fixture assembly drawing, and hiding hidden lines, central lines and thread lines in the two-dimensional view of the fixture assembly.
For example, in some embodiments of the present application, the terminal 200 may be further preset with a drawing condition of the fixture assembly drawing, and when generating the 2D drawing, the terminal may be adaptively adjusted according to the drawing condition. For example, in 2D automated drawing, the terminal 200 may automatically label the maximum outline of the length, width, and height (as a specific example of the dimensions) of the jig assembly drawing (three views); the axial view needs to clearly see the assembly position of each unit, and when the 2D automatic drawing is performed, the terminal 200 performs projection axial view on the fixture assembly drawing (axial view) according to the visual angle direction of the CATIA current interface data; the three views of the clamp assembly drawing do not have hidden lines; when 2D automatic drawing is performed, the software should automatically hide hidden lines, central lines and thread lines of the fixture assembly drawing, only remain solid lines, and finally output two-dimensional fixture assembly drawings (namely 2D drawings) meeting drawing conditions.
In some embodiments of the present application, S230 may further include: and reading the part names and the part sizes in the fixture assembly two-dimensional view from the three-dimensional model file, and marking the part sizes on the parts corresponding to the part names.
For example, in some embodiments of the present application, when labeling a homemade standard part in a two-dimensional view of fixture assembly, a parameter name (as a specific example of a part name) and a parameter value (as a specific example of a part size) contained in the homemade standard part may be directly read from a 3D file, and then the appropriate position of the part corresponding to the parameter name is labeled corresponding to the parameter value. The parameter names and parameter values may also be displayed in a parameter table within the drawing in the final 2D drawing.
In addition, the designer (i.e. the user) can also update the related data of the self-made standard component in the 3D file, and at the moment, the designer can recall the 2D drawing corresponding to the 3D file by clicking the update button and update the annotation data corresponding to the related data in the 2D drawing. For example, one aperture in the homemade standard in the 3D file is modified (e.g., from 3mm to 2 mm), and the labeling value of the aperture in the 2D drawing is updated to 2mm after modification.
In other embodiments of the present application, S230 may further include: identifying a part model in the fixture assembly two-dimensional view, and generating an envelope body corresponding to the part model; the size of the part model is marked through the size of the enveloping body; identifying hole attribute information of holes in the part model, and marking the holes based on the hole attribute information; and identifying and marking the lengths of other line segments except the part model in the two-dimensional view of the fixture assembly.
For example, in some embodiments of the present application, automatic labeling of components contained in the home-made standard may be accomplished through CATIA software in addition to reading the relevant labeling data from the 3D file. Specifically, the part model formed by self-made standard components in the two-dimensional view of the fixture assembly is identified, so that the part model can be marked, for example, the maximum outline dimension marking of the part model is realized by software through generating an enveloping body function in CATIA, generating the maximum outline enveloping body of the part model, and automatically marking the length, width and height of the enveloping body to the corresponding position according to the outline of the part model. Further, for various types of holes in the part model, automatic labeling may also be performed by identifying hole attribute information in the part model. For example, the pin holes or the screw holes are confirmed by the hole attribute information, and are automatically marked by different hole symbols. Moreover, the application may also automatically label the aperture, such as by software deployed by the terminal 200 by reading the aperture information in the CATIA. The line segments formed by the external shapes other than the part model may be automatically labeled by measuring and identifying the length of each line segment.
It can be appreciated that in practical application, the dimensions in the views of the relevant parts in the 2D drawing can be marked according to the practical situation of the drawing object. And can be stored under the appointed path after the labeling is completed. It should be understood that embodiments of the present application are not limited thereto.
In some embodiments of the present application, S220 may further include: when the frame is the unit assembly drawing or the self-made part drawing, a minimum enveloping body corresponding to the drawing object is created, the minimum enveloping body is measured, and the size information is determined, wherein the size information comprises: the length and width of the object are projected.
For example, in some embodiments of the present application, when the type of the drawing object is a unit assemblage or a user-made part, the software-driven CATIA of the terminal 200 automatically creates a minimum envelope of the drawing object in its "Surface/Advanced Machining" module with a Rough Stock command, where the values of DX, DY, DZ are the product dimensions X, Y, Z values of the drawing object. The maximum value of the records X, Y, Z is the length of the object, and the intermediate value is the width.
In some embodiments of the present application, S220 may further include: and when the frame is the unit part diagram, reading the size information from the three-dimensional model file.
For example, in some embodiments of the present application, when the type of the drawing object is a self-made part type in the standard part library, and the corresponding frame is a unit part drawing, the length and width of the part may be directly read from the 3D file.
In some embodiments of the present application, S220 may further include: and calling the picture frame matched with the size information.
For example, in some embodiments of the present application, software selects a corresponding scale of frames for the length-width dimension.
In some embodiments of the present application, S220 may further include: determining a size range set to which the size information belongs; and determining the proportion of the picture frame through the size range set, and calling the picture frame corresponding to the proportion.
For example, in some embodiments of the present application, when the frame is a unit assembly drawing, the drawing sheet of the unit assembly drawing is selected as A2, and is placed laterally. The common proportions include: 1:4, 1:6, 1:8, 1:10, etc. The software standard library is pre-uploaded with drawings in various proportions, and the drawing frames are correspondingly called according to the length or width values. The unit assembly drawing position is automatically placed in the middle of the drawing frame. Wherein the proportion of the frame is determined by the set of size ranges: when the length of the assembly body is less than or equal to 300mm and the width is less than or equal to 100mm, the picture frame is 1:4; when the length of the assembly body is 300mm or less and 500mm or less and the width of the assembly body is 100mm or less and 200mm or less, the picture frame is 1:6; when the length of the assembly body is less than or equal to 500mm and less than or equal to 700mm and the width of the assembly body is less than or equal to 200mm and less than or equal to 300mm, the picture frame adopts 1:8.
When the picture frame is a self-made part picture or a unit part picture, the part picture is generally A3 picture frame and is transversely placed. The usual ratios are 1:1, 1:2, 1:4, 1:6, 1:8, etc. And uploading drawings with various proportions in the software standard library, and correspondingly calling the drawing frames according to the length or width values. The position of the part drawing is automatically placed in the middle of the drawing frame. Wherein, the proportion of the frame of the part drawing is determined by the following size range set: when the length or width of the part is less than or equal to 150mm, the proportion of the picture frame is 1:1; when the length or width of the part is 150mm or less and 300mm or less, the proportion of the picture frame is 1:2; when the length or width of the part is 300mm or less and 400mm or less, the proportion of the picture frame is 1:4; ... And so on (where, maximum outline/150=frame proportional multiplier value, rounded up).
It should be noted that the size range set may be adjusted according to practical situations, and the embodiments of the present application are not limited to the above embodiments.
And finally, automatically adding a standard picture frame according to the rule, reading related data from the 3D file, and filling the information column of the picture frame completely. The correspondence between the unit assembly drawing details bar and the 3D file attribute is shown in table 3:
TABLE 3 Table 3
Specifically, the types of the drawing objects are different, and the writing rules of the sequence numbers are also different. For example, a self-made part (including a self-made standard part), taking the first part of unit one as an example, the self-made part is numbered with 101 as the starting number; the enterprise standard takes a unit of a set of clamps as an example, and the enterprise standard takes 701 as a starting sequence number; an outsourcing part taking a unit of a set of clamps as an example, wherein the outsourcing part takes 901 as a starting number; the fastener and the part graph can be automatically filled in through corresponding information in the 3D file.
In addition, in some embodiments of the present application, S230 may further include: and acquiring a drawing rule of each view in the two-dimensional views in the drawing object, and drawing according to the drawing rule to generate a two-dimensional drawing.
For example, in some embodiments of the present application, the views are arranged according to a 2D mapping rule (as one specific example of a mapping rule). For example, the 2D mapping rules may include: left frame interval 50mm, right frame interval 50mm, upper frame interval 50mm, lower frame interval 50mm, horizontal interval 50mm, vertical interval 50mm in the picture frame, the axial view zoom factor: 100%. When the drawing object is a final assembly drawing of the tooling or the part model, the final two-dimensional drawing contains three views of the final assembly, and the 2D drawing rule can further comprise: the three views should be marked with the length, width and height of the clamp; the axial side view requires a clear view of the assembled position of each unit; symmetry information is noted above the detail bars, such as: this figure is left, right incomplete/completely symmetrical; the assembly drawing does not embody hidden lines; the axonometric drawing unit serial number indicates the line, the software is filled in automatically according to the attribute of 3D structure tree; the right hand sequence number is followed by the element number by +R, e.g., 01R (right hand side of 01 element). For the unit assembly drawing, the final two-dimensional drawing can be divided into a clamp BASE unit drawing and a clamp unit drawing. The 2D mapping rule may further include: labeling the coordinate values of the length, width, height and reference hole of the clamp BASE, (software automatically fills the coordinate values of the reference hole according to the 3D punching attribute); the axial side view needs to embody the assembly positions of the reference hole cover and the valve island; no hidden lines, hundred lines, colors, etc. The 2D mapping rules of the jig unit map may include: the axial side view requires a clear view of the assembly location of each part location; the total length, width, height of the angle seat, opening angle, diameter of the positioning pin and effective positioning length of the unit are required to be marked in the three views; all outsourcing part models are complete, correct and up to date; the three views have OPEN states, and the isometric view has no OPEN state; the SF is provided with a lining at the beginning, the model is written in a detail column, and the model is not reported in an outsourcing part list. It should be understood that the 2D mapping rule may be set according to practical situations, and embodiments of the present application are not limited thereto.
And carrying out automatic drawing and information filling through the drawing rules so as to finally output the 2D drawing meeting the requirements. It will be appreciated that the mapping rules may be adjusted according to practical situations, and embodiments of the present application are not specifically limited herein.
As can be seen from the above embodiments of the present application, the present application can quickly select a 2D mapping method, a mapping type, a view selection, a view interval, and the like, which are all adaptively adjustable. A 3D file data selection dialog box is provided for a user to select elements to be automatically mapped, and then the mapping can be quickly and automatically mapped according to a set mapping rule; in the whole process, a standard picture frame with proper size can be automatically added in the process of generating a file for 2D automatic picture casting, and according to the element attribute (3D attribute) of the picture casting, automatic extraction information (3D attribute information and database information) is automatically added in the information field of the picture frame. Compared with the prior art, the method simplifies the operation steps of 3D file drawing, greatly reduces the workload of designers, improves the working efficiency and reduces the design cost. And the application can automatically and quickly fill in the corresponding position of the frame title bar (namely the information bar) by identifying the attribute information of the parts in the 3D model. According to the method, the external dimensions of the parts are automatically calculated, and the proper standard picture frames and the proper standard tables are automatically loaded, so that drawing support is provided for realizing automatic picture projection.
Referring to fig. 3, fig. 3 illustrates a block diagram of an automatic mapping apparatus according to some embodiments of the present application. It should be understood that the apparatus for automatically mapping corresponds to the above method embodiments, and is capable of performing the steps related to the above method embodiments, and specific functions of the apparatus for automatically mapping may be referred to the above description, and detailed descriptions thereof are omitted herein as appropriate to avoid redundancy.
The automatic mapping apparatus of fig. 3 includes at least one software functional module that can be stored in a memory in the form of software or firmware or cured in the automatic mapping apparatus, the automatic mapping apparatus comprising: an operation module 310, configured to determine a projection object of the three-dimensional model file in response to an operation instruction of a user; the retrieving module 320 is configured to obtain a projection parameter of the projection object, and retrieve a frame based on the projection parameter, where the projection parameter includes: positioning unit number or size information; and the output module 330 is configured to add the two-dimensional view of the projection object to the frame, and read attribute information from the three-dimensional model file and fill the attribute information into an information field in the frame, so as to obtain a two-dimensional drawing.
In some embodiments of the present application, an operation module 310 is configured to import the three-dimensional model file in response to a first operation instruction of the user; reading and displaying a structure tree of the three-dimensional model file; and responding to a second operation instruction of the user, and displaying the selected projection object from the structure tree.
In some embodiments of the present application, the types of the frames include: at least one of a jig assembly drawing, a unit part drawing and a homemade part drawing.
In some embodiments of the present application, when the frame is the jig assembly drawing, the retrieving module 320 is configured to: determining the number of positioning units in the projection object; if the number of the positioning units is not larger than the preset value, the clamp assembly drawing is called from a standard library; if the number of the positioning units is larger than the preset value, drawing the fixture assembly drawing and naming and storing.
In some embodiments of the present application, the output module 330 is configured to: and marking the size of the two-dimensional view of the fixture assembly in the fixture assembly drawing, and hiding hidden lines, central lines and thread lines in the two-dimensional view of the fixture assembly.
In some embodiments of the present application, the output module 330 is configured to: reading a part name and a part size in the fixture assembly two-dimensional view from the three-dimensional model file, and marking the part size on a part corresponding to the part name; or, identifying a part model in the fixture assembly two-dimensional view, and generating an envelope body corresponding to the part model; the size of the part model is marked through the size of the enveloping body; identifying hole attribute information of holes in the part model, and marking the holes based on the hole attribute information; and identifying and marking the lengths of other line segments except the part model in the two-dimensional view of the fixture assembly.
In some embodiments of the present application, the invoking module 320 is configured to: when the frame is the unit assembly drawing or the self-made part drawing, a minimum enveloping body corresponding to the drawing object is created, the minimum enveloping body is measured, and the size information is determined, wherein the size information comprises: the length and width of the drawing object; when the frame is the unit part diagram, the size information is read from the three-dimensional model file; and calling the picture frame matched with the size information.
In some embodiments of the present application, the invoking module 320 is configured to: determining a size range set to which the size information belongs; and determining the proportion of the picture frame through the size range set, and calling the picture frame corresponding to the proportion.
It will be clear to those skilled in the art that, for convenience and brevity of description, reference may be made to the corresponding procedure in the foregoing method for the specific working procedure of the apparatus described above, and this will not be repeated here.
Some embodiments of the present application also provide a computer readable storage medium having stored thereon a computer program, which when executed by a processor, may implement operations of the method corresponding to any of the above-described methods provided by the above-described embodiments.
Some embodiments of the present application further provide a computer program product, where the computer program product includes a computer program, where the computer program when executed by a processor may implement operations of a method corresponding to any of the foregoing methods provided by the foregoing embodiments.
As shown in fig. 4, some embodiments of the present application provide an electronic device 400, the electronic device 400 comprising: memory 410, processor 420, and a computer program stored on memory 410 and executable on processor 420, wherein processor 420 may implement a method as in any of the embodiments described above when reading the program from memory 410 and executing the program via bus 430.
The processor 420 may process the digital signals and may include various computing structures. Such as a complex instruction set computer architecture, a reduced instruction set computer architecture, or an architecture that implements a combination of instruction sets. In some examples, processor 420 may be a microprocessor.
Memory 410 may be used for storing instructions to be executed by processor 420 or data related to execution of the instructions. Such instructions and/or data may include code to implement some or all of the functions of one or more modules described in embodiments of the present application. The processor 420 of the disclosed embodiments may be configured to execute instructions in the memory 410 to implement the methods shown above. Memory 410 includes dynamic random access memory, static random access memory, flash memory, optical memory, or other memory known to those skilled in the art.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (7)

1. A method of automatic mapping, comprising:
responding to an operation instruction of a user, and determining a projection object of the three-dimensional model file;
acquiring the projection parameters of the projection object, and calling a picture frame based on the projection parameters, wherein the projection parameters comprise: positioning unit number or size information;
adding the two-dimensional view of the drawing object into the drawing frame, reading attribute information from the three-dimensional model file, and filling the attribute information into an information column in the drawing frame to obtain a two-dimensional drawing;
when the frame is a fixture assembly drawing, the obtaining the drawing parameters of the drawing object and calling the frame based on the drawing parameters comprises the following steps: determining the number of positioning units in the projection object; if the number of the positioning units is not larger than the preset value, the clamp assembly drawing is called from a standard library; if the number of the positioning units is confirmed to be larger than the preset value, drawing the fixture assembly drawing and naming and storing;
the types of the frames include: at least one of a jig assembly drawing, a unit part drawing and a self-made part drawing;
the obtaining the mapping parameters of the mapping object includes: when the frame is the unit assembly drawing or the self-made part drawing, a minimum enveloping body corresponding to the drawing object is created, the minimum enveloping body is measured, and the size information is determined, wherein the size information comprises: the length and width of the drawing object; when the frame is the unit part diagram, the size information is read from the three-dimensional model file;
the frame retrieving based on the projection parameters comprises the following steps: and calling the picture frame matched with the size information.
2. The method of claim 1, wherein the determining the object of the three-dimensional model file in response to the user's operation instructions comprises:
responding to a first operation instruction of the user, and importing the three-dimensional model file;
reading and displaying a structure tree of the three-dimensional model file;
and responding to a second operation instruction of the user, and displaying the selected projection object from the structure tree.
3. The method of claim 1, wherein prior to said obtaining a two-dimensional drawing, the method further comprises:
and marking the size of the two-dimensional view of the fixture assembly in the fixture assembly drawing, and hiding hidden lines, central lines and thread lines in the two-dimensional view of the fixture assembly.
4. A method according to claim 3, wherein said dimensioning the two-dimensional view of the fixture assembly in the fixture assembly map comprises:
reading a part name and a part size in the fixture assembly two-dimensional view from the three-dimensional model file, and marking the part size on a part corresponding to the part name; or,
identifying a part model in the fixture assembly two-dimensional view, and generating an envelope body corresponding to the part model;
the size of the part model is marked through the size of the enveloping body;
identifying hole attribute information of holes in the part model, and marking the holes based on the hole attribute information;
and identifying and marking the lengths of other line segments except the part model in the two-dimensional view of the fixture assembly.
5. The method of claim 1, wherein the retrieving the frame that matches the size information comprises:
determining a size range set to which the size information belongs;
and determining the proportion of the picture frame through the size range set, and calling the picture frame corresponding to the proportion.
6. An apparatus for automatic mapping, comprising:
the operation module is used for responding to an operation instruction of a user and determining a projection object of the three-dimensional model file;
the invoking module is used for acquiring the drawing parameters of the drawing object and invoking the drawing frame based on the drawing parameters, wherein the drawing parameters comprise: positioning unit number or size information;
the output module is used for adding the two-dimensional view of the drawing object into the drawing frame, reading attribute information from the three-dimensional model file and filling the attribute information into an information field in the drawing frame to obtain a two-dimensional drawing;
the types of the frames include: at least one of a jig assembly drawing, a unit part drawing and a self-made part drawing;
when the picture frame is a clamp assembly drawing, the calling module is used for: determining the number of positioning units in the projection object; if the number of the positioning units is not larger than the preset value, the clamp assembly drawing is called from a standard library; if the number of the positioning units is confirmed to be larger than the preset value, drawing the fixture assembly drawing and naming and storing;
the calling module is further configured to:
when the frame is the unit assembly drawing or the self-made part drawing, a minimum enveloping body corresponding to the drawing object is created, the minimum enveloping body is measured, and the size information is determined, wherein the size information comprises: the length and width of the drawing object; when the frame is the unit part diagram, the size information is read from the three-dimensional model file;
and calling the picture frame matched with the size information.
7. An electronic device comprising a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the computer program when run by the processor performs the method of any one of claims 1-5.
CN202311377612.8A 2023-10-24 2023-10-24 Automatic drawing method and device and electronic equipment Active CN117115406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311377612.8A CN117115406B (en) 2023-10-24 2023-10-24 Automatic drawing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311377612.8A CN117115406B (en) 2023-10-24 2023-10-24 Automatic drawing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN117115406A CN117115406A (en) 2023-11-24
CN117115406B true CN117115406B (en) 2024-03-08

Family

ID=88806032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311377612.8A Active CN117115406B (en) 2023-10-24 2023-10-24 Automatic drawing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117115406B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS647266A (en) * 1987-06-30 1989-01-11 Fujitsu Ltd Automatic preparing method for drawing of component chart
CN1841386A (en) * 2005-03-28 2006-10-04 陈金德 Parametered assembly and design of three-dimensional mould structure and automatic dimension labeling method for two-dimensional figure
CN107832541A (en) * 2017-11-20 2018-03-23 中铁第四勘察设计院集团有限公司 One kind parameterizes two-dimentional drawing/threedimensional model intelligent conversion method and system
CN107992651A (en) * 2017-11-20 2018-05-04 中铁第四勘察设计院集团有限公司 The two-dimentional drawing methods of one kind parametrization and system
CN108694260A (en) * 2017-04-10 2018-10-23 中铁宝桥集团有限公司 Application process of the BIM technology in Steel Bridge processing and manufacturing
CN110750840A (en) * 2019-09-17 2020-02-04 东莞市超图软件科技有限公司 Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN112365590A (en) * 2020-12-12 2021-02-12 同济大学建筑设计研究院(集团)有限公司 Drawing generation method and device, computer equipment and storage medium
CN113901615A (en) * 2021-10-27 2022-01-07 上海设序科技有限公司 Automatic marking method and device for two-dimensional drawing and electronic equipment
CN115344905A (en) * 2022-10-19 2022-11-15 青岛艾德软件有限公司 Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model
CN116306218A (en) * 2022-12-16 2023-06-23 江苏科技大学 Machine learning-based three-dimensional model intelligent plotting method and system
CN116630468A (en) * 2023-05-05 2023-08-22 中国恩菲工程技术有限公司 Two-dimensional drawing generation method and device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006092143A (en) * 2004-09-22 2006-04-06 Nsk Ltd Automatic drawing generation system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS647266A (en) * 1987-06-30 1989-01-11 Fujitsu Ltd Automatic preparing method for drawing of component chart
CN1841386A (en) * 2005-03-28 2006-10-04 陈金德 Parametered assembly and design of three-dimensional mould structure and automatic dimension labeling method for two-dimensional figure
CN108694260A (en) * 2017-04-10 2018-10-23 中铁宝桥集团有限公司 Application process of the BIM technology in Steel Bridge processing and manufacturing
CN107832541A (en) * 2017-11-20 2018-03-23 中铁第四勘察设计院集团有限公司 One kind parameterizes two-dimentional drawing/threedimensional model intelligent conversion method and system
CN107992651A (en) * 2017-11-20 2018-05-04 中铁第四勘察设计院集团有限公司 The two-dimentional drawing methods of one kind parametrization and system
CN110750840A (en) * 2019-09-17 2020-02-04 东莞市超图软件科技有限公司 Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN112365590A (en) * 2020-12-12 2021-02-12 同济大学建筑设计研究院(集团)有限公司 Drawing generation method and device, computer equipment and storage medium
CN113901615A (en) * 2021-10-27 2022-01-07 上海设序科技有限公司 Automatic marking method and device for two-dimensional drawing and electronic equipment
CN115344905A (en) * 2022-10-19 2022-11-15 青岛艾德软件有限公司 Method and system for automatically generating two-dimensional engineering drawing based on three-dimensional model
CN116306218A (en) * 2022-12-16 2023-06-23 江苏科技大学 Machine learning-based three-dimensional model intelligent plotting method and system
CN116630468A (en) * 2023-05-05 2023-08-22 中国恩菲工程技术有限公司 Two-dimensional drawing generation method and device, storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于NX船舶骨材自动出图技术的研究及应用;周纪威;《中国优秀硕士学位论文全文数据库 工程科技II辑》;正文第3.2节,第4.2节 *
面向企业应用的CREO软件工程图的二次开发;刘靓;《中国优秀硕士学位论文全文数据库 信息科技辑》;正文第3.1节,第3.5节,第4.2-4.3节 *

Also Published As

Publication number Publication date
CN117115406A (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN113094770B (en) Drawing generation method and device, computer equipment and storage medium
CN109614371B (en) Method, device, computer equipment and storage medium for storing information
US11934361B2 (en) Automatic generation of a data model from a structured query language (SQL) statement
CN104641373B (en) Effectively find the best entity of space score
CN113868494A (en) Big data visualization display system
CN110516333A (en) Device layout methods, device, equipment and readable storage medium storing program for executing in a kind of PCB
CN111429587A (en) Display method, terminal and storage medium of three-dimensional design model
CN117115406B (en) Automatic drawing method and device and electronic equipment
CN117763700A (en) Urban area Gaussian projection remote sensing image loading method and system
CN111063003B (en) Mine distribution diagram manufacturing method and system
CN111724143A (en) RPA-based flow element positioning method and device, computing equipment and storage medium
WO2021086940A1 (en) Single view presentation of multiple queries in a data visualization application
CN117390195A (en) Knowledge traceability connecting method, system, equipment and medium based on graph editor
CN116756261A (en) GIS data processing method based on relational database management tool
EP2759941A1 (en) Injection of data into a software application
CN109710785A (en) A kind of management method, device, system and the storage medium of picture library figure cluster
CN114139266A (en) Wall body node full-page proof automatic design method based on dynamic combination and storage medium
CN109712547B (en) Display screen plane brightness measuring method and device, computer equipment and storage medium
CN106443732B (en) Path diagram drawing method and system based on GPS
CN111080749A (en) Labeling method and device for multi-source measurement in wide-area measurement control system of power distribution network
CN117456550B (en) MR-based CAD file viewing method, device, medium and equipment
JP2015114900A (en) Production information management device, production information management method and program
CN117635756B (en) Automatic generation method, system and device for sheet metal die two-dimensional map and storage medium
CN112100540B (en) CANVAS-based picture cross mirror tiling method and storage medium
US20210232717A1 (en) Measurement tables including target identification information indicating a measurement target

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