Building model display method and device, computer equipment and readable storage medium

文档序号:1477328 发布日期:2020-02-25 浏览:20次 中文

阅读说明:本技术 建筑模型展示方法、装置、计算机设备及可读存储介质 (Building model display method and device, computer equipment and readable storage medium ) 是由 尤勇敏 其他发明人请求不公开姓名 于 2019-09-20 设计创作,主要内容包括:本申请提供建筑模型展示方法、装置、计算机设备及可读存储介质,该方法包括:对建筑信息化模型进行解析处理,得到所述建筑信息化模型中建筑构件的几何数据、所述建筑构件的属性信息以及所述建筑构件的ElementId属性信息,根据所述几何数据、所述属性信息、所述ElementId属性信息以及WebGL,将所述建筑信息化模型展示到浏览器中,获取局部建筑构件展示命令,响应所述局部建筑构件展示命令,以将建筑构件进行局部展示;该方法能够对轻量化处理后得到的建筑信息化模型,以建筑构件为最小单元进行局部放大处理,从而提高建筑模型局部可视化效果。(The application provides a building model display method, a building model display device, computer equipment and a readable storage medium, wherein the method comprises the following steps: analyzing a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element and ElementId attribute information of the building element, displaying the building information model in a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL, obtaining a local building element display command, and responding to the local building element display command to locally display the building element; the method can be used for carrying out local amplification treatment on the building information-based model obtained after the lightweight treatment by taking the building component as the minimum unit, so that the local visualization effect of the building model is improved.)

1. A method for displaying a building model, the method comprising:

analyzing a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element and ElementId attribute information of the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring a local building component display command;

responding to the local building element display command to display the building elements locally.

2. The method of claim 1, wherein the attribute information includes a dimensional specification, an internal structure, and a material of the building element; the ElementId attribute information includes a unique identifier that distinguishes different building components.

3. The method of claim 1, wherein the parsing the building information model to obtain geometric data of a building element in the building information model, attribute information of the building element, and ElementId attribute information of the building element comprises:

acquiring an analysis command;

extracting the geometric data, the attribute information, and the ElementId attribute information of a building element in response to the parsing command.

4. The method of claim 1, wherein said exposing the building informatization model according to the geometric data, the attribute information, the ElementId attribute information, and WebGL comprises:

classifying the geometric data and determining a data structure corresponding to the building element;

and displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL.

5. The method of claim 1, wherein said obtaining a local building element display command comprises:

obtaining different types of local building component display commands, wherein the different types of local building component display commands comprise professional local display commands and part local display commands.

6. The method of claim 5, wherein said responding to said local building element display command to locally display a building element comprises: and responding to the professional local display command to locally display the building components in the professional type as minimum units.

7. The method of claim 5, wherein said responding to said local building element display command to locally display a building element comprises: and responding to the part local display command to locally display the building components in the part type as a minimum unit.

8. A method for displaying a building model, the method comprising:

acquiring an analysis command;

extracting the geometric data, the attribute information and the ElementId attribute information of a building element in response to the parsing command; the attribute information includes a dimension specification, an internal structure, and a material of the building member; the ElementId attribute information comprises unique identifiers for distinguishing different building components;

classifying the geometric data and determining a data structure corresponding to the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring different types of local building component display commands, wherein the different types of local building component display commands comprise professional local display commands and part local display commands;

and responding to the part local display command to locally display the building components in the part type as a minimum unit.

9. An apparatus for displaying a construction model, the apparatus comprising:

the analysis module is used for analyzing the building information model to obtain geometric data of building components in the building information model, attribute information of the building components and ElementId attribute information of the building components;

the display module is used for displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

the display command acquisition module is used for acquiring a local building component display command;

and the response module is used for responding to the local building component display command so as to display the building component locally.

10. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1 to 8 when executing the computer program.

11. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.

Technical Field

The present application relates to the field of building informatization technologies, and in particular, to a building model display method, apparatus, computer device, and readable storage medium.

Background

Building Information Modeling (BIM) technology is a datamation tool applied to engineering design, construction and management, and plays an important role in improving production efficiency, saving cost and shortening construction period by integrating datamation and informationization models of buildings. The method has five characteristics of visualization, coordination, simulation, optimization and graphing.

The Autodesk Revit application software is a common BIM modeling software, and the current Revit application software can design simple geometric images of buildings. However, for the building model designed by the existing Revit application software to be locally decomposed and viewed, the building model is realized by adopting a global visual method, and the visual effect of local building components cannot be achieved, so that the local visual effect of the building model is reduced.

Disclosure of Invention

In view of the foregoing, it is desirable to provide a building model displaying method, device, computer device and readable storage medium capable of improving the local visualization effect of the building model.

The embodiment of the application provides a building model display method, which comprises the following steps:

analyzing a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element and ElementId attribute information of the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring a local building component display command;

responding to the local building element display command to display the building elements locally.

In one embodiment, the attribute information includes a dimension specification, an internal structure, and a material of the building element; the ElementId attribute information includes a unique identifier that distinguishes different building components.

In one embodiment, the analyzing the building information model to obtain geometric data of a building element, attribute information of the building element, and ElementId attribute information of the building element in the building information model includes:

acquiring an analysis command;

extracting the geometric data, the attribute information, and the ElementId attribute information of a building element in response to the parsing command.

In one embodiment, the displaying the building information model to a browser according to the geometric data, the attribute information, the ElementId attribute information, and WebGL includes:

classifying the geometric data and determining a data structure corresponding to the building element;

and displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL.

In one embodiment, the obtaining the local building element display command includes:

obtaining different types of local building component display commands, wherein the different types of local building component display commands comprise professional local display commands and part local display commands.

In one embodiment, said responding to said local building element display command to display a building element locally comprises: and responding to the professional local display command to locally display the building components in the professional type as minimum units.

In one embodiment, said responding to said local building element display command to display a building element locally comprises: and responding to the part local display command to locally display the building components in the part type as a minimum unit.

The embodiment of the application provides a building model display method, which comprises the following steps:

acquiring an analysis command;

extracting the geometric data, the attribute information and the ElementId attribute information of a building element in response to the parsing command; the attribute information includes a dimension specification, an internal structure, and a material of the building member; the ElementId attribute information comprises unique identifiers for distinguishing different building components;

classifying the geometric data and determining a data structure corresponding to the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring different types of local building component display commands, wherein the different types of local building component display commands comprise professional local display commands and part local display commands;

and responding to the part local display command to locally display the building components in the part type as a minimum unit.

The embodiment of the application provides a building model display device, the device includes:

the analysis module is used for analyzing the building information model to obtain geometric data of building components in the building information model, attribute information of the building components and ElementId attribute information of the building components;

the display module is used for displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

the display command acquisition module is used for acquiring a local building component display command;

and the response module is used for responding to the local building component display command so as to display the building component locally.

The embodiment of the application provides a computer device, which comprises a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the processor executes the computer program to realize the following steps:

analyzing a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element and ElementId attribute information of the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring a local building component display command;

responding to the local building element display command to display the building elements locally.

An embodiment of the application provides a readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the following steps:

analyzing a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element and ElementId attribute information of the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring a local building component display command;

responding to the local building element display command to display the building elements locally.

According to the building model display method, the building model display device, the computer device and the readable storage medium provided by the embodiment, the computer device analyzes the building information model to obtain the geometric data of the building element in the building information model, the attribute information of the building element and the ElementId attribute information of the building element, displays the building information model in a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL, obtains a local building element display command, and responds to the local building element display command to locally display the building element; the method can be used for carrying out local amplification treatment on the building information-based model obtained after the lightweight treatment by taking the building component as the minimum unit, so that the local visualization effect of the building model is improved.

Drawings

FIG. 1 is a schematic flow chart diagram of a building modeling method according to an embodiment;

FIG. 2 is a schematic flow chart of a method for displaying a building model according to an embodiment;

FIG. 3 is a schematic structural diagram of an architectural modeling apparatus according to an embodiment;

FIG. 4 is a schematic structural diagram of an exemplary architectural model display apparatus;

FIG. 5 is an internal block diagram of a computer device, provided in one embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

The building modeling method provided by the embodiment can be applied to computer equipment. The computer device may be an electronic device with a drawing application installed, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant, and the specific form of the computer device is not limited in this embodiment.

It should be noted that, in the architectural modeling method provided in the embodiment of the present application, the execution subject may be an architectural modeling apparatus, and the apparatus may be implemented as part or all of a computer device by software, hardware, or a combination of software and hardware. The execution subject of the method embodiment described below is explained taking a computer device as an example to realize the building informatization model weight reduction processing. Meanwhile, the computer device may implement the following method through a high-level computer language, which may include CSharp and JavaScript.

In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the invention.

Fig. 1 is a schematic flow chart of a building modeling method according to an embodiment. The embodiment relates to a process for acquiring a building informatization model. As shown in fig. 1, the method includes:

s101, obtaining building component coding information according to the building information model classification and coding standard and the first building component attribute information.

In the embodiment, the building information model classification and coding standard comprises classification and coding of information in the building information model, and is a national standard with the number of GB/T51269-2017. Optionally, the above national standard can be applied to classification and coding of information in civil buildings and building informatization models of general industrial plants.

Optionally, the method further includes: the method comprises the steps of obtaining a first building element, and determining first building element attribute information according to the first building element, wherein the first building element attribute information comprises a size specification, an internal structure and a material.

The first building member may be a building material, and the building material may include an inorganic material (a metal material and a non-metal material), an organic material (a plant material, a synthetic polymer material, and an asphalt material), and a composite material (a composite material of an inorganic non-metal material and an organic material). Alternatively, the first building component may be a variety of building components manufactured by different building material manufacturing plants. For example, when the first building element is a floor slab, the first building element attribute information may include a size specification of the floor slab, a structure of the floor slab, and a material of the floor slab, and in addition, the first building element attribute information may include other own attribute information of the first building element. Optionally, the building element coding information may be information obtained by combining the building information model classification and coding standard with the first building element attribute information.

S102, carrying out parametric modeling according to the building component coding information and the second building component attribute information, and adding a parametric modeling result and the second building component key information to attributes of a preset family to obtain a part family file.

Specifically, the second building element attribute information may be the same as or different from the first building element attribute information. Alternatively, parametric modeling may be characterized as building element models of the same building material design provided by the same building material production manufacturer. For example, a building materials manufacturing plant A1The floor slab is provided with1Building materials manufacturing plant A2The floor slab is provided with2After the parametric modeling is finished, the floor slab B can be processed1Designing into a floor model, and forming a floor B2And designing another floor model. Alternatively, the critical information of the second building element may be referred to as important information of the second building element. Optionally, the preset family may include multiple families.

For example, a plurality of families of floor slabs, doors, walls, stairs, ceilings, etc. among the building elements may be referred to as a family of floor slabs, a family of doors, a family of walls, a family of stairs, a family of ceilings, respectively, building elements of the same dimensional specification and the same property may be referred to as a family, and the property of the predetermined family may include the dimensional specification of the building element, the structure of the building element, the material of the building element, etc.

It should be noted that, the computer device may combine the obtained attribute information of different preset families to obtain a component family file.

S103, building modeling is carried out according to the part family files and the parameter information, and a building informatization model is obtained.

Specifically, the parameter information may be represented as reference information corresponding to different building components. Optionally, the computer device may perform building modeling according to the attribute information of different building elements included in the part family file and reference information corresponding to the different building elements, so as to obtain a building informatization model. Optionally, the building information model may be a 3D model, and the building information model may include multiple items of information, i.e., information such as geometric structure, spatial relationship, regional information, number and characteristics of building elements, and the like.

In the building modeling method provided by this embodiment, a computer device obtains building element coding information according to a building informatization model classification and coding standard and first building element attribute information, performs parametric modeling according to the building element coding information and second building element attribute information, adds a parametric modeling result and key information of a second building element to attributes of a preset family to obtain a component family file, and performs building modeling according to the component family file and the parameter information to obtain a building informatization model; the method can realize the lightweight processing of the building information model according to the key information of the building component, so that the obtained building information model is not distorted and accords with the reality, the practicability of the building model is improved, and meanwhile, the working efficiency of an engineer of the building information model can be improved.

In one embodiment, the step of obtaining the building element coding information according to the building information model classification and coding standard and the first building element attribute information in S101 may be specifically implemented by the following method:

s1011, determining a classification category corresponding to the first building component according to the building informatization model classification and coding standard.

Specifically, the building may be classified according to different classification criteria in the building informatization model classification and coding criteria, and the computer device may determine the specific classification category of each first building element according to the classification category in the building informatization model classification and coding criteria.

And S1012, adding the first building element attribute information to an information list corresponding to the classification type in the building information model classification and coding standard to obtain the building element coding information.

Specifically, the computer device may add the first building element attribute information to an information list corresponding to classification categories corresponding to different first building elements in the building informatization model classification and coding standard to obtain the building element coding information. Optionally, the information list may include codes, category chinese, and category english.

In the building modeling method provided by the embodiment, computer equipment determines the classification category corresponding to a first building component according to building information model classification and coding standards, adds first building component attribute information to an information list corresponding to the classification category in the building information model classification and coding standards to obtain building component coding information, further performs parametric modeling according to the building component coding information and second building component attribute information, adds a parametric modeling result and key information of a second building component to attributes of a preset family to obtain a component family file, and performs building modeling according to the component family file and the parameter information to obtain a building information model; the method can realize the lightweight processing of the building information model according to the key information of the building component, so that the obtained building information model is not distorted and accords with the reality, the practicability of the building model is improved, and meanwhile, the working efficiency of an engineer of the building information model can be improved.

In one embodiment, the key information of the second building element comprises a digital watermark, version number and encoding of the second building element; in the above S102, performing parametric modeling according to the building element encoding information and the second building element attribute information, and adding a parametric modeling result and the key information of the second building element to the attribute of the preset family to obtain the component family file, the step may specifically include:

and S1021, carrying out parametric modeling according to the building component coding information and the second building component attribute information to obtain different building component models.

Specifically, the computer device can perform parametric modeling according to the coding information of the building element and the attribute information of the second building element, so as to obtain the connection relationship between the similar building elements and obtain different building element models. Alternatively, different building element models may include structural and attribute information between various homogeneous building elements. Optionally, the same building component provided by the same building material production manufacturer corresponds to a building component model.

And S1022, adding the digital watermarks, version numbers and codes of the different building component models and the second building component into the attributes of the preset family to obtain the part family file.

It should be noted that the computer device may add information of different building component models, a digital watermark of the second building component, a version number of the second building component, and a code of the second building component to the attribute of the preset family to obtain the part family file. Alternatively, the coding of the second building element may be in the same format as the coding of the first building element, and the expression is similar. Optionally, when building the information-based model, in order to reduce the information amount of the building element marks, the computer device may extract key information of the building element, mark the key information in the building information-based model, and determine the real building information-based model according to the marked key information, so as to satisfy the authenticity of the building information-based model without distortion.

In addition, the computer device can also add different building component models and codes of second building components to the attributes of the preset family to obtain a part family file. Wherein the code connects the building element with the real part.

In the building modeling method provided by the embodiment, the computer device performs parametric modeling according to the coding information of the building component and the attribute information of the second building component to obtain different building component models, adds the digital watermarks, the version numbers and the key attribute information of the different building component models and the second building component to the attributes of the preset family to obtain a component family file, and further performs building modeling according to the component family file and the parameter information to obtain a building informatization model; the method can realize the lightweight processing of the building information model according to the key information of the building component, so that the obtained building information model is not distorted and accords with the reality, the practicability of the building model is improved, and meanwhile, the working efficiency of an engineer of the building information model can be improved.

In one embodiment, the method may further include the following process: and determining the parameter information by combining different building components, wherein the parameter information comprises reference information corresponding to an adjacent building component as a reference object.

Specifically, by combining the first building element and the second building element, reference information corresponding to each building element with the adjacent building element as a reference can be determined. For example, a real building model includes a ground elevation plane, a wall surface and each floor elevation (e.g., 1 floor elevation, 2 floors elevation), the wall surface can be designed based on the elevation plane (i.e., the reference object of the wall surface can be the elevation plane, e.g., the ground elevation plane), and by determining two points on the elevation plane, the wall surface can be designed on the plane, and the length, width and height information of the wall surface can be determined.

Further, the step of performing building modeling according to the part family file and the parameter information in S103 to obtain a building information model may specifically include: and combining all building components according to the part family files and the parameter information to obtain the building informatization model.

It should be noted that the Revit modeling software can call component family files through functional plug-ins, and then combine parameter information, and after combining different building component information, obtain a complete building information model. Alternatively, the above-mentioned component family file may be understood as a building element model library.

According to the building modeling method provided by the embodiment, the lightweight processing of the building information model can be realized according to the key information of the building component, so that the obtained building information model is not distorted and accords with authenticity, the practicability of the building model is improved, and meanwhile, the working efficiency of a building information model engineer can be improved.

Another embodiment provides a concrete flow of the building modeling method. The building modeling method may include:

s101a, acquiring an analysis command;

s102a, responding to the analysis command, and extracting the geometric data, the attribute information and the ElementId attribute information of the building element; the attribute information includes a dimension specification, an internal structure, and a material of the building member; the ElementId attribute information comprises unique identifiers for distinguishing different building components;

s103a, classifying the geometric data and determining a data structure corresponding to the building element;

s104a, displaying the building information model to a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

s105, obtaining different types of local building element display commands, wherein the different types of local building element display commands comprise professional local display commands and part local display commands;

s106, responding to the part local display command, and locally displaying the building components in the part type as a minimum unit.

In the building modeling method provided by this embodiment, a computer device obtains building element coding information according to a building informatization model classification and coding standard and first building element attribute information, performs parametric modeling according to the building element coding information and second building element attribute information, adds a parametric modeling result and key information of a second building element to attributes of a preset family to obtain a component family file, and performs building modeling according to the component family file and the parameter information to obtain a building informatization model; the method can realize the lightweight processing of the building information model according to the key information of the building component, so that the obtained building information model is not distorted and accords with the reality, the practicability of the building model is improved, and meanwhile, the working efficiency of an engineer of the building information model can be improved.

In addition, the building model display method provided by another embodiment can be applied to computer equipment. The computer device may be an electronic device with a drawing application installed, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant, and the specific form of the computer device is not limited in this embodiment.

It should be noted that, in the building model display method provided in the embodiment of the present application, the execution main body may be a building model display apparatus, and the apparatus may be implemented as part or all of a computer device by software, hardware, or a combination of software and hardware. The execution subject of the method embodiment described below is described by taking a computer device as an example, so as to implement the local display processing of the building information model. Meanwhile, the computer device may implement the following method through a high-level computer language, which may include CSharp and JavaScript. In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments in combination with the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the invention.

Fig. 2 is a schematic flow chart of a building model display method according to an embodiment. The embodiment relates to a process for partially displaying a building information model. As shown in fig. 2, the method includes:

s201, analyzing the building information model to obtain geometric data of the building components in the building information model, attribute information of the building components and ElementId attribute information of the building components.

In this embodiment, the building information model may include a plurality of items of information, and each item of information may include information such as a geometric structure, a spatial relationship, regional information, and a building component. Alternatively, the building information model may be designed by Revit modeling software installed in a computer device, and the building information model may be a pure geometric model including various building components. Optionally, different building elements have corresponding geometric data, and the attribute information of the building elements may include information such as dimensional specifications, internal structures, and materials of the building elements. For example, when the building element is a floor, the building element attribute information may include a size specification of the floor, a structure of the floor, and a material of the floor. Optionally, different building elements may have their corresponding ElementId attribute information. In this embodiment, the ElementId attribute information may be characterized as a unique identifier for distinguishing different building components by the Revit modeling software, and the ElementId attribute information may be represented by an integer value.

In this embodiment, the analysis manners may include two manners; one is that Revit modeling software can call an analysis code to directly analyze the obtained building information model; the other is that the Revit modeling software can send the building information model to a specific website corresponding to the browser, the website sends the building information model to the background server, and the background server can analyze the building information model and then execute step S202 according to the analysis result.

S202, displaying the building information model to a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL.

Specifically, the WebGL may be a completely free cross-platform web page graphics library, which is implemented based on OpenGL ES2.0 and integrated by a mainstream internet browser. It should be noted that the computer device may obtain the building information model according to the geometric data, the attribute information, and the ElementId attribute of the building element under the condition that the WebGL is satisfied, and display the building information model in the browser. Optionally, the browser may be all browsers supporting WebGL, and may be an IE browser, a QQ browser, a google browser, a dog search browser, a 360 security browser, and the like, which is not limited in this embodiment.

And S203, acquiring a local building component display command.

Specifically, a local building element display function menu is arranged in the browser interface, and after a user clicks the local building element display function menu through a mouse, the computer equipment can acquire a local building element display command.

And S204, responding to the local building element display command to display the building element locally.

Specifically, after the computer device responds to the received local building element display command, the corresponding building element can be locally displayed in a minimum unit.

In the building model display method provided by this embodiment, a computer device analyzes a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element, and ElementId attribute information of the building element, displays the building information model in a browser according to the geometric data, the attribute information, the ElementId attribute information, and WebGL, obtains a local building element display command, and responds to the local building element display command to locally display the building element; according to the method, the building information model obtained after the lightweight processing can be subjected to local amplification processing by taking the building component as the minimum unit, so that the local visualization effect of the building model is improved, meanwhile, a building information model engineer can visually acquire the internal structure of the building component, and the work efficiency of the engineer is improved.

In one embodiment, the step of analyzing the building information model in S201 to obtain the geometric data of the building element in the building information model, the attribute information of the building element, and the ElementId attribute information of the building element may be specifically implemented by the following method:

and S2011, acquiring an analysis command.

Specifically, an analysis function menu is arranged in the Revit modeling software, and after a user clicks the analysis function menu through a mouse, the computer equipment can obtain an analysis command.

S2012, in response to the parsing command, extracting the geometric data, the attribute information, and the ElementId attribute information of the building element.

Specifically, the computer device may respond to the parsing command, and the Revit modeling software may perform parsing processing through an application program interface developed by software, so as to extract geometric data and attribute information corresponding to different building components in the building information model and corresponding ElementId attribute information. Alternatively, the geometry data may be a mixed geometry data, i.e. a mixture of geometry data of various building elements. Optionally, the geometric data of the building element may be geometric data corresponding to different geometric figures in the building information model. Optionally, the attribute information of the building element may include a size specification, an internal structure, a material, and other own attribute information of the building element.

For example, if the building element is a light bulb, the other attribute information of the building element may be information such as a rated power and a rated voltage of the light bulb.

In the building model display method provided by the embodiment, the computer equipment acquires the analysis command, responds to the analysis command, extracts the geometric data, the attribute information and the ElementId attribute information of the building component, displays the building information model in a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL, acquires the local building component display command, and responds to the local building component display command to locally display the building component; according to the method, the building information model obtained after the lightweight processing can be subjected to local amplification processing by taking the building component as the minimum unit, so that the local visualization effect of the building model is improved, meanwhile, a building information model engineer can visually acquire the internal structure of the building component, and the work efficiency of the engineer is improved.

In one embodiment, the step of displaying the building information model in the browser according to the geometric data, the attribute information, the ElementId attribute information, and the WebGL in S202 may include the following steps:

s2021, classifying the geometric data and determining a data structure corresponding to the building component.

Specifically, the computer device may classify the mixed geometric data to determine the data structure corresponding to the building element corresponding to the different types of geometric data. Alternatively, the geometric data may be different for different building elements. For example, if the geometric data corresponding to the door is a, the data structure corresponding to the building element can be determined as the door according to the geometric data a classified by the computer device, that is, the data structure corresponding to the building element can be characterized as a specific name in the building element.

S2022, performing correlation processing on the data structure, the geometric data, the attribute information and the ElementId attribute information, and displaying the building information model to the browser based on the WebGL.

Specifically, after the computer device performs correlation processing through the ElementId attribute information, the computer device can determine the position relationship between different building components to obtain a complete building information model, and display the complete information model in the browser. Optionally, the computer device may upload the data structure, the geometric data, the attribute information, and the ElementId attribute information to a specific website corresponding to the browser through Revit modeling software, and then the website sends the information to the background server, and the background server may combine the data structure, the geometric data, the attribute information, and the ElementId attribute information according to the ElementId attribute information, obtain the building information model under the condition that WebGL is satisfied, and send the building information model to the browser for display.

In the building model display method provided by this embodiment, the computer device classifies the geometric data, determines the data structure corresponding to the building element, performs association processing on the data structure, the geometric data, the attribute information, and the ElementId attribute information, displays the building information model in the browser based on the WebGL, further obtains a local building element display command, and responds to the local building element display command to perform local display on the building element; according to the method, the building information model obtained after the lightweight processing can be subjected to local amplification processing by taking the building component as the minimum unit, so that the local visualization effect of the building model is improved, meanwhile, a building information model engineer can visually acquire the internal structure of the building component, and the work efficiency of the engineer is improved.

In one embodiment, the step of obtaining the local building element display command in S203 may include: obtaining different types of local building component display commands, wherein the different types of local building component display commands comprise professional local display commands and part local display commands.

Specifically, in the construction industry, the aforementioned specialties may include six types of buildings, structures, water supply and drainage, heating ventilation, decoration and fitment, and electrical. Optionally, the parts may include subclass information corresponding to different professional types, for example, floor slabs, doors, wall surfaces, and the like in a building may all be parts.

It should be noted that two display function menus, namely a professional local display function menu and a part local display function menu, may be set in the browser. When a user clicks the professional local display function menu or the part local display function menu through a mouse, the computer equipment can receive a professional local display command or a part local display command.

Further, the step of responding to the local building element display command in S204 to display the building element locally may include: and responding to the professional local display command to locally display the building components in the professional type as minimum units.

It is understood that when the user clicks the professional partial presentation function menu through the mouse, the computer device may receive the professional partial presentation command and respond to the professional partial presentation command and partially present the building elements in the building informatization model in the smallest units according to the professional type.

In addition, the step of responding to the local building element display command in S204 to display the building element locally may include: and responding to the part local display command to locally display the building components in the part type as a minimum unit.

It is also understood that, when the user clicks the part partial presentation function menu through the mouse, the computer device may receive the part partial presentation command and respond to the part partial presentation command and partially present the building elements in the building informatization model in the minimum unit according to the part type.

According to the building model display method provided by the embodiment, computer equipment acquires different types of local building component display commands and further responds to the different types of local building component display commands so as to locally display the building components in a minimum unit; according to the method, the building information model obtained after the lightweight processing can be subjected to local amplification processing by taking the building component as the minimum unit, so that the local visualization effect of the building model is improved, meanwhile, a building information model engineer can visually acquire the internal structure of the building component, and the work efficiency of the engineer is improved.

Another embodiment provides a concrete flow of the building model display method. The building model display method can comprise the following steps:

s201a, obtaining a first building component;

s202a, determining the first building element attribute information according to the first building element, wherein the first building element attribute information comprises a size specification, an internal structure and a material;

s203a, determining a classification category corresponding to the first building component according to the building information model classification and coding standard;

s204a, adding the first building component attribute information to an information list corresponding to the classification category in the building information model classification and coding standard to obtain the building component coding information;

s205a, carrying out parametric modeling according to the building component coding information and the second building component attribute information to obtain different building component models;

s206a, adding digital watermarks, version numbers and codes of different building component models and the second building components into the attributes of the preset family to obtain the part family file;

s207a, determining the parameter information by combining different building components, wherein the parameter information comprises parameter information corresponding to an adjacent building component as a reference object;

s208a, combining all building components according to the part family files and the parameter information to obtain the building informatization model.

In the building model display method provided by this embodiment, a computer device analyzes a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element, and ElementId attribute information of the building element, displays the building information model in a browser according to the geometric data, the attribute information, the ElementId attribute information, and WebGL, obtains a local building element display command, and responds to the local building element display command to locally display the building element; according to the method, the building information model obtained after the lightweight processing can be subjected to local amplification processing by taking the building component as the minimum unit, so that the local visualization effect of the building model is improved, meanwhile, a building information model engineer can visually acquire the internal structure of the building component, and the work efficiency of the engineer is improved.

It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

For the specific definition of the building modeling apparatus, reference may be made to the above definition of the building modeling method, which is not described herein again. The respective modules in the building modeling apparatus of the computer device described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

Fig. 3 is a schematic structural diagram of the building modeling apparatus according to an embodiment. As shown in fig. 3, the apparatus may include: a first acquisition module 11, a parametric modelling module 12 and a building modelling module 13.

Specifically, the first obtaining module 11 is configured to obtain building component coding information according to a building informatization model classification and coding standard and first building component attribute information;

the parametric modeling module 12 is configured to perform parametric modeling according to the building element coding information and second building element attribute information, and add a parametric modeling result and key information of the second building element to attributes of a preset family to obtain a component family file;

and the building modeling module 13 is used for building modeling according to the part family files and the parameter information to obtain a building informatization model.

Optionally, the key information of the second building element includes a digital watermark, a version number, and key attribute information of the second building element.

The building modeling apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the building modeling apparatus further comprises: the device comprises a second obtaining module and a determining module.

Wherein the second acquiring module is used for acquiring a first building component;

the determining module is configured to determine the first building element attribute information according to the first building element, where the first building element attribute information includes a size specification, an internal structure, and a material.

The building modeling apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the parametric modeling module 12 includes: a parametric modeling unit and an adding unit.

The parametric modeling unit is used for carrying out parametric modeling according to the building component coding information and the second building component attribute information to obtain different building component models;

the adding unit is used for adding the digital watermarks, the version numbers and the key attribute information of the different building component models and the second building components into the attributes of the preset family to obtain the part family file.

The building modeling apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the building modeling apparatus further comprises: and determining a module.

The determining module is configured to determine the parameter information in combination with different building components, where the parameter information includes reference information corresponding to an adjacent building component as a reference.

The building modeling apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the building modeling module 13 includes: a binding unit.

The combination unit is used for combining all building components according to the part family files and the parameter information to obtain the building information model.

The building modeling apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In addition, for the specific definition of the building model display device, reference may be made to the above definition of the building model display method, which is not described herein again. The respective modules in the building model exhibition apparatus of the computer device described above may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

Fig. 4 is a schematic structural diagram of a building model display device according to an embodiment. As shown in fig. 4, the apparatus may include: a parsing module 21, a presentation module 22, a get presentation command module 23, and a response module 24.

Specifically, the analysis module 21 is configured to analyze a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element, and ElementId attribute information of the building element;

the display module 22 is configured to display the building information model in a browser according to the geometric data, the attribute information, the ElementId attribute information, and WebGL;

the display command acquiring module 23 is configured to acquire a local building component display command;

the response module 24 is configured to respond to the local building element display command to display the building element locally.

Optionally, the attribute information includes a size specification, an internal structure, and a material of the building element; the ElementId attribute information includes a unique identifier that distinguishes different building components.

The building model display apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the parsing module 21 includes: the device comprises an acquisition command unit and a response unit.

The acquisition command unit is used for acquiring an analysis command;

the response unit is used for responding to the analytic command and extracting the geometric data, the attribute information and the ElementId attribute information of the building component.

The building model display apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the display module 22 comprises: a classification unit and an association unit.

The classification unit is used for classifying the geometric data and determining a data structure corresponding to the building element;

the association unit is configured to perform association processing on the data structure, the geometric data, the attribute information, and the ElementId attribute information, and display the building information model in the browser based on the WebGL.

The building model display apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the obtaining and displaying command module 23 is specifically configured to obtain different types of local building element displaying commands, where the different types of local building element displaying commands include professional local displaying commands and part local displaying commands.

The building model display apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, the response module 24 is configured to respond to the professional local exhibition command to locally exhibit the building element of the professional type as a minimum unit.

Optionally, the response module 24 is further configured to respond to the part local display command to locally display the building element in the part type as a minimum unit.

The building model display apparatus provided in this embodiment may implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external computer device through a network connection. The computer program is executed by a processor to implement a building modeling method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.

Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

obtaining building component coding information according to the building information model classification and coding standard and the first building component attribute information;

carrying out parametric modeling according to the building component coding information and the second building component attribute information, and adding a parametric modeling result and the key information of the second building component into the attribute of a preset family to obtain a component family file;

and building modeling is carried out according to the part family files and the parameter information to obtain a building information model.

In another embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:

analyzing a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element and ElementId attribute information of the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring a local building component display command;

responding to the local building element display command to display the building elements locally.

In one embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:

obtaining building component coding information according to the building information model classification and coding standard and the first building component attribute information;

carrying out parametric modeling according to the building component coding information and the second building component attribute information, and adding a parametric modeling result and the key information of the second building component into the attribute of a preset family to obtain a component family file;

and building modeling is carried out according to the part family files and the parameter information to obtain a building information model.

In another embodiment, a readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, performs the steps of:

analyzing a building information model to obtain geometric data of a building element in the building information model, attribute information of the building element and ElementId attribute information of the building element;

displaying the building information model into a browser according to the geometric data, the attribute information, the ElementId attribute information and WebGL;

acquiring a local building component display command;

responding to the local building element display command to display the building elements locally.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. 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. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:坡屋面的二维图纸三维重建方法、系统和介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类