BIM-based primitive single-item withdrawal method, terminal device, and storage medium

By receiving withdrawal operation instructions and recording the number of withdrawals and timestamp information, the problem of inaccurate withdrawal of graphic elements in the prior art is solved, realizing one-way withdrawal and parameter modification of graphic elements, and improving operation efficiency.

CN115374504BActive Publication Date: 2025-11-21SHENZHEN CAPOL INT & ASSOC CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210851636.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-20
Publication Date
2025-11-21
Estimated Expiration
2042-07-20

AI Technical Summary

Technical Problem

When existing technology reverts the primitives of a model to a previous state, it also reverts all operations between a previous state and the current state, and these operations cannot be restored, making it inconvenient to use.

Method used

By receiving the withdrawal operation command, recording the number of withdrawals, determining the target graphic element, and modifying the parameter information of the target graphic element according to the number of withdrawals and timestamp information, the single-item withdrawal of the graphic element can be realized.

Benefits of technology

It enables precise recall of graphic elements, is easy to operate, improves work efficiency, and allows users to modify parameter information based on timestamp information without affecting usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115374504B_ABST
    Figure CN115374504B_ABST
Patent Text Reader

Abstract

The application discloses a BIM-based graph primitive single-item withdrawal method, a terminal device and a storage medium, and the method comprises the following steps: receiving a withdrawal operation instruction and recording withdrawal frequency information corresponding to the withdrawal operation instruction; determining a target graph primitive corresponding to the withdrawal operation instruction according to the withdrawal operation instruction, wherein the target graph primitive is a graph primitive in BIM software; determining target timestamp information corresponding to the target graph primitive after the target graph primitive executes the withdrawal operation instruction according to the withdrawal frequency information, and modifying current parameter information of the target graph primitive into target parameter information corresponding to the target timestamp information. According to the withdrawal frequency information corresponding to the withdrawal operation instruction, the application can directly locate the corresponding target timestamp information, and then modify the current parameter information of the target graph primitive into the target parameter information corresponding to the target timestamp information, so that the graph primitive single-item withdrawal is completed, the operation is convenient, and the application is beneficial to realizing accurate withdrawal and improving work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of graphic element editing, and in particular to a graphic element single-item rollback method based on BIM, a terminal device and a storage medium. BACKGROUND

[0002] When a designer designs a three-dimensional model, the graphic element of the model may need to be rolled back to a previous state due to some changes or operation errors. The existing method usually uses a key (such as Ctrl+Z) to roll back the model to the previous state, which can roll back the model to the previous state, but also rolls back the operations between the previous state and the current state. When the rollback is successful, the operations between the previous state and the current state cannot be restored, and the designer cannot find the operations between the previous state and the current state, which is inconvenient to use.

[0003] Therefore, the prior art still needs to be improved and improved. SUMMARY

[0004] The technical problem to be solved by the present application is to provide a graphic element single-item rollback method based on BIM, a terminal device and a storage medium to solve the problem that when the graphic element of a model is rolled back to a previous state, the operations between the previous state and the current state are also rolled back and cannot be restored.

[0005] In a first aspect, the present application provides a graphic element single-item rollback method based on BIM, wherein the method comprises:

[0006] receiving a rollback operation instruction and recording rollback frequency information corresponding to the rollback operation instruction;

[0007] determining a target graphic element corresponding to the rollback operation instruction according to the rollback operation instruction, the target graphic element being a graphic element in a BIM software;

[0008] determining target timestamp information corresponding to the target graphic element after executing the rollback operation instruction according to the rollback frequency information, and modifying the current parameter information of the target graphic element to target parameter information corresponding to the target timestamp information.

[0009] In one implementation, before receiving the rollback operation instruction and recording the rollback frequency information corresponding to the rollback operation instruction, the method comprises:

[0010] monitoring the file state in the BIM software when the BIM software is started, and obtaining the graphic element that has changed when the file state changes;

[0011] obtaining parameter information corresponding to the changed graphic element and timestamp information corresponding to the parameter information;

[0012] saving the parameter information and the corresponding timestamp information.

[0013] In an implementation manner, the receiving the withdrawal operation instruction and recording withdrawal times information corresponding to the withdrawal operation instruction comprises:

[0014] when receiving the withdrawal operation instruction, determining an operation key corresponding to the withdrawal operation instruction;

[0015] recording the number of times the operation key is continuously operated, and taking the number of times the operation key is continuously operated as the withdrawal times information corresponding to the withdrawal operation instruction.

[0016] In an implementation manner, the determining the target graphic element corresponding to the withdrawal operation instruction according to the withdrawal operation instruction comprises:

[0017] analyzing the withdrawal operation instruction to determine a graphic element ID corresponding to the withdrawal operation instruction;

[0018] determining the target graphic element corresponding to the graphic element ID according to the graphic element ID.

[0019] In an implementation manner, the determining the target graphic element corresponding to the withdrawal operation instruction according to the withdrawal operation instruction comprises:

[0020] determining a cursor corresponding to the withdrawal operation instruction and position information corresponding to the cursor according to the withdrawal operation instruction;

[0021] if the position information of the cursor is located on a graphic element of the BIM software, taking the graphic element corresponding to the position information of the cursor as the target graphic element.

[0022] In an implementation manner, the determining the target graphic element corresponding to the withdrawal operation instruction according to the withdrawal operation instruction further comprises:

[0023] if the position information of the cursor is not located on a graphic element of the BIM software, determining that the withdrawal operation instruction is invalid.

[0024] In an implementation manner, the determining the target timestamp information corresponding to the target graphic element after the target graphic element executes the withdrawal operation instruction according to the withdrawal times information, and modifying current parameter information of the target graphic element to target parameter information corresponding to the target timestamp information comprises:

[0025] acquire the primitive ID corresponding to the target primitive, and determine all timestamp information corresponding to the primitive ID based on the primitive ID, and parameter information corresponding to each timestamp information;

[0026] match the withdrawal times information with all the timestamp information, determine target timestamp information corresponding to the withdrawal times information from all the timestamp information, the target timestamp information being the timestamp information corresponding to the target primitive after executing the withdrawal operation instruction according to the withdrawal times information;

[0027] acquire the parameter information corresponding to the target timestamp information, and take the parameter information corresponding to the target timestamp information as the target parameter information;

[0028] modify the current parameter information of the target primitive to the target parameter information.

[0029] In a second aspect, the embodiment of the present application further provides a BIM-based primitive single-item withdrawal device, wherein the device comprises:

[0030] a times information determination module configured to receive a withdrawal operation instruction and record withdrawal times information corresponding to the withdrawal operation instruction;

[0031] a target primitive determination module configured to determine a target primitive corresponding to the withdrawal operation instruction according to the withdrawal operation instruction, the target primitive being a primitive in a BIM software;

[0032] a withdrawal operation execution module configured to determine target timestamp information corresponding to the target primitive after executing the withdrawal operation instruction according to the withdrawal times information, and modify the current parameter information of the target primitive to target parameter information corresponding to the target timestamp information.

[0033] In a third aspect, the embodiment of the present application further provides a terminal device, wherein the terminal device comprises a memory, a processor, and a BIM-based primitive single-item withdrawal program stored in the memory and executable on the processor, and the processor implements the steps of the BIM-based primitive single-item withdrawal method of any one of the above solutions when executing the BIM-based primitive single-item withdrawal program.

[0034] In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores a BIM-based primitive single-item withdrawal program, and the BIM-based primitive single-item withdrawal program implements the steps of the BIM-based primitive single-item withdrawal method of any one of the above solutions when executed by a processor.

[0035] Beneficial effects: Compared with the prior art, the present application provides a BIM-based primitive single-item withdrawal method. The present application first receives a withdrawal operation instruction and records withdrawal times information corresponding to the withdrawal operation instruction. Then, according to the withdrawal operation instruction, the target primitive corresponding to the withdrawal operation instruction is determined, which is a primitive in the BIM software. Finally, according to the target primitive and the withdrawal times information, the target timestamp information corresponding to the target primitive after executing the withdrawal operation instruction according to the withdrawal times information is determined, and the current parameter information of the target primitive is modified to the target parameter information corresponding to the target timestamp information. The present application can directly locate the corresponding target timestamp information based on the withdrawal times information corresponding to the withdrawal operation instruction, and then modify the current parameter information of the target primitive to the target parameter information corresponding to the target timestamp information, thereby completing the primitive single-item withdrawal, which is convenient to operate and is conducive to realizing precise withdrawal and improving work efficiency. Moreover, the present application does not delete the steps corresponding to the parameter changes between the current parameter information and the target parameter information, so the user can still locate the corresponding parameter information based on the timestamp information to modify the current parameter of the target primitive, thereby realizing the single-item withdrawal of the target primitive, without affecting the use of the user. BRIEF DESCRIPTION OF DRAWINGS

[0036] Figure 1 The flowchart of the specific implementation of the BIM-based primitive single-item withdrawal method provided by the embodiment of the present application is shown.

[0037] Figure 2 The functional principle diagram of the BIM-based primitive single-item withdrawal device provided by the embodiment of the present application is shown.

[0038] Figure 3 The principle block diagram of the terminal device provided by the embodiment of the present application is shown. DETAILED DESCRIPTION

[0039] To make the purpose, technical scheme and effects of the present application clearer and more explicit, the present application is further described in detail below with reference to the drawings and examples. It should be understood that the specific examples described herein are only used to explain the present application and do not limit the present application.

[0040] The embodiment provides a BIM-based graphic primitive single-item withdrawal method. Based on the method of the embodiment, graphic primitives can be withdrawn in a single item, and the use of users is facilitated. Specifically, the embodiment first receives a withdrawal operation instruction and records withdrawal time information corresponding to the withdrawal operation instruction. Then, according to the withdrawal operation instruction, a target graphic primitive corresponding to the withdrawal operation instruction is determined, and the target graphic primitive is a graphic primitive in BIM software. Finally, according to the target graphic primitive and the withdrawal time information, target timestamp information corresponding to the target graphic primitive after the target graphic primitive executes the withdrawal operation instruction according to the withdrawal time information is determined, and current parameter information of the target graphic primitive is modified to target parameter information corresponding to the target timestamp information. The embodiment can directly locate corresponding target timestamp information based on withdrawal time information corresponding to the withdrawal operation instruction, and then modify current parameter information of the target graphic primitive to target parameter information corresponding to the target timestamp information, so as to complete graphic primitive single-item withdrawal, which is convenient to operate and is beneficial to realize accurate withdrawal and improve work efficiency. In addition, the present application deletes the steps corresponding to the parameter changes between the current parameter information and the target parameter information. Users can still locate corresponding parameter information based on timestamp information to modify the current parameters of the target graphic primitive, so as to realize single-item withdrawal of the target graphic primitive, without affecting the use of users.

[0041] For example, a terminal device (such as a computer) records timestamp information and parameter information corresponding to the timestamp information for each modification of a user to a graphic primitive A, for example, parameter B is added to the graphic primitive A at 10:24:20 on June 10, 2022. When the user needs to perform a withdrawal operation on the graphic primitive A, the terminal device receives a withdrawal operation instruction and records withdrawal time information corresponding to the withdrawal operation instruction at this time. Then, the timestamp information obtained after the graphic primitive A is withdrawn according to the withdrawal time information is determined, for example, the obtained timestamp information is 10:24:20 on June 10, 2022. At this time, the current parameters of the graphic primitive A can be directly replaced with the parameter information corresponding to 10:24:20 on June 10, 2022, so that the withdrawal operation on the graphic primitive A can be completed. The entire withdrawal operation does not affect other graphic primitives, and the withdrawal process is accurate in time, and the steps are not permanently deleted. These steps can also be obtained based on the timestamp method, which facilitates the use of users.

[0042] Exemplary method

[0043] The BIM-based graphic primitive single-item withdrawal method of the embodiment can be applied to a terminal device, which can be a computer, a mobile phone or other intelligent terminal products. In the embodiment, as shown in Figure 1 The BIM-based graphic primitive single-item withdrawal method includes the following steps:

[0044] Step S100, receiving a withdrawal operation instruction, and recording withdrawal times information corresponding to the withdrawal operation instruction.

[0045] When a user needs to perform a withdrawal operation on a certain graphic element in a BIM software, the terminal device receives a withdrawal operation instruction, which is used to control the body graphic element to return to a certain previous state. After receiving the withdrawal operation instruction, the terminal device of the embodiment starts to record the withdrawal times information corresponding to the withdrawal operation instruction. The withdrawal times information in the embodiment indicates how many times the user needs to perform a withdrawal on the graphic element, that is, which previous state the user wants to control the graphic element to return to.

[0046] In an implementation manner, the embodiment in determining the withdrawal times information includes the following steps:

[0047] Step S101, when receiving the withdrawal operation instruction, determining an operation key corresponding to the withdrawal operation instruction;

[0048] Step S102, recording the number of times the operation key is continuously operated, and taking the number of times the operation key is continuously operated as the withdrawal times information corresponding to the withdrawal operation instruction.

[0049] Specifically, after receiving the withdrawal operation instruction, the terminal device of the embodiment analyzes the withdrawal operation instruction. Since the withdrawal operation instruction is issued based on the operation key on the terminal device, for example, the user can issue the withdrawal operation instruction through the Ctrl+Z operation key on the computer. Therefore, the terminal device can record the number of times the operation key is continuously operated, and the number of times the operation key is continuously operated is the withdrawal times information corresponding to the withdrawal operation instruction. For example, when the computer obtains that the user continuously presses the Ctrl+Z operation key three times, it can be determined that the withdrawal times information of the withdrawal operation instruction issued by the Ctrl+Z operation key is three times.

[0050] In an implementation manner, when the first Ctrl+Z operation key is operated, the first time is recorded, and then the second Ctrl+Z operation key is operated, and the second time is also recorded. If the interval between the first time and the second time is short (for example, less than 1 second), it can be determined that the operation of pressing the first Ctrl+Z operation key and the operation of pressing the second Ctrl+Z operation key are continuous operations. Based on this, all continuous operations of pressing the Ctrl+Z operation key are recorded, and then the number of times of continuously pressing the Ctrl+Z operation key is recorded.

[0051] Step S200, determining a target graph element corresponding to the withdrawal operation instruction according to the withdrawal operation instruction, the target graph element being a graph element in the BIM software.

[0052] After receiving the withdrawal operation instruction, the embodiment needs to determine the target graph element corresponding to the withdrawal operation instruction, that is, which graph element the user wants to perform the withdrawal operation on. Since there are many graph elements in the BIM software, and the user wants to perform the withdrawal operation on a certain graph element in the BIM software by issuing the withdrawal operation instruction, in order to avoid affecting other graph elements, the embodiment needs to determine the target graph element according to the withdrawal operation instruction.

[0053] In one implementation manner, when determining the target graph element, the embodiment includes the following steps:

[0054] Step S201, analyzing the withdrawal operation instruction to determine a graph element ID corresponding to the withdrawal operation instruction;

[0055] Step S202, determining the target graph element corresponding to the graph element ID according to the graph element ID.

[0056] Specifically, the embodiment can analyze the withdrawal operation instruction to obtain the graph element ID in the withdrawal operation, the graph element ID can be used to identify the graph element, that is, each graph element has a unique graph element ID, and the withdrawal operation instruction is targeted, that is, the withdrawal operation instruction is processed for a certain graph element, so the withdrawal operation instruction has the graph element ID of the graph element to be processed. After obtaining the graph element ID, the embodiment can determine the target graph element corresponding to the graph element ID.

[0057] In another implementation manner, when determining the target graph element, the embodiment can further include the following steps:

[0058] Step S21, determining a cursor corresponding to the withdrawal operation instruction and position information corresponding to the cursor according to the withdrawal operation instruction;

[0059] Step S22, if the position information of the cursor is located on a graph element of the BIM software, taking the graph element corresponding to the position information of the cursor as the target graph element.

[0060] The withdrawal operation instruction in the embodiment is for operating the primitives in the BIM software, and the withdrawal operation instruction is presented on the screen of the terminal device in the form of a cursor. When the cursor corresponding to the withdrawal operation instruction is located on a certain primitive on the BIM software, it means that the withdrawal operation is needed for the primitive at this time. Therefore, the embodiment can determine the cursor corresponding to the withdrawal operation instruction and the position information corresponding to the cursor, and then take the primitive corresponding to the position information of the cursor as the target primitive. For example, it is determined that the position information of the cursor corresponding to the withdrawal operation instruction is the upper left area of the BIM software. If the BIM software is opened in full screen, the position information of the cursor is located in the upper left area of the screen of the terminal device at this time. If the position information corresponding to the cursor exists in primitive A, it means that the cursor is located on primitive A at this time, and therefore primitive A can be taken as the target primitive.

[0061] In other implementations, if the position information corresponding to the cursor of the withdrawal operation instruction is not on the primitive of the BIM software, it is determined that the withdrawal operation instruction is invalid. At this time, the terminal device will not respond to the withdrawal operation instruction, that is, only when the cursor of the withdrawal operation instruction is in the area of the BIM software, the withdrawal operation instruction will be responded, which is beneficial to avoid misoperation.

[0062] Step S300, according to the target primitive and the withdrawal times information, determining the target timestamp information corresponding to the target primitive after executing the withdrawal operation instruction according to the withdrawal times information, and modifying the current parameter information of the target primitive to the target parameter information corresponding to the target timestamp information.

[0063] When the target primitive and the withdrawal times information are determined, it is known at this time which primitive needs to be operated several times. The embodiment can determine the target timestamp information corresponding to the target primitive after executing the withdrawal operation instruction according to the withdrawal times information. The target timestamp information reflects which previous state the target primitive needs to be withdrawn to. When the target timestamp is determined, the embodiment can obtain the target parameter information corresponding to the target timestamp, and then modify the current parameter information of the target primitive to the target parameter information corresponding to the target timestamp information, so as to complete the withdrawal of the target primitive.

[0064] In one implementation, the embodiment in executing the withdrawal operation includes the following steps:

[0065] Step S301, obtaining the primitive ID corresponding to the target primitive, and determining all timestamp information corresponding to the primitive ID and the parameter information corresponding to each timestamp information based on the primitive ID;

[0066] Step S302, based on the withdrawal times information and all timestamp information matching, determining the target timestamp information corresponding to the withdrawal times information from all timestamp information, the target timestamp information is the corresponding timestamp information of the target graph element after executing the withdrawal operation instruction according to the withdrawal times information;

[0067] Step S303, obtaining the parameter information corresponding to the target timestamp information, and taking the parameter information corresponding to the target timestamp information as the target parameter information;

[0068] Step S304, modifying the current parameter information of the target graph element to the target parameter information.

[0069] Specifically, the embodiment records each modification of each graph element in advance, records the timestamp information corresponding to each modification and the corresponding parameter information, so as to know the time corresponding to each modification of each graph element and the corresponding modification content. For example, when the BIM software is opened, the embodiment detects the state of all files in the BIM software through the Documnet Change event, detects the state of all files in the BIM software, and then determines whether the state of the file has changed, such as whether the graph element is added, deleted or modified. If there is a change in the file, the changed graph element can be determined. After determining the changed graph element, the parameter information of the graph element at this time and the corresponding timestamp information are recorded and saved in the database to ensure that the time of the change of the graph element and the change content are recorded. For example, the embodiment determines that the changed graph element is A, and records the timestamp information of the graph element A as June 10, 2022, 10:24:20. The parameter information corresponding to the graph element A at this time includes the position, shape parameter and size parameter of the graph element A at this time, and the corresponding relationship between the parameter information and the timestamp information is established and saved. Based on this, the embodiment can record the timestamp information and the corresponding parameter information of each change of each graph element, so as to directly call when performing the withdrawal operation on a certain graph element in the subsequent step.

[0070] When performing the withdrawal operation, the embodiment first acquires the graphic element ID corresponding to the target graphic element, and determines all timestamp information corresponding to the graphic element ID and parameter information corresponding to each timestamp information based on the graphic element ID, which are recorded and saved when each change of the target graphic element is monitored. Then, the terminal device matches the determined withdrawal times information with all timestamp information, determines target timestamp information corresponding to the withdrawal times information from all timestamp information, and the target timestamp information is the timestamp information corresponding to the target graphic element after performing the withdrawal operation instruction according to the withdrawal times information. For example, when the withdrawal times information is three times, the target timestamp information can be obtained by pushing back three timestamp information in time sequence from the back to the front according to all timestamp information. Then, the terminal device can acquire parameter information corresponding to the target timestamp information, and take the parameter information corresponding to the target timestamp information as the target parameter information. Finally, the current parameter information of the target graphic element is modified to the target parameter information.

[0071] Therefore, the embodiment can directly locate which previous state the target graphic element needs to be withdrawn to based on the timestamp information, and implement the withdrawal of the target graphic element through parameter modification, without always withdrawing the action, providing convenience for the user, and improving the work efficiency. Moreover, the embodiment does not delete the steps corresponding to the parameter changes between the current parameter information and the target parameter information of the target graphic element, and the user can still locate the corresponding parameter information based on the timestamp information to modify the current parameter of the target graphic element, thereby implementing single-item withdrawal of the target graphic element, without affecting the use of the user.

[0072] Exemplary apparatus

[0073] Based on the above embodiment, the application further provides a BIM-based graphic element single-item withdrawal apparatus, which comprises: Figure 2 As shown in the figure, the apparatus of the embodiment comprises a times information determination module 10, a target graphic element determination module 20, and a withdrawal operation execution module 30. Specifically, the times information determination module 10 in the embodiment is used to receive a withdrawal operation instruction, and record withdrawal times information corresponding to the withdrawal operation instruction. The target graphic element determination module 20 is used to determine a target graphic element corresponding to the withdrawal operation instruction according to the withdrawal operation instruction, and the target graphic element is a graphic element in BIM software. The withdrawal operation execution module 30 is used to determine target timestamp information corresponding to the target graphic element after performing the withdrawal operation instruction according to the withdrawal times information, and modify the current parameter information of the target graphic element to target parameter information corresponding to the target timestamp information.

[0074] In an implementation manner, the device of the embodiment comprises:

[0075] a figure monitoring module, configured to monitor a file state in the BIM software when the BIM software is started, and acquire a changed figure when the file state changes;

[0076] a timestamp information acquisition module, configured to acquire parameter information corresponding to the changed figure and timestamp information corresponding to the parameter information;

[0077] a parameter information saving module, configured to save the parameter information and the corresponding timestamp information.

[0078] In an implementation manner, the number information determination module 10 comprises:

[0079] an operation key determination unit, configured to determine an operation key corresponding to the withdrawal operation instruction when the withdrawal operation instruction is received;

[0080] a withdrawal number determination unit, configured to record a number of continuous operations of the operation key, and take the number of continuous operations of the operation key as withdrawal number information corresponding to the withdrawal operation instruction.

[0081] In an implementation manner, the target figure determination module 20 comprises:

[0082] a figure ID determination unit, configured to parse the withdrawal operation instruction, and determine a figure ID corresponding to the withdrawal operation instruction;

[0083] a first target figure determination unit, configured to determine the target figure corresponding to the figure ID according to the figure ID.

[0084] In an implementation manner, the target figure determination module 20 further comprises:

[0085] a position information determination unit, configured to determine a cursor corresponding to the withdrawal operation instruction and position information corresponding to the cursor according to the withdrawal operation instruction;

[0086] a second target figure determination unit, configured to take a figure corresponding to the position information of the cursor as the target figure if the position information of the cursor is located on a figure of the BIM software.

[0087] In an implementation manner, the target figure determination module 20 further comprises:

[0088] The invalidity determination unit is used to determine that the withdrawal operation command is invalid if the position information of the cursor is not on the element of the BIM software.

[0089] In one implementation, the retraction operation execution module 30 includes:

[0090] The ID matching unit is used to obtain the element ID corresponding to the target element, and determine all timestamp information corresponding to the element ID and the parameter information corresponding to each timestamp information based on the element ID.

[0091] An information matching unit is used to match the withdrawal count information with all timestamp information, and determine the target timestamp information corresponding to the withdrawal count information from all timestamp information. The target timestamp information is the timestamp information corresponding to the target graphic element after the withdrawal operation instruction is executed according to the withdrawal count information.

[0092] A parameter determination unit is used to obtain parameter information corresponding to the target timestamp information and use the parameter information corresponding to the target timestamp information as the target parameter information.

[0093] The parameter modification unit is used to modify the current parameter information of the target graphic element to the target parameter information.

[0094] The working principle of each module in the BIM-based single-item withdrawal device of this embodiment is the same as that of each step in the above method embodiment, and will not be repeated here.

[0095] Based on the above embodiments, the present invention also provides a terminal device, the principle block diagram of which is shown in Figure 3. The terminal device may include one or more processors 100 (… Figure 3 (Only one is shown in the image), a memory 101, and a computer program 102 stored in the memory 101 and executable on one or more processors 100, such as a program for single-item withdrawal based on BIM. When one or more processors 100 execute the computer program 102, they can implement the various steps in the embodiment of the method for single-item withdrawal based on BIM. Alternatively, when one or more processors 100 execute the computer program 102, they can implement the functions of each module / unit in the apparatus embodiment for single-item withdrawal based on BIM, which is not limited here.

[0096] In one embodiment, the processor 100 can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0097] In one embodiment, the memory 101 can be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 101 can also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 101 can include both the internal storage unit and the external storage device of the electronic device. The memory 101 is used to store computer programs and other programs and data required by the terminal device. The memory 101 can also be used to temporarily store data that has been output or will be output.

[0098] Those skilled in the art can understand that, Figure 3 The principle block diagram shown in the figure is only a block diagram of part of the structure related to the present application, and does not constitute a limitation on the terminal device to which the present application is applied. The specific terminal device can include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, storage, operating database or other medium used in the embodiments provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0100] In summary, the present application discloses a BIM-based primitive single-item withdrawal method, a terminal device and a storage medium. The method comprises: receiving a withdrawal operation instruction and recording withdrawal frequency information corresponding to the withdrawal operation instruction; determining a target primitive corresponding to the withdrawal operation instruction according to the withdrawal operation instruction, the target primitive being a primitive in a BIM software; determining target timestamp information corresponding to the target primitive after executing the withdrawal operation instruction according to the withdrawal frequency information, and modifying current parameter information of the target primitive to target parameter information corresponding to the target timestamp information. The present application can directly locate the corresponding target timestamp information based on the withdrawal frequency information corresponding to the withdrawal operation instruction, and then modify the current parameter information of the target primitive to the target parameter information corresponding to the target timestamp information, thereby completing the primitive single-item withdrawal, which is convenient to operate and is conducive to realizing accurate withdrawal and improving work efficiency.

[0101] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for single-item withdrawal based on BIM, characterized in that, The method includes: Receive a withdrawal operation instruction and record the number of withdrawals corresponding to the withdrawal operation instruction; Based on the withdrawal operation instruction, the target graphic element corresponding to the withdrawal operation instruction is determined. The target graphic element is a graphic element in the BIM software, and the target graphic element is the graphic element that the user wants to withdraw. Based on the target graphic element and the number of withdrawals, determine the target timestamp information corresponding to the target graphic element after executing the withdrawal operation instruction according to the number of withdrawals, and modify the current parameter information of the target graphic element to the target parameter information corresponding to the target timestamp information.

2. The method for single-item withdrawal based on BIM according to claim 1, characterized in that, Before receiving the withdrawal operation instruction and recording the withdrawal count information corresponding to the withdrawal operation instruction, the process includes: When the BIM software is started, the file status in the BIM software is monitored, and when the file status changes, the changed elements are obtained; Obtain the parameter information corresponding to the changed graphic element and the timestamp information corresponding to the parameter information; The parameter information and the corresponding timestamp information are saved.

3. The method for single-item withdrawal based on BIM according to claim 1, characterized in that, The step of receiving the withdrawal operation instruction and recording the withdrawal count information corresponding to the withdrawal operation instruction includes: When the withdrawal operation command is received, the operation key corresponding to the withdrawal operation command is determined; Record the number of times the operation button is pressed consecutively, and use the number of times the operation button is pressed consecutively as the number of times the operation button is pressed consecutively as the number of times the operation is undone.

4. The method for single-item withdrawal based on BIM according to claim 1, characterized in that, The step of determining the target graphic element corresponding to the withdrawal operation instruction based on the withdrawal operation instruction includes: The withdrawal operation instruction is parsed to determine the element ID corresponding to the withdrawal operation instruction; Based on the element ID, determine the target element corresponding to the element ID.

5. The method for single-item withdrawal based on BIM according to claim 1, characterized in that, The step of determining the target graphic element corresponding to the withdrawal operation instruction based on the withdrawal operation instruction includes: Based on the withdrawal operation command, determine the cursor corresponding to the withdrawal operation command and the position information corresponding to the cursor; If the cursor position information is located on a graphic element in the BIM software, then the graphic element corresponding to the cursor position information is taken as the target graphic element.

6. The method for single-item withdrawal based on BIM according to claim 5, characterized in that, The step of determining the target graphic element corresponding to the withdrawal operation instruction based on the withdrawal operation instruction further includes: If the cursor position information is not on the element in the BIM software, the withdrawal operation command is deemed invalid.

7. The method for single-item withdrawal based on BIM according to claim 1, characterized in that, The step of determining the target timestamp information corresponding to the target element after executing the withdrawal operation instruction according to the withdrawal count information based on the target element and the withdrawal count information, and modifying the current parameter information of the target element to the target parameter information corresponding to the target timestamp information, includes: Obtain the element ID corresponding to the target element, and determine all timestamp information corresponding to the element ID and the parameter information corresponding to each timestamp based on the element ID; Based on the matching of the number of withdrawals information with all timestamp information, the target timestamp information corresponding to the number of withdrawals information is determined from all timestamp information. The target timestamp information is the timestamp information corresponding to the target graphic element after the withdrawal operation instruction is executed according to the number of withdrawals information. Obtain the parameter information corresponding to the target timestamp information, and use the parameter information corresponding to the target timestamp information as the target parameter information; Modify the current parameter information of the target primitive to the target parameter information.

8. A BIM-based single-item withdrawal device, characterized in that, The device includes: The number of times information determination module is used to receive the withdrawal operation instruction and record the number of withdrawals corresponding to the withdrawal operation instruction; The target element determination module is used to determine the target element corresponding to the withdrawal operation instruction based on the withdrawal operation instruction. The target element is an element in the BIM software and is the element that the user wants to withdraw. The withdrawal operation execution module is used to determine the target timestamp information corresponding to the target graphic element after the withdrawal operation instruction is executed according to the withdrawal count information, based on the target graphic element and the withdrawal count information, and to modify the current parameter information of the target graphic element to the target parameter information corresponding to the target timestamp information.

9. A terminal device, characterized in that, The terminal device includes a memory, a processor, and a BIM-based single-item withdrawal program stored in the memory and executable on the processor. When the processor executes the BIM-based single-item withdrawal program, it implements the steps of the BIM-based single-item withdrawal method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a BIM-based single-item withdrawal program, which, when executed by a processor, implements the steps of the BIM-based single-item withdrawal method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Data processing device and data processing method

    CN101040250A

  • Apparatus, system, and method for a read-before-write storage controller instruction

    CN101477445A