CN115859413B - Data insertion method and device of CAD (computer aided design) client, storage medium and electronic device - Google Patents
- ️Tue Nov 28 2023
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present application, there is provided a data insertion method of a CAD client, optionally, as an optional implementation manner, the data insertion method of the CAD client may be, but is not limited to, applied to the environment shown in fig. 1. Including, but not limited to, CAD client 102 and server 112, CAD client 102 may include, but is not limited to, display 104, processor 106, and memory 108, and server 112 includes database 114 and processing engine 116.
The specific process comprises the following steps:
step S102, the CAD client 102 displays a plurality of thumbnails and acquires a triggered target block request;
steps S104-S106, sending a triggered data transfer request to the server 112 via the network 110, wherein the target tile request is for requesting insertion of the target tile into the CAD client 102;
step S108, the server 112 responds to the target block request, and determines a target thumbnail matched with the target block from a plurality of thumbnails through a processing engine;
in steps S110-S112, a target thumbnail matching the target tile is sent to CAD client 102 via network 110, CAD client 102 inserts the target tile into CAD client 102 using the target thumbnail via processor 106, and the data insertion result is displayed on display 104, and the above-described information for data insertion is stored in memory 108.
In addition to the example shown in fig. 1, the above steps may be performed independently by a client or a server, or cooperatively by a client and a server, such as by CAD client 102 performing the steps of step S108 described above, thereby relieving the processing pressure of server 112. The CAD client 102 includes, but is not limited to, handheld devices (e.g., cell phones), notebook computers, desktop computers, vehicle-mounted devices, etc., and the application is not limited to a particular implementation of the CAD client 102.
Optionally, as an optional implementation manner, as shown in fig. 2, the data insertion method of the CAD client includes:
s202, displaying a plurality of thumbnails in the CAD client;
s204, determining a target thumbnail matched with the target tile from a plurality of thumbnails in response to a target tile request, wherein the target tile request is used for requesting that the target tile be inserted into the CAD client;
s206, inserting the target image block into the CAD client by using the target thumbnail.
Alternatively, in this embodiment, the data insertion method of the CAD client may be applied, but not limited to, in a scenario where engineering drawing is performed using a software platform. In the process of engineering drawing by engineers, there is a need for frequent use of a certain number of graphics, or a need for repeated use of historically drawn graphics after a period of time. For the above requirements, engineers may, but not limited to, use the related graphics to be saved in the form of a tile file to a local computer, open and view the saved tile file in the local computer in case that the related graphics need to be used, and then use the software platform to perform the opening and inserting operations of the target tile in case that the target tile is determined from the saved tile file.
However, the above method of opening and viewing the tile files one by one in the local computer to determine and insert the target tiles has the problems of complex operation, inconvenient viewing and complicated insertion operation, which results in the problem of low data insertion efficiency of the CAD client.
Aiming at the problem of low data insertion efficiency of the CAD client, by utilizing the data insertion method of the CAD client, the viewable thumbnail is directly displayed in the CAD, and the effect of directly inserting the target image block into the CAD client is realized by operating the target thumbnail matched with the target image block, so that the problem of complicated image block insertion operation caused by opening and viewing image block files one by one from a local folder is solved, the operation flow of image block insertion into the CAD client is further simplified, the speed of image block insertion is improved, the technical effect of improving the data insertion efficiency of the CAD client is realized, and the technical problem of low data transmission efficiency of the CAD client in the related technology is further solved.
In addition, by utilizing the data insertion method of the CAD client, the viewable thumbnail is directly displayed in the CAD, so that a user can conveniently and rapidly preview and determine the target thumbnail corresponding to the target image block based on the graphics of the thumbnail, the use experience of the user is improved, the acquisition efficiency of the target thumbnail is improved, and the data insertion efficiency of the CAD client is further improved as a whole.
Alternatively, in the present embodiment, the plurality of thumbnails may be but not limited to be displayed in the form of a thumbnail list in the target area in the CAD client, where the thumbnail list may include but is not limited to a plurality of thumbnails arranged horizontally or vertically, and the plurality of thumbnails in the thumbnail list may include but are not limited to ordered or unordered, including: the method comprises the steps of performing fore-and-aft sorting according to time information generated by the thumbnail, performing fore-and-aft sorting according to the last use time of the thumbnail, performing fore-and-aft sorting according to the use times of the thumbnail in a period of time, and the like.
Alternatively, in the present embodiment, the tile may be, but is not limited to being, a file in a first format, where the first format may be, but is not limited to being, a DWG format, and the tile may be, but is not limited to including, a target tile.
Alternatively, in the present embodiment, the tile may be used to indicate, but not limited to, all or part of the CAD data in the CAD client having the first format, and may be used to indicate, but not limited to, all or part of the graphic in an engineering file in the CAD client.
It should be noted that the tile may be, but not limited to, based on CAD data in the current engineering file, from which graphics data and base point data are determined and created using the image data and the base point data.
It should be noted that, in the tile creation process, tile name information and tile position information may be set, but are not limited to. Wherein the tile identification information may, but is not limited to, include tile name information, and the tile location information may, but is not limited to, location information indicating tile storage.
After the creation of the tile, the background program of the CAD client may, but is not limited to, identify the tile file in the first format, and draw the graph of the tile file in the first format by using a drawing mechanism to generate the thumbnail file in the second format, where the thumbnail name information of the thumbnail file is identical (identical) to the tile name information of the tile file, and the thumbnail file and the tile file are stored in the same location.
It should be noted that the thumbnail files and the tile files may be stored in the same storage location, but not limited to, where the storage location may be used to store multiple data sets, each data set includes one thumbnail file and one tile file, and the icon identification information corresponding to the thumbnail file in each thumbnail corresponds to the tile identification information corresponding to the tile file.
For example, as shown in fig. 3, the above data insertion method of the CAD client is applied to the generation process of the tiles and the thumbnail, and the specific steps include:
step S302, determining target CAD data based on the CAD data in the DWG format in the CAD client, and generating a block file based on the target CAD data;
step S304, judging whether the generation of the block file is successful or not;
step S306, ending the flow when the generation of the block file fails;
step S308, identifying the block file and drawing and generating a thumbnail in a corresponding BMP format by using a drawing mechanism under the condition that the block file is successfully generated;
it should be noted that, the name information of the generated thumbnail is the same as the name information of the corresponding tile file by default;
step S310, judging whether the thumbnail is successfully generated or not;
step S312, ending the flow when the thumbnail generation fails;
step S314, storing the block file and the thumbnail in the same local gallery under the condition that the thumbnail is successfully generated;
step S316, updating the thumbnail to the corresponding network gallery.
Further by way of example, based on step S314 in fig. 3 described above, a local gallery for storing tile files and thumbnails with corresponding name information is shown as local gallery 402 in fig. 4. Wherein in the local tile 402, the slb_cqg.bmp file is a thumbnail file and the slb_cqg.dwg file is a tile file.
Alternatively, in this embodiment, the thumbnail may be, but is not limited to being, a file in a second format, where the second format may be, but is not limited to being, BMP format.
Optionally, in this embodiment, determining the target thumbnail matching the target tile from the plurality of thumbnails may, but is not limited to, determining the target thumbnail from the thumbnail list based on tile identification information, where the tile identification information may, but is not limited to, information associated with the target tile carried by the target tile request.
Alternatively, in the present embodiment, the tile identification information may be, but is not limited to, name information for indicating a target tile, and the icon identification information may be, but is not limited to, name information for indicating a target thumbnail.
Optionally, in this embodiment, the target thumbnail has a matching relationship with the target tile, where the matching relationship may, but is not limited to, indicate that icon identification information associated with the target thumbnail is consistent with tile identification information associated with the target tile, may, but is not limited to, indicate that a similarity between the icon identification information associated with the target thumbnail and the tile identification information associated with the target tile is greater than or equal to a preset similarity threshold, and may, but is not limited to, indicate that the target thumbnail is a thumbnail acquired last time after responding to a tile acquisition request corresponding to the target tile.
It should be noted that the matching relationship may be, but not limited to, a thumbnail that is generated up to date after the target thumbnail is indicated to respond to the tile obtaining request corresponding to the target tile; the method may also, but is not limited to, be used for indicating that the target thumbnail is the thumbnail that is acquired the largest number of times within a period of time after responding to the tile acquisition request corresponding to the target tile.
Alternatively, in the present embodiment, with the target thumbnail, inserting the target tile into the CAD client may, but is not limited to, performing a parameter configuration operation on the target thumbnail, inserting the target tile into a target location in the CAD client at a target scale.
After determining the target thumbnail, the background program of the CAD client searches the target tile file corresponding to the target thumbnail from the storage location, and inserts the corresponding modified tile file into the CAD client based on the parameter configuration operation performed on the target thumbnail.
Further illustrating, the above method for inserting data into a CAD client is applied to a tile insertion scenario of the CAD client, where, as shown in fig. 5, a plurality of thumbnails are displayed in the CAD client through a network gallery 502, where the network gallery 502 may include, but is not limited to, a plurality of sub-galleries, and each sub-gallery may include, but is not limited to, a plurality of branching galleries. For example, a thumbnail with the name information mrszjjd_1 is included in the buried column base node branching gallery in the steel structure sub gallery in the network gallery 502.
It should be noted that the local gallery 504 is used to store related source files of created tiles and thumbnails.
By the embodiment provided by the application, a plurality of thumbnails in the CAD client are displayed; determining a target thumbnail matched with a target tile from the plurality of thumbnails in response to a target tile request, wherein the target tile request is used for requesting that the target tile be inserted into the CAD client; and inserting the target tile into the CAD client by using the target thumbnail.
By utilizing the data inserting method of the CAD client, the viewable thumbnail is directly displayed in the CAD, and the effect of directly inserting the target image block into the CAD client is realized through the target thumbnail operation matched with the target image block, so that the problem of complicated image block inserting operation caused by opening and viewing image block files one by one from a local folder is solved, the operation flow of image block inserting into the CAD client is further simplified, the image block inserting speed is improved, the technical effect of improving the data inserting efficiency of the CAD client is realized, and the technical problem of lower data transmission efficiency of the CAD client in the related technology is further solved.
In addition, by utilizing the data insertion method of the CAD client, the viewable thumbnail is directly displayed in the CAD, so that a user can conveniently and rapidly preview and determine the target thumbnail corresponding to the target image block based on the graphics of the thumbnail, the use experience of the user is improved, the acquisition efficiency of the target thumbnail is improved, and the data insertion efficiency of the CAD client is further improved as a whole.
As an alternative, determining a target thumbnail matching the target tile from a plurality of thumbnails includes:
s1, obtaining block identification information associated with a target block carried in a target block request;
s2, determining a target thumbnail from the thumbnail list based on the block identification information.
Optionally, in this embodiment, the target tile request is used to request that the target tile be inserted into the CAD client, where the target tile request carries tile identification information associated with the target tile, and the tile identification information may, but is not limited to, include tile name information.
The target thumbnail is determined from the thumbnail list based on the tile identification information. For example, from the tile name information, a thumbnail corresponding to the thumbnail name information that matches the tile name information is determined as the target thumbnail from the thumbnails.
According to the embodiment provided by the application, the block identification information associated with the target block carried in the target block request is obtained; based on the tile identification information, a target thumbnail is determined from the thumbnail list. The method comprises the steps of obtaining and utilizing the block identification information carried in a target block request to determine a target block from a thumbnail list, and avoiding a user to open block files stored in a local computer one by one for viewing, so that the determination efficiency of the target block is improved, the insertion efficiency of CAD blocks including the target block is improved as a whole, and the technical effect of improving the insertion efficiency of CAD client data is achieved.
As an alternative, determining the target thumbnail from the thumbnail list based on the tile identification information includes:
s1, acquiring a first thumbnail meeting a first confidence condition from a thumbnail list, wherein the first confidence condition is used for indicating that icon identification information associated with the first thumbnail is consistent with tile identification information; s2, determining the first thumbnail as a target thumbnail; or alternatively, the first and second heat exchangers may be,
s3, obtaining a second thumbnail meeting a second confidence condition from the thumbnail list, wherein the second confidence condition is used for indicating that the similarity between icon identification information and tile identification information associated with the second thumbnail is greater than or equal to a preset similarity threshold; s4, determining the second thumbnail as a target thumbnail; or alternatively, the first and second heat exchangers may be,
S5, acquiring a third thumbnail meeting a third confidence condition from the thumbnail list, wherein the third confidence condition is used for indicating that the third thumbnail is the last acquired thumbnail; and S6, determining the third thumbnail as the target thumbnail.
Alternatively, in the present embodiment, the first confidence condition may be, but is not limited to being, used to indicate that the icon identification information associated with the first thumbnail is consistent with the tile identification information associated with the target tile. The icon identification information may include, but is not limited to, name information of the thumbnail, graphic information, taking the icon identification information as the name information of the thumbnail as an example, and the first confidence condition may be, but is not limited to, the name information indicating the first thumbnail is the same as the name information of the target tile.
In the case where the icon identification information is graphic information of a thumbnail, the first confidence condition may be, but is not limited to, that the graphic information indicating the first thumbnail is identical to the graphic information of the target tile, and that the graphic information indicating the first thumbnail is identical to the graphic information of the target tile may be, but is not limited to, that the graphic shape of the first thumbnail is a scaling of a certain multiple of the graphic shape of the target tile.
Alternatively, in the present embodiment, the second confidence condition may be, but is not limited to, a similarity between the icon identification information and the tile identification information for indicating that the second thumbnail is associated is greater than or equal to a preset similarity threshold. Taking the icon identification information as the name information of the thumbnail as an example, the second confidence condition may be, but is not limited to, that the similarity between the name information indicating the second thumbnail and the name information of the target tile is not less than a preset similarity threshold.
Alternatively, in the present embodiment, the above-mentioned similarity may be determined based on, but not limited to, the coincidence between the name information of the second thumbnail and the name information of the target tile, may be determined based on, but not limited to, the average value of the proportions of the coincidence information of the name information of the thumbnail and the name information of the tile in the respective name information, for example, the name information of the thumbnail a is "heaven" and the name information of the thumbnail B is "mediterranean", the name information of the thumbnail C is "heaven-sky-fly", and alternatively, the above-mentioned similarity between the thumbnail a and the thumbnail B is "0", and the above-mentioned similarity between the thumbnail a and the thumbnail C is "(2/3+2/4)/2=7/12).
Alternatively, in the present embodiment, the third confidence condition may be, but is not limited to, used to indicate that the target thumbnail is the last acquired thumbnail; but may also be, but is not limited to, a thumbnail for indicating that the target thumbnail was last generated; but may also be, but is not limited to, a thumbnail indicating that the target thumbnail is the highest number of acquired thumbnail over a period of time.
By way of further example, as shown in FIG. 6, determining a target thumbnail from a list of thumbnails based on tile identification information may include, but is not limited to, the steps of:
step S602, searching a first thumbnail meeting a first confidence condition from a thumbnail list;
step S604, judging whether the first thumbnail is successfully searched;
step S606, in the case of finding the first thumbnail, determining the first thumbnail as a target thumbnail;
step S608, in the case that the first thumbnail is not found, finding a second thumbnail satisfying the second confidence condition from the target thumbnail;
step S610, judging whether the second thumbnail is successfully searched;
step S612, in the case of finding the second thumbnail, determining the second thumbnail as the target thumbnail;
in step S614, in the case where the second thumbnail is found, a third thumbnail satisfying the third confidence condition is found from the target thumbnails, and the third thumbnail is determined as the target thumbnail.
It should be noted that, based on the tile identification information, the same target thumbnail is searched in the thumbnail list, and in the case of not searching, the target thumbnail which is similar to the target thumbnail is further searched in the thumbnail list, in the case of not searching, according to the personal use habit (or setting) of the user, the thumbnail which is used last time (or the thumbnail which is generated last time or the thumbnail which is used last for a period of time and has the highest frequency) of the history is selected as the target thumbnail, so as to provide abundant independent or combined target thumbnail matching modes for the user, thereby reducing the blind searching operation of the user, improving the determining efficiency of the target thumbnail, and improving the inserting efficiency of the CAD data as a whole.
According to the embodiment of the application, the first thumbnail meeting the first confidence condition is obtained from the thumbnail list, wherein the first confidence condition is used for indicating that the icon identification information associated with the first thumbnail is consistent with the tile identification information; determining the first thumbnail as a target thumbnail; or, obtaining a second thumbnail meeting a second confidence condition from the thumbnail list, wherein the second confidence condition is used for indicating that the similarity between the icon identification information and the tile identification information associated with the second thumbnail is greater than or equal to a preset similarity threshold; determining the second thumbnail as a target thumbnail; or, obtaining a third thumbnail meeting a third confidence condition from the thumbnail list, wherein the third confidence condition is used for indicating that the third thumbnail is the last obtained thumbnail; the third thumbnail is determined to be the target thumbnail. By using the method, a rich independent or combined target thumbnail matching method is provided for the user, so that the blind searching operation of the user is reduced, the determining efficiency of the target thumbnail is improved, and the inserting efficiency of CAD data is improved as a whole.
As an alternative, inserting the target tile into the CAD client using the target thumbnail, comprising:
s1, performing parameter configuration operation on the target thumbnail, and inserting the target image block into a target position in the CAD client side according to the target proportion.
Optionally, in this embodiment, the parameter configuration operation may, but is not limited to, determining a target proportion of the target tile inserted into the CAD client using the input scaling factor, and may, but is not limited to, determining a target position of the target tile inserted into the CAD client using the input position coordinates.
Optionally, in the present embodiment, the target position corresponds to base point data of the target tile.
After determining the target thumbnail, the background program of the CAD client searches the target tile file corresponding to the target thumbnail from the storage location, and inserts the target tile into the target location in the CAD client in a target scale based on the parameter configuration operation performed on the target thumbnail.
By the embodiment provided by the application, the parameter configuration operation is executed on the target thumbnail, and the target image block is inserted into the target position in the CAD client in the target proportion. The user-defined size and position of the target image block are inserted into the CAD client by utilizing parameter configuration operation, so that the user can conveniently and rapidly insert the CAD image block according to the requirement, the use experience of the user is improved, and the insertion efficiency of CAD data is improved.
As an alternative, the parameter configuration operation is performed on the target thumbnail, including at least one of:
s1, executing a first parameter configuration operation by using an input proportion coefficient, and determining a target proportion corresponding to a target block;
s2, executing second parameter configuration operation by using the input position coordinates, and determining the target position corresponding to the target block.
Optionally, in this embodiment, the first parameter configuration operation may, but is not limited to, including inputting a scaling factor in the first parameter configuration interface, and determining the scaling factor as the target scale corresponding to the target tile.
Optionally, in this embodiment, the second parameter configuration operation may, but is not limited to, include inputting position coordinates in the second parameter configuration interface, and determining the position coordinates as the target position corresponding to the target tile.
It should be noted that, the setting of the target proportion and the target position of the target tile may also, but not limited to, in the third parameter configuration interface, implement the position movement and the size scaling of the tile to be inserted based on the form of the component sliding.
For example, as shown in fig. 7, in the first parameter configuration interface 702, a magnification is input, and scaling is performed on a target tile to be inserted by a certain multiple, where in the case where the magnification is greater than 1.0, a tile enlarging operation of a corresponding proportion is performed, and in the case where the magnification is less than 1.0, a tile reducing operation of a corresponding proportion is performed.
Further by way of example, as shown in FIG. 8, in the second parameter configuration interface 802, the component 804 is utilized to control the movement of the tile to be inserted, so as to implement the position movement of the tile to be inserted.
By the embodiment provided by the application, the first parameter configuration operation is executed by utilizing the input proportionality coefficient, and the target proportion corresponding to the target block is determined; and executing a second parameter configuration operation by using the input position coordinates, and determining the target position corresponding to the target block. The user-defined size and position of the target image block are inserted into the CAD client by utilizing parameter configuration operation, so that the user can conveniently and rapidly insert the CAD image block according to the requirement, the use experience of the user is improved, and the insertion efficiency of CAD data is improved.
As an alternative, before displaying the plurality of thumbnails in the CAD client, the method further includes:
s1, creating an initial thumbnail list in a CAD client;
s2, acquiring a plurality of blocks which are successfully created and are in a first format;
s3, executing format conversion operation on each of a plurality of tiles in the first format to obtain a plurality of thumbnails in the second format;
s4, pulling a plurality of thumbnails in a second format to an initial thumbnail list to obtain a target thumbnail list;
Displaying a plurality of thumbnails in a CAD client, comprising:
s5, displaying a plurality of thumbnails through the target thumbnail list.
Alternatively, in the present embodiment, the plurality of thumbnails may be, but are not limited to, displayed by a target thumbnail list, where the target thumbnail may be, but is not limited to, a target area displayed in the CAD client after the user clicks on the thumbnail display tab in the trigger CAD client.
Alternatively, in this embodiment, the target thumbnail list may be obtained by, but not limited to, pulling a plurality of thumbnails in the second format to the initial thumbnail list, where the plurality of thumbnails in the second format may be obtained by, but not limited to, performing format conversion on a plurality of tiles in the first format, the first format may be, but not limited to, DWG format, the second format may be, but not limited to, BMP format, and the initial thumbnail list may be, but not limited to, a blank list.
It should be noted that, the plurality of thumbnails in the thumbnail list may be, but not limited to, ordered arrangement or unordered arrangement, including: the method comprises the steps of performing fore-and-aft sorting according to time information generated by the thumbnail, performing fore-and-aft sorting according to the last use time of the thumbnail, performing fore-and-aft sorting according to the use times of the thumbnail in a period of time, and the like.
After the user successfully creates the image block based on the image in the DWG format of the CAD client, the background program of the CAD client identifies the image block file in the DWG format, draws the image of the image block file through a drawing mechanism to generate the image file in the BMP format, stores the image file in the same folder as the image block file by using the same name as the image block file, and pulls the image file in the BMP format to preview and display the image block shape when the thumbnail list is displayed.
By the embodiment provided by the application, an initial thumbnail list is created in a CAD client; obtaining a plurality of tiles in a first format that were successfully created; performing a format conversion operation on each of a plurality of tiles of a first format to obtain a plurality of thumbnails of a second format; pulling a plurality of thumbnails in a second format to an initial thumbnail list to obtain a target thumbnail list; and displaying the plurality of thumbnails through the target thumbnail list. The thumbnail viewable in the CAD is created, so that a user can conveniently and directly preview and determine the target thumbnail corresponding to the target image block based on the graphics of the plurality of thumbnails, the use experience of the user is improved, the acquisition efficiency of the target thumbnail is improved, and the data insertion efficiency of the CAD client is improved as a whole.
As an alternative, before obtaining the plurality of tiles that were successfully created and displayed in the first format, the method further comprises:
s1, acquiring CAD data in a first format in a CAD client, and determining graph data and base point data in the first format from the CAD data;
s2, using the graphic data and the base point data, creating a block in a first format, wherein the blocks in the first format comprise blocks in the first format.
Optionally, in the present embodiment, the tile of the first format is determined based on the graphics data of the first format and the base point data, wherein the graphics data may be, but is not limited to, graphics information for indicating the tile corresponds, and the base point data may be, but is not limited to, fixed point position information for indicating operations such as zooming or rotating the graphics corresponding to the tile.
It should be noted that the tiles may be, but are not limited to, based on all or part of CAD data in the current engineering file, from which graphics data and base point data are determined and created using the graphics data and base point data.
For example, first, as shown in fig. 9, a tile binning request 902 is performed under a local map library, where the tile binning request 902 is used to request that a tile be created and saved to the local tile;
Further, based on the tile-binning request 902 shown in fig. 9, graphics data and base point data for creating tiles, such as the graphics data 1002 and base point data 1004 shown in fig. 10, are determined from the CAD data in the CAD client;
further, based on the graphic data 1002 and the base point data 1004 shown in fig. 10, corresponding tiles are generated, named and stored, as in the new tile 1102 shown in fig. 11, wherein the name information corresponding to the new tile 1102 is "new tile-01", and is stored in the user gallery in the local gallery.
After the tile is created, the CAD client daemon draws the tile, generates a thumbnail image, stores the thumbnail image in the same location with the same identification as the gallery, and associates the corresponding thumbnail information of the thumbnail image in the corresponding location in the network tile.
It should be noted that, the default name information of the thumbnail is consistent with the corresponding tile, the user may modify, and may select the location of the thumbnail in the thumbnail list, where the thumbnail list includes a plurality of sub-lists, as shown in fig. 5, and the network gallery 502 includes a plurality of sub-galleries, and each sub-gallery includes a plurality of branching galleries.
It will be appreciated that in the specific embodiments of the present application, related data such as user information is involved, and when the above embodiments of the present application are applied to specific products or technologies, user permissions or consents need to be obtained, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
According to another aspect of the embodiment of the present application, there is also provided a data insertion device of a CAD client for implementing the data insertion method of a CAD client described above. As shown in fig. 12, the apparatus includes:
a display unit 1202 for displaying a plurality of thumbnails in the CAD client;
A determining unit 1204, configured to determine, from a plurality of thumbnails, a target thumbnail that matches a target tile in response to a target tile request, where the target tile request is for requesting insertion of the target tile into the CAD client;
an inserting unit 1206 for inserting the target tile into the CAD client using the target thumbnail.
As an alternative, the determining unit 1204 includes:
the first acquisition module is used for acquiring the image block identification information associated with the target image block carried in the target image block request;
the first determining module is used for determining the target thumbnail from the thumbnail list based on the block identification information.
As an alternative, the first determining module includes:
the first obtaining submodule is used for obtaining a first thumbnail meeting a first confidence condition from the thumbnail list, wherein the first confidence condition is used for indicating that icon identification information associated with the first thumbnail is consistent with tile identification information; a first determination sub-module for determining the first thumbnail as a target thumbnail; or alternatively, the first and second heat exchangers may be,
the second obtaining submodule is used for obtaining a second thumbnail meeting a second confidence condition from the thumbnail list, wherein the second confidence condition is used for indicating that the similarity between icon identification information and tile identification information associated with the second thumbnail is larger than or equal to a preset similarity threshold; a second determination sub-module for determining the second thumbnail as a target thumbnail; or alternatively, the first and second heat exchangers may be,
A third obtaining sub-module, configured to obtain a third thumbnail from the thumbnail list, where the third thumbnail meets a third confidence condition, where the third confidence condition is used to indicate that the third thumbnail is the last obtained thumbnail; and a third determination sub-module for determining the third thumbnail as the target thumbnail.
As an alternative, the inserting unit 1206 includes:
and the configuration module is used for executing parameter configuration operation on the target thumbnail and inserting the target image block into the target position in the CAD client in a target proportion.
As an alternative, the configuration module includes at least one of the following:
the first configuration submodule is used for executing first parameter configuration operation by utilizing the input proportionality coefficient and determining a target proportion corresponding to a target block;
and the second configuration submodule is used for executing second parameter configuration operation by using the input position coordinates and determining the target position corresponding to the target block.
As an alternative, the apparatus further includes:
a first creation module for creating an initial thumbnail list in the CAD client before displaying the plurality of thumbnails in the CAD client;
a second obtaining module, configured to obtain a plurality of tiles in the first format that are successfully created before the plurality of thumbnails in the CAD client are displayed;
The conversion module is used for executing format conversion operation on each of the plurality of tiles in the first format before displaying the plurality of thumbnails in the CAD client to obtain a plurality of thumbnails in the second format;
the pulling module is used for pulling the thumbnails in the second format to an initial thumbnail list before displaying the thumbnails in the CAD client to obtain a target thumbnail list;
the display unit 1202 includes:
and the display module is used for displaying a plurality of thumbnails through the target thumbnail list.
As an alternative, the apparatus further includes:
the second determining module is used for acquiring the CAD data of the first format in the CAD client before acquiring the plurality of tiles which are successfully created and display the first format, and determining the graph data and the base point data of the first format from the CAD data;
and a second creation module for creating tiles of the first format using the graphics data and the base point data before obtaining the tiles of the first format that were successfully created and displayed, wherein the tiles of the first format include tiles of the first format.
Specific embodiments may refer to examples shown in the data insertion method of the CAD client, which are not described herein.
According to a further aspect of the embodiments of the present application, there is also provided an electronic device for implementing the data insertion method of a CAD client as described above, as shown in fig. 13, the electronic device comprising a memory 1302 and a processor 1304, the memory 1302 having stored therein a computer program, the processor 804 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, displaying a plurality of thumbnails in a CAD client;
s2, determining a target thumbnail matched with the target block from a plurality of thumbnails in response to a target block request, wherein the target block request is used for requesting the target block to be inserted into a CAD client;
and S3, inserting the target image block into the CAD client by using the target thumbnail.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 13 is only schematic, and the electronic device may also be a terminal device such as a smart phone (e.g. an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 13 is not limited to the structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
The memory 1302 may be configured to store software programs and modules, such as program instructions/modules corresponding to the data insertion method and apparatus of the CAD client in the embodiment of the present application, and the processor 1304 executes the software programs and modules stored in the memory 1302, thereby performing various functional applications and data processing, that is, implementing the data insertion method of the CAD client described above. Memory 1302 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 1302 may further include memory located remotely from processor 1304, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Wherein the memory 1302 may be specifically, but not limited to, information for a plurality of thumbnails, a target tile request, and the like. As an example, as shown in fig. 13, the memory 1302 may include, but is not limited to, a display unit 1202, a determination unit 1204, and an insertion unit 1206 in a data transmission apparatus including the CAD client. In addition, other module units in the data transmission device of the CAD client may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1306 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission means 1306 comprises a network adapter (Network Interface Controller, NIC) which can be connected to other network devices and routers via network lines so as to communicate with the internet or a local area network. In one example, the transmission device 1306 is a Radio Frequency (RF) module for communicating wirelessly with the internet.
In addition, the electronic device further includes: a display 1308 for displaying the plurality of thumbnail images, the target tile request, and the like; and a connection bus 1310 for connecting the respective module components in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer program product comprising a computer program/instruction containing program code for executing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. When executed by a central processing unit, performs various functions provided by embodiments of the present application.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It should be noted that the computer system of the electronic device is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
The computer system includes a central processing unit (Central Processing Unit, CPU) which can execute various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) or a program loaded from a storage section into a random access Memory (Random Access Memory, RAM). In the random access memory, various programs and data required for the system operation are also stored. The CPU, the ROM and the RAM are connected to each other by bus. An Input/Output interface (i.e., I/O interface) is also connected to the bus.
The following components are connected to the input/output interface: an input section including a keyboard, a mouse, etc.; an output section including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like, and a speaker, and the like; a storage section including a hard disk or the like; and a communication section including a network interface card such as a local area network card, a modem, and the like. The communication section performs communication processing via a network such as the internet. The drive is also connected to the input/output interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, and the like are mounted on the drive as needed so that a computer program read therefrom is mounted into the storage section as needed.
In particular, the processes described in the various method flowcharts may be implemented as computer software programs according to embodiments of the application. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium. The computer program, when executed by a central processing unit, performs the various functions defined in the system of the application.
According to one aspect of the present application, there is provided a computer-readable storage medium, from which a processor of a computer device reads the computer instructions, the processor executing the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a plurality of thumbnails in a CAD client;
s2, determining a target thumbnail matched with the target block from a plurality of thumbnails in response to a target block request, wherein the target block request is used for requesting the target block to be inserted into a CAD client;
and S3, inserting the target image block into the CAD client by using the target thumbnail.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.