Product model acquisition method, device, terminal device and storage medium
By storing the original model and its associated copy model in the server, users only need to download the target copy model to obtain the product model, solving the problem of inefficiency caused by large model file size in mechanical product design, and achieving the effect of reducing hardware and network speed requirements.
Patent Information
- Application Number
- CN202210219576.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-03-08
AI Technical Summary
In mechanical product design, when it is necessary to download a model with complete mechanical parts, the file size is larger, resulting in inefficiency and high requirements for the hardware and network speed of the terminal equipment.
By storing the original model and its associated copy model in the server, users only need to download the target copy model to obtain the product model. The copy model is obtained through simplified processing and has a smaller file size.
The hardware and network speed requirements of terminal devices are reduced, design efficiency is improved, and the accuracy and reliability of the model are ensured through the management of association relationships and attribute information.
Smart Images

Figure CN114741365B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mechanical design, and in particular, to a method, device, terminal device and storage medium for obtaining a product model. Background Art
[0002] In the three-dimensional design and modeling work of machinery, the model files are getting larger and the details of the models are getting more perfect, and the requirements for terminal devices are also getting higher. When conducting product design, it is necessary to download and use a model with complete mechanical components, which is inefficient at this time, and the requirements for the hardware and network speed of the terminal device are also relatively high. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide a method, device, terminal device and storage medium for obtaining a product model, so as to solve the problem in the prior art that when conducting product design, it is necessary to download and use a model with complete mechanical components, which is inefficient and has relatively high requirements for the hardware and network speed of the terminal device.
[0004] To achieve the above purpose, the technical solutions adopted in the embodiments of the present invention are as follows:
[0005] In a first aspect, the present invention provides a method for obtaining a product model, which is applied to a terminal device. The terminal device is communicatively connected to a server, and the server stores a plurality of original models and a copy model associated with each original model. The copy model is obtained by simplifying the original model; the method includes:
[0006] In response to a model download operation of a user, sending a model download request to the server; the model download request carries a target identifier, so that the server determines a target copy model with the target identifier from the copy models associated with the plurality of original models;
[0007] Receiving the target copy model returned by the server;
[0008] Obtaining a target product model according to the obtained target copy model.
[0009] In an optional embodiment, the method further includes:
[0010] Simplifying the obtained original model to obtain a copy model; the copy model includes other components in the original model except for confidential components and components irrelevant to the design;
[0011] Establishing an association relationship between the original model and the copy model;
[0012] Upload the original model, the copy model corresponding to the original model, and the association relationship to the server for storage.
[0013] In an alternative embodiment, the original model corresponds to a first identifier, the copy model corresponding to the original model corresponds to a second identifier, and the second identifier is obtained by modifying the first identifier. Establishing the association relationship between the original model and the copy model includes:
[0014] Establish the association relationship between the original model and the copy model according to the first identifier and the second identifier.
[0015] In an alternative embodiment, the attribute information of the copy model is also recorded in the association relationship, and the material information corresponding to each original model is also stored in the server; after obtaining the target product model according to the obtained target copy model, the method further includes:
[0016] Determine the second identifier of the target copy model that makes up the target product model;
[0017] According to the second identifier of the target copy model, determine the target association relationship corresponding to the target copy model in the server, and obtain the attribute information of the target copy model from the target association relationship;
[0018] When the attribute information of the target copy model meets the preset conditions, obtain the material information corresponding to the original model associated with the target copy model from the server.
[0019] In an alternative embodiment, the attribute information includes a note attribute and a mark attribute, and the preset condition is that the note attribute is a first preset character and the mark attribute is a second preset character.
[0020] In an alternative embodiment, the simplifying the obtained original model to obtain a copy model includes:
[0021] Delete the confidential components and the components not related to the design in the original model, and perform format conversion on the original model to obtain the copy model corresponding to the original model.
[0022] In an alternative embodiment, the simplifying the obtained original model to obtain a copy model includes:
[0023] Create an initial copy model and import the initial copy model into the original model;
[0024] Activate the initial copy model;
[0025] In response to the user's copy operation, the components selected by the user in the original model are copied into the initial copy model to obtain a copy model corresponding to the original model.
[0026] In a second aspect, the present invention provides a product model acquisition device, which is applied to a terminal device. The terminal device is communicatively connected to a server, and a plurality of original models and copy models associated with each original model are stored in the server. The copy models are obtained by simplifying the original models; the device includes:
[0027] A download module, configured to send a model download request to the server in response to the user's model download operation; the model download request carries a target identifier, so that the server can determine a target copy model with the target identifier from the copy models associated with the plurality of original models;
[0028] A receiving module, configured to receive the target copy model returned by the server;
[0029] A model acquisition module, configured to obtain a target product model according to the acquired target copy model.
[0030] In a third aspect, the present invention provides a terminal device, including a processor and a memory. The memory stores a computer program, and when the processor executes the computer program, the method described in any one of the foregoing embodiments is implemented.
[0031] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the foregoing embodiments is implemented.
[0032] The product model acquisition method, device, terminal device, and storage medium provided by the embodiments of the present invention send a model download request to the server in response to the user's model download operation. The model download request carries a target identifier, so that the server can determine a target copy model with the target identifier from the copy models associated with the plurality of original models. The terminal device receives the target copy model returned by the server and obtains a target product model according to the acquired target copy model. Among them, the copy models are obtained by simplifying the original models. The file size of the copy models is smaller than that of the original models, and each original model is associated with a copy model. When it is necessary to design and obtain a target product model, only the target copy model needs to be downloaded, which reduces the requirements for the hardware and network speed of the terminal device, and thus improves the efficiency.
[0033] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following specifically enumerates preferred embodiments and, in conjunction with the accompanying drawings, makes a detailed description as follows. Description of the Drawings
[0034] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required for the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and thus should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0035] Figure 1 It shows a schematic diagram of an application environment of the product model acquisition method provided by the embodiments of the present invention;
[0036] Figure 2 It shows a schematic block diagram of a terminal device provided by the embodiments of the present invention;
[0037] Figure 3 It shows a schematic flowchart of a product model acquisition method provided by the embodiments of the present invention;
[0038] Figure 4 It shows another schematic flowchart of the product model acquisition method provided by the embodiments of the present invention;
[0039] Figure 5 It shows yet another schematic flowchart of the product model acquisition method provided by the embodiments of the present invention;
[0040] Figure 6 It shows a functional module diagram of a product model acquisition device provided by the embodiments of the present invention.
[0041] Icons: 10 - Terminal device; 20 - Server; 210 - Memory; 220 - Processor; 230 - Communication module; 410 - Download module; 420 - Receiving module; 430 - Model acquisition module. Detailed implementation manners
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Usually, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0043] Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed present invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0044] It should be noted that relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0045] Please refer to Figure 1 , Figure 1 which is a schematic diagram of an application environment of the product model acquisition method provided by an embodiment of the present invention. As Figure 1 shown, the terminal device 10 is communicatively connected to the server 20. Among them, the number of terminal devices 10 is one or more, and the embodiments of the present invention do not limit this.
[0046] In this embodiment, a copy model associated with the original model is stored on the server 20. When a user needs to design a product, instead of downloading the original model, the user only needs to download the copy model through the terminal device 10, and then a product model can be obtained thereby.
[0047] In this embodiment, the terminal device 10 may be a personal computer (PC), a laptop computer, a tablet computer, a server, a mobile phone, etc., and the present invention does not limit this.
[0048] Please refer to Figure 2 , Figure 2 which is a block diagram of a terminal device provided by an embodiment of the present invention. The terminal device 10 includes a memory 210, a processor 220, and a communication module 230. The memory 210, the processor 220, and the communication module 230 are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these elements may be electrically connected to each other through one or more communication buses or signal lines.
[0049] Among them, the memory 210 is used to store programs or data. The memory 210 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
[0050] The processor 220 may be an integrated circuit chip with signal processing capabilities. The processor 220 may be a general-purpose processor, including a Central Processing Unit (CPU for short), a Network Processor (NP for short), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0051] Among them, the processor is used to read and write the data or programs stored in the memory 210 and execute corresponding functions. For example, when the processor 220 executes the computer program stored in the memory 210, it can implement the product model acquisition method disclosed in each embodiment of the present invention.
[0052] The communication module 230 is used to establish a communication connection between the terminal device 10 and the server 20 through the network and is used to send and receive data through the network.
[0053] It should be understood that Figure 2 The structure shown is only a schematic diagram of the structure of the terminal device 10, and the terminal device 10 may also include Figure 2 more or fewer components than those shown, or have a configuration different from that Figure 2 shown. Figure 2 The components shown may be implemented using hardware, software, or a combination thereof.
[0054] The embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it can implement the product model acquisition method disclosed in the embodiments of the present invention.
[0055] In the prior art, when designing mechanical products, it is necessary to download and use a model with complete mechanical components. However, such a model file is large and has rich details. When downloading through a terminal device, it has relatively high requirements for the hardware and network speed of the terminal device, resulting in low design efficiency.
[0056] Based on the above problems, in order to reduce the requirements for the hardware and network speed of the terminal device and improve the design efficiency, an embodiment of the present invention provides a method for obtaining a product model. Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a method for obtaining a product model provided by an embodiment of the present invention. The method includes:
[0057] Step S310, in response to a user's model download operation, send a model download request to the server; the model download request carries a target identifier, so that the server can determine a target copy model with the target identifier from multiple copy models associated with the original models.
[0058] Optionally, the server stores multiple original models and copy models associated with each original model, and the copy models are obtained by simplifying the original models.
[0059] It should be noted that in practical applications, the original models are drawn by the user using mechanical design software on the terminal device 10. The mechanical design software can be Computer Aided Design (CAD), 3D Mechanical Design System (SolidWorks), Automated NC Programming Software (Edgecam), etc., which are not limited in the embodiments of the present invention. In this embodiment, the user can search using the identifier of the copy model as a keyword, so that the terminal device 10 sends a download request carrying the user input identifier to the server 20, and then determines a copy model with the above identifier from the server.
[0060] Step S320, receive the target copy model returned by the server.
[0061] Step S330, obtain a target product model according to the obtained target copy model.
[0062] Optionally, the number of copy models that make up the product model is not limited and can be obtained according to actual needs. For example, when only one copy model of the product model is required, the obtained target copy model can be directly used as the target product model; when multiple copy models of the product model are required, the user, according to the requirements, sequentially performs a download operation through the terminal device 10, sends a model download request to the server 20, and then obtains multiple target copy models. Then, the obtained multiple target copy models are assembled, that is, the multiple target copy models are assembled according to the requirements of the product design to obtain the target product model.
[0063] The product model acquisition method provided by the embodiments of the present invention responds to the user's model download operation, sends a model download request to the server, and the model download request carries a target identifier, so that the server can determine a target copy model with the target identifier from the copy models associated with multiple original models. The terminal device receives the target copy model returned by the server and obtains the target product model based on the obtained target copy model; wherein, the copy model is obtained by simplifying the original model, the file size of the copy model is smaller than that of the original model, and each original model is associated with a copy model. When it is necessary to design and obtain the target product model, only the target copy model needs to be downloaded, which reduces the requirements for the hardware and network speed of the terminal device, and thus improves the efficiency.
[0064] In this embodiment, the original model and the copy model are uploaded by the terminal device 10 to the server 20 for storage. Optionally, please refer to Figure 4 , Figure 4 which is another schematic flowchart of the product model acquisition method provided by the embodiments of the present invention. The above method further includes:
[0065] Step S340: Simplify the obtained original model to obtain a copy model.
[0066] Optionally, the original model contains complete components, and the copy model includes other components in the original model except for the confidential components and the components irrelevant to the design. It can be understood that the original model contains confidential components, components irrelevant to the design, and the components in the copy model.
[0067] Step S350: Establish an association relationship between the original model and the copy model.
[0068] In this embodiment, the original model corresponds to a first identifier, and the copy model corresponding to the original model corresponds to a second identifier, and the second identifier is obtained by modifying the first identifier.
[0069] Optionally, the above first identifier and second identifier can be the file name of the model or the drawing number of the model, and are not limited in the implementation of the present invention.
[0070] In an alternative embodiment, the above first identifier and second identifier are drawing numbers. Specifically, the drawing numbers can be set according to actual needs and are not limited in the implementation of the present invention. For example, the first identifier corresponding to the original model is set as "JS-HL-0000-A-D", and the second identifier corresponding to the copy model of the original model is set as "JS-HL-0000-A-D1" after modifying the first identifier, that is, adding the suffix "1" to the first identifier as the second identifier. It should be noted that the method of modifying the first identifier to obtain the second identifier is also not limited in the implementation of the present invention.
[0071] Optionally, an association relationship between the original model and the copy model is established according to the first identifier and the second identifier.
[0072] Step S360: Upload the original model, the copy model corresponding to the original model, and the association relationship to the server for storage.
[0073] In one example, an application program is installed in the terminal device 10, and the application program corresponds to the server 20. The terminal device 10 can interact with the server 20 through the application program. For example, the original model, the copy model corresponding to the original model, and the association relationship can be uploaded to the server 20 for storage.
[0074] In the present embodiment, the attribute information of the copy model is also recorded in the association relationship, and the material information corresponding to each original model is also stored in the server. It can be understood that after obtaining the product model and entering production, in order to accurately obtain the material information, optionally, please refer to Figure 5 , Figure 5 which is another schematic flowchart of the product model acquisition method provided by the embodiment of the present invention. The method further includes:
[0075] Step S370: Determine the second identifier of the target copy model that constitutes the target product model.
[0076] Optionally, when it is necessary to obtain the material information of the target product model, only the second identifier of the target copy model that constitutes the target product model needs to be determined to find the corresponding material information.
[0077] In the present embodiment, before uploading the original model to the server 20, the user can configure the material information of the original model according to actual needs, and when uploading the original model to the server 20, the material information corresponding to the original model is uploaded to the server 20 for storage together.
[0078] Step S380: Determine the target association relationship corresponding to the target copy model in the server according to the second identifier of the target copy model, and obtain the attribute information of the target copy model from the target association relationship.
[0079] Optionally, the user may use the second identifier of the target copy model as a keyword to directly determine the target association relationship corresponding to the target copy model in the server 20.
[0080] In this embodiment, the association relationship can be represented as follows in the table:
[0081]
[0082] Among them, the attribute information of the copy model recorded in this association relationship includes a note attribute and a mark attribute. The note attribute of the copy model is "reference", and the mark attribute is "copy".
[0083] It should be noted that the note attribute can be set according to actual needs and is not limited in the embodiments of the present invention. For example, the note attribute can also be "refer to", "see", etc.; the mark attribute can also be set according to actual needs and is not limited in the embodiments of the present invention. For example, the mark attribute can also be "duplicate copy", etc.
[0084] Step S390, when the attribute information of the target copy model meets a preset condition, obtain the material information corresponding to the original model associated with the target copy model from the server.
[0085] Optionally, the preset condition may be that the note attribute is the first preset character and the mark attribute is the second preset character. That is to say, in the attribute information of the target copy model, the note attribute corresponds to the first preset character in the preset condition, and the mark attribute corresponds to the second preset character in the preset condition. Then, the attribute information of the target copy model meets the preset condition. At this time, obtain the material information corresponding to the original model associated with the target copy model from the server.
[0086] Exemplarily, in practical applications, when the note attribute of the target copy model is "reference" and the mark attribute is "copy", the server 20 determines the first identifier associated with the second identifier according to the target association relationship to determine the original model associated with the target copy model, and then determines the material information corresponding to the original model. The terminal device 10 can obtain the material information corresponding to the original model associated with the target copy model from the server 20.
[0087] It should be noted that the first preset character can be set according to actual needs and is not limited in the embodiments of the present invention. For example, the first preset character can also be "refer to", "see", etc.; the second preset character can also be set according to actual needs and is not limited in the embodiments of the present invention. For example, the first preset character can also be "duplicate copy", etc.
[0088] It should be noted that Figure 4 and Figure 5The execution sequence between the steps S340 - S360 shown and the steps S310 - S330 and the steps S370 - S390 is only an example. In actual applications, there may be a situation where new original models and the associated copy models for each original model are extended in the server 20. At this time, the steps S340 - S360 may be executed between any two of the steps S310 - S330 and the steps S370 - S390, or may be executed before the steps S330 and S370. This embodiment does not limit this.
[0089] In an alternative embodiment, the method for obtaining a copy model by simplifying the obtained original model includes:
[0090] Delete the confidentiality components and the components not related to the design in the original model, and perform format conversion on the original model to obtain the copy model corresponding to the original model.
[0091] Optionally, after deleting the confidentiality components and the components not related to the design in the original model, save the modified model as an intermediate format model, that is, a general format model, so that users can use this intermediate format model in different scenarios; save the intermediate format model as a single - part format model, and use this single - part format model as the copy model corresponding to the original model. Among them, the intermediate format can be STP (Segmenting, Targeting, Positioning) format, or can also be IGS (Initial Graphics Specification) format. The embodiments of the present invention do not limit this.
[0092] Optionally, after deleting the confidentiality components in the original model, when it needs to be sent to external personnel, the confidentiality of the model can be improved; the components not related to the design include internal structure components such as fasteners and components that do not affect collaborative design.
[0093] In another alternative embodiment, the method for obtaining a copy model by simplifying the obtained original model further includes:
[0094] Create an initial copy model, and import the initial copy model into the original model; activate the initial copy model; in response to the user's copy operation, copy the components selected by the user in the original model to the initial copy model to obtain the copy model corresponding to the original model.
[0095] Among them, the components selected by the user do not include the confidentiality components and the components not related to the design.
[0096] To execute the corresponding steps in the above - mentioned embodiments and various possible ways, the following provides an implementation manner of a product model acquisition device. Please refer to Figure 6 ,Figure 6 It is a functional module diagram of the product model acquisition device provided by an embodiment of the present invention. It should be noted that for the product model acquisition device provided in this embodiment, its basic principle and the technical effects generated are the same as those in the above embodiment. For the sake of brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding content in the above embodiment. The product model acquisition device includes: a download module 410, a receiving module 420, and a model acquisition module 430.
[0097] Optionally, the above modules can be stored in the Figure 2 memory shown in the form of software or firmware and solidified in the operating system (OS) of the terminal device 10, and can be Figure 2 executed by the processor 220 therein. At the same time, the data, program code, etc. required to execute the above modules can be stored in the memory 210.
[0098] The download module 410 is used to respond to the user's model download operation and send a model download request to the server; the target identifier is carried in the model download request so that the server can determine the target copy model with the target identifier from multiple copy models associated with the original model.
[0099] It can be understood that the download module 410 can execute the above step S310.
[0100] The receiving module 420 is used to receive the target copy model returned by the server.
[0101] It can be understood that the receiving module 420 can execute the above step S320.
[0102] The model acquisition module 430 is used to obtain the target product model according to the obtained target copy model.
[0103] It can be understood that the model acquisition module 430 can execute the above step S330.
[0104] Optionally, the product model acquisition device further includes: a simplification module 440, an association module 450, and an upload module 460.
[0105] The simplification module 440 is used to perform simplification processing on the obtained original model to obtain a copy model; the copy model includes other parts of the original model except for the confidential parts and the parts not related to the design.
[0106] It can be understood that the simplification module 440 can execute the above step S340.
[0107] The association module 450 is used to establish an association relationship between the original model and the copy model.
[0108] It can be understood that the association module 450 can execute the above-mentioned step S350.
[0109] An upload module 460, configured to upload the original model, the copy model corresponding to the original model, and the association relationship to the server for storage.
[0110] It can be understood that the upload module 460 can execute the above-mentioned step S360.
[0111] Optionally, the product model acquisition device further includes: a determination module 470, a search module 480, and a material information acquisition module 490.
[0112] The determination module 470 is configured to determine the second identifier of the target copy model that constitutes the target product model.
[0113] It can be understood that the determination module 470 can execute the above-mentioned step S370.
[0114] The search module 480 is configured to determine the target association relationship corresponding to the target copy model in the server according to the second identifier of the target copy model, and obtain the attribute information of the target copy model from the target association relationship.
[0115] It can be understood that the search module 480 can execute the above-mentioned step S380.
[0116] The material information acquisition module 490 is configured to obtain the material information corresponding to the original model associated with the target copy model from the server when the attribute information of the target copy model meets the preset conditions.
[0117] It can be understood that the material information acquisition module 490 can execute the above-mentioned step S390.
[0118] In the product model acquisition device provided by the embodiment of the present invention, the download module responds to the user's model download operation, sends a model download request to the server, and the model download request carries the target identifier, so that the server determines the target copy model with the target identifier from the copy models associated with multiple original models, and the receiving module receives the target copy model returned by the server, so that the model acquisition module obtains the target product model according to the obtained target copy model; wherein, the copy model is obtained by simplifying the original model, the file size of the copy model is smaller than that of the original model, and each original model is associated with a copy model. When it is necessary to design and obtain the target product model, only the target copy model needs to be downloaded, which reduces the requirements for the hardware and network speed of the terminal device, and thus improves the efficiency.
[0119] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the part of the module, program segment, or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0120] In addition, in each embodiment of the present invention, the functional modules can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part.
[0121] If the above functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs.
[0122] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for obtaining a product model, characterized in that the original model stored in the server is simplified to obtain a copy model; the simplification process includes: creating an initial copy model and importing the initial copy model into the original model; activating the initial copy model; in response to the user's copy operation, copying the components selected by the user in the original model to the initial copy model to obtain the copy model corresponding to the original model; deleting the confidential components and the components unrelated to the design in the original model, performing format conversion on the original model, saving the intermediate format model as a single-part format model, and using this single-part format model as the copy model corresponding to the original model; the file size of the copy model is smaller than the file size of the original model; establishing an association relationship between the original model and the copy model and storing the association relationship in the server; the association relationship includes the corresponding relationship between the original model and the first identifier, the corresponding relationship between the copy model and the second identifier, the corresponding relationship between the first identifier and the second identifier, and the corresponding relationship between the second identifier and the note attribute and the mark attribute of the copy model; the corresponding relationship between the first identifier and the second identifier includes: the second identifier is obtained by modifying the first identifier, and the drawing number in the second identifier is composed of the drawing number in the first identifier and the suffix of the drawing number in the first identifier; in response to the user's model download operation, sending a model download request to the server; the model download request carries a target identifier, so that the server can determine the target copy model with the target identifier from the copy models associated with multiple original models; wherein, the target identifier of the target copy model is the second identifier of the copy model stored in the server; according to the second identifier of the target copy model, obtaining the target association relationship corresponding to the target copy model in the server and obtaining the attribute information of the target copy model from the target association relationship; if the note attribute in the attribute information of the target copy model corresponds to the first preset character in the preset condition and the mark attribute corresponds to the second preset character in the preset condition, then the attribute information of the target copy model meets the preset condition, and at this time, obtaining the material information corresponding to the original model associated with the target copy model from the server; receiving the target copy model returned by the server; obtaining a target product model according to the obtained target copy model.
2. The method according to claim 1, wherein The attribute information includes a note attribute and a mark attribute, and the preset condition is that the note attribute is the first preset character and the mark attribute is the second preset character.
3. A product model acquisition device, characterized in that, Applied to a terminal device, the terminal device is communicatively connected to a server, and a plurality of original models are stored in the server. The server is configured to simplify the stored original models to obtain copy models; the simplification process includes: creating an initial copy model and importing the initial copy model into the original model; activating the initial copy model; in response to a user's copy operation, copying the components selected by the user in the original model to the initial copy model to obtain a copy model corresponding to the original model; deleting confidential components and components irrelevant to the design in the original model, performing format conversion on the original model, saving the intermediate format model as a single-part format model, and using the single-part format model as the copy model corresponding to the original model; the file size of the copy model is smaller than the file size of the original model; the server is further configured to establish an association relationship between the original model and the copy model and store the association relationship in the server; the association relationship includes the correspondence between the original model and the first identifier, the correspondence between the copy model and the second identifier, the correspondence between the first identifier and the second identifier, and the correspondence between the second identifier and the note attribute and mark attribute of the copy model; the correspondence between the first identifier and the second identifier includes: the second identifier is obtained by modifying the first identifier, and the drawing number in the second identifier is composed of the drawing number in the first identifier and the suffix of the drawing number in the first identifier. A download module, configured to send a model download request to the server in response to a user's model download operation; the model download request carries a target identifier, so that the server can determine a target copy model with the target identifier from the copy models associated with the plurality of original models; wherein, the identifier of the target copy model is the second identifier of the copy model stored in the target server. A receiving module, configured to receive the target copy model returned by the server. A model acquisition module, configured to obtain a target product model according to the acquired target copy model, and is further configured to obtain the target association relationship corresponding to the target copy model in the server according to the second identifier of the target copy model, and obtain the attribute information of the target copy model from the target association relationship; if the note attribute in the attribute information of the target copy model corresponds to the first preset character in the preset condition, and the mark attribute corresponds to the second preset character in the preset condition, then the attribute information of the target copy model meets the preset condition. At this time, the material information corresponding to the original model associated with the target copy model is obtained from the server.
4. A terminal device, characterized in that, It includes a processor and a memory, and the memory stores a computer program. When the processor executes the computer program, the method described in any one of claims 1-2 is implemented.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the method described in any one of claims 1-2 is implemented.
Citation Information
Patent Citations
Data processing method and device
CN107453985A
Model component file management method, device and system
CN110119562A