Disclosure of Invention
In view of the above, the embodiments of the present disclosure provide a method and an apparatus for extracting engineering quantities of non-modeling entities based on a BIM room model, which solve the problem in the prior art that the engineering quantity extraction efficiency is low.
In a first aspect, an embodiment of the present disclosure provides a method for extracting a non-modeling entity engineering quantity based on a BIM room model, including:
Constructing a physical room model;
constructing a virtual room model according to the entity room model, wherein the virtual room model refers to a closed room;
and deducting the virtual room model and the physical room model to obtain the unmodeled engineering quantity.
Further, the building of the physical room model comprises building revit the physical room model according to the building construction diagram.
Further, constructing a virtual room model according to the physical room model parameters includes judging whether the physical room model parameters are closed rooms, if not, automatically creating a closed curve, and creating the virtual room model for the trace by creating the closed curve.
Further, the obtaining the unmodeled engineering quantity by deducting the virtual room model from the physical room model includes:
obtaining wall types of all virtual room models, and marking the wall types to obtain marked walls;
acquiring IDs of all components intersected with the identification wall body by using a recursion algorithm;
traversing the acquired IDs to convert all components into entities and converting all entities into a PLANARFACE plane;
for each PLANARFACE plane, checking whether the normal line is vertical upwards, if so, adding the planes into a plane list;
the number obtained is the unmodeled engineering quantity by subtracting the plane list from the room closed curve.
In a second aspect, an embodiment of the present disclosure provides an apparatus for a non-modeling entity engineering quantity extraction method based on a BIM room model, including:
The first model building module is used for building a physical room model;
the second model building module is used for building a virtual room model according to the parameters of the physical room model, wherein the virtual room model refers to a closed room;
And the extraction module is used for deducting the virtual room model and the physical room model to obtain the unmodeled engineering quantity.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described previously.
In a fourth aspect, the presently disclosed embodiments provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the aforementioned method.
The method has the beneficial effects that the unmodeled engineering quantity can be quickly obtained, and the construction efficiency is greatly improved.
Detailed Description
Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should also be noted that the illustrations provided in the following embodiments merely illustrate the basic concepts of the disclosure by way of illustration, and only the components related to the disclosure are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided in order to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
Example 1
Embodiment 1 of the present disclosure provides a method for extracting non-modeling entity engineering quantities based on a BIM room model, please refer to fig. 1, which includes:
S1, constructing a physical room model;
In one possible implementation, revit solid room models, curtain walls, doors, windows are built according to the drawing, and the room areas are arranged and divided. It should be noted that, the wall of the physical room model established according to the drawing includes components such as doors and windows, so the physical room model is not a closed room. In another case, for example, a room is a solid wall on three sides and a curtain wall on one side, which is also a non-closed room. The closed room is an enclosed space formed by solid walls, and the solid walls do not contain holes, doors, windows and the like.
S2, constructing a virtual room model according to the parameters of the physical room model, wherein the virtual room model refers to a closed room;
In one possible implementation, constructing the virtual room model from the physical room model parameters includes determining whether the physical room model parameters are closed rooms, if not, automatically creating a closed curve, creating the virtual room model for the trace by creating the closed curve.
Plug-in development work is performed based on the solid model and the parameter data information by using revit software API interface through C# secondary development, for example. Wall types with specific names are retrieved from a given Revit Document by GETWALLTYPE (Document doc, STRING TYPENAME). It uses FilteredElementCollector to collect all wall types and matches by name. Through MakeLineClose (CurveLoop curves), it is identified whether the room wall is a closed wall room, if not, a closed curve is automatically created, and a virtual room model is created for the trace by creating the closed curve.
S3, deducting the virtual room model and the physical room model to obtain the unmodeled engineering quantity
In one possible implementation, obtaining the unmodeled engineering quantity by subtracting the virtual room model from the physical room model includes:
Obtaining wall types of all virtual room models, marking the wall types to obtain a marked wall, obtaining IDs of all components intersected with the marked wall by using a recursion algorithm, traversing the obtained IDs to convert all the components into entities and convert all the entities into PLANARFACE planes, checking whether the normal line of each PLANARFACE plane is vertical upwards, adding the planes into a plane list if the normal line of each PLANARFACE plane is vertical upwards, and deducting the planes from a room closed curve by the plane list, so that the obtained quantity is an unmodeled engineering quantity.
According to the method and the device, the unmodeled engineering quantity can be obtained rapidly, and the construction efficiency is improved.
Example 2
Embodiment 2 of the present disclosure provides an apparatus for extracting a non-modeling entity engineering quantity based on a BIM room model, as shown in fig. 2, including:
A first model building module 301, configured to build a physical room model;
the second model building module 302 builds a virtual room model according to the parameters of the physical room model, wherein the virtual room model refers to a closed room;
The extracting module 303 is configured to obtain the unmodeled engineering quantity by subtracting the virtual room model from the physical room model.
Example 3
Embodiment 3 of the present specification also provides an electronic device 50 including:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the aforementioned method.
The disclosed embodiments also provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the foregoing method.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the aforementioned method.
Referring now to fig. 3, a schematic diagram of an electronic device 50 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 3, the electronic device 50 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 50 are also stored. The processing device 501, the ROM502, and the RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, devices may be connected to I/O interface 505, including input devices 506, such as touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc., output devices 507, including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, etc., storage devices 508, including, for example, magnetic tape, hard disk, etc., and communication devices 509. The communication means 509 may allow the electronic device 50 to communicate with other devices wirelessly or by wire to exchange data. While an electronic device 50 having various means is shown, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or from the storage means 508, or from the ROM 502. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to electrical wiring, fiber optic cable, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be included in the electronic device or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the relevant steps of the method embodiments described above.
Or the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the relevant steps of the method embodiments described above.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The foregoing is merely specific embodiments of the disclosure, but the protection scope of the disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the disclosure are intended to be covered by the protection scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.