Design drawing processing method, device and terminal equipment

By obtaining user permissions and historical operation data, the display method of the design drawing is optimized, and only some layer blocks that the user is interested in are loaded, which solves the problem of low loading efficiency of terminal devices and achieves more efficient design drawing loading.

CN114840893BActive Publication Date: 2025-09-16ALIBABA (CHINA) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210476464.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-09-16
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the prior art, when loading architectural drawings, terminal devices need to load complete design drawings, which results in large system resource usage, low loading efficiency, and lag.

Method used

By obtaining the user's user permissions and historical operation data, the display content and display method of the design drawing are determined, only the layer blocks that the user is interested in are loaded, and the display method is optimized in combination with the device parameters.

Benefits of technology

Improves the loading effect and efficiency of design drawings, avoiding system resource occupation and lag caused by loading all details.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840893B_ABST
    Figure CN114840893B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, and terminal device for processing a design drawing. The method comprises: obtaining user permissions of a user; determining the display content of the design drawing based on the user permissions; obtaining the user's historical operation data on the design drawing and device parameters of a terminal device in response to a display request for the design drawing, and determining a display mode for the display content based on the historical operation data and the device parameters; and displaying the display content of the design drawing based on the display mode. This improves the loading efficiency of design drawings.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method, apparatus and terminal device for processing a design drawing. Background Art

[0002] In the field of smart buildings, construction workers can obtain architectural drawings of the construction area through terminal devices to obtain construction progress.

[0003] Currently, when a terminal device retrieves architectural drawings, it can load the complete drawings for construction workers to view. For example, the terminal device can load all the details of the blueprint, allowing construction workers to view every architectural detail. However, this consumes a large amount of system resources on the terminal device, causing lags while the blueprint is loaded, resulting in low loading efficiency. Summary of the Invention

[0004] The present application provides a design drawing processing method, apparatus and terminal device, which are used to solve the technical problem of low loading efficiency of design drawings in the prior art.

[0005] In a first aspect, the present application provides a method for processing a design drawing, the method comprising:

[0006] Get the user's user permissions;

[0007] Determining the display content of the design drawing according to the user authority;

[0008] In response to a request to display the design drawing, acquiring historical operation data of the user on the design drawing and device parameters of a terminal device, and determining a display mode of the display content based on the historical operation data and the device parameters;

[0009] According to the display mode, the display content of the design drawing is displayed.

[0010] In a possible implementation, determining, based on the historical operation data and the device parameters, a display mode for the display content includes:

[0011] Determining a display layer of the display content and a layer block of the display layer according to the historical operation data;

[0012] The display mode is determined according to the device parameters, the display layer and the layer block.

[0013] In a possible implementation, determining the display layer of the display content and the layer block of the display layer according to the historical operation data includes:

[0014] Determining, based on the historical operation data, the first layer of the display content last displayed by the terminal device and the first layer block displayed by the first layer;

[0015] The first layer is determined as the display layer, and the first layer block is determined as the layer block.

[0016] In a possible implementation, determining the display layer of the display content and the layer block of the display layer according to the historical operation data includes:

[0017] determining, based on the historical operation data, a second layer displayed the most times when the terminal device displays the display content within a preset time period, and a second layer block displayed by the second layer;

[0018] The second layer is determined as the display layer, and the second layer block is determined as the layer block.

[0019] In a possible implementation, determining the display mode according to the device parameters, the display layer, and the layer block includes:

[0020] Determining a first processing resource required by the terminal device to load the display layer and the layer block;

[0021] determining a second processing resource of the terminal device according to the device parameter;

[0022] The display mode is determined according to the first processing resource and the second processing resource.

[0023] In a possible implementation, determining the display mode according to the first processing resource and the second processing resource includes:

[0024] If the first processing resource is less than the second processing resource, and the first processing resource is less than or equal to a preset threshold, determining the display mode to be rendering the layer block in the display layer;

[0025] If the first processing resource is greater than or equal to the second processing resource, the display mode is determined to be the layer block in the display layer loaded by the receiving server.

[0026] In a possible implementation, determining, based on the user authority, the display content of the design drawing includes:

[0027] Obtaining a preset relationship, where the preset relationship includes at least one permission and display content corresponding to each permission;

[0028] The display content is determined according to the user authority and the preset relationship.

[0029] In a second aspect, the present application provides a design drawing processing device, comprising a first acquisition module, a determination module, a second acquisition module, and a display module, wherein:

[0030] The first acquisition module is used to obtain user permissions of the user;

[0031] The determination module is used to determine the display content of the design drawing according to the user authority;

[0032] The second acquisition module is used to, in response to a display request for the design drawing, acquire the user's historical operation data on the design drawing and the device parameters of the terminal device, and determine the display mode of the display content according to the historical operation data and the device parameters;

[0033] The display module is used to display the display content of the design drawing according to the display mode.

[0034] In a possible implementation manner, the second acquisition module is specifically configured to:

[0035] Determining a display layer of the display content and a layer block of the display layer according to the historical operation data;

[0036] The display mode is determined according to the device parameters, the display layer and the layer block.

[0037] In a possible implementation manner, the second acquisition module is specifically configured to:

[0038] Determining, based on the historical operation data, the first layer of the display content last displayed by the terminal device and the first layer block displayed by the first layer;

[0039] The first layer is determined as the display layer, and the first layer block is determined as the layer block.

[0040] In a possible implementation manner, the second acquisition module is specifically configured to:

[0041] determining, based on the historical operation data, a second layer displayed the most times when the terminal device displays the display content within a preset time period, and a second layer block displayed by the second layer;

[0042] The second layer is determined as the display layer, and the second layer block is determined as the layer block.

[0043] In a possible implementation manner, the second acquisition module is specifically configured to:

[0044] Determining a first processing resource required by the terminal device to load the display layer and the layer block;

[0045] determining a second processing resource of the terminal device according to the device parameter;

[0046] The display mode is determined according to the first processing resource and the second processing resource.

[0047] In a possible implementation manner, the second acquisition module is specifically configured to:

[0048] If the first processing resource is less than the second processing resource, and the first processing resource is less than or equal to a preset threshold, determining the display mode to be rendering the layer block in the display layer;

[0049] If the first processing resource is greater than or equal to the second processing resource, the display mode is determined to be the layer block in the display layer loaded by the receiving server.

[0050] In a possible implementation, the determining module is specifically configured to:

[0051] Obtaining a preset relationship, where the preset relationship includes at least one permission and display content corresponding to each permission;

[0052] The display content is determined according to the user authority and the preset relationship.

[0053] In a third aspect, the present application provides a terminal device, including: a processor, a memory;

[0054] The memory stores computer-executable instructions;

[0055] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for processing the design drawing as described in the first aspect.

[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method for processing the design drawing described in any one of the foregoing items.

[0057] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method for processing a design drawing as described in any one of the above items.

[0058] The present application provides a method, apparatus and terminal device for processing a design drawing, which obtains the user's user rights, determines the display content of the design drawing based on the user rights, obtains the user's historical operation data on the design drawing and the device parameters of the terminal device in response to the display request of the design drawing, and determines the display mode of the display content based on the historical operation data and the device parameters, and displays the display content of the design drawing based on the display mode. In the above method, when the terminal device loads the display content in the design drawing, the display mode of the display content can be determined based on the user's historical operation data on the design drawing and the device parameters of the terminal device. Since the historical operation data can accurately reflect the user's habit of browsing the design drawing, the terminal device can accurately load the part of the layer blocks that the user is concerned about in the display content of the design drawing based on the historical operation data, and thus does not need to load all the details of the design drawing, thereby improving the loading effect and loading efficiency of the design drawing. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0060] Figure 2 A schematic flow chart of a method for processing a design drawing provided in an embodiment of the present application;

[0061] Figure 3 A schematic diagram of a process for receiving a display request provided in an embodiment of the present application;

[0062] Figure 4 A schematic diagram of a layer block provided in an embodiment of the present application;

[0063] Figure 5 A schematic diagram of a flow chart for determining a display mode of display content provided in an embodiment of the present application;

[0064] Figure 6 A schematic diagram of a process for determining display layers and layer blocks provided in an embodiment of the present application;

[0065] Figure 7 A schematic diagram of another process for determining display layers and layer blocks provided in an embodiment of the present application;

[0066] Figure 8 A schematic diagram of a process of a design drawing processing method provided in an embodiment of the present application;

[0067] Figure 9 A schematic diagram of the structure of a device for processing a design drawing provided in an embodiment of the present application;

[0068] Figure 10 Schematic diagram of the hardware structure of the terminal device provided for this application. DETAILED DESCRIPTION

[0069] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0070] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0071] To facilitate understanding, the concepts involved in the embodiments of the present application are first explained.

[0072] Terminal device: A device with wireless transceiver capabilities. Terminal devices can be deployed on land, including indoors or outdoors, handheld, wearable, or vehicle-mounted; they can also be deployed on water (such as ships); they can also be deployed in the air (such as airplanes, balloons, and satellites). The terminal device can be a mobile phone, a tablet computer, a computer with wireless transceiver capabilities, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a vehicle-mounted terminal device, a wireless terminal in self-driving, a wireless terminal in remote medical care, a wireless terminal in smart grids, a wireless terminal in transportation safety, a wireless terminal in smart cities, a wireless terminal in smart homes, a wearable terminal device, etc. The terminal devices involved in the embodiments of the present application may also be referred to as terminals, user equipment (UE), access terminal devices, vehicle-mounted terminals, industrial control terminals, UE units, UE stations, mobile stations, mobile stations, remote stations, remote terminal devices, mobile devices, UE terminal devices, wireless communication devices, UE agents, or UE devices, etc. The terminal devices may also be fixed or mobile.

[0073] In the related art, in the field of smart buildings, construction workers can use terminal devices to obtain architectural drawings of the construction area to obtain construction progress. Currently, when a terminal device obtains architectural drawings, the terminal device needs to load the complete architectural drawings. For example, when a construction worker wants to browse the architectural drawings of a construction site, the terminal device can load all the contents of the architectural drawings so that the construction worker can browse all the building details in the architectural drawings. However, different construction workers focus on different construction areas, and loading the complete design drawings on the terminal device consumes a lot of system resources, causing the terminal device to freeze when loading the architectural drawings, which in turn leads to low loading efficiency of the design drawings.

[0074] In order to solve the technical problem of low loading efficiency of design drawings in related technologies, an embodiment of the present application provides a method for processing design drawings, which obtains the user's user rights, and determines the display content of the design drawing based on the user rights, obtains the user's historical operation data on the design drawing and the device parameters of the terminal device in response to the display request of the design drawing, and determines the display layer of the display content and the layer block of the display layer based on the historical operation data, determines the display mode based on the device parameters, the display layer and the layer block, and displays the display content of the design drawing based on the display mode. In the above method, since the historical operation data can accurately reflect the user's habit of browsing the design drawing, the terminal device can accurately load the part of the layer blocks that the user is concerned about in the display content of the design drawing based on the historical operation data, and determine the display mode in combination with the device parameters, so that the terminal device does not need to load all the details of the design drawing, thereby improving the loading effect and loading efficiency of the design drawing.

[0075] Next, combine Figure 1 , the application scenarios of the embodiments of the present application are described.

[0076] Figure 1 This is a schematic diagram of an application scenario provided by the embodiment of this application. Figure 1, including terminal devices. Among them, the display page of the terminal device includes the logged-in account, department and user permissions. Among them, the account is user A, the department of user A is the water and electricity department, and the user permissions of user A are waterway drawings and circuit drawings. The terminal device determines that the display content is waterway drawings and circuit drawings based on the user permissions of user A. When the terminal device receives a display request for a water and electricity design drawing, the terminal device can obtain the device parameters of the terminal device, as well as the user's historical operation data on the waterway drawings and circuit drawings, and determine the display mode of the waterway drawings and circuit drawings based on the historical operation data and device parameters. The terminal device displays the water and electricity drawings on the display page through the display mode (superimposed display of the waterway drawings and circuit drawings). In this way, the terminal device can accurately determine the part of the waterway drawings and part of the circuit drawings that the user is concerned about in the display content of the design drawing based on the historical operation data, and determine the display mode in combination with the device parameters, so that the terminal device does not need to load all the details of the design drawing, thereby improving the loading effect and loading efficiency of the design drawing.

[0077] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0078] Figure 2 This is a flow chart of a method for processing a design drawing provided in an embodiment of the present application. Figure 2 , the method may include:

[0079] S201: Obtain the user's user rights.

[0080] The execution subject of this application can be a terminal device, or a design drawing processing device set in the terminal device. The design drawing processing device can be implemented by software, or by a combination of software and hardware.

[0081] Optionally, user permissions can be permissions for users to browse design drawings. For example, in the field of intelligent buildings, the design drawings of a building area include architectural drawings for multiple scenarios (e.g., plumbing drawings, elevator drawings, etc.), and different user permissions allow browsing of different architectural drawings. For example, if user A is a plumber in a building area, and user B is an elevator operator in the building area, user A's user permission allows browsing of plumbing drawings, while user B's user permission allows browsing of elevator drawings.

[0082] Optionally, the terminal device can determine the user's user rights based on the logged-in user. For example, the terminal device can obtain the user ID of the logged-in user and the correspondence between each ID and user rights stored in the database, and then determine the user's user rights based on the user ID and the correspondence between each ID and user rights. For example, the correspondence between the ID and the user rights can be as shown in Table 1:

[0083] Table 1

[0084] Logo User permissions Logo 1 User Permission 1 Logo 2 User Permission 2 Logo 3 User Permission 3 …… ……

[0085] It should be noted that Table 1 is only an example of the correspondence between each identifier and the user authority, and is not intended to limit the correspondence between each identifier and the user authority.

[0086] For example, if the user identifier of the logged-in user of the terminal device is identifier 1, the user permission corresponding to the user is user permission 1; if the user identifier of the logged-in user of the terminal device is identifier 2, the user permission corresponding to the user is user permission 2; if the user identifier of the logged-in user of the terminal device is identifier 3, the user permission corresponding to the user is user permission 3.

[0087] S202: Determine the display content of the design drawing according to the user authority.

[0088] Optionally, the displayed content is the content that users can browse in the design drawing. For example, the displayed content may include water and electricity drawings, pipeline drawings, exhaust drawings, elevator drawings, etc. Different users with different permissions can browse different drawings. Optionally, the display content of the design drawing can be determined according to the following feasible implementation method: obtaining a preset relationship. The preset relationship includes at least one permission and the display content corresponding to each permission. For example, the preset relationship can be shown in Table 2:

[0089] Table 2

[0090] Permissions Display content Permission 1 Water and electricity drawings Permission 2 Piping drawings Permission 3 Water and electricity drawings, elevator drawings …… ……

[0091] It should be noted that Table 2 is only an example of the preset relationship and does not limit the preset relationship.

[0092] The displayed content is determined based on user permissions and preset relationships. For example, if the user's user permission is permission 1, the displayed content that the user can view is determined to be the water and electricity drawings in the design drawing; if the user's user permission is permission 2, the displayed content that the user can view is determined to be the piping drawings in the design drawing; if the user's user permission is permission 3, the displayed content that the user can view is determined to be the water and electricity drawings and elevator drawings in the design drawing. By using user permissions and preset relationships, the terminal device can accurately determine the range of drawings that the user can view, thereby preventing the user from viewing drawings in other construction areas and improving the security of the use of design drawings.

[0093] S203: In response to the design drawing display request, obtain the user's historical operation data on the design drawing and the device parameters of the terminal device.

[0094] Optionally, the display request is used to indicate the design drawings that the terminal device can display. The display request may include an identifier of the design drawing. For example, when the terminal device receives the display request, the terminal device may determine the design drawing that the terminal device needs to display based on the identifier in the display request.

[0095] Next, combine Figure 3 , describes the process of a terminal device receiving a display request.

[0096] Figure 3 This is a schematic diagram of a process for receiving a display request provided by an embodiment of the present application. Figure 3 , including a terminal device. The display page of the terminal device is a drawing page. The drawing page includes icons for architectural drawing A, architectural drawing B, and architectural drawing C. When a user clicks the icon for architectural drawing A, the terminal device generates a display request for architectural drawing A and, based on the display request, displays the display content corresponding to the user's permission.

[0097] Optionally, the historical operation data may be the user's operation data on the design within a historical period. For example, the historical operation data may be the user's operation data on the circuit drawings in the design within the past month, or the historical operation data may be the user's operation data on the circuit drawings in the design last time, etc.

[0098] Optionally, the user's historical operation data on the design drawing can be obtained through a display request. For example, if the display request indicates that the terminal device needs to display design drawing A, the terminal device can obtain the user's historical operation data on design drawing A; if the display request indicates that the terminal device needs to display design drawing B, the terminal device can obtain the user's historical operation data on design drawing B.

[0099] Optionally, the device parameters of the terminal device are used to indicate the processing capabilities of the terminal device. Optionally, the device parameters of the terminal device may include at least one of the following: the terminal device's network resources and the terminal device's system resources. Optionally, the terminal device's network resources may be the terminal device's network signal. For example, the terminal device's network resources may be used to determine the network strength when the terminal device receives a request to display a design drawing. Optionally, the terminal device's system resources may be the terminal device's software and / or hardware resources. For example, the terminal device's system resources may include idle CPU resources, idle GPU resources, and other resources.

[0100] Optionally, when the terminal device receives a request to display the design drawing, the terminal device may obtain device parameters of the terminal device. For example, when the terminal device receives a request to display the design drawing, the terminal device may obtain the current network status, idle CPU resources, idle GPU resources, etc.

[0101] S204: Determine a display mode of the display content according to historical operation data and device parameters.

[0102] Optionally, the display mode of the display content can be determined according to the following feasible implementation method: the display layer of the display content and the layer blocks of the display layer are determined according to the historical operation data. For example, the terminal device can obtain at least one display layer to be displayed in the design drawing, and the layer blocks when each display layer is displayed, based on the historical operation data corresponding to the design drawing. For example, if the terminal device determines through the historical operation data that the terminal device needs to open layer A and layer B in the water and electricity drawing, as well as 10 layer blocks in layer A and 5 layer blocks in layer B, the terminal device determines layer A and layer B as display layers, and determines 15 layer blocks as layer blocks to be displayed.

[0103] Optionally, display layers and layer blocks are based on the data in the design drawing. When users edit the display layer, the corresponding data in the design drawing is also updated. For example, if a user updates the data in a water and electricity drawing, the corresponding water and electricity drawing data in the design drawing is also updated synchronously. This way, the layer data and the design drawing data in the platform are unified, meeting users' editing needs beyond viewing.

[0104] Optionally, the displayed content includes multiple layers. For example, when the displayed content is a water and electricity diagram in a design drawing, the water and electricity diagram includes multiple layers, and the content of the water and electricity diagram displayed on each layer is different. For example, the water and electricity diagram includes layer A, layer B, and layer C, where layer A is the circuit diagram for area A, layer B is the waterway diagram for area B, and layer C is the circuit diagram and waterway diagram for area C.

[0105] Optionally, each layer includes multiple layer blocks. For example, each layer can be evenly divided into multiple layer blocks, and each layer block includes corresponding layer content. For example, a water and electricity drawing includes layer A, layer B, and layer C. The content of layer A is displayed through 1,000 layer blocks, the content of layer B is displayed through 100 layer blocks, and the content of layer C is displayed through 10 layer blocks. When the terminal device displays the content of layer A, the terminal device can determine the layer block to be displayed from the 1,000 layer blocks, and then display layer A. Optionally, the number of layer blocks of multiple layers corresponding to the drawing can be the same. For example, a water and electricity drawing includes layer A and layer B. Layer A can include 100 layer blocks, and layer B can also include 100 layer blocks.

[0106] Next, combine Figure 4 , describe the layer block.

[0107] Figure 4 This is a schematic diagram of a layer block provided in an embodiment of the present application. Figure 4 , including water and electricity drawings for preset areas (displayed content determined by user permissions). The preset areas include Area A and Area B. The water and electricity drawings include Layer A, Layer B, and Layer C. Layer A contains the waterway content of Area A, Layer B contains the circuit content of Area A, and Layer C contains the waterway content and circuit content of Area B. Layer A includes 16 layer blocks, Layer B includes 16 layer blocks, and Layer C includes 4 layer blocks.

[0108] Optionally, the display mode is determined based on device parameters, display layers, and layer blocks. For example, the terminal device can determine the display mode of the display content based on the processing power of the terminal device indicated by the device parameters and the processing power required to render the display layers and layer blocks. For example, when the terminal device has a large processing power, the terminal device can load the display layer corresponding to the display content and the layer blocks to be displayed in the display layer. In this way, when the terminal device receives a display request for a design drawing, it can flexibly adjust the display mode of the display content of the design drawing, thereby improving the display flexibility of the design drawing.

[0109] S205: Display the display content of the design drawing according to the display mode.

[0110] Optionally, after the terminal device determines the display mode of the display content of the design drawing, the display content of the design drawing can be displayed on the screen of the terminal device according to the display mode. For example, if the display content of the design drawing is a water and electricity drawing, and the display mode is to locally load layer A and layer B of the water and electricity drawing, as well as 10 layer blocks in layer A and 10 layer blocks in layer B, the terminal device will display layer A and layer B of the water and electricity drawing according to the display mode, where 10 layer blocks are displayed in layer A and 10 layer blocks are displayed in layer B.

[0111] The embodiment of the present application provides a method for processing a design drawing, which obtains the user's user rights, and determines the display content of the design drawing based on the user rights, obtains the user's historical operation data on the design drawing and the device parameters of the terminal device in response to the display request of the design drawing, and determines the display layer and layer blocks of the display layer based on the historical operation data, determines the display mode based on the device parameters, display layer and layer blocks, and displays the display content of the design drawing based on the display mode. In the above method, since the historical operation data can accurately reflect the user's habit of browsing the design drawing, the terminal device can accurately load the part of the layer blocks that the user is concerned about in the display content of the design drawing based on the historical operation data, and determine the display mode in combination with the device parameters. In this way, the terminal device does not need to load all the details of the design drawing, thereby improving the loading effect and loading efficiency of the design drawing.

[0112] exist Figure 2 Based on the embodiment shown below, combined with Figure 5 , further explains the process of determining the display mode of the display content in the above-mentioned design drawing processing method.

[0113] Figure 5 A schematic diagram of a flow chart for determining a display mode of display content provided in an embodiment of the present application.

[0114] See Figure 5 The method flow includes:

[0115] S501: Determine a display layer of display content and a layer block of the display layer according to historical operation data.

[0116] Optionally, the display layer for displaying content and the layer block for the display layer may be determined according to the following two feasible implementation methods:

[0117] A possible implementation:

[0118] Based on historical operation data, the first layer of the display content last displayed on the terminal device, as well as the first layer block displayed by the first layer, are determined. The first layer is the layer of the display content last displayed on the terminal device. For example, if the display content is a water and electricity plan, and the layers of the water and electricity plan last displayed on the terminal device are layers A and B, then layers A and B are determined as the first layers of the water and electricity plan.

[0119] Optionally, the first layer block is the layer block when the first layer is displayed. For example, when the first layer of a water and electricity drawing is layer A and layer B, if the terminal device last displayed 5 layer blocks in layer A and 10 layer blocks in layer B, the terminal device determines these 15 layer blocks as the first layer block.

[0120] Optionally, the first layer is determined as the display layer, and the first layer blocks are determined as layer blocks. For example, the first layer of a water and electricity drawing includes layer A and layer B, layer A includes five first layer blocks, and layer B includes five first layer blocks. In this case, the terminal device determines layer A and layer B as the display layers, and determines the ten layer blocks as layer blocks to be displayed.

[0121] Next, combine Figure 6 , which explains the process of determining display layers and layer blocks.

[0122] Figure 6 This is a schematic diagram of a process for determining display layers and layer blocks provided by an embodiment of the present application. Figure 6 , including: water and electricity drawings and terminal equipment. Among them, the water and electricity drawings include layer A, layer B and layer C. Layer A includes 16 layer blocks, layer B includes 16 layer blocks, and layer C includes 4 layer blocks. When the historical operation data indicates that the terminal device last displayed the layer of the water and electricity drawings as layer B, the terminal device determines layer B as the display layer, and determines the 4 middle layer blocks of layer B as the layer blocks to be displayed (the layer blocks displayed for the last time). In this way, the terminal device can load the layer blocks of some layers in the water and electricity drawings according to the historical operation data, without loading all the layers of the water and electricity drawings, thereby improving the loading efficiency of the water and electricity drawings.

[0123] Another possible implementation:

[0124] Based on historical operation data, the second layer displayed most frequently by the terminal device during a preset period of time, as well as the second layer blocks displayed by the second layer, are determined. The second layer is the layer whose content was displayed most frequently by the terminal device during the preset period of time. For example, if the displayed content is a water and electricity plan, and if the layers displayed most frequently by the terminal device during the past week were Layer A and Layer B, then Layer A and Layer B are determined as the second layer of the water and electricity plan.

[0125] Optionally, the second layer displayed the most times can be a single layer or multiple layers. For example, in actual application, each time a terminal device displays a design drawing, multiple layers corresponding to the display content are displayed. Therefore, the second layer displayed the most times within a preset time period can also include multiple layers.

[0126] Optionally, the second layer may be a layer that has been displayed more than a first threshold number of times when the terminal device displays the display content within a preset time period. For example, when the display content is a water and electricity plan, if the terminal device has displayed the water and electricity plan more than the first threshold number of times over the past week, the layer A and layer B are included in the second layer of the water and electricity plan.

[0127] Optionally, the second layer blocks are the layer blocks used when the second layer is displayed. For example, when the second layer of a water and electricity drawing is layer A and layer B, if the terminal device displayed layer A with 5 layers displayed most frequently in the past week, and displayed layer B with 10 layers displayed most frequently in the past week, the terminal device will determine these 15 layers as the second layer blocks.

[0128] Optionally, the second layer blocks may be layer blocks that have been displayed more than a second threshold value when the terminal device displays the second layer within a preset period of time. For example, if the second layer of the displayed content is layer A and layer B, and the terminal device displays layer A and layer B within the past week, if the display count of 5 layer blocks in layer A is greater than the second threshold value, and the display count of 10 layer blocks in layer B is greater than the second threshold value, then the terminal device determines these 15 layer blocks as the second layer blocks.

[0129] Optionally, the second layer is determined as the display layer, and the second layer blocks are determined as layer blocks. For example, the second layer of a water and electricity drawing includes layer A and layer B, layer A includes five second layer blocks, and layer B includes five second layer blocks. In this case, the terminal device determines layer A and layer B as the display layers, and determines the ten layer blocks as layer blocks to be displayed.

[0130] Next, combine Figure 7 , which explains the process of determining display layers and layer blocks.

[0131] Figure 7 This is another process diagram for determining display layers and layer blocks provided by an embodiment of the present application. Figure 7 , including: water and electricity drawings and terminal equipment. The water and electricity drawings include layer A, layer B, and layer C. Layer A includes 16 layer blocks, layer B includes 16 layer blocks, and layer C includes 4 layer blocks.

[0132] See Figure 7 If historical operation data indicates that the layer displayed most frequently by the terminal device within a preset period is Layer C, the terminal device will determine Layer C as the display layer and the two layer blocks to the right of Layer C as the layers to be displayed (with the most displays). This way, when loading a hydropower drawing, the terminal device does not need to load all the details of the drawing, thereby improving loading efficiency.

[0133] S502: Determine the display mode according to the device parameters, display layer and layer block.

[0134] Optionally, the display mode can be determined according to the following feasible implementation method: determine the first processing resources required for the terminal device to load the display layer and layer blocks, determine the second processing resources of the terminal device according to the device parameters, and determine the display mode based on the first processing resources and the second processing resources.

[0135] Optionally, the first processing resources are resources required by the terminal device to load display layers and layer blocks. For example, if the terminal device requires 50% of the hardware resources (CPU resources, GPU resources, etc.) to render display layers and layer blocks, the first processing resources are 50% of the hardware resources. Optionally, the second processing resources may be idle resources of the terminal device. For example, if the terminal device currently has 80% idle hardware resources, the second processing resources may be 80% of the hardware resources.

[0136] Optionally, the display mode is determined based on the first processing resource and the second processing resource, specifically: if the first processing resource is less than the second processing resource, and the first processing resource is less than or equal to a preset threshold, then the display mode is determined to be the layer blocks in the rendered display layer. For example, if the first processing resource is less than the second processing resource, and the first processing resource is less than or equal to the preset threshold, it means that the idle resources in the terminal device are large, and the processing resources required to load the display layer and layer blocks are small, and the terminal device can render the display content locally. Therefore, the terminal device determines that the display mode of the display content is the layer blocks in the local rendering layer. In this way, when the processing resources used by the terminal device to load the display content are small, the terminal device can quickly load the display content locally, thereby improving the display efficiency of the design drawing.

[0137] Optionally, if the first processing resource is greater than or equal to the second processing resource, the display mode is determined to be the layer blocks in the display layer loaded by the receiving server. For example, if the first processing resource is greater than or equal to the second processing resource, it means that the idle resources in the terminal device cannot quickly load the display layer and layer blocks. Therefore, the display layer and the layer blocks in the display layer can be loaded in the server, and the terminal device receives the layer blocks of the display layer sent by the server, and then displays the corresponding display content. In this way, when the idle resources of the terminal device are relatively small, there is no need to wait for the display layer to be loaded. The terminal device can display the corresponding display content by loading from the server, thereby improving the flexibility and efficiency of the design drawing display.

[0138] The embodiment of the present application provides a method for determining the display mode of display content, which determines the display layer and layer blocks of the display layer based on historical operation data, determines the first processing resources required for the terminal device to load the display layer and layer blocks, determines the second processing resources of the terminal device based on device parameters, and determines the display mode of the display content based on the first processing resources and the second processing resources. In this way, the terminal device can flexibly determine the display mode of the design drawing, improve the display flexibility of the design drawing, and the terminal device can accurately load the part of the layer blocks that the user is interested in in the display content of the design drawing based on historical operation data. In this way, the terminal device does not need to load all the details of the design drawing, thereby improving the loading effect and loading efficiency of the design drawing.

[0139] Based on any of the above embodiments, Figure 8 , the process of processing the above design drawings is explained.

[0140] Figure 8 This is a schematic diagram of a method for processing a design drawing provided in an embodiment of the present application. Figure 8 , including: a terminal device. The terminal device's display page includes the logged-in account, department, and user permissions. The account is User A, User A's department is the Water and Electricity Department, and User A's user permissions are Waterway and Electricity Drawings. Based on User A's user permissions, the terminal device determines that the displayed content is the Water and Electricity Drawings.

[0141] See Figure 8 When a terminal device receives a request to display a hydropower design drawing, it determines that the hydropower drawing includes Layer A, Layer B, and Layer C. Layer A includes 16 layer blocks, Layer B includes 16 layer blocks, and Layer C includes 4 layer blocks. If historical operation data indicates that the terminal device last displayed Layer B, the terminal device determines Layer B as the display layer and the four middle layer blocks of Layer B as the layer blocks to be displayed (the layer blocks last displayed).

[0142] See Figure 8 When the terminal device has a lot of free resources, it locally loads the four middle layers of Layer B in the circuit diagram and displays them on the terminal device's screen. Because historical operation data accurately reflects the user's browsing habits, the terminal device can accurately load the layers of the diagram that the user is interested in based on historical operation data and determine the display mode based on device parameters. This eliminates the need for the terminal device to load all the details of the diagram, thereby improving the loading effect and efficiency of the diagram.

[0143] Figure 9 This is a schematic diagram of a processing device for a design drawing provided in an embodiment of the present application. Figure 9 The design drawing processing device 10 includes a first acquisition module 11, a determination module 12, a second acquisition module 13 and a display module 14, wherein:

[0144] The first acquisition module 11 is used to obtain the user's user rights;

[0145] The determination module 12 is used to determine the display content of the design drawing according to the user authority;

[0146] The second acquisition module 13 is used to, in response to the display request of the design drawing, acquire the user's historical operation data on the design drawing and the device parameters of the terminal device, and determine the display mode of the display content according to the historical operation data and the device parameters;

[0147] The display module 14 is configured to display the display content of the design drawing according to the display mode.

[0148] In a possible implementation, the second acquisition module 13 is specifically configured to:

[0149] Determining a display layer of the display content and a layer block of the display layer according to the historical operation data;

[0150] The display mode is determined according to the device parameters, the display layer and the layer block.

[0151] In a possible implementation, the second acquisition module 13 is specifically configured to:

[0152] Determining, based on the historical operation data, the first layer of the display content last displayed by the terminal device and the first layer block displayed by the first layer;

[0153] The first layer is determined as the display layer, and the first layer block is determined as the layer block.

[0154] In a possible implementation, the second acquisition module 13 is specifically configured to:

[0155] determining, based on the historical operation data, a second layer displayed the most times when the terminal device displays the display content within a preset time period, and a second layer block displayed by the second layer;

[0156] The second layer is determined as the display layer, and the second layer block is determined as the layer block.

[0157] In a possible implementation, the second acquisition module 13 is specifically configured to:

[0158] Determining a first processing resource required by the terminal device to load the display layer and the layer block;

[0159] determining a second processing resource of the terminal device according to the device parameter;

[0160] The display mode is determined according to the first processing resource and the second processing resource.

[0161] In a possible implementation, the second acquisition module 13 is specifically configured to:

[0162] If the first processing resource is less than the second processing resource, and the first processing resource is less than or equal to a preset threshold, determining the display mode to be rendering the layer block in the display layer;

[0163] If the first processing resource is greater than or equal to the second processing resource, the display mode is determined to be the layer block in the display layer loaded by the receiving server.

[0164] In a possible implementation, the determining module 12 is specifically configured to:

[0165] Obtaining a preset relationship, where the preset relationship includes at least one permission and display content corresponding to each permission;

[0166] The display content is determined according to the user authority and the preset relationship.

[0167] The design drawing processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0168] The processing device of the design diagram shown in the embodiment of the present application can be a chip, a hardware module, a processor, etc. Of course, the processing device of the design diagram can be in other forms, and the embodiment of the present application does not specifically limit this.

[0169] Figure 10The hardware structure diagram of the terminal device provided for this application. Figure 10 The terminal device 20 may include: a processor 21 and a memory 22, wherein the processor 21 and the memory 22 can communicate; illustratively, the processor 21 and the memory 22 communicate via a communication bus 23, the memory 22 is used to store program instructions, and the processor 21 is used to call the program instructions in the memory to execute the processing method of the design drawing shown in any of the above method embodiments.

[0170] Optionally, the terminal device 20 may further include a communication interface, which may include a transmitter and / or a receiver.

[0171] Optionally, the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASICs). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in this application may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0172] An embodiment of the present application provides a readable storage medium having a computer program stored thereon; the computer program is used to implement the method for processing a design drawing as described in any of the above embodiments.

[0173] An embodiment of the present application provides a computer program product, which includes instructions. When the instructions are executed, the computer executes the above-mentioned method for processing the design drawing.

[0174] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, it performs the steps of the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disc, and any combination thereof.

[0175] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable terminal device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0176] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0177] These computer program instructions can also be loaded onto a computer or other programmable terminal device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0178] Obviously, those skilled in the art may make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations.

[0179] In this application, the term "include" and its variations may refer to non-restrictive inclusion; the term "or" and its variations may refer to "and / or". In this application, the terms "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In this application, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.

Claims

1. A method for processing a design drawing, characterized in that: The method comprises: Obtaining the user's user rights; the user rights are the user's rights to browse the design drawings; Obtaining a preset relationship, wherein the preset relationship includes at least one authority and display content corresponding to each authority; the display content includes one or more of water and electricity drawings, pipeline drawings, exhaust drawings, and elevator drawings; Determining the display content of the design drawing according to the user authority and the preset relationship; In response to a request to display the design drawing, acquiring historical operation data of the user on the design drawing and device parameters of a terminal device; According to the historical operation data, obtaining at least one display layer to be displayed in the design drawing, and a layer block when each display layer is displayed; Determining a first processing resource required by the terminal device to load the display layer and the layer block; determining, according to the device parameter, a second processing resource of the terminal device, where the second processing resource is an idle resource of the terminal device; If the first processing resource is less than the second processing resource, and the first processing resource is less than or equal to a preset threshold, determining the display mode to be rendering the layer block in the display layer; if the first processing resource is greater than or equal to the second processing resource, determining the display mode to be receiving the layer block in the display layer loaded by the server; Displaying the display content of the design drawing according to the display mode; According to the historical operation data, at least one display layer to be displayed in the design drawing and a layer block when each display layer is displayed are obtained, including: determining, based on the historical operation data, a second layer displayed the most times when the terminal device displays the display content within a preset time period, and a second layer block displayed by the second layer; The second layer is determined as the display layer, and the second layer block is determined as the layer block.

2. A design drawing processing device, characterized in that: It includes a first acquisition module, a determination module, a second acquisition module and a display module, wherein: The first acquisition module is used to obtain the user's user rights; the user rights are the user's rights to browse the design drawings; The determination module is configured to obtain a preset relationship, wherein the preset relationship includes at least one permission and display content corresponding to each permission; determine display content of the design drawing based on the user permission and the preset relationship; the display content includes one or more of a water and electricity drawing, a pipeline drawing, an exhaust drawing, and an elevator drawing; The second acquisition module is used to, in response to a display request for the design drawing, obtain the user's historical operation data on the design drawing and the device parameters of the terminal device; obtain at least one display layer to be displayed in the design drawing, and the layer blocks of each display layer when displayed, based on the historical operation data; determine the first processing resources required for the terminal device to load the display layer and the layer blocks; determine the second processing resources of the terminal device based on the device parameters, the second processing resources being the idle resources of the terminal device; if the first processing resource is less than the second processing resource, and the first processing resource is less than or equal to a preset threshold, determine the display mode to be rendering the layer blocks in the display layer; if the first processing resource is greater than or equal to the second processing resource, determine the display mode to be receiving the layer blocks in the display layer loaded by the server; The display module is used to display the display content of the design drawing according to the display mode; The second acquisition module, when acquiring at least one display layer to be displayed in the design drawing and the layer block when each display layer is displayed according to the historical operation data, is specifically used to determine, based on the historical operation data, the second layer that is displayed the most times when the terminal device displays the display content within a preset time period, and the second layer block displayed by the second layer; determine the second layer as the display layer, and determine the second layer block as the layer block.

3. A terminal device, characterized in that: include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the design drawing processing method according to claim 1.

4. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method for processing a design drawing as claimed in claim 1.

Citation Information

Patent Citations

  • Method and system for viewing drawing

    CN102436444A

  • Page loading method, device and equipment and readable storage medium

    CN110020325A

  • Image processing method and device

    CN111770242A

  • Layer-based display method and device

    CN114296847A

  • Service display method, device, apparatus and system

    WO2017186008A1