Display method and display device for craft product and electronic equipment
1. A display method of a craft product is characterized by comprising the following steps:
receiving a product design file of a target process product;
generating a 3D process object based on the product design file;
receiving a file display instruction, wherein the file display instruction is used for representing a drawing designated area of a process object to be displayed;
and responding to the file display instruction, and displaying the 3D process object on a browsing interface of the drawing designated area.
2. The method of claim 1, wherein the step of generating a 3D artwork object based on the product design file comprises:
importing the file data of the product design file into a process chart;
and performing binary conversion on the file data by adopting the process diagram, and storing the binary data obtained after conversion into the 3D process object.
3. The method according to claim 2, wherein the step of importing the file data of the product design file into a process chart comprises:
creating a new process file in the process chart;
when the fact that the insert button meets a preset click condition is detected, determining the file attribute of the newly-built process file based on the file attribute of the product design file;
and importing the file data of the product design file into the newly-built process file through a preset data interface.
4. The demonstration method according to any one of claims 1 to 3, wherein the file data of the product design file comprises at least one of: a 3D graphic preview, 3D graphic data, and file attributes.
5. The method for displaying the 3D craft object, according to the claim 1, characterized in that, the step of displaying the 3D craft object on the browsing interface of the drawing designated area in response to the file display instruction comprises:
responding to the file display instruction, and generating a corresponding browsing interface on the drawing designated area;
loading binary data of the 3D process object;
and displaying the 3D process object on the browsing interface.
6. The display method according to claim 1, wherein after displaying the 3D process object on the browsing interface in the area specified by the drawing in response to the document display instruction, the display method further comprises:
receiving a first operation instruction;
responding to the first operation instruction, and activating a browsing mode of the 3D process object;
receiving a second operation instruction in the browsing mode;
responding to the second operation instruction, controlling the 3D process object to execute one of the following operations: zooming operation, rotating operation and translating operation.
7. The presentation method according to claim 6, wherein the first operation instruction comprises at least one of: single-point operation, double-click operation and long-press operation; the second operation instruction comprises at least one of the following: sliding operation, dragging operation, and long-press operation.
8. The method of claim 1, wherein the object data of the 3D process object comprises: object display data, binary data stream, storage pattern.
9. An apparatus for displaying a craft product, comprising:
the first receiving unit is used for receiving a product design file of a target process product;
the generating unit is used for generating a 3D process object based on the product design file;
the second receiving unit is used for receiving a file display instruction, wherein the file display instruction is used for representing a drawing designated area of the process object to be displayed;
and the display unit is used for responding to the file display instruction and displaying the 3D process object on a browsing interface of the drawing designated area.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of displaying a craft product of any of claims 1 through 8 via execution of the executable instructions.
Background
In the related art, for industrial product design, a process drawing (two-dimensional form) is designed in advance by adopting product design software, and a plurality of process diagrams are generated in the process drawing and used for directly generating assembly.
The product designer inserts the process diagram which can only be in the format of a two-dimensional drawing or picture, and relevant information of the parts is displayed in a plane mode. The technical workers at the production end guide production through the process diagram, the process diagram is sometimes complex in displaying of parts and strong in required professional skill, and the construction workers obtain relevant part information from the process diagram and the process data to produce the parts.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a display method and a display device for craft products and electronic equipment, and aims to at least solve the technical problems that the product graphics displayed in a two-dimensional craft drawing designed in the related technology lack of stereoscopic impression, have high requirements on professional ability of users and reduce the use interest of the product.
According to an aspect of an embodiment of the present invention, there is provided a method for displaying a craft product, including: receiving a product design file of a target process product; generating a 3D process object based on the product design file; receiving a file display instruction, wherein the file display instruction is used for representing a drawing designated area of a process object to be displayed; and responding to the file display instruction, and displaying the 3D process object on a browsing interface of the drawing designated area.
Optionally, the step of generating a 3D process object based on the product design file includes: importing the file data of the product design file into a process chart; and performing binary conversion on the file data by adopting the process diagram, and storing the binary data obtained after conversion into the 3D process object.
Optionally, the step of importing the file data of the product design file into a process chart includes: creating a new process file in the process chart; when the fact that the insert button meets a preset click condition is detected, determining the file attribute of the newly-built process file based on the file attribute of the product design file; and importing the file data of the product design file into the newly-built process file through a preset data interface.
Optionally, the file data of the product design file includes at least one of: a 3D graphic preview, 3D graphic data, and file attributes.
Optionally, the step of displaying the 3D process object on the browsing interface in the area specified in the drawing in response to the document display instruction includes: responding to the file display instruction, and generating a corresponding browsing interface on the drawing designated area; loading binary data of the 3D process object; and displaying the 3D process object on the browsing interface.
Optionally, after the 3D process object is displayed on the browsing interface in the area specified by the drawing in response to the document display instruction, the display method further includes: receiving a first operation instruction; responding to the first operation instruction, and activating a browsing mode of the 3D process object; receiving a second operation instruction in the browsing mode; responding to the second operation instruction, controlling the 3D process object to execute one of the following operations: zooming operation, rotating operation and translating operation.
Optionally, the first operation instruction includes at least one of: single-point operation, double-click operation and long-press operation; the second operation instruction comprises at least one of the following: sliding operation, dragging operation, and long-press operation.
Optionally, the object data of the 3D process object includes: object display data, binary data stream, storage pattern.
According to another aspect of the embodiments of the present invention, there is also provided a display device of a craft product, including: the first receiving unit is used for receiving a product design file of a target process product; the generating unit is used for generating a 3D process object based on the product design file; the second receiving unit is used for receiving a file display instruction, wherein the file display instruction is used for representing a drawing designated area of the process object to be displayed; and the display unit is used for responding to the file display instruction and displaying the 3D process object on a browsing interface of the drawing designated area.
Optionally, the generating unit includes: the first import module is used for importing the file data of the product design file into a process chart; and the conversion module is used for performing binary conversion on the file data by adopting the process diagram and storing the binary data obtained after conversion into the 3D process object.
Optionally, the first import module includes: the new sub-module is used for newly building a process file in the process chart; the first determining sub-module is used for determining the file attribute of the newly-built process file based on the file attribute of the product design file when the fact that the insert button meets the preset click condition is detected; and the importing submodule is used for importing the file data of the product design file into the newly-built process file through a preset data interface.
Optionally, the file data of the product design file includes at least one of: a 3D graphic preview, 3D graphic data, and file attributes.
Optionally, the display unit comprises: the generating module is used for responding to the file display instruction and generating a corresponding browsing interface on the drawing designated area; the loading module is used for loading binary data of the 3D process object; and the display module is used for displaying the 3D process object on the browsing interface.
Optionally, the display device of the craft product further comprises: the third receiving unit is used for receiving a first operation instruction after the 3D process object is displayed on the browsing interface of the drawing designated area in response to the file display instruction; the activation unit is used for responding to the first operation instruction and activating a browsing mode of the 3D process object; the fourth receiving unit is used for receiving a second operation instruction in the browsing mode; the control unit is used for responding to the second operation instruction and controlling the 3D process object to execute one of the following operations: zooming operation, rotating operation and translating operation.
Optionally, the first operation instruction includes at least one of: single-point operation, double-click operation and long-press operation; the second operation instruction comprises at least one of the following: sliding operation, dragging operation, and long-press operation.
Optionally, the object data of the 3D process object includes: object display data, binary data stream, storage pattern.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of displaying a craft product of any of the above via execution of the executable instructions.
In the embodiment of the invention, a product design file of a target process product is received, a 3D process object is generated based on the product design file, a file display instruction is received, wherein the file display instruction is used for representing a drawing designated area of the process object to be displayed, and the 3D process object is displayed on a browsing interface of the drawing designated area in response to the file display instruction. In the embodiment, the mode of displaying the 3D process object replaces a two-dimensional drawing, so that the real form of the product can be visually perceived more visually, the display of the graph is more visual, some details of part processing can be displayed in more detail through a browsing mode, the professional ability of a user is low, the use interest of the product is improved, and the technical problems that the product graph displayed in the two-dimensional process drawing designed in the related technology lacks a stereoscopic impression, the requirement on the professional ability of the user is high, and the use interest of the product is reduced are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of an alternative method of displaying a process product according to an embodiment of the invention;
FIG. 2 is a flow chart of another alternative method of displaying a process product according to an embodiment of the present invention;
FIG. 3 is a schematic view of an alternative apparatus for displaying a technical product according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To facilitate understanding of the invention by those skilled in the art, some terms or nouns referred to in the embodiments of the invention are explained below:
a craft card: a technical file compiled according to a certain stage of the product or the part. The process card takes the process as a unit, and can explain the whole process in detail.
The process diagram provides a graphic drawing and editing tool, rapidly counts and summarizes engineering symbols and product parameters of a process product, and outputs a BOM (bill of material) list.
The invention can be applied to various industrial design software (can carry out digital design, digital manufacturing and product full life cycle management), drawings of various products to be processed can be designed through the industrial design software, a three-dimensional process is presented, the form and processing data of process parts are presented by adding a three-dimensional sketch on the process, and the form and processing data of the process parts can be intuitively understood through the functions of rotating, amplifying, stretching and the like of the three-dimensional sketch. The present invention will be described in detail with reference to examples.
Example one
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for displaying a technical product, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
Fig. 1 is a flow chart of an alternative process product display method according to an embodiment of the present invention, as shown in fig. 1, the method comprising the steps of:
step S102, receiving a product design file of a target process product;
step S104, generating a 3D process object based on the product design file;
step S106, receiving a file display instruction, wherein the file display instruction is used for representing a drawing designated area of a process object to be displayed;
and S108, responding to the file display instruction, and displaying the 3D process object on a browsing interface in the drawing designated area.
Through the steps, a product design file of a target process product can be received, a 3D process object is generated based on the product design file, a file display instruction is received, wherein the file display instruction is used for representing a drawing designated area of the process object to be displayed, and the 3D process object is displayed on a browsing interface of the drawing designated area in response to the file display instruction. In the embodiment, the mode of displaying the 3D process object replaces a two-dimensional drawing, so that the real form of the product can be visually perceived more visually, the display of the graph is more visual, some details of part processing can be displayed in more detail through a browsing mode, the professional ability of a user is low, the use interest of the product is improved, and the technical problems that the product graph displayed in the two-dimensional process drawing designed in the related technology lacks a stereoscopic impression, the requirement on the professional ability of the user is high, and the use interest of the product is reduced are solved.
The present invention will be described in detail below with reference to the above-described embodiments.
Step S102, receiving a product design file of a target process product.
The type of the process product is not limited in this embodiment, and the process product may be an industrial product similar to a machine tool, a sander, a water pump, or the like, a household product similar to an air conditioner, a refrigerator, or the like, or an office product, or the like.
Product design files include, but are not limited to: complete drawing of product design, part drawing paper, product design parameters (such as part size, pipeline orientation and the like) and the like.
And step S104, generating a 3D process object based on the product design file.
Optionally, the step of generating the 3D process object based on the product design file includes: importing file data of a product design file into a process diagram; and performing binary conversion on the file data by adopting a process chart, and storing the binary data obtained after the conversion into the 3D process object.
In this embodiment, the step of importing the file data of the product design file into the process diagram includes: creating a new process file in the process chart; when the fact that the insert button meets a preset click condition is detected, determining the file attribute of a newly-built process file based on the file attribute of a product design file; and importing the file data of the product design file into the new process file through a preset data interface.
In this embodiment, after a process file is newly created in a process diagram or an existing CXP file is opened, a function of inserting a 3D file is clicked, and an ics, icsw, or hsf file (file attribute of a product design file) can be selected; and then importing the file data in the selected 3D file into a new process file or a process chart through a data interface.
Alternatively, the file data of the product design file includes at least one of: 3D graphic preview, 3D graphic data, and file attributes (including file name, file format, etc.).
And S106, receiving a file display instruction, wherein the file display instruction is used for representing a drawing designated area of the process object to be displayed.
In this embodiment, the drawing designated area may be a display area of a 3D file defined on a craft card, the craft card is used by construction workers, and since a product design file and a 3D process object designed by a product designer are relatively complex and are not easy to be checked by the construction workers, when each construction worker is in specific construction, the product pattern and the product parameter of a part which needs to be constructed by the construction worker can be specifically checked through the craft card, and therefore, the drawing designated area of the 3D process object on the craft card needs to be displayed, and the product parameter is displayed beside the drawing designated area.
Optionally, in this embodiment, the display area of the 3D process object/3D file may be defined on the process card through an external device (e.g., a mouse), and then the 3D file is displayed in a simplified manner (to show the form and appearance of the 3D file).
And S108, responding to the file display instruction, and displaying the 3D process object on a browsing interface in the drawing designated area.
Optionally, the step of displaying the 3D process object on the browsing interface in the drawing designated area in response to the document display instruction includes: responding to a file display instruction, and generating a corresponding browsing interface on a drawing designated area; loading binary data of the 3D process object; and displaying the 3D process object on a browsing interface.
In this embodiment, after the 3D process object is displayed on the browsing interface in the area specified by the drawing in response to the document display instruction, the display method further includes: receiving a first operation instruction; responding to the first operation instruction, and activating a browsing mode of the 3D process object; receiving a second operation instruction in a browsing mode; and responding to the second operation instruction, controlling the 3D process object to perform one of the following operations: zooming operation, rotating operation and translating operation.
Optionally, the first operation instruction includes at least one of: single-point operation, double-click operation and long-press operation; the second operation instruction includes at least one of: sliding operation, dragging operation, and long-press operation.
Double-clicking the 3D process object on a drawing (process diagram), activating a browsing mode of the 3D file, generating a simple 3D process browsing interface (for example, displaying a new browsing window in a circled display area), and realizing zooming, rotating and translating dragging functions of the 3D process file on the browsing interface, thereby realizing real presentation of the 3D file.
Alternatively, the object data of the 3D process object includes: object display data, binary data stream, storage pattern.
Fig. 2 is a flow chart of an alternative method of displaying a process product according to an embodiment of the invention, as shown in fig. 2,
the method comprises the following steps that firstly, a 3D file is selected and inserted into a card related to a process diagram; wherein, the display position and the display range of the 3D data can be appointed on the interface through a mouse.
Secondly, acquiring 3D file data; extracting relevant 3D file data and carrying out binary conversion on the relevant data. The 3D file data includes: 3D graphic preview, 3D graphic data, 3D document properties.
Thirdly, generating a 3D process object; and generating a 3D process object, and storing the generated binary data into the 3D process object to realize the display and storage capacity of the process object. The 3D process object comprises: 3D process object display data, binary data stream of the 3D file and 3D process object data storage.
Fourthly, generating a corresponding browsing interface, and loading binary data of the 3D process object; and activating a browsing interface of the 3D process object by double-clicking to realize browsing the original 3D process file.
And fifthly, generating a browsing interface. The production guidance purpose is realized by browsing the 3D process file.
Through the embodiment, the 3D file can be inserted into the process card (3D data is converted into binary data stream to generate the 3D process object of the process chart) through the function of inserting the 3D file, browsing and presenting of the 3D file can be realized by clicking the inserted 3D file, the 3D process mode is inserted to replace a 2D drawing, the real form of the product can be visually perceived more visually, the display of the graph is more intuitive, and some details of part processing can be displayed in more detail through the browsing mode.
The invention is described below in connection with an alternative embodiment.
Example two
The embodiment provides a display device of a craft product, which comprises a plurality of implementation units, wherein each implementation unit corresponds to each implementation step in the first embodiment.
Fig. 3 is a schematic view of an alternative art product display apparatus according to an embodiment of the present invention, which may include, as shown in fig. 3: a first receiving unit 31, a generating unit 33, a second receiving unit 35, a presenting unit 37, wherein,
a first receiving unit 31 for receiving a product design file of a target process product;
a generating unit 33, configured to generate a 3D process object based on the product design file;
the second receiving unit 35 is configured to receive a file display instruction, where the file display instruction is used to represent a drawing designated area of a process object to be displayed;
and the display unit 37 is configured to respond to the file display instruction and display the 3D process object on a browsing interface in the area specified by the drawing.
The display device for the technical products can receive a product design file of a target technical product through the first receiving unit 31, generate a 3D technical object based on the product design file through the generating unit 33, receive a file display instruction through the second receiving unit 35, wherein the file display instruction is used for representing a drawing designated area of the technical object to be displayed, and respond to the file display instruction through the display unit 37 to display the 3D technical object on a browsing interface of the drawing designated area. In the embodiment, the mode of displaying the 3D process object replaces a two-dimensional drawing, so that the real form of the product can be visually perceived more visually, the display of the graph is more visual, some details of part processing can be displayed in more detail through a browsing mode, the professional ability of a user is low, the use interest of the product is improved, and the technical problems that the product graph displayed in the two-dimensional process drawing designed in the related technology lacks a stereoscopic impression, the requirement on the professional ability of the user is high, and the use interest of the product is reduced are solved.
Optionally, the generating unit includes: the first import module is used for importing file data of a product design file into a process diagram; and the conversion module is used for performing binary conversion on the file data by adopting the process diagram and storing the binary data obtained after the conversion into the 3D process object.
Alternatively, the first import module includes: newly building a submodule for newly building a process file in the process chart; the first determining submodule is used for determining the file attribute of the newly-built process file based on the file attribute of the product design file when the inserted button is detected to meet the preset clicking condition; and the import submodule is used for importing the file data of the product design file into the new process file through a preset data interface.
Optionally, the file data of the product design file includes at least one of: a 3D graphic preview, 3D graphic data, and file attributes.
Optionally, the display unit includes: the generating module is used for responding to the file display instruction and generating a corresponding browsing interface on the specified area of the drawing; the loading module is used for loading binary data of the 3D process object; and the display module is used for displaying the 3D process object on the browsing interface.
Optionally, the display device of the craft product further includes: the third receiving unit is used for receiving the first operation instruction after the 3D process object is displayed on the browsing interface of the drawing designated area in response to the file display instruction; the activation unit is used for responding to the first operation instruction and activating a browsing mode of the 3D process object; the fourth receiving unit is used for receiving a second operation instruction in the browsing mode; the control unit is used for responding to the second operation instruction and controlling the 3D process object to execute one of the following operations: zooming operation, rotating operation and translating operation.
In this embodiment, the first operation instruction includes at least one of the following: single-point operation, double-click operation and long-press operation; the second operation instruction includes at least one of: sliding operation, dragging operation, and long-press operation.
Optionally, the object data of the 3D process object includes: object display data, binary data stream, storage pattern.
The display device of the above-mentioned craft product may further include a processor and a memory, the above-mentioned first receiving unit 31, the generating unit 33, the second receiving unit 35, the display unit 37, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more, the kernel parameters are adjusted to respond to the file display instruction, and the 3D process object is displayed on a browsing interface in the specified area of the drawing.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the method of displaying a craft product of any of the above via execution of the executable instructions.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: receiving a product design file of a target process product; generating a 3D process object based on the product design file; receiving a file display instruction, wherein the file display instruction is used for representing a drawing designated area of a process object to be displayed; and responding to the file display instruction, and displaying the 3D process object on a browsing interface in the specified area of the drawing.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.