A method and device for obtaining a spatial unit

By automatically judging and obtaining space units in the Revit environment, the problem of manual and manual determination of space units in the prior art is solved, and efficient and accurate space unit acquisition is achieved.

CN114117606BActive Publication Date: 2025-02-11SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111406180.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2025-02-11
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

In the prior art, it is necessary to manually determine all rooms belonging to the same space unit, resulting in inefficient acquisition of space units and prone to missed selection and wrong selection.

Method used

By obtaining the room in the target file and determining whether the room name is a special name, after determining the target room, determine whether it is in the model group object. If it is, obtain all rooms in the model group object. If not, obtain the file where the target room is located. All rooms in the determination of the space unit.

Benefits of technology

Automatic acquisition of space units is realized, which improves the efficiency of acquisition of space units and reduces the occurrence of manual errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114117606B_ABST
    Figure CN114117606B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for acquiring a spatial unit, which acquires a target file including a central file and / or a link file. Each room in the target file is traversed, and the room with a special name is determined as the target room. In this way, the spatial unit can be determined based on the target room. Since the user may establish a spatial unit in the form of a model group object, it may also be a spatial unit established in the form of a link file or a central file. Furthermore, it is necessary to determine whether the target room is in the model group object. If so, all the rooms in the model group object corresponding to the target room are obtained, and all the rooms in the model group object are determined as a spatial unit. If not, the file where the target room is located is obtained, and all the rooms in the file where the target room is located are determined as a spatial unit. Through the spatial unit acquisition method provided by the present application, spatial units can be automatically acquired, thereby improving the efficiency of acquiring spatial units.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of modeling technology, and in particular to a method and device for acquiring a spatial unit. Background Art

[0002] Building Information Modeling (BIM) technology is a technology that builds building models based on all relevant project information data. BIM technology can simulate and simulate the real information of buildings through digital information simulation. Revit series software is built to implement BIM technology. It can help users design, build and maintain buildings with better quality and higher energy efficiency. It is one of the most widely used software to implement BIM technology.

[0003] In Revit, rooms are used to subdivide the space in a building model based on elements such as walls, floors, roofs, and ceilings. Space units are used to represent a specific project, such as a house or a store. A space unit consists of all the rooms under a project, for example, a house consists of all the rooms in the house. Based on a certain space unit, information such as the property area or building area of ​​the space unit can be counted.

[0004] Currently, it is necessary to manually determine all rooms belonging to the same space unit and mark them to obtain the same space unit. This method is time-consuming and labor-intensive and prone to omissions and wrong selections, resulting in low efficiency in obtaining space units. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a method and device for acquiring spatial units, which can automatically acquire spatial units and improve the efficiency of acquiring spatial units.

[0006] In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:

[0007] The present application provides a method for acquiring a spatial unit, the method comprising:

[0008] Obtaining a target file; the target file includes a central file and / or a link file;

[0009] Traversing each room in the target file, and determining the room with a special name as the target room;

[0010] Determine whether the target room is in the model group object;

[0011] If yes, obtain all rooms in the model group object corresponding to the target room, and determine all rooms in the model group object as a space unit;

[0012] If not, obtain the file where the target room is located, and determine all rooms in the file where the target room is located as a space unit.

[0013] In a possible implementation, the acquiring all rooms in the model group object corresponding to the target room and determining all rooms in the model group object as a space unit includes:

[0014] Obtaining model group identification information of the target room;

[0015] According to the model group identification information of the target room, obtaining the model group object corresponding to the target room;

[0016] All rooms in the model group object corresponding to the target room are obtained, and all rooms in the target model group object are determined as a space unit.

[0017] In a possible implementation manner, determining whether the target room is in the model group object includes:

[0018] Determine whether the target room has corresponding model group identification information.

[0019] In a possible implementation, the method further includes:

[0020] Generate a filling area corresponding to the space unit, and fill the filling area corresponding to the space unit with the same color;

[0021] The room identification information of all the rooms of the space unit is recorded in the extended data of the filling area.

[0022] In a possible implementation, when the space unit is a residence, the special name is a living room, a kitchen, a bedroom, a master bedroom, a second bedroom or a dining room.

[0023] In a possible implementation manner, the acquiring the model group identification information of the target room includes:

[0024] The model group identification information of the target room is obtained through a software interface.

[0025] The present application also provides a spatial unit acquisition device, the device comprising:

[0026] A first acquisition unit is used to acquire a target file; the target file includes a central file and / or a link file;

[0027] A determination unit, configured to traverse each room in the target file and determine the room with a special name as a target room;

[0028] A judging unit, used for judging whether the target room is in the model group object;

[0029] A second acquisition unit is used for, when the target room is in the model group object, acquiring all rooms in the model group object corresponding to the target room, and determining all rooms in the model group object as a space unit;

[0030] The third acquisition unit is used to, when the target room is not in the model group object, acquire the file where the target room is located, and determine all rooms in the file where the target room is located as a space unit.

[0031] In a possible implementation, when the target room is in the model group object, the second acquisition unit includes:

[0032] A first acquisition subunit, used to acquire the model group identification information of the target room;

[0033] A second acquisition subunit is used to acquire the model group object corresponding to the target room according to the model group identification information of the target room;

[0034] A determination subunit is used to obtain all rooms in the model group object corresponding to the target room, and determine all rooms in the target model group object as a space unit.

[0035] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the above-mentioned spatial unit acquisition method is implemented.

[0036] The present application also provides a computing device, including:

[0037] at least one processor;

[0038] At least one memory stores a computer program, and when the computer program is executed by the at least one processor, the above-mentioned spatial unit acquisition method is implemented.

[0039] Through the above technical solution, it can be seen that the present application has the following beneficial effects:

[0040] The embodiment of the present application provides a method and device for obtaining a spatial unit, which obtains a target file including a central file and / or a link file. Traverse each room in the target file, and determine the room with a special name as the target room. It can be determined that the target room is a room in the spatial unit. Therefore, the spatial unit can be determined based on the target room. Since the user may establish a spatial unit in the form of a model group object, it may also be a spatial unit established in the form of a link file or a central file. Furthermore, it is necessary to determine whether the target room is in the model group object. If so, obtain all the rooms in the model group object corresponding to the target room, and determine all the rooms in the model group object as a spatial unit. If not, obtain the file where the target room is located, and determine all the rooms in the file where the target room is located as a spatial unit. Through the spatial unit acquisition method provided in the embodiment of the present application, the spatial unit can be automatically acquired, and the efficiency of acquiring the spatial unit is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 A schematic diagram of an exemplary application scenario provided for an embodiment of the present application;

[0043] Figure 2 A flowchart of a method for acquiring a spatial unit provided in an embodiment of the present application;

[0044] Figure 3 A flowchart of another spatial unit acquisition method provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of the structure of a spatial unit acquisition device provided in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0048] In order to facilitate understanding and explanation of the technical solution provided by the embodiments of the present application, the background technology of the embodiments of the present application is first described below.

[0049] Building Information Modeling (BIM) technology is a technology that builds building models based on various project-related information data. BIM technology can simulate and simulate the real information of buildings through digital information simulation. Revit series software is software that implements BIM technology. It can help users design, build and maintain buildings with better quality and higher energy efficiency. It is one of the most widely used software in software that implements BIM technology.

[0050] In Revit, rooms are used to subdivide the space in a building model based on elements such as walls, floors, roofs, and ceilings. Space units are used to represent a specific project, such as a house or a store. A space unit consists of all the rooms under a project, for example, a house consists of all the rooms in the house. Based on a certain space unit, information such as the property area or building area of ​​the space unit can be counted.

[0051] Currently, in the Revit environment of Autodesk AutoDesk, it is still necessary to manually identify all rooms belonging to the same space unit and mark them to obtain the same space unit, and automatic identification is not possible. Moreover, this method is time-consuming and labor-intensive, and is prone to omissions and wrong selections, resulting in low efficiency in obtaining space units.

[0052] Based on this, the embodiment of the present application provides a method, device, computer-readable storage medium and computing device for obtaining a space unit. First, a target file including a central file and / or a link file is obtained. Each room in the target file is traversed, and the room with a special name is determined as the target room. It can be determined that the target room is a room in the space unit. Therefore, the space unit can be determined based on the target room. Since the user may establish a space unit in the form of a model group object, it may also be a space unit established in the form of a link file or a central file. Furthermore, it is necessary to determine whether the target room is in the model group object. If so, all the rooms in the model group object corresponding to the target room are obtained, and all the rooms in the model group object are determined as a space unit. If not, the file where the target room is located is obtained, and all the rooms in the file where the target room is located are determined as a space unit. Through the space unit acquisition method provided by the embodiment of the present application, the space unit can be automatically acquired, and the efficiency of acquiring the space unit is improved.

[0053] In order to facilitate understanding of a spatial unit acquisition method provided in an embodiment of the present application, Figure 1 An exemplary application scenario is described. Figure 1 This is a schematic diagram of an exemplary application scenario provided by an embodiment of the present application. The method can be implemented by a terminal device.

[0054] In practical applications, first obtain a target file including a central file and / or a link file. The target file may be a central file, a link file, or a central file and a link file. Next, traverse each room in the target file. When traversing each room, it can be determined whether the room name is a special name, and the room with a special name is determined as the target room. Generally, the target room is a room in the spatial unit. Therefore, the spatial unit can be determined based on the target room.

[0055] In specific implementation, since the user may create a spatial unit in the form of a model group object, or in the form of a whole link file or a central file, it is determined whether the target room is in the model group object. If so, all the rooms in the model group object corresponding to the target room are obtained, and all the rooms in the model group object are determined as a spatial unit. If not, the file where the target room is located is obtained, and all the rooms in the file where the target room is located are determined as a spatial unit.

[0056] Those skilled in the art will understand that Figure 1 The framework diagram shown is only an example in which the embodiments of the present application can be implemented. The scope of application of the embodiments of the present application is not limited by any aspect of the framework.

[0057] It should be noted that the terminal device may be any user device that is currently available, under development, or to be developed in the future, and that can interact with each other through any form of wired and / or wireless connection (e.g., Wi-Fi, LAN, cellular, coaxial cable, etc.), including but not limited to: smart wearable devices, smart phones, non-smart phones, tablet computers, laptop personal computers, desktop personal computers, small computers, mid-size computers, mainframe computers, etc. that are currently available, under development, or to be developed in the future. The embodiments of the present application are not limited in this regard.

[0058] It is understandable that the spatial unit acquisition method provided in the embodiment of the present application is an application based on the secondary development of AutoDesk's Revit product, which provides a way to determine which rooms belong to the same spatial unit. In a possible implementation, the embodiment of the present application provides a plug-in, which is installed in Revit. The plug-in installed in Revit corresponds to a page for acquiring spatial units. After the page pops up, the user can automatically acquire the spatial unit by clicking the button for acquiring spatial units on the page.

[0059] Based on the above description, the spatial unit acquisition method provided in the present application will be described in detail below with reference to the accompanying drawings.

[0060] See also Figure 2, which is a flow chart of a spatial unit acquisition method provided by an embodiment of the present application, and the method can be executed by the above-mentioned terminal device. Figure 2 As shown, the method may include S201-S205:

[0061] S201: Acquire a target file; the target file includes a core file and / or a link file.

[0062] A project file in Revit contains all the design information of the building model, such as the complete 3D building model and all design views. A project file includes central files and / or linked files.

[0063] It should be noted that the central file and / or link file in the embodiment of the present application is a file in the project file in the Revit environment. In the Revit environment, the target file of the saved Revit model is obtained, and the target file may be a central file or a link file. The target file may also be a central file and a link file. In this case, there may be at least one link file in the central file.

[0064] It is understandable that the project model made by Revit is usually a large-scale project, which requires the collaboration of multiple people. In specific implementation, the work set of Revit is used for multi-person collaboration. Each person builds his own work set, and after the work set is built, it is synchronized to the central file. The linked file is the file linked to the central file.

[0065] Therefore, a plurality of established room models (hereinafter referred to as "rooms") are stored in the target file, and it is necessary to determine all rooms in the target file that belong to the same space unit.

[0066] S202: Traverse each room in the target file and determine a room with a special name as a target room.

[0067] Automatically traverse each room in the target file. When the room model is established, the room name with functional purpose will be saved in the extended data. For example, if the room name is master bedroom, then the room is used for sleeping. In the process of traversing each room, the room name is obtained from the extended data to determine whether the room name is a special name. Special names are used to indicate that the room belongs to a certain space unit.

[0068] In one possible implementation, when the space unit is a residence, the special names are living room, kitchen, bedroom, master bedroom, second bedroom or dining room. It is understandable that in the model established in the Revit environment, in addition to the living room, kitchen and other rooms in the residence, there may also be elevators, storage rooms outside the residence and other rooms in the entire project. Since elevators and the like do not belong to residences, they do not belong to space units. In the process of obtaining space units, rooms such as elevators need to be excluded. Therefore, setting the room name "elevator" is not a special name. When the space unit is a shop, the special name can be set according to the actual scene of the shop.

[0069] When the room name is a special name, the room with the special name is determined as the target room. The target room is a room in the space unit, and the space unit to which the target room belongs can be obtained based on the determined target room.

[0070] It is understandable that the special name can be pre-set by the customer in advance according to different application scenarios, and the embodiments of the present application do not limit the specific content of the special name.

[0071] S203: Determine whether the target room is in the model group object.

[0072] In the Revit environment, users have different ways to create room models. Users can first create a model group object, and then create multiple room models under the model group object. In addition, users can directly create multiple room models in a linked file. Based on this, users can create space units through model group objects, or through linked files or central files.

[0073] Among them, the model group object (can be referred to as "model group") is a whole that combines multiple elements in the Revit environment. Model group objects can be uniformly modified, moved, saved, loaded, and other operations. There are three types of elements in the Revit environment: base elements, model elements, and view-specific elements. Room models belong to model elements.

[0074] For example, a link file contains 5 residential models on one floor. The link file includes 5 sub-link files, each of which contains a residential model. Then, all the rooms in each sub-link file are the same space unit.

[0075] Based on this, after determining the target room, it is necessary to determine whether the target room is in the model group object. According to whether the target room is in the model group object, the representation form of the space unit where the target room is located is determined, and then the space unit to which the target room belongs is determined.

[0076] S204: If yes, obtain all rooms in the model group object corresponding to the target room, and determine all rooms in the model group object as a space unit.

[0077] If the target room is in the model group object, the space unit to which the target room belongs is established in the form of the model group object. Since the target room is a room in the space unit, all rooms in the model group object corresponding to the target room are obtained, and it is determined that all rooms in the model group object corresponding to the target room are a space unit.

[0078] S205: If not, obtain the file where the target room is located, and determine all rooms in the file where the target room is located as a space unit.

[0079] If the target room is not in the model group object, the space unit to which the target room belongs is established in the same way as the file where the target room is located. For example, if the file where the target room is located is a linked file, all rooms in the linked file where the target room is located are determined as one space unit.

[0080] It should be noted that the file where the target room is located is the smallest file that includes the target room, for example, a sub-link file that includes the target room, rather than a link file at the previous level.

[0081] In addition, a space unit may be composed of rooms with different elevations. For example, in a loft-type residence, different rooms in the same space unit may have different elevations.

[0082] In the embodiment of the present application, the special name of the room is used to determine whether the room with the special name is in the model group object, so as to determine the space unit. This method does not require manual work and can be automatically implemented, which is relatively simple and has high computational efficiency.

[0083] The embodiment of the present application provides a method for obtaining a spatial unit, which obtains a target file including a central file and / or a link file. Traverse each room in the target file, and determine the room with a special name as the target room. It can be determined that the target room is a room in the spatial unit. Therefore, the spatial unit can be determined based on the target room. Since the user may establish a spatial unit in the form of a model group object, it may also be a spatial unit established in the form of a link file or a central file. Furthermore, it is necessary to determine whether the target room is in the model group object. If so, obtain all the rooms in the model group object corresponding to the target room, and determine all the rooms in the model group object as a spatial unit. If not, obtain the file where the target room is located, and determine all the rooms in the file where the target room is located as a spatial unit. Through the spatial unit acquisition method provided by the embodiment of the present application, the spatial unit can be automatically acquired, and the efficiency of acquiring the spatial unit is improved.

[0084] After determining the spatial unit, in order to facilitate users to quickly find the same spatial unit, it is necessary to automatically mark the same spatial unit. In a possible implementation, the embodiment of the present application also provides another spatial unit acquisition method, in addition to the above S201-S205, the method also includes:

[0085] Generate a fill area corresponding to the space unit, and fill the fill area corresponding to the space unit with the same color;

[0086] The room identification information of all rooms of the space unit is recorded into the extended data of the filling area.

[0087] That is, in a possible implementation, the embodiment of the present application generates a fill area corresponding to the space unit and marks all rooms in the same space unit by filling the fill area with the same color, so that users can quickly find the same space unit in a visual way. In addition, the room identification information of all rooms in the space unit corresponding to the fill area is recorded in the extended data of the fill area, which can facilitate the subsequent finding of all rooms in the space unit through the space unit. As an example, the room identification information is the room identification number ID.

[0088] In addition, the area identification number ID of each room can also be recorded in the extended data of the fill area. Since each room has multiple areas, such as the area corresponding to the center line of the wall or the area corresponding to the outer line of the wall. Each area corresponds to a unique area ID. Generate an area object, use the area object to obtain the area of ​​each room, and then quickly calculate the area of ​​the space unit.

[0089] See also Figure 3 , which is a flowchart of another spatial unit acquisition method provided by an embodiment of the present application, and the method can be executed by the above-mentioned terminal device. Figure 3 As shown, the method may include S301-S205:

[0090] S301: Acquire a target file; the target file includes a central file and / or a link file.

[0091] S302: Traverse each room in the target file and determine a room with a special name as a target room.

[0092] S301 and S302 in this embodiment are respectively the same as S201 and S202 in the previous embodiment, and for the sake of brevity, they are not described in detail here. For detailed information, please refer to the description in the above embodiment.

[0093] S303: Determine whether the target room has corresponding model group identification information.

[0094] When determining whether the target room is in the model group object, it can be implemented by determining whether the target room has corresponding model group identification information. In specific implementation, it can be found in the extended data of the target room whether there is model group identification information corresponding to the target room. If yes, it can be determined that the target room has corresponding model group identification information. Then, it is determined that the target room is in the model group object. Otherwise, it is determined that the target room is not in the model group object.

[0095] As an optional example, the model group identification information is a model group identification number GroupID.

[0096] S304: If yes, obtain the model group identification information of the target room; obtain the model group object corresponding to the target room according to the model group identification information of the target room; obtain all the rooms in the model group object corresponding to the target room, and determine all the rooms in the target model group object as a spatial unit.

[0097] If the target room has corresponding model group identification information, it is determined that the target room is in the model group object. At this time, the model group identification information of the target room is obtained. In specific implementation, the model group identification information of the target room can be obtained through a software interface.

[0098] After obtaining the model group identification information of the target room, the model group object corresponding to the target room is searched according to the model group identification information of the target room, all rooms in the model group object corresponding to the target room are obtained, and all rooms in the target model group object are determined as a spatial unit.

[0099] S305: If not, obtain the file where the target room is located, and determine all rooms in the file where the target room is located as a space unit.

[0100] If the target room does not have corresponding model group identification information, the target room is not in the model group object. At this time, the file where the target room is located is obtained, and all rooms in the file where the target room is located are determined as a space unit.

[0101] For example, if the file where the target room is located is a link file, all the rooms in the link file where the target room is located are determined as one space unit. If the file where the target room is located is a central file, all the rooms in the central file where the target room is located are determined as one space unit.

[0102] The embodiment of the present application provides another method for obtaining a spatial unit, which obtains a target file including a central file and / or a link file. Traverse each room in the target file, and determine the room with a special name as the target room. It can be determined that the target room is a room in the spatial unit. Therefore, the spatial unit can be determined based on the target room. Since the user may establish a spatial unit in the form of a model group object, it may also be a spatial unit established in the form of a link file or a central file. Furthermore, it is necessary to determine whether the target room has corresponding model group identification information. If so, obtain the model group identification information of the target room; according to the model group identification information of the target room, obtain the model group object corresponding to the target room; obtain all the rooms in the model group object corresponding to the target room, and determine all the rooms in the target model group object as a spatial unit. If not, obtain the file where the target room is located, and determine all the rooms in the file where the target room is located as a spatial unit. Through the spatial unit acquisition method provided by the embodiment of the present application, the spatial unit can be automatically acquired, and the efficiency of acquiring the spatial unit can be improved.

[0103] Based on the spatial unit acquisition method provided in the above method embodiment, the embodiment of the present application also provides a spatial unit acquisition device, which will be described below in conjunction with the accompanying drawings. For technical details of the device, please refer to the above method embodiment.

[0104] See also Figure 4 ,Should Figure 4 This is a schematic diagram of the structure of a spatial unit acquisition device provided in an embodiment of the present application. Figure 4 As shown, the spatial unit acquisition device includes:

[0105] The first acquisition unit 401 is used to acquire a target file; the target file includes a central file and / or a link file;

[0106] A determination unit 402 is used to traverse each room in the target file and determine the room with a special name as a target room;

[0107] A judging unit 403 is used to judge whether the target room is in the model group object;

[0108] A second acquisition unit 404 is used for, when the target room is in the model group object, acquiring all rooms in the model group object corresponding to the target room, and determining all rooms in the model group object as a space unit;

[0109] The third acquisition unit 405 is used to acquire the file where the target room is located when the target room is not in the model group object, and determine all rooms in the file where the target room is located as a space unit.

[0110] In a possible implementation, when the target room is in the model group object, the second acquisition unit includes:

[0111] A first acquisition subunit, used to acquire the model group identification information of the target room;

[0112] A second acquisition subunit is used to acquire the model group object corresponding to the target room according to the model group identification information of the target room;

[0113] A determination subunit is used to obtain all rooms in the model group object corresponding to the target room, and determine all rooms in the target model group object as a space unit.

[0114] In a possible implementation, the determining unit 403 is specifically configured to:

[0115] Determine whether the target room has corresponding model group identification information.

[0116] In a possible implementation manner, the device further includes:

[0117] A generating unit, used for generating a filling area corresponding to the space unit, and filling the filling area corresponding to the space unit with the same color;

[0118] A recording unit is used to record the room identification information of all rooms of the space unit into the extended data of the filling area.

[0119] In a possible implementation, when the space unit is a residence, the special name is a living room, a kitchen, a bedroom, a master bedroom, a second bedroom or a dining room.

[0120] In a possible implementation manner, the first acquiring subunit is specifically configured to:

[0121] The model group identification information of the target room is obtained through a software interface.

[0122] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, the spatial unit acquisition method as described in any of the above embodiments is implemented.

[0123] See also Figure 5 , Figure 5 A schematic diagram illustrating a computing device according to an exemplary embodiment of the present disclosure.

[0124] Reference Figure 5According to the exemplary embodiment of the present disclosure, the computing device includes a memory 51 and a processor 52, wherein the memory 51 stores a computer program, and when the computer program is executed by the processor 52, the spatial unit acquisition method according to the exemplary embodiment of the present disclosure is implemented.

[0125] In an exemplary embodiment of the present disclosure, when the computer program is executed by the processor 52, the following steps may be implemented:

[0126] Obtaining a target file; the target file includes a central file and / or a link file;

[0127] Traversing each room in the target file, and determining the room with a special name as the target room;

[0128] Determine whether the target room is in the model group object;

[0129] If yes, obtain all rooms in the model group object corresponding to the target room, and determine all rooms in the model group object as a space unit;

[0130] If not, obtain the file where the target room is located, and determine all rooms in the file where the target room is located as a space unit.

[0131] The embodiment of the present application provides a spatial unit acquisition device, which acquires a target file including a central file and / or a link file. Traverse each room in the target file, and determine the room with a special name as the target room. It can be determined that the target room is a room in the spatial unit. Therefore, the spatial unit can be determined based on the target room. Since the user may establish a spatial unit in the form of a model group object, it may also be a spatial unit established in the form of a link file or a central file. Furthermore, it is necessary to determine whether the target room is in the model group object. If so, obtain all the rooms in the model group object corresponding to the target room, and determine all the rooms in the model group object as a spatial unit. If not, obtain the file where the target room is located, and determine all the rooms in the file where the target room is located as a spatial unit. Through the spatial unit acquisition device provided by the embodiment of the present application, the spatial unit can be automatically acquired, thereby improving the efficiency of acquiring the spatial unit.

[0132] It can be known from the description of the above implementation mode that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0133] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the method disclosed in the embodiment, since it corresponds to the system disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the system part description.

[0134] It should also be noted that, in this article, the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0135] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for acquiring a spatial unit, characterized in that: The method comprises: Obtaining a target file; the target file includes a central file and / or a link file; Traversing each room in the target file, and determining the room with a special name as the target room; Determine whether the target room is in the model group object; If yes, obtain all rooms in the model group object corresponding to the target room, and determine all rooms in the model group object as a space unit; If not, obtain the file where the target room is located, and determine all the rooms in the file where the target room is located as a space unit; The acquiring all rooms in the model group object corresponding to the target room and determining all rooms in the model group object as a space unit includes: Acquire the model group identification information of the target room through a software interface; According to the model group identification information of the target room, obtaining the model group object corresponding to the target room; All rooms in the model group object corresponding to the target room are acquired, and all rooms in the model group object corresponding to the target room are determined as a space unit.

2. The method according to claim 1, characterized in that The determining whether the target room is in the model group object includes: Determine whether the target room has corresponding model group identification information.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: Generate a filling area corresponding to the space unit, and fill the filling area corresponding to the space unit with the same color; The room identification information of all the rooms of the space unit is recorded in the extended data of the filling area.

4. The method according to claim 1, characterized in that When the space unit is a residence, the special name is a living room, a kitchen, a bedroom, a master bedroom, a second bedroom or a dining room.

5. A spatial unit acquisition device, characterized in that: The device comprises: A first acquisition unit is used to acquire a target file; the target file includes a central file and / or a link file; A determination unit, configured to traverse each room in the target file and determine the room with a special name as a target room; A judging unit, used for judging whether the target room is in the model group object; A second acquisition unit is used for, when the target room is in the model group object, acquiring all rooms in the model group object corresponding to the target room, and determining all rooms in the model group object as a space unit; A third acquisition unit is used for, when the target room is not in the model group object, acquiring the file where the target room is located, and determining all rooms in the file where the target room is located as a space unit; When the target room is in the model group object, the second acquisition unit includes: A first acquisition subunit, used for acquiring the model group identification information of the target room through a software interface; A second acquisition subunit is used to acquire the model group object corresponding to the target room according to the model group identification information of the target room; A determination subunit is used to obtain all rooms in the model group object corresponding to the target room, and determine all rooms in the model group object corresponding to the target room as a space unit.

6. A computer-readable storage medium storing a computer program, wherein: When the computer program is executed by a processor, the spatial unit acquisition method according to any one of claims 1 to 4 is implemented.

7. A computing device, comprising: at least one processor; At least one memory stores a computer program, and when the computer program is executed by the at least one processor, the spatial unit acquisition method described in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Method and system for design index automatic calculation based on building information modeling

    CN106815377A

  • System and method for capturing and analyzing multidimensional building information

    CN107667366A