CN114546558B - Drawing processing method, device, computer equipment and storage medium - Google Patents

Drawing processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114546558B
CN114546558B CN202210156131.3A CN202210156131A CN114546558B CN 114546558 B CN114546558 B CN 114546558B CN 202210156131 A CN202210156131 A CN 202210156131A CN 114546558 B CN114546558 B CN 114546558B
Authority
CN
China
Prior art keywords
thumbnail
mode
generation mode
target
generation
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
CN202210156131.3A
Other languages
Chinese (zh)
Other versions
CN114546558A (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.)
Jindiyun Technology Co ltd
Original Assignee
Jindiyun Technology Co ltd
Filing date
Publication date
Application filed by Jindiyun Technology Co ltd filed Critical Jindiyun Technology Co ltd
Priority to CN202210156131.3A priority Critical patent/CN114546558B/en
Publication of CN114546558A publication Critical patent/CN114546558A/en
Application granted granted Critical
Publication of CN114546558B publication Critical patent/CN114546558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application relates to a drawing processing method, a drawing processing device, computer equipment and a storage medium. The method comprises the following steps: acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed; determining generation data corresponding to the thumbnail generation mode, and generating corresponding thumbnails through the thumbnail generation mode and the generation data; determining a target thumbnail from the thumbnails; uploading the target thumbnail to a target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system. The method can improve the processing efficiency of the drawing.

Description

Drawing processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a drawing processing method, apparatus, computer device, and storage medium.
Background
With the development of computer technology, a drawing processing system can generally provide corresponding thumbnail for an original drawing, so that summary information in the original drawing can be known directly through the thumbnail without opening the original drawing, and for example, CAD software can provide fixed thumbnail for a CAD drawing.
At present, when thumbnail previewing is performed on stored drawings, the obtained original drawings are directly converted into fixed-form thumbnails only through a thumbnail generation interface provided by a drawing processing system, and then the fixed-form thumbnails are stored and displayed. However, since only the thumbnail with a fixed form can be previewed and managed, and the thumbnail with a fixed form sometimes cannot accurately and effectively express the main intention of the drawing designer, the thumbnail type in the prior art has the problem of insufficient diversity, thereby reducing the flexibility of drawing processing.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a drawing processing method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the flexibility of processing drawings.
In a first aspect, the application provides a drawing processing method. The method comprises the following steps:
Acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
Uploading the target thumbnail to a target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In one embodiment, the determining the target thumbnail from the thumbnails includes: displaying a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail; in response to a selection operation for the thumbnail, a target thumbnail in the at least one thumbnail is determined.
In one embodiment, the thumbnail generation modes have a plurality of modes; the generating the corresponding thumbnail through the thumbnail generating mode and the generated data comprises the following steps: and generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode for each thumbnail generation mode in the plurality of thumbnail generation modes.
In one embodiment, the thumbnail generation mode includes a first thumbnail generation mode corresponding to a two-dimensional drawing; the generated data includes at least one thumbnail scale and a thumbnail number; the generating the corresponding thumbnail through the thumbnail generating mode and the generated data comprises the following steps: when the thumbnail generation mode is a first thumbnail generation mode, carrying out at least one thumbnail interception operation on the drawing to be processed according to the at least one thumbnail proportion to obtain candidate thumbnails corresponding to each thumbnail proportion; and screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
In one embodiment, the thumbnail generating mode further includes a second thumbnail generating mode corresponding to the three-dimensional drawing; the generated data includes a rotation angle; the generating the corresponding thumbnail through the thumbnail generating mode and the generated data comprises the following steps: when the thumbnail generation mode is a second thumbnail generation mode, determining a target object and a rotation angle in the drawing to be processed; and rotating the target object according to the rotation angle, and intercepting the rotated target object to obtain a second thumbnail corresponding to the target object.
In one embodiment, the thumbnail generation manner further includes a third thumbnail generation manner; the generated data comprises an interface identifier; the generating the corresponding thumbnail through the thumbnail generating mode and the generated data comprises the following steps: and when the current thumbnail generation mode is a third thumbnail generation mode, obtaining a third thumbnail associated with the drawing to be processed through a thumbnail generation interface of the drawing processing system corresponding to the receiving identification.
In one embodiment, the thumbnail generating means further includes a fourth thumbnail generating means associated with the region selection operation; the generated data includes a target size; the generating the corresponding thumbnail through the thumbnail generating mode and the generated data comprises the following steps: when the thumbnail generation mode is a fourth thumbnail generation mode, responding to a region selection operation aiming at the to-be-processed drawing, and determining at least one region drawing in the to-be-processed drawing; and intercepting the regional drawing to obtain a fourth thumbnail with a target size corresponding to the regional drawing.
In one embodiment, the method further comprises: acquiring an updating request of the thumbnail sent by the target system; the update request comprises a thumbnail mark of a thumbnail to be updated; determining an original drawing according to the thumbnail identification; determining a thumbnail updating mode corresponding to the original drawing, and generating an updating thumbnail corresponding to the original drawing through the thumbnail updating mode; uploading the updated thumbnail to a target system; the uploaded updating thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identification.
In a second aspect, the application further provides a drawing processing device. The device comprises:
the drawing acquisition module is used for acquiring a drawing to be processed and determining a thumbnail generation mode of the drawing to be processed;
The thumbnail generation module is used for determining generation data corresponding to the thumbnail generation mode and generating corresponding thumbnails through the thumbnail generation mode and the generation data; determining a target thumbnail from the thumbnails;
The thumbnail uploading module is used for uploading the target thumbnail to a target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
Acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
Uploading the target thumbnail to a target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which when executed by a processor performs the steps of:
Acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
Uploading the target thumbnail to a target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
Acquiring a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed;
determining generation data corresponding to the thumbnail generation mode, and generating a corresponding thumbnail through the thumbnail generation mode and the generation data;
determining a target thumbnail from the thumbnails;
Uploading the target thumbnail to a target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
According to the drawing processing method, the drawing processing device, the computer equipment, the storage medium and the computer program product, the target thumbnail can be directly determined from the thumbnail and uploaded to the target system by acquiring the drawing to be processed and determining the thumbnail generation mode related to the drawing to be processed and the generation data corresponding to the thumbnail generation mode, so that the corresponding thumbnail is generated according to the thumbnail generation mode and the generation data, and the target thumbnail is displayed and managed in the target system. Because multiple thumbnails can be generated by a thumbnail generation mode and generated data, and the target thumbnail is determined from the multiple thumbnails, compared with the traditional mode of directly converting an original drawing into a thumbnail with a fixed form only through a thumbnail generation interface of a drawing processing system, the thumbnail generation mode provided by the application can select the multiple thumbnails, thereby solving the problem of insufficient diversity of the target thumbnail and improving the flexibility of drawing processing. Meanwhile, the thumbnail which can most express the main intention of the drawing designer is used as the target thumbnail, so that the accuracy of drawing processing is improved.
Drawings
FIG. 1 is an application environment diagram of a drawing processing method in one embodiment;
FIG. 2 is a flow chart of a method of processing a drawing in one embodiment;
FIG. 3 is a flow chart of a method of processing a drawing in another embodiment;
FIG. 4 is a schematic diagram of a method of processing a drawing in one embodiment;
FIG. 5 is a block diagram of a drawing processing apparatus in one embodiment;
fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The drawing processing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1, and can be applied to an application environment shown in fig. 1, wherein the application environment comprises a first terminal 102a, a second terminal 102b and a server 104, the first terminal 102a can communicate with the server 104 through a network, and the second terminal 102b can communicate with the server 104 through the network. The first terminal 102a is configured to obtain a drawing to be processed and determine a thumbnail generation manner, and send the drawing to be processed and the thumbnail generation manner to the server 104. The server 104 generates a thumbnail corresponding to the drawing to be processed according to the thumbnail generation mode, and sends the target thumbnail determined from the thumbnail to the second terminal 102b, so that the second terminal 102b displays the received target thumbnail. The first terminal 102a and the second terminal 102b may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers. It should be noted that the first terminal 102a and the second terminal 102b may be the same terminal or different terminals, and the embodiment of the present application is not limited herein.
In one embodiment, as shown in fig. 2, a drawing processing method is provided, and the method is applied to the first terminal in fig. 1 for illustration, and includes the following steps:
step 202, obtaining a drawing to be processed, and determining a thumbnail generation mode of the drawing to be processed.
The drawing to be processed is a drawing obtained through drawing processing application, such as an electrical drawing, a building construction drawing and the like; the drawing processing application is a computer aided design application capable of drawing a drawing to be processed and generating a thumbnail, such as CAD software application, pro/Engineer software application and the like; the thumbnail is a small-sized drawing capable of briefly displaying the original drawing and can comprise part of summary information in the original drawing, and the original drawing to be managed can be acquired by referring to the summary information in the thumbnail without acquiring all the original drawings.
Specifically, the drawing to be processed acquired by the first terminal may be a drawing uploaded by the user in real time, or may be a drawing stored in a database in advance. The method comprises the steps that a first terminal determines at least one thumbnail generation mode associated with a drawing to be processed according to the drawing type of the drawing to be processed, wherein the thumbnail generation mode comprises a first thumbnail generation mode, a second thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode. For example, when the drawing type of the drawing to be processed is a two-dimensional drawing, determining that at least one thumbnail generation mode associated with the two-dimensional drawing comprises a first thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode; when the drawing type of the drawing to be processed is a three-dimensional drawing, determining that at least one thumbnail generation mode associated with the three-dimensional drawing comprises a second thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode.
In one embodiment, the first terminal displays a thumbnail generation mode selection interface, and determines at least one thumbnail generation mode selected by the selection operation in response to the selection operation of the user on the thumbnail generation mode selection interface.
In one embodiment, a drawing processing application for providing a drawing processing system is operated in the first terminal, and the drawing processing application can acquire a drawing to be processed and determine a thumbnail generation mode.
In one embodiment, the first terminal recommends at least one thumbnail generation mode associated with the drawing to be processed for the user according to the drawing type of the drawing to be processed, and displays the recommended at least one thumbnail generation mode in a thumbnail generation mode selection interface.
Step 204, determining the generation data corresponding to the thumbnail generation mode, and generating the corresponding thumbnail through the thumbnail generation mode and the generation data.
The generated data may be preset data, may be data determined according to drawing information of the drawing to be processed, or may be data obtained by setting the drawing to be processed by a user. The generating data at least comprises one of a thumbnail proportion, the number of thumbnails, a rotation angle, an interface identifier of a thumbnail generating interface and a target size, for example, the generating data can be specifically that a drawing to be processed is scaled according to a thumbnail proportion of 1 to 0.4, or 2 thumbnails are generated, or one thumbnail is generated every 10 degrees of rotation, and the like.
Specifically, the first terminal determines corresponding generated data according to the drawing type of the drawing to be processed. That is, when the drawing type of the drawing to be processed is a two-dimensional drawing, determining that the thumbnail generation mode is a first thumbnail generation mode, wherein the generated data corresponding to the first thumbnail generation mode can be the two-dimensional drawing thumbnail proportion and the number of thumbnails; when the drawing type of the drawing to be processed is a three-dimensional drawing, determining that the thumbnail generation mode is a second thumbnail generation mode, wherein the generation data corresponding to the second thumbnail generation mode can be the rotation angle of the three-dimensional drawing and the like.
Further, the first terminal determines that the thumbnail generation mode is a fourth thumbnail generation mode in response to the region selection operation of the drawing to be processed, and determines that the thumbnail generation mode is a third thumbnail generation mode and determines that the generated data corresponding to the third thumbnail generation mode can be used for generating the interface identification of the interface of the thumbnail if the first terminal does not respond to the region selection operation of the drawing to be processed. The fourth thumbnail generation mode is a mode of directly obtaining a thumbnail corresponding to a regional drawing after selecting a part of the region in the drawing to be processed according to the user requirement; the third thumbnail generation mode is a mode of acquiring a thumbnail corresponding to the drawing to be processed through a corresponding thumbnail generation interface. Further, the first terminal generates the corresponding thumbnail through a thumbnail generation mode and generated data. For example, when the thumbnail ratio of the two-dimensional drawing is 1 to 0.4, the drawing to be processed is abbreviated according to the thumbnail ratio of 1 to 0.4, and the abbreviated drawing is subjected to screenshot processing to obtain a screenshot, and the screenshot is used as the generated thumbnail.
In one embodiment, the first terminal may respond to a triggering operation of a user on a plugin in the drawing processing application, and may acquire, through the triggering operation, generated data pre-stored in the plugin, or may perform a real-time setting operation on the plugin through the triggering operation, and may determine, through the setting operation, the generated data associated with the drawing to be processed.
In one embodiment, by clicking the setting control in the drawing processing application by the user, the first terminal can respond to the clicking operation of the user and display the setting page, so that the user can input the generated data in the setting page to obtain the generated data corresponding to the thumbnail generating mode. Such as input thumbnail scale, rotation angle, etc.
In one embodiment, the first terminal determines, according to drawing information in the drawing to be processed, generation data corresponding to the current thumbnail generation mode.
Specifically, the first terminal determines data information in the generated data corresponding to the current thumbnail generation mode according to the current thumbnail generation mode and drawing information of the drawing to be processed, such as the size of the drawing, the definition of the drawing, the number of primitives included in the drawing, and the like, for example, if the drawing to be processed is a two-dimensional drawing with higher definition, the thumbnail proportion in the generated data can be set to be 1 to 0.2, and the generated thumbnail still has higher definition. And if the drawing to be processed is a two-dimensional drawing with lower definition, setting the thumbnail proportion in the generated data to be 1 to 0.4, so that the generated thumbnail can be clear. For another example, when the number of primitives included in the drawing is greater than or equal to a preset number threshold, the thumbnail proportion in the generated data is set to be 1 to 0.4; when the number of the graphic elements is smaller than a preset number threshold, the thumbnail proportion in the generated data is set to be 1 to 0.2. By flexibly determining the thumbnail proportion according to the number of the primitives, a user can see all the primitives included in the drawing clearly through the thumbnail. The primitive category refers to a local image in a drawing, such as a window, a fire hydrant, a door, a parking space and the like in the drawing.
In this embodiment, the generated data is flexibly determined according to the drawing information of the drawing to be processed, so that the thumbnail generated by the generated data has a higher recognition degree.
Step 206, determining the target thumbnail from the thumbnails.
Specifically, the first terminal determines a selected target thumbnail according to a selection operation in response to the selection operation of the thumbnail by a user. The target thumbnail is the thumbnail which can best represent the summary information of the drawing to be processed or the main intention of the drawing designer.
In one embodiment, determining the target thumbnail from the thumbnails includes: displaying a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail; in response to a selection operation for the thumbnail, a target thumbnail in the at least one thumbnail is determined.
Specifically, a thumbnail selection interface is displayed in the first terminal, wherein at least one thumbnail generated according to a thumbnail generation mode is displayed in the thumbnail selection interface. The first terminal determines a target thumbnail selected by the selection operation in response to the selection operation of the user on the thumbnail in the thumbnail selection interface.
In one embodiment, the user may further determine the recommended target thumbnail through the thumbnail selection interface, so that when the recommended target thumbnail is displayed through the target system, a special identifier may be displayed in the recommended target thumbnail, for example, when the drawing to be processed is a three-dimensional drawing, the thumbnail acquired under multiple rotation angles may better reflect summary information of the three-dimensional drawing, and therefore, the second thumbnail obtained through the second thumbnail generating manner may be used as the target thumbnail and displayed with the special identifier.
In one embodiment, the user may also compare the thumbnails generated in the various thumbnail generation manners, and take the thumbnail generated in one of the thumbnail generation manners as the target thumbnail. For example, when the drawing to be processed is a two-dimensional drawing, if the third thumbnail obtained by the third thumbnail generating mode is not clear due to the instability of the thumbnail generating interface, the clearer first thumbnail may be used as the target thumbnail.
In this embodiment, by screening the target thumbnail which can best embody the summary information of the drawing to be processed from at least one thumbnail, the accuracy of managing the drawing to be processed can be improved.
Step 208, uploading the target thumbnail to the target system; the uploaded target thumbnail is used for triggering the target system to display the target thumbnail.
The target system is a management system for managing all the to-be-processed drawings and the thumbnail corresponding to the to-be-processed drawings. Such as PLM systems (Product LIFECYCLE MANAGEMENT ), file management systems, and the like.
Specifically, the first terminal can upload the target thumbnail selected by the user to the target system, so that the target system manages the drawing to be processed and the target thumbnail corresponding to the drawing to be processed. It is readily understood that the summary information in different target thumbnails is not the same.
In one embodiment, the first terminal processes the target thumbnails according to a preset thumbnail size, that is, adjusts all target thumbnails to the same display size, and thus uploads the target thumbnails with the same display size to the target system.
In one embodiment, a drawing list interface is displayed in the target system, and at least one target thumbnail selected by the selection operation is displayed in response to the selection operation of the user on the thumbnail in the drawing list interface.
In the drawing processing method, the drawing to be processed is obtained, the thumbnail generation mode associated with the drawing to be processed and the generation data corresponding to the thumbnail generation mode are determined, so that the corresponding thumbnail is generated according to the thumbnail generation mode and the generation data, the target thumbnail can be directly determined from the thumbnail, the target thumbnail is uploaded to the target system, and the target thumbnail is displayed and managed in the target system. The target thumbnail which can most express the main intention of the drawing designer can be directly determined from the thumbnail, so that the user can conveniently and conveniently view and manage the drawing later, and the flexibility of drawing processing is improved.
In addition, due to the difference of different thumbnail generation interfaces, the summary information generally embodied by the thumbnails generated by the thumbnail generation interfaces is not uniform, so that the management difficulty of the thumbnails is increased; the application can generate unified thumbnail, thereby reducing the management difficulty of the thumbnail. Because the existing thumbnail acquisition mode is single, the definition of the generated thumbnail is generally poor, and the thumbnail with high definition can be generated by a plurality of thumbnail generation modes, so that the effect of the generated thumbnail is improved. Moreover, since the conventional technical scheme can only generate the thumbnail in the fixed form, sometimes the generated thumbnail in the fixed form cannot accurately express the intention of a designer, so that the accuracy of processing the drawing is reduced.
In one embodiment, thumbnail generation is multiple; generating the corresponding thumbnail through a thumbnail generation mode and generation data comprises the following steps: and generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode for each thumbnail generation mode in the plurality of thumbnail generation modes.
Specifically, determining a trigger mode corresponding to the current thumbnail generation mode for each of a plurality of thumbnail generation modes; when the trigger mode corresponding to the current thumbnail generation mode is the set trigger mode, determining the generation data corresponding to the current thumbnail generation mode. The first terminal determines a current trigger mode corresponding to the current thumbnail generation mode, namely, determines a trigger mode for triggering the current thumbnail generation mode, and determines generation data corresponding to the current thumbnail generation mode according to the current trigger mode. That is, when the current trigger mode is the set trigger mode, the generated data corresponding to the first thumbnail generation mode is the thumbnail proportion and the number of thumbnails, and the generated data corresponding to the second thumbnail generation mode is the rotation angle; when the current trigger mode is a non-setting trigger mode, the generated data corresponding to the third thumbnail generation mode is an interface identifier of the thumbnail generation interface. The setting triggering mode refers to a mode in which the generated data corresponding to the drawing to be processed needs to be set, and the non-setting triggering mode refers to a mode in which the generated data corresponding to the drawing to be processed does not need to be set.
For example, a setting control may be displayed in the first terminal, and the thumbnail generation manner may be set through the setting control. When the user clicks the setting control, it can be considered that the thumbnail generation mode including the first thumbnail generation mode and the second thumbnail generation mode is triggered at this time. When the user does not click on the setting control and directly intercepts the drawing to be processed, the thumbnail generation mode is considered to be triggered, and the thumbnail generation mode comprises a third thumbnail generation mode and a fourth thumbnail generation mode.
In this embodiment, the thumbnail generation mode and the generation data corresponding to the thumbnail generation mode are determined through different triggering modes, so that the corresponding thumbnail can be generated conveniently and quickly according to the generation data corresponding to the thumbnail generation mode, and the generation efficiency of the thumbnail is improved.
In one embodiment, the thumbnail generation mode includes a first thumbnail generation mode corresponding to a two-dimensional drawing; generating data including at least one thumbnail scale and a number of thumbnails; generating the corresponding thumbnail through a thumbnail generation mode and generation data comprises the following steps: when the thumbnail generation mode is a first thumbnail generation mode, carrying out at least one thumbnail interception operation on the drawing to be processed according to at least one thumbnail proportion to obtain candidate thumbnails corresponding to each thumbnail proportion; screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
Specifically, when the first terminal determines that the thumbnail generation manner is the first thumbnail generation manner, at least one thumbnail proportion may be included in the generated data corresponding to the first thumbnail generation manner. And for each thumbnail proportion in the plurality of thumbnail proportions, the first terminal performs thumbnail processing on the drawing to be processed according to the current thumbnail proportion, and intercepts the thumbnail-processed drawing to obtain a candidate thumbnail corresponding to the current thumbnail proportion. For example, when the current thumbnail ratio is 1 to 0.6, the candidate thumbnail corresponding to the drawing to be processed can be obtained after the thumbnail and interception operations are performed on the drawing to be processed; also, the current thumbnail ratio may be 1 to 0.5, 1 to 0.4, 1 to 0.2, etc. Further, the first terminal determines the number of the thumbnails in the generated data corresponding to the first thumbnail generating mode, and screens at least one first thumbnail associated with the drawing to be processed from the candidate thumbnails according to the number of the thumbnails. For example, referring to the above example, when the number of thumbnail images is 3, if the definition of the candidate thumbnail image generated when the thumbnail ratio is 1 to 0.2 is low, it may be deleted, only the candidate thumbnail images generated when the thumbnail ratio is 1 to 0.6, 1 to 0.5, 1 to 0.4 are retained, and the candidate thumbnail images generated when the thumbnail ratio is 1 to 0.6, 1 to 0.5, 1 to 0.4 are taken as the first thumbnail image.
In the embodiment, by providing the thumbnail generation mode associated with the two-dimensional drawing, the thumbnail information of the two-dimensional drawing under different thumbnail proportions can be clearly obtained, so that the flexibility of processing the drawing is improved. And as the thumbnail with higher definition is screened out according to the number of the thumbnails, the accuracy of processing the drawing later is improved.
In one embodiment, the thumbnail generating mode further comprises a second thumbnail generating mode corresponding to the three-dimensional drawing; generating data including a rotation angle; generating the corresponding thumbnail through a thumbnail generation mode and generation data comprises the following steps: when the thumbnail generation mode is a second thumbnail generation mode, determining a target object and a rotation angle in the drawing to be processed; and rotating the target object according to the rotation angle, and intercepting the rotated target object to obtain a second thumbnail corresponding to the target object.
The target object is a primitive selected by a user in the three-dimensional drawing, or the target object can be any primitive in the three-dimensional drawing; the generated data corresponding to the second thumbnail generation mode is a rotation angle associated with the three-dimensional drawing.
Specifically, when the thumbnail generation mode is determined to be the second thumbnail generation mode, the first terminal can determine a target object in the drawing to be processed and a rotation angle in the generated data corresponding to the second thumbnail generation mode, and rotate the target object according to the rotation angle to obtain a rotated target object, so that the rotated target object is subjected to intercepting operation to obtain a second thumbnail corresponding to the target object.
In one embodiment, the first terminal may traverse the primitive in the drawing to be processed, take the primitive traversed currently as the target object, and perform the rotary interception processing on the target object.
In one embodiment, the first terminal performs intercepting operation on the target object once according to the determined rotation angle until the target object rotates once, and the first terminal performs thumbnail processing on at least one screenshot formed after the target object rotates once. For example, the determined rotation angle is 90 degrees, the target object is cut once after rotating 90 degrees, the target object is cut once again when rotating 180 degrees until the target object rotates once, and finally 4 screen shots associated with the target object are taken as second thumbnail.
In one embodiment, the first terminal intercepts the target object once according to the determined rotation angle, and performs a thumbnail process on a screenshot formed after each interception operation to obtain at least one thumbnail associated with the target object. For example, when the rotation angle is 90 degrees, the thumbnail processing is performed on the rotated target object, and the rotation of the target object after the thumbnail processing is intercepted to obtain a second thumbnail; likewise, the target object is truncated once again when rotated to 180 degrees, resulting in another Zhang Dier thumbnail.
In one embodiment, the generated data may include a plurality of rotation angles, and for each rotation angle of the plurality of rotation angles, the first terminal performs an intercepting operation on the target object under the current rotation angle, so as to obtain a second thumbnail corresponding to the target object. For example, the rotation angles may be set to 45 degrees, 60 degrees, 70 degrees, etc., respectively
In one embodiment, the generated data may further include the number of thumbnails, and the second thumbnail is obtained by sorting the number. For example, if the number of thumbnails is 3, the thumbnails formed at the rotation angles of 45 degrees, 60 degrees, and 70 degrees overlap with each other, and if the number of thumbnails formed at the rotation angle of 70 degrees overlaps with each other, the thumbnail formed at the rotation angle of 70 degrees can be deleted, and only the thumbnails formed at the rotation angles of 45 degrees and 60 degrees can be used as the second thumbnail.
In this embodiment, by providing a thumbnail generation manner associated with a three-dimensional drawing, thumbnail information of the three-dimensional drawing under different rotation angles can be clearly obtained, so that flexibility in processing the drawing is improved.
In one embodiment, the thumbnail generating means further includes a third thumbnail generating means; generating data including an interface identifier; generating the corresponding thumbnail through a thumbnail generation mode and generation data comprises the following steps: when the current thumbnail generation mode is a third thumbnail generation mode, a third thumbnail associated with the drawing to be processed is obtained through a thumbnail generation interface of the drawing processing system corresponding to the connection mark.
The thumbnail generation interface is a unique interface associated with the version characteristic of the drawing processing system; the interface identifiers of the thumbnail generation interfaces for the generated data are different, for example, versions of drawing processing systems developed by different manufacturers are different, and the thumbnail generation interfaces of the drawing processing systems are also different.
Specifically, when the first terminal determines that the thumbnail generation mode is the third thumbnail generation mode, determining a triggering mode corresponding to the third thumbnail generation mode, and when the triggering mode is a non-setting triggering mode, determining that the generated data corresponding to the third thumbnail generation mode is an interface identifier of the thumbnail generation interface. And the first terminal invokes a third thumbnail associated with the drawing to be processed through an interface corresponding to the interface identifier of the thumbnail generation interface. It is easy to understand that when the interface identifiers are different, the first terminal generates interfaces through the thumbnail of different drawing processing systems, and the thumbnail associated with the drawing to be processed is also different.
In one embodiment, the first terminal may call a thumbnail associated with the drawing to be processed in the drawing processing system through a default screenshot interface in the Windows system. For example, the default screenshot interface is used as a plug-in CAD software, the function menu of the plug-in is displayed, and the corresponding thumbnail is screenshot and invoked by triggering the function menu of the plug-in.
In this embodiment, the third thumbnail associated with the drawing to be processed is directly invoked through the thumbnail generation interface of the drawing processing system, so that omission of invoking the thumbnail under different drawing processing system versions is avoided.
In one embodiment, the thumbnail generating means further includes a fourth thumbnail generating means associated with the region selection operation; generating data including a target size; generating the corresponding thumbnail through a thumbnail generation mode and generation data comprises the following steps: when the thumbnail generation mode is a fourth thumbnail generation mode, responding to the area selection operation aiming at the drawing to be processed, and determining at least one area drawing in the drawing to be processed; and intercepting the regional drawing to obtain a fourth thumbnail with a target size corresponding to the regional drawing.
Specifically, when the first terminal determines that the thumbnail generation mode is the fourth thumbnail generation mode, responding to a region selection operation of a user for a drawing to be processed, determining at least one region drawing selected by the region selection operation, and determining a target size in generated data, wherein the region drawing can be a region capable of reflecting important information of the drawing to be processed or a region capable of reflecting drawing design purposes of the user. The first terminal responds to the intercepting operation of the user on the regional drawing, and a fourth thumbnail with a target size corresponding to the regional drawing is obtained.
In one embodiment, the first terminal responds to a user to-be-processed drawing target size setting operation, and after a selected area is determined, the selected area drawing is abbreviated according to the set target size, and then the abbreviated area drawing is intercepted, namely, screenshot operation is performed.
In this embodiment, the area drawing may be selected according to the actual requirement of the user by responding to the area selection operation performed by the user, so that another thumbnail generation mode is provided, thereby improving the flexibility of drawing processing. As the region of the important information of the drawing to be processed is selected, omission of a part of important region drawing is avoided.
In one embodiment, the method further comprises: acquiring an updating request of a thumbnail sent by a target system; the update request comprises a thumbnail mark of the thumbnail to be updated; determining an original drawing according to the thumbnail identification; determining a thumbnail updating mode corresponding to the original drawing, and generating an updated thumbnail corresponding to the original drawing through the thumbnail updating mode; uploading the updated thumbnail to the target system; the uploaded updating thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identification.
The thumbnail updating mode may be at least one of thumbnail generating modes. For example, if the two-dimensional drawing initially generates the corresponding thumbnail by the first thumbnail generation mode, the third thumbnail generation mode and the fourth thumbnail generation mode respectively, and if the thumbnail to be updated is obtained by the first thumbnail generation mode, the thumbnail updating mode corresponding to the original drawing may be at least one of the first thumbnail generation mode, the third thumbnail generation mode and the fourth thumbnail generation mode; if the thumbnail to be updated is obtained by the third thumbnail generation mode, at this time, the thumbnail update mode corresponding to the original drawing may be at least one of the first thumbnail generation mode and the fourth thumbnail generation mode.
Specifically, the first terminal may obtain an update request of a thumbnail sent by a target system in the second terminal, and analyze the update request to obtain a thumbnail identifier of a thumbnail to be updated associated with the update request, where the thumbnail to be updated may be a thumbnail with unclear drawing information. The first terminal determines an original drawing corresponding to the thumbnail identification and a thumbnail updating mode corresponding to the original drawing from a database pre-stored with various drawings according to the thumbnail identification. The step of generating the update thumbnail corresponding to the original drawing by the thumbnail generation method is the same as the step of generating the update thumbnail corresponding to the drawing to be processed by the thumbnail generation method, and is not repeated herein.
In the embodiment, the updated thumbnail can be obtained by updating the thumbnail, and the updated thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identification, so that a user can view and process the thumbnail in real time through the target system, and the flexibility of processing the drawing is improved.
In one embodiment, the first terminal may operate with a drawing processing system and the second terminal may operate with a target system. It should be noted that the drawing processing system and the target system may also be the same as the first terminal, which is not limited herein.
In one embodiment, as shown in fig. 3, fig. 3 provides a schematic flow chart of another drawing processing method. S301, uploading a drawing to be processed by a user; s302, obtaining a thumbnail with a preset size through a target system interface; s303, calling a drawing to be processed through a CAD software interface; s304, scaling the drawing to be processed, and intercepting a screenshot under a corresponding scaling ratio; s305, calling a three-dimensional drawing through a CAD software interface; s306, carrying out rotary screenshot on the three-dimensional drawing; s307, providing a thumbnail selection interface for a user; s308, setting the selected thumbnail to a preset size; s309, uploading the thumbnail images with uniform sizes to the target system.
In one embodiment, as shown in fig. 4, a schematic diagram of a drawing processing method is provided. The user logs in a target system in the second terminal through an account, the second terminal displays a drawing list interface, and responds to the selection operation of the user on the drawing in the drawing list interface, at least one drawing to be processed selected by the selection operation is determined, and a drawing processing request corresponding to the drawing to be processed is sent to the first terminal. The first terminal determines a drawing to be processed according to the received drawing processing request, determines at least one thumbnail generation mode according to the drawing to be processed, generates corresponding thumbnails of the drawing to be processed according to each thumbnail generation mode, and performs preliminary display on at least one thumbnail in a thumbnail selection interface. The first terminal responds to the selection operation of the user on the thumbnail in the thumbnail selection interface, determines target thumbnails selected by the selection operation, adjusts each target thumbnail to the same display size according to the preset thumbnail size, and enables the first terminal to upload the adjusted target thumbnails to the second terminal. And the second terminal stores the received target thumbnail to the same directory corresponding to the drawing to be processed, and displays the target thumbnail by responding to the selection operation of the user on the target thumbnail in the drawing list interface.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a drawing processing device for realizing the drawing processing method. The implementation scheme of the solution to the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitation in the embodiments of the drawing processing device or devices provided below may refer to the limitation of the drawing processing method in the above description, and will not be repeated here.
In one embodiment, as shown in fig. 5, there is provided a drawing processing apparatus 500, including: a drawing acquisition module 502, a thumbnail generation module 504, and a thumbnail upload module 506, wherein:
The drawing acquisition module 502 is configured to acquire a drawing to be processed, and determine a thumbnail generation manner of the drawing to be processed.
A thumbnail generation module 504, configured to determine generation data corresponding to a thumbnail generation manner, and generate a corresponding thumbnail through the thumbnail generation manner and the generation data; a target thumbnail is determined from the thumbnails.
A thumbnail uploading module 506, configured to upload the target thumbnail to the target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
In one embodiment, the thumbnail generation module 504 is further configured to present a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail; in response to a selection operation for the thumbnail, a target thumbnail in the at least one thumbnail is determined.
In one embodiment, thumbnail generation is multiple; the thumbnail generation module 504 is further configured to generate, for each of the plurality of thumbnail generation manners, at least one thumbnail according to the current thumbnail generation manner and the generation data corresponding to the current thumbnail generation manner.
In one embodiment, the thumbnail generation mode includes a first thumbnail generation mode corresponding to a two-dimensional drawing; generating data including at least one thumbnail scale and a number of thumbnails; the thumbnail generating module 504 further includes a first generating module 5041, configured to perform at least one thumbnail interception operation on the drawing to be processed according to at least one thumbnail proportion when the thumbnail generating mode is the first thumbnail generating mode, so as to obtain candidate thumbnails corresponding to each thumbnail proportion; screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
In one embodiment, the thumbnail generating mode further comprises a second thumbnail generating mode corresponding to the three-dimensional drawing; generating data including a rotation angle; the thumbnail selection interface generation module 504 further includes a second generation module 5042, configured to determine, when the thumbnail generation mode is a second thumbnail generation mode, a target object in the drawing to be processed, and use a rotation angle; and rotating the target object according to the rotation angle, and intercepting the rotated target object to obtain a second thumbnail corresponding to the target object.
In one embodiment, the thumbnail generation means includes a third thumbnail generation means; generating data including an interface identifier; the thumbnail selection generating module 504 further includes a third generating module 5043, configured to obtain a third thumbnail associated with the drawing to be processed through a thumbnail generating interface of the drawing processing system corresponding to the connection identifier when the current thumbnail generating mode is the third thumbnail generating mode.
In one embodiment, the thumbnail generation means includes a fourth thumbnail generation means associated with the region selection operation; generating data including a target size; the thumbnail generating module 504 further includes a fourth generating module 5044 for determining at least one area drawing in the drawing to be processed in response to an area selection operation for the drawing to be processed when the thumbnail generating mode is a fourth thumbnail generating mode; and intercepting the regional drawing to obtain a fourth thumbnail with a target size corresponding to the regional drawing.
In one embodiment, the drawing processing device 500 further includes a thumbnail update module 508, configured to obtain an update request of a thumbnail sent by the target system; the update request comprises a thumbnail mark of the thumbnail to be updated; determining an original drawing according to the thumbnail identification; determining a thumbnail updating mode corresponding to the original drawing, and generating an updated thumbnail corresponding to the original drawing through the thumbnail updating mode; uploading the updated thumbnail to the target system; the uploaded updating thumbnail is used for triggering the updating processing of the thumbnail corresponding to the thumbnail identification in the target system.
The modules in the drawing processing device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a drawing processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program that instructs associated hardware to perform the method, and that the computer program may be stored on a non-volatile computer readable storage medium, which when executed, may comprise the embodiment flows of the above-described methods. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (11)

1. A method for processing a drawing, the method being applied to CAD software, the method comprising:
Acquiring an electrical drawing or a building construction drawing through a CAD software interface, taking the acquired electrical drawing or building construction drawing as a drawing to be processed, and determining a plurality of thumbnail generation modes of the two-dimensional or three-dimensional drawing to be processed; the plurality of thumbnail generation modes comprise at least two of a first thumbnail generation mode, a second thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode; the first thumbnail generation mode is a mode of acquiring thumbnails under different thumbnail proportions, the second thumbnail generation mode is a mode of acquiring the thumbnails under various rotation angles, the third thumbnail generation mode is a mode of generating the thumbnails through a thumbnail generation interface, and the fourth thumbnail generation mode is at least two modes of acquiring the thumbnails after selecting partial areas in a drawing to be processed;
Determining the generation data corresponding to each of the plurality of thumbnail generation modes, and generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode for each of the plurality of thumbnail generation modes; when the current thumbnail generating mode is the third thumbnail generating mode, an interface related to the version characteristic of CAD software is used as a plug-in the CAD software, the plug-in is subjected to function menu display, and at least one thumbnail is generated by triggering the function menu of the plug-in; when the drawing to be processed is a three-dimensional drawing and the current thumbnail generation mode is a second thumbnail generation mode, traversing the primitives in the drawing to be processed, taking the primitive traversed currently as a target object, intercepting the target object once according to the determined rotation angle, and performing thumbnail processing on a screenshot formed after each interception operation until the target object rotates for one circle to obtain at least one thumbnail;
Taking the thumbnail which can best embody the summary information of the drawing to be processed as a target thumbnail, and displaying a special mark;
Uploading the target thumbnail to a target system; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
2. The method according to claim 1, wherein the method further comprises:
displaying a thumbnail selection interface; the thumbnail selection interface displays at least one thumbnail;
In response to a selection operation for the thumbnail, a target thumbnail in the at least one thumbnail is determined.
3. The method of claim 1, wherein the plurality of thumbnail generation forms includes a first thumbnail generation form corresponding to a two-dimensional drawing; the generated data includes at least one thumbnail scale and a thumbnail number; generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode comprises the following steps:
when the current thumbnail generation mode is a first thumbnail generation mode, carrying out at least one thumbnail interception operation on the drawing to be processed according to the at least one thumbnail proportion to obtain candidate thumbnails corresponding to each thumbnail proportion;
and screening the candidate thumbnails according to the number of the thumbnails to obtain at least one first thumbnail associated with the drawing to be processed.
4. The method of claim 1, wherein the plurality of thumbnail generation forms further comprises a second thumbnail generation form corresponding to a three-dimensional drawing; the generated data includes a rotation angle.
5. The method of claim 1, wherein the plurality of thumbnail generation manners further comprises a third thumbnail generation manner; the generated data includes an interface identification.
6. The method of claim 1, wherein the plurality of thumbnail generation forms further comprises a fourth thumbnail generation form associated with a region selection operation; the generated data includes a target size; generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode comprises the following steps:
when the current thumbnail generation mode is a fourth thumbnail generation mode, determining at least one regional drawing in the to-be-processed drawing in response to a regional selection operation for the to-be-processed drawing;
and intercepting the regional drawing to obtain a fourth thumbnail with a target size corresponding to the regional drawing.
7. The method according to claim 1, wherein the method further comprises:
Acquiring an updating request of the thumbnail sent by the target system; the update request comprises a thumbnail mark of a thumbnail to be updated;
Determining an original drawing according to the thumbnail identification;
Determining a thumbnail updating mode corresponding to the original drawing, and generating an updating thumbnail corresponding to the original drawing through the thumbnail updating mode;
Uploading the updated thumbnail to a target system; the uploaded updating thumbnail is used for triggering the target system to update the thumbnail corresponding to the thumbnail identification.
8. A drawing processing apparatus, the apparatus comprising:
The drawing acquisition module is used for acquiring an electrical drawing or a building construction drawing through a CAD software interface, taking the acquired electrical drawing or building construction drawing as a drawing to be processed, and determining various thumbnail generation modes of the two-dimensional or three-dimensional drawing to be processed; the plurality of thumbnail generation modes comprise at least two of a first thumbnail generation mode, a second thumbnail generation mode, a third thumbnail generation mode and a fourth thumbnail generation mode; the first thumbnail generation mode is a mode of acquiring thumbnails under different thumbnail proportions, the second thumbnail generation mode is a mode of acquiring the thumbnails under various rotation angles, the third thumbnail generation mode is a mode of generating the thumbnails through a thumbnail generation interface, and the fourth thumbnail generation mode is at least two modes of acquiring the thumbnails after selecting partial areas in a drawing to be processed;
The thumbnail generation module is used for determining the generation data corresponding to each of the plurality of thumbnail generation modes, and generating at least one thumbnail according to the current thumbnail generation mode and the generation data corresponding to the current thumbnail generation mode for each of the plurality of thumbnail generation modes; when the current thumbnail generating mode is the third thumbnail generating mode, an interface related to the version characteristic of CAD software is used as a plug-in the CAD software, the plug-in is subjected to function menu display, and at least one thumbnail is generated by triggering the function menu of the plug-in; when the drawing to be processed is a three-dimensional drawing and the current thumbnail generation mode is a second thumbnail generation mode, traversing the primitives in the drawing to be processed, taking the primitive traversed currently as a target object, intercepting the target object once according to the determined rotation angle, and performing thumbnail processing on a screenshot formed after each interception operation until the target object rotates for one circle to obtain at least one thumbnail;
the thumbnail uploading module is used for taking a thumbnail which can best embody the summary information of the drawing to be processed as a target thumbnail, and uploading the target thumbnail to a target system through special identification display; the uploaded target thumbnail is used for triggering the target thumbnail to be displayed on the target system.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202210156131.3A 2022-02-21 Drawing processing method, device, computer equipment and storage medium Active CN114546558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210156131.3A CN114546558B (en) 2022-02-21 Drawing processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210156131.3A CN114546558B (en) 2022-02-21 Drawing processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114546558A CN114546558A (en) 2022-05-27
CN114546558B true CN114546558B (en) 2024-06-04

Family

ID=

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402603A (en) * 2011-11-18 2012-04-04 百度在线网络技术(北京)有限公司 Method and device for providing image abstract information corresponding to thumbnail
CN106126108A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of breviary map generalization method and mobile terminal
CN107509038A (en) * 2017-10-16 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108363535A (en) * 2018-02-09 2018-08-03 网易(杭州)网络有限公司 Display methods, device, storage medium, processor and the terminal of picture
CN108920048A (en) * 2018-06-06 2018-11-30 武汉新迪数字工程系统有限公司 Large scale drawing browsing method, system, server and computer readable storage medium
CN109814784A (en) * 2019-01-07 2019-05-28 平安科技(深圳)有限公司 Picture rotation method, apparatus, computer equipment and storage medium
CN110572723A (en) * 2019-08-30 2019-12-13 华为终端有限公司 Thumbnail generation method and related device
CN112162814A (en) * 2020-09-27 2021-01-01 维沃移动通信有限公司 Image display method and device and electronic equipment
CN112634131A (en) * 2019-09-24 2021-04-09 脸谱公司 Customized thumbnail image generation and selection for digital content
CN112927241A (en) * 2021-03-08 2021-06-08 携程旅游网络技术(上海)有限公司 Picture capturing and thumbnail generating method, system, equipment and storage medium
CN113190893A (en) * 2021-02-24 2021-07-30 万翼科技有限公司 Method for determining steel bar attribute of component and related device
CN113298923A (en) * 2021-05-31 2021-08-24 北京大学 Method, device, equipment and storage medium for generating simulation electronic picture
CN113327313A (en) * 2021-06-18 2021-08-31 中德(珠海)人工智能研究院有限公司 Face animation display method, device, system, server and readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402603A (en) * 2011-11-18 2012-04-04 百度在线网络技术(北京)有限公司 Method and device for providing image abstract information corresponding to thumbnail
CN106126108A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of breviary map generalization method and mobile terminal
CN107509038A (en) * 2017-10-16 2017-12-22 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN108363535A (en) * 2018-02-09 2018-08-03 网易(杭州)网络有限公司 Display methods, device, storage medium, processor and the terminal of picture
CN108920048A (en) * 2018-06-06 2018-11-30 武汉新迪数字工程系统有限公司 Large scale drawing browsing method, system, server and computer readable storage medium
CN109814784A (en) * 2019-01-07 2019-05-28 平安科技(深圳)有限公司 Picture rotation method, apparatus, computer equipment and storage medium
CN110572723A (en) * 2019-08-30 2019-12-13 华为终端有限公司 Thumbnail generation method and related device
CN112634131A (en) * 2019-09-24 2021-04-09 脸谱公司 Customized thumbnail image generation and selection for digital content
CN112162814A (en) * 2020-09-27 2021-01-01 维沃移动通信有限公司 Image display method and device and electronic equipment
CN113190893A (en) * 2021-02-24 2021-07-30 万翼科技有限公司 Method for determining steel bar attribute of component and related device
CN112927241A (en) * 2021-03-08 2021-06-08 携程旅游网络技术(上海)有限公司 Picture capturing and thumbnail generating method, system, equipment and storage medium
CN113298923A (en) * 2021-05-31 2021-08-24 北京大学 Method, device, equipment and storage medium for generating simulation electronic picture
CN113327313A (en) * 2021-06-18 2021-08-31 中德(珠海)人工智能研究院有限公司 Face animation display method, device, system, server and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电厂继电保护整定系统图模库一体化工具的研发;张虹;《中国优秀硕士学位论文全文数据库工程科技II辑》;20110915(第9期);C042-524 *

Similar Documents

Publication Publication Date Title
CN111596911B (en) Method, device, computer equipment and storage medium for generating control
CN113611376A (en) Method and device for constructing molecular structure, computer equipment and storage medium
US8438199B1 (en) System and method for identifying and highlighting a graphic element
CN113711166B (en) Semantic augmented artificial reality experience
CN114546558B (en) Drawing processing method, device, computer equipment and storage medium
CN114546558A (en) Drawing processing method and device, computer equipment and storage medium
WO2021135325A1 (en) Method and apparatus for gis point data rendering, computer device, and storage medium
US11471773B2 (en) Occlusion in mobile client rendered augmented reality environments
CN116860222B (en) Algorithm flow editing method and related device
CN116991600B (en) Method, device, equipment and storage medium for processing graphic call instruction
CN114595018B (en) Three-dimensional display method and device for current flow direction, computer equipment and storage medium
CN117055785A (en) Method, device, equipment and storage medium for loading digital twin model
CN118153532A (en) Method, device, equipment, medium and program product for displaying space chart information
CN117632951A (en) Algorithm flow arranging method, device, computer equipment and storage medium
CN117435100A (en) Element display method, device, computer equipment and storage medium
CN114510370A (en) Backup method and device based on panoramic editor, electronic equipment and storage medium
CN117688638A (en) Electronic drawing generation method, system, electronic device and storage medium
CN116578567A (en) Multidimensional data display method, multidimensional data display device, computer equipment and storage medium
CN117196924A (en) Watermark adding method, watermark adding device, computer equipment and storage medium
CN117389989A (en) Data synchronization method, apparatus, computer device, storage medium, and program product
CN116778084A (en) Three-dimensional model determining method and system
CN116644444A (en) File access method, device, computer equipment and storage medium thereof
CN115330921A (en) Three-dimensional model demonstration method and device, computer equipment and storage medium
CN117290333A (en) Method and device for remotely maintaining database through client
CN116881116A (en) Interface test method, apparatus, computer device, storage medium, and program product

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant