Online editing method and device, electronic equipment and storage medium

文档序号:190980 发布日期:2021-11-02 浏览:31次 中文

阅读说明:本技术 在线编辑方法、装置、电子设备及存储介质 (Online editing method and device, electronic equipment and storage medium ) 是由 不公告发明人 于 2021-09-26 设计创作,主要内容包括:本公开涉及建筑设计技术领域,提供了一种在线编辑方法、装置、电子设备及存储介质。该方法包括:获取从建筑信息模型解析的建筑平面图,并通过网页显示建筑平面图,该建筑平面图包括多个资源的多个资源标识和多个构件的多个构件标识;接收在线编辑指令,该在线编辑指令用于指示对目标区域进行在线编辑操作并且包括目标区域的目标区域标识;确定多个资源标识和多个构件标识中是否存在与目标区域标识相匹配的资源标识或构件标识;在确定多个资源标识和多个构件标识中存在与目标区域标识相匹配的资源标识或构件标识的情况下,基于在线编辑指令对资源标识对应的资源或构件标识对应的构件进行在线编辑操作。本公开能够实现建筑平面图纸的在线编辑。(The disclosure relates to the technical field of architectural design, and provides an online editing method, an online editing device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a building plan parsed from the building information model, and displaying the building plan through a webpage, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components; receiving an online editing instruction, wherein the online editing instruction is used for indicating online editing operation on a target area and comprises a target area identifier of the target area; determining whether a resource identifier or a component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers; and under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, carrying out online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction. The method and the device can realize the online editing of the building plane drawing.)

1. An online editing method, comprising:

acquiring a building plan parsed from a building information model, and displaying the building plan through a webpage, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components;

receiving an online editing instruction, wherein the online editing instruction is used for indicating online editing operation on a target area and comprises a target area identifier of the target area;

determining whether a resource identifier or a component identifier matching the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers;

and under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, carrying out online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction.

2. The method of claim 1, wherein the obtaining a building plan parsed from a building information model and displaying the building plan through a web page comprises:

obtaining model data of the building information model, and converting the model data into data which can be identified by a lightweight engine by using a conversion plug-in, wherein the conversion plug-in is a Revit plug-in;

storing data recognizable by the lightweight engine as JSON-formatted data, wherein the JSON-formatted data comprises attribute data and entity data, the attribute data comprises a floor identification of a floor, the entity data comprises entity attribute data and entity geometric data of each entity of a plurality of entities in the floor, and the entity attribute data comprises type data of each entity;

and analyzing the JSON format data by using the lightweight engine to obtain adjusted model data, and displaying the building plan generated based on the adjusted model data through the webpage.

3. The method according to claim 2, wherein the parsing the JSON-formatted data using the lightweighting engine to obtain adjusted model data comprises:

traversing each entity of the plurality of entities on the floor by using the lightweight engine based on the floor identification of the floor, and separating resource data and component data of the entity data based on type data of each entity to obtain the adjusted model data,

wherein the adjusted model data comprises a resource data set and a component data set, the resource data set comprises the plurality of resource identifications and resource profile data of the plurality of resources corresponding to the plurality of resource identifications, and the component data set comprises the plurality of component identifications and component profile data of the plurality of components corresponding to the plurality of component identifications.

4. The method of claim 3, wherein the separating the entity data into resource data and component data based on the type data of each entity to obtain the adjusted model data comprises:

merging the resource data based on the corresponding relation between the resources and the objects to obtain object data, and separating the object data and the component data of the entity data based on the type data of each entity to obtain the adjusted model data.

5. The method of claim 3, wherein displaying the building plan generated based on the adjusted model data via the web page comprises:

obtaining the plurality of resource identifications and resource profile data for the plurality of resources and the plurality of part identifications and part profile data for the plurality of parts;

generating the building plan based on the plurality of resource identifications and the resource profile data of the plurality of resources and the plurality of component identifications and the component profile data of the plurality of components, and displaying the building plan through the web page.

6. The method of claim 3, wherein the determining whether a resource identifier or a component identifier matching the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers comprises:

comparing the target area identifier with each of the plurality of resource identifiers and each of the plurality of component identifiers, respectively, to determine whether there is a resource identifier or a component identifier matching the target area identifier among the plurality of resource identifiers and the plurality of component identifiers.

7. The method according to claim 1, wherein the performing an online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction in the case that it is determined that the resource identifier or the component identifier matching with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers comprises:

and under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, carrying out online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier by calling a corresponding application program interface based on the online editing instruction, and obtaining an edited building plan.

8. The method of claim 7, further comprising:

after the edited building plan is obtained, performing visual rendering on the edited building plan through a rendering engine based on a pre-configured visual list to obtain a two-dimensional visual image or a three-dimensional visual image, and displaying the two-dimensional visual image or the three-dimensional visual image by using the webpage.

9. The method of any one of claims 1 to 8, wherein the editing operation comprises one or more of a dividing operation, a merging operation, a deleting operation, a translating operation, a rotating operation, a copying operation, a multi-segment editing operation, a node editing operation, a segment arc turning operation, a chamfering operation, an adding tagging operation, and a deleting tagging operation.

10. The method according to any of claims 1 to 8, characterized in that the building information model is a Revit model.

11. An online editing apparatus, comprising:

an acquisition module configured to acquire a building plan parsed from a building information model, and display the building plan through a web page, wherein the building plan includes a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components;

the device comprises a receiving module, a judging module and a display module, wherein the receiving module is configured to receive an online editing instruction, the online editing instruction is used for indicating that an online editing operation is performed on a target area and comprises a target area identification of the target area;

a determination module configured to determine whether there is a resource identifier or a component identifier matching the target area identifier from the plurality of resource identifiers and the plurality of component identifiers;

and the editing module is configured to perform online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers.

12. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 10 when executing the computer program.

13. A computer-readable storage medium, in 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 10.

Technical Field

The present disclosure relates to the field of architectural design technologies, and in particular, to an online editing method and apparatus, an electronic device, and a computer-readable storage medium.

Background

Building Information Modeling (BIM) is a novel computer application technology in the engineering construction industry, and by designing and using various relevant Information data of an architectural engineering project as a model basis, sharing and transmitting are performed in the whole life cycle process of stages of planning, designing, constructing, operating and managing the architectural project, so that engineering technicians can correctly understand and efficiently deal with various architectural Information, a foundation for cooperative work is provided for design teams, construction units and all construction main bodies including the construction operation units, and important functions in the aspects of improving production efficiency, saving cost and shortening construction period are achieved. Autocad (autocad Computer Aided design) is an automatic Computer Aided design software developed by Autodesk (ontek) corporation for two-dimensional drawing, detailed drawing, design documentation and basic three-dimensional design, and has become a drawing tool widely spread internationally.

In the prior art, engineers usually use AutoCAD software to customize or modify the architectural plan so as to meet the personalized requirements of different users. However, in practical applications, since the areas where users are located are different and the AutoCAD software based on a Client/Server (C/S) structure does not have a cross-platform capability, it is difficult for users and engineers to collaborate; further, due to business changes, the building plan needs to be frequently modified, and the modification of the building plan needs to be performed manually by engineering technicians, resulting in inefficient plotting, high labor and time costs, and error susceptibility.

Disclosure of Invention

In view of this, the embodiments of the present disclosure provide an online editing method, an online editing apparatus, an electronic device, and a computer-readable storage medium, so as to solve the problems of the prior art, such as difficulty in collaborative communication, low graph production efficiency, high labor and time cost consumption, and easy error.

In a first aspect of the embodiments of the present disclosure, an online editing method is provided, including: acquiring a building plan parsed from the building information model, and displaying the building plan through a webpage, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components; receiving an online editing instruction, wherein the online editing instruction is used for indicating online editing operation on a target area and comprises a target area identifier of the target area; determining whether a resource identifier or a component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers; and under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, carrying out online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction.

In a second aspect of the embodiments of the present disclosure, an online editing apparatus is provided, including: an acquisition module configured to acquire a building plan parsed from the building information model and display the building plan through a web page, wherein the building plan includes a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components; the online editing device comprises a receiving module, a processing module and a processing module, wherein the receiving module is configured to receive an online editing instruction, the online editing instruction is used for indicating that online editing operation is performed on a target area and comprises a target area identifier of the target area; a determination module configured to determine whether a resource identifier or a component identifier matching the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers; and the editing module is configured to perform online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers.

In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method when executing the computer program.

In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor, implements the steps of the above-mentioned method.

Compared with the prior art, the embodiment of the disclosure has the following beneficial effects: acquiring a building plan parsed from a building information model, and displaying the building plan through a webpage, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components; receiving an online editing instruction, wherein the online editing instruction is used for indicating online editing operation on a target area and comprises a target area identifier of the target area; determining whether a resource identifier or a component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers; under the condition that the resource identification or the component identification matched with the target area identification exists in the plurality of resource identifications and the plurality of component identifications, online editing operation is carried out on the resource corresponding to the resource identification or the component corresponding to the component identification based on the online editing instruction, and the building plane drawing can be directly edited on a webpage online, so that the editing process is optimized, the editing efficiency is improved, the error rate is reduced, a large amount of labor and time cost is saved, and the user experience is further improved.

Drawings

To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.

Fig. 1 is a schematic flow chart of an online editing method provided by an embodiment of the present disclosure;

FIG. 2a is a schematic resource diagram provided by an embodiment of the present disclosure;

FIG. 2b is a schematic diagram of an object provided by an embodiment of the present disclosure;

FIG. 2c is a schematic diagram of event dispatch provided by embodiments of the present disclosure;

FIG. 2d is a functional diagram of an edit API provided by an embodiment of the present disclosure;

fig. 2e is a schematic plan view of a mall escalator provided in the embodiment of the present disclosure;

fig. 2f is a three-dimensional schematic view of a mall escalator provided in an embodiment of the present disclosure;

FIG. 3 is a schematic flow chart diagram illustrating another online editing method provided by the embodiments of the present disclosure;

FIG. 4a is a plan view of a mall generated based on a Revit model provided by an embodiment of the present disclosure;

FIGS. 4 b-4 e are diagrams of the process of splitting the target area in the plan view of the mall;

FIG. 4f is a three-dimensional view of a mall generated based on a Revit model provided by an embodiment of the present disclosure;

FIG. 5 is a schematic structural diagram of an online editing apparatus provided in an embodiment of the present disclosure;

fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.

Detailed Description

In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.

Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.

Unless the context clearly requires otherwise, throughout the description and the claims, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".

In the description of the present disclosure, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present disclosure, "a plurality" means two or more unless otherwise specified.

In the field of building construction, a building plan is a drawing composed of a horizontal projection method and corresponding legends according to the building conditions of a newly-built building or the functional layout of the wall, the door and window, the stairs, the ground and the interior of the building. The building plan is used as an important component in building design and construction drawings, reflects the conditions of plane shape, size, internal layout, specific positions and occupied areas of the ground, doors and windows and the like of a building, is an important basis for construction and construction site arrangement of a newly built building, and is also a basis for designing and planning professional engineering plans of water supply and drainage, strong and weak electricity, heating and ventilation equipment and the like and drawing a comprehensive pipeline drawing. The building plan can be divided into a building construction drawing, a structure construction drawing and an equipment construction drawing. Floor plans for building construction typically include a floor plan, a standard floor plan, a roof plan, and a roof plan.

During the construction of a building, each process may involve the modification of a drawing, which usually needs an engineering technician to manually perform on professional drawing software (e.g., AutoCAD, SketchUp, 3D Studio Max), and thus, a lot of labor and time costs are consumed; furthermore, because the drawing is drawn manually, the drawing speed of the drawing is slow, and the quality of the drawing is difficult to ensure. In addition, when the user puts forward personalized requirements, because the areas where the user is located are different and the AutoCAD software based on the C/S structure does not have cross-platform capability, the cooperation and communication between the user and engineering technicians are difficult; furthermore, because the modification of the drawing is completed on line based on the paper drawing, the problems of loss, confusion, damage and the like of the modified drawing are easy to occur.

Therefore, the conventional drawing modification method mainly depends on manual operation of engineering technicians, and although some products capable of directly analyzing the CAD drawing through a graphic engine exist in the market, the products cannot analyze the three-dimensional model and cannot meet the requirement of online editing of the engineering technicians. Therefore, it is necessary to provide a scheme capable of editing a two-dimensional drawing or a three-dimensional model on line based on a graphic engine to optimize an editing process, improve editing efficiency, reduce error rate, and save a lot of manpower and time costs.

Fig. 1 is a schematic flowchart of an online editing method according to an embodiment of the present disclosure. The online editing method of fig. 1 may be performed by a server or a terminal device. As shown in fig. 1, the online editing method includes:

s101, obtaining a building plan analyzed from a building information model, and displaying the building plan through a webpage, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components;

s102, receiving an online editing instruction, wherein the online editing instruction is used for indicating online editing operation on a target area and comprises a target area identifier of the target area;

s103, determining whether a resource identifier or a component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers;

and S104, under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, performing online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction.

Specifically, taking a server as an example, the server acquires a building plan parsed from the building information model, and displays the building plan on a webpage, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components; after receiving an online editing instruction for indicating online editing operation on a target area, the server determines whether a resource identifier or a component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers based on the target area identifier of the target area carried in the online editing instruction; further, in the case that the resource identifier or the component identifier which is matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, the server carries out online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction.

Here, the server may be a server that provides various services, for example, a backend server that receives a request transmitted by a terminal device with which a communication connection is established, and the backend server may perform processing such as receiving and analyzing the request transmitted by the terminal device and generate a processing result. The server may be one server, or a server cluster composed of a plurality of servers, or may also be one cloud computing service center, which is not limited in this disclosure. Further, the server may be hardware or software. When the server is hardware, it may be various electronic devices that provide various services to the terminal device. When the server is software, it may be multiple software or software modules providing various services for the terminal device, or may be a single software or software module providing various services for the terminal device, which is not limited in this disclosure. It should be noted that the specific type, number, and combination of the servers may be adjusted according to the actual requirements of the application scenario, and the embodiment of the present disclosure does not limit this.

The terminal device may be hardware or software. When the terminal device is hardware, it may be various electronic devices having a display screen and supporting communication with the server, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like; when the terminal device is software, it may be installed in the electronic device as described above. The terminal device may be implemented as a plurality of software or software modules, or may be implemented as a single software or software module, which is not limited in the embodiments of the present disclosure.

The model is a formal expression mode obtained by abstracting a certain actual problem or objective object and rule, and generally comprises three parts, namely an object, a variable and a relation. The models may include, but are not limited to, mathematical models, program models, logical models, structural models, method models, analytical models, management models, data models, system models, and the like. In the embodiment of the present disclosure, the model may be a Building Information Model (BIM), which is an engineering data model integrating various related Information of a Building engineering project based on a three-dimensional digital technology, and simulates real Information of a Building through digital Information simulation. In the building information model, Revit is a mainstream BIM visualization and modeling tool, and therefore, in the embodiment of the present disclosure, the building information model may adopt the Revit model.

The model data refers to model data created by various building information modeling techniques. The model data can be Revit model data, and the Revit model data is file data used by Revit software. Here, Revit is a piece of three-dimensional BIM design software (main file format is rvt, rfa, or rte, etc.) that can be used to convert building standards into data storage. It should be noted that the model data is not limited to Revit model data as described above, but may include file data of other engineering drawing-type software (e.g., AutoCAD, CATIA, Pro/engine, SolidWorks, etc.). The adjusted model data refers to model data that is adjusted or improved for a preconfigured model data, which will be described below, to enable recognition and loading by the lightweight engine. Preferably, in the disclosed embodiment, the model data is Revit model data.

A Web Page, also called a Web Page (Web Page), is a basic element constituting a website, and is a platform for carrying various website applications. The web page needs to be read by a web browser. In the embodiment of the disclosure, the adjusted model data is loaded by using a web browser, so that the building plan corresponding to the adjusted model data is displayed by using a page, thereby facilitating the on-line editing operation of the building plan. Here, the editing operation may include one or more of a dividing operation, a merging operation, a deleting operation, a translating operation, a rotating operation, a copying operation, a multi-segment editing operation, a node editing operation, a segment arc turning operation, a chamfering operation, an adding-new operation, and a deleting-marking operation.

The drawing is a technical document which uses figures and characters with marked sizes to explain the structure, shape, size and other requirements of engineering buildings, machines, equipment and the like, namely, the drawing is a pictorial representation marked with details required by construction such as size, direction, technical parameters and the like and engineering real objects which an owner wishes to construct. The drawing may be a drawing of a job included in the contract, or may be a drawing of addition and modification issued by the owner (or a representative thereof) according to the contract. The drawing may be a construction drawing, including but not limited to a construction section, a construction plan, a general construction plan, a construction project, and the like. Preferably, in the embodiment of the present disclosure, the drawing is a building plan view, which is used to represent the plan form, size, room arrangement, building population, hall and stair arrangement of the building, and indicates the positions, thicknesses, and materials used of the walls and columns, and the types and positions of the doors and windows.

Resources refer to areas in the floor plan of a building, such as a lead store, a monopoly store, a venue, and the like. Preferably, in the disclosed embodiment, the resource is a shop (i.e., a recruiter resource), which is the smallest unit that constitutes the object. Further, specific types of shops may include, but are not limited to, catering type shops, entertainment type shops, apparel type shops, shopping type shops, service type shops, child type shops, dry shops, and the like. The resource identifier refers to a unique Identifier (ID) configured for the resource, and is used for distinguishing different resources so as to find the resource quickly and accurately. Further, the resource identifier may be a geographic location (e.g., a-3F-C06, 1F021, etc.) where the resource is located, or may be a name (e.g., a shop name) of the resource, which is not limited by the embodiment of the present disclosure. Preferably, in the disclosed embodiment, the resource identification is the geographical location where the resource is located.

The member refers to each element constituting an area (building) in a building plan view, and for example, the building may be a window structure of a shop, and the member may be a window frame, glass, or the like of the window. The component identifier is a unique identifier configured for the component, and is used for distinguishing different components so as to find the component quickly and accurately. Further, the component identifier may be a geographic location where the component is located (e.g., a-3F-DT 02, 5FDT03, etc.) or may be a name of the component (e.g., stairs, elevators, etc.), which is not limited by the disclosed embodiments. Preferably, in embodiments of the present disclosure, the component identification is a geographic location where the component is located.

The target area may be one or more areas directly selected by the user in the building plan, or may be an area obtained by the user through frame selection in the building plan by using a mouse or the like as needed (the area may be a part or all of an area in the building plan, or may be multiple areas in the building plan), which is not limited in this embodiment of the disclosure. Specific types of target areas may include, but are not limited to, a store area, an escalator area, a stair area, and a public area (e.g., a toilet, a stairwell, a fire aisle, etc.). It is to be understood that a Type (Type) may be configured for the target area described above. For example, the type of store area may be "CBD _ SHOP", the type of escalator area may be "CBD _ FLOOR", the type of PUBLIC area may be "CBD _ PUBLIC", the type of empty store may be "CBD _ SHOP _ FREE", and so on.

The target area identifier is a unique identifier configured for the target area, and is used for distinguishing different target areas so as to quickly and accurately find the target area. The target area identification may be the geographic location of the target area (e.g., a-1F-008, C2F03, etc.) or the name of the target area (e.g., a cap area, a living area, an educational area, etc.), which is not limited by the disclosed embodiments. Preferably, in the embodiment of the present disclosure, the target area is identified as the geographical location where the target area is located. For example, the unique identifier of the dining-type shop can be 'B-6F-018', the unique identifier of the entertainment-type shop can be 'B-8F-005', the unique identifier of the dress-type shop can be 'B-3F-C010', the unique identifier of the children-type shop can be 'B-5F-022', and the unique identifier of the free shop can be 'B-2F-007'.

According to the technical scheme provided by the embodiment of the disclosure, a building plan parsed from a building information model is obtained, and the building plan is displayed through a webpage, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components; receiving an online editing instruction, wherein the online editing instruction is used for indicating online editing operation on a target area and comprises a target area identifier of the target area; determining whether a resource identifier or a component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers; under the condition that the resource identification or the component identification matched with the target area identification exists in the plurality of resource identifications and the plurality of component identifications, online editing operation is carried out on the resource corresponding to the resource identification or the component corresponding to the component identification based on the online editing instruction, and the building plane drawing can be directly edited on a webpage online, so that the editing process is optimized, the editing efficiency is improved, the error rate is reduced, a large amount of labor and time cost is saved, and the user experience is further improved.

In some embodiments, obtaining a building plan parsed from a building information model and displaying the building plan through a web page includes: obtaining model data of a building information model, and converting the model data into data which can be identified by a lightweight engine by using a conversion plug-in, wherein the conversion plug-in is a Revit plug-in; storing data recognizable by the lightweight engine into JSON format data, wherein the JSON format data comprises attribute data and entity data, the attribute data comprises floor identification of a floor, the entity data comprises entity attribute data and entity geometric data of each entity in a plurality of entities in the floor, and the entity attribute data comprises type data of each entity; and analyzing the JSON format data by using a lightweight engine to obtain adjusted model data, and displaying a building plan generated based on the adjusted model data through a webpage.

Specifically, the server extracts model data in the building information model, converts the model data into data recognizable by a lightweight engine using a conversion plug-in such as a Revit plug-in, and stores the data as JSON-format data including attribute data including floor identification of a floor and entity data including entity attribute data and entity geometric data of each of a plurality of entities in the floor, the entity attribute data including type data of each entity; further, the server analyzes the JSON format data by using the lightweight engine to obtain adjusted model data, and displays a building plan generated based on the adjusted model data through a webpage.

Here, Plug-in (Plug-in) is a program written in an application program interface following a certain specification, and can only run under a system platform (possibly supporting multiple platforms simultaneously) specified by the program, and cannot run separately from a specified platform. The conversion plug-in may be a Revit plug-in. The Revit plug-in is a plug-in for secondary development. Here, the secondary development means that customized modification is performed on existing software to extend functions, that is, to achieve desired functions; secondary development does not typically change the kernel of the original system.

And the lightweight engine is used for carrying out lightweight conversion on the BIM model, and loading and using the lightweight model. The light weight conversion is to convert the BIM into primitive data and model structured data through a light weight engine, wherein the primitive data is stored in the form of an original file; the model structured data is saved in a corresponding relational database in the form of data records so as to facilitate the retrieval and utilization of the data at a later time. The lightweight model is loaded and used by displaying the lightweight BIM in a webpage by using WebGL (Web Graphics library) technology, and the lightweight BIM comprises a BIM control function, a model component attribute customization function, a BIM model-based labeling and displaying function and the like.

WebGL is a three-dimensional (3D) drawing protocol, the drawing technical standard allows JavaScript and OpenGL ES 2.0 to be combined together, and by adding one JavaScript binding of OpenGL ES 2.0, WebGL can provide hardware 3D accelerated rendering for HTML5 Canvas, so that a Web developer can not only more smoothly display 3D scenes and models in a browser by means of a system display card, but also can create complex navigation and data visualization. Therefore, the WebGL technical standard avoids the trouble of developing a webpage-dedicated rendering plug-in, can be used for creating a website page with a complex 3D structure, and can even be used for designing a 3D webpage game and the like.

Json (javascript Object notification) is a lightweight data interchange format that stores and represents data in a text format that is completely independent of programming languages, based on a subset of ECMAScript. The JSON has a simple and clear hierarchical structure, is easy for a user to read and write, and is also easy for machine analysis and generation, so that the network transmission efficiency is effectively improved. Preferably, in the embodiment of the present disclosure, the data recognizable by the lightweight engine is GeoJSON format data. Here, GeoJSON is a format for encoding various geographic data structures, a geospatial information data exchange format based on Javascript object notation. The GeoJSON object may represent a geometry, a feature, or a set of features. GeoJSON supports the component types described above: point, line, face, multipoint, multiline, multifaceted and geometric collections.

The JSON format data may include attribute data and entity data. The attribute data may include, but is not limited to, a floor identification of a floor, a floor name, a floor height, etc., and the entity data may include entity attribute data and entity geometry data for each of a plurality of entities in the floor, where an entity refers to various elements in a building plan, including resources and components. Further, entity attribute data may include, but is not limited to, name, type, identity, size, area, material, etc. of an entity, entity geometry data may include, but is not limited to, coordinates of an entity and entity type, which may include, but is not limited to, Point (Point), line (LineString), face (Polygon), multi-Point (MultiPoint), multi-line (multilining), multi-face (MultiPolygon), and geometry collection (geotryclection).

JOSN data analysis refers to analyzing JSON format data to obtain different types of data values. The JOSN data parsing process can include: creating a JSON file, including document.h and cos-ext.h head files in the class, obtaining JSON file paths through FileUtils, and analyzing JOSN format data through Document objects to obtain different types of data values.

According to the technical scheme provided by the embodiment of the disclosure, the model data is subjected to lightweight processing by utilizing the secondarily developed Revit plug-in, the model data can be compressed and converted into JSON format data which can be identified by a lightweight engine, and a webpage can load and display a building plan generated based on the adjusted model data, so that lightweight display is realized, and user experience is improved.

In some embodiments, the parsing the JSON-formatted data using the lightweight engine to obtain the adjusted model data includes: based on the floor identification of the floor, traversing each entity in a plurality of entities in the floor by using a lightweight engine, and separating resource data and component data of the entity data based on type data of each entity to obtain adjusted model data, wherein the adjusted model data comprises a resource data set and a component data set, the resource data set comprises a plurality of resource identifications and resource profile data of a plurality of resources corresponding to the plurality of resource identifications, and the component data set comprises a plurality of component identifications and component profile data of a plurality of components corresponding to the plurality of component identifications.

Specifically, the server traverses each entity in a plurality of entities in a floor by using a lightweight engine based on the floor identification of the floor; further, the server separates the resource data and the component data from the entity data based on the type data of each entity to obtain adjusted model data, the adjusted model data includes a resource data set and a component data set, the resource data set includes a plurality of resource identifiers and resource profile data of a plurality of resources corresponding to the plurality of resource identifiers, and the component data set includes a plurality of component identifiers and component profile data of a plurality of components corresponding to the plurality of component identifiers.

Here, Traversal (Traversal) refers to making one visit to each node in the tree (or graph) in turn along a certain search route. The operation performed by the access node depends on the specific application problem, and the specific access operation may be to check the value of the node, update the value of the node, and the like. Different traversal methods have different access node orders. In the embodiment of the present disclosure, the traversal refers to performing a traversal operation on all entities under the same floor to acquire type data of each entity, so that separation of resource data and component data can be performed based on the type data of each entity.

The adjusted model data may include a resource data set and a component data set. Here, the resource data set refers to a set of data of an editable area (e.g., an available area of a shop) in the building plan, and includes, but is not limited to, a resource identifier, a resource name, a resource area, a resource type, profile data of a resource corresponding to the resource identifier, and the like. The component data set refers to a set of data of a non-editable area (e.g., a wall, a structural column, a floor, a door, a window, a stair, etc.) in a building plan, and includes, but is not limited to, a component identification of a component, a component name, a component area, a component type, and profile data of a component corresponding to the component identification, etc. Further, the contour data may include, but is not limited to, coordinates and identification of points, identification of edges, type, thickness, alignment, start and end positions, identification of regions and points, and the like. For example, the contour data may be coordinates of points constituting a contour of the resource or the member, and based on the coordinates of the points, a contour line of the resource or the member may be generated using a contour extraction algorithm.

In some embodiments, separating the resource data and the component data for the entity data based on the type data of each entity to obtain the adjusted model data comprises: and merging the resource data based on the corresponding relation between the resources and the objects to obtain object data, and separating the object data from the member data of the entity data based on the type data of each entity to obtain adjusted model data.

Specifically, the object refers to a region obtained by merging resources based on a correspondence relationship between the resources and the object. Here, the correspondence relationship refers to the amount of resources occupied by the object. For example, the corresponding relationship may be that one object occupies one resource, one object occupies two resources, one object occupies three resources, one object occupies five resources, and the like. Further, the corresponding relationship may be a relationship preset by the user according to experience data, or may be a relationship obtained by adjusting the set relationship according to actual needs by the user, which is not limited in the embodiment of the present disclosure. Preferably, in the embodiment of the present disclosure, the object is a shop area composed of shops (resources).

For example, suppose that a third building in mall A has multiple shops, and the shops are all vacant, as shown in FIG. 2 a. If "ABC child" wants to rent two shops of "A-3F-04" and "A-3F-05 b", and "TD calligraphy education" wants to rent a shop of "A-3F-05 a", it indicates that "ABC child" occupies a number of shops of 2 and "TD calligraphy education" occupies a number of 1, and thus, the two shops (resources) of "A-3F-04" and "A-3F-05 b" are merged and displayed as "ABC child" (object), and "A-3F-05 a" is displayed as "TD calligraphy education", as shown in FIG. 2 b.

In some embodiments, displaying, via a web page, a building plan generated based on the adjusted model data includes: acquiring a plurality of resource identifications and resource profile data of a plurality of resources and a plurality of member identifications and member profile data of a plurality of members; and generating a building plan based on the plurality of resource identifications and the resource profile data of the plurality of resources and the plurality of member identifications and the member profile data of the plurality of members, and displaying the building plan through a webpage.

Specifically, the server acquires a plurality of resource identifications and resource profile data of a plurality of resources from the resource data set, and acquires a plurality of component identifications and component profile data of a plurality of components from the component data set; further, the server generates contour lines through an algorithm for extracting the contour lines based on the coordinates of the plurality of resources in the resource contour data and the coordinates of the points of the plurality of members in the member contour data and/or the starting positions and the ending positions of the edges, and generates a building plan based on the contour lines; the server displays the generated building plan through a web page. Here, the algorithm for extracting the contour may include, but is not limited to, a contour extraction algorithm, a boundary tracking algorithm, a region growing algorithm, and a region splitting and merging algorithm.

In some embodiments, determining whether there is a resource identifier or a component identifier from the plurality of resource identifiers and the plurality of component identifiers that matches the target area identifier comprises: and comparing the target area identifier with each of the plurality of resource identifiers and each of the plurality of component identifiers respectively to determine whether a resource identifier or a component identifier matching the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers.

Specifically, the server traverses the plurality of resource objects and the plurality of component identifiers one by one to determine whether a resource identifier or a component identifier matching the target area identifier exists in the plurality of resource objects and the plurality of component identifiers. Optionally, in the case that it is determined that there is a resource identifier or a component identifier matching the target area identifier in the plurality of resource identifiers and the plurality of component identifiers, the server performs color filling and/or diagonal processing on the target area in the building plan.

In some embodiments, in a case that it is determined that there is a resource identifier or a component identifier matching the target area identifier in the plurality of resource identifiers and the plurality of component identifiers, performing an online editing operation on the resource or the component corresponding to the resource identifier based on the online editing instruction includes: and under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, carrying out online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier by calling the corresponding application program interface based on the online editing instruction, and obtaining the edited building plan.

Specifically, under the condition that the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers, the server calls the corresponding application program interface to perform online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction, and the edited building plan is obtained.

Here, an Application Programming Interface (API), also called API, is a convention for linking different components of a software system. The API is actually a function set, and from the perspective of a user, the API appears as a series of API functions which can be used by the user to develop network application programs; from the network perspective, the API provides a set of methods for the user, the user can use the set of methods to send service requests, information and data to the application layer, and the layers in the network respond in sequence to finally complete the network data transmission. In the embodiment of the present disclosure, the editing module provides a rich interactive editing API based on an autonomously developed geometry Math (Math) library and a two-dimensional (2D) rendering library, and dispatches edited update data to a two-dimensional or three-dimensional (3D) rendering engine by using an event dispatch (EventDispatch) mechanism to perform visual rendering on an edited building plan, as shown in fig. 2 c.

Further, the full-scale professional adsorption operation can be achieved through the quadtree scene division and the application of the Web Worker, all the editing operations are based on the full-scale adsorption, and the scale driving is used in an auxiliary mode, so that the accuracy of the editing operations is guaranteed. The basic idea of full-scale adsorption is to divide the space into tree structures with different hierarchical structures, divide the space of a known range into four equal subspaces, and stop the segmentation until the tree hierarchy reaches a certain depth or the number of objects in the subspaces is less than a certain value. Arcs which do not need to participate in adsorption calculation can be removed through full adsorption, and the main thread rendering cannot be blocked by adopting Web Worker to calculate adsorption.

Since all application scenarios cannot be satisfied even if the full adsorption is satisfied, for example, a user wants to adsorb a mouse when moving to a vertical or horizontal direction of a node, the embodiments of the present disclosure provide an auxiliary line and an extension line. The auxiliary lines are divided into two modes of line segment auxiliary lines and ray auxiliary lines, the auxiliary lines and end points of the auxiliary lines have adsorption capacity, and the extension lines enable the vertical and horizontal directions of the nodes to have adsorption capacity.

The scale driving means that another point is accurately obtained through scale driving relative to one datum point, and the unit is accurate to two digits after a decimal point. The scale driving may include a quadrature driving mode, a line segment mode, and an axis component driving mode.

The partition of the closed polygon may be implemented by a Depth-First Search (DFS) algorithm, that is, the vertices and edges of the closed polygon are combined into a graph, and the Depth Search obtains all the minimum closed polygons (which do not include more than one sub-polygon).

Math is a built-in mathematic function library provided by Python, does not support complex types and only supports integer and floating point operations. In the disclosed embodiments, the autonomously developed geometric mathematics library provides nearly one hundred mathematical methods to support the implementation of the editing API. The core functions of the edit API may include geometric additions, geometric calculations, and geometric measurements, where the geometric additions may include, but are not limited to, resources and holes (e.g., circles, rectangles, and closed polygons), fire fighting equipment (e.g., fire curtains, fire hydrants), fire doors, walls (e.g., straight walls), aid lines (e.g., rays, conventional aid lines); geometric operations may include, but are not limited to, polygon operations (e.g., boolean operations, division, deletion, rotation, and translation) and line segment operations (e.g., node edits, line segment arc rotations, and rounded corners); geometric measurements may include, but are not limited to, dot pitch, arc pitch, and area, as shown in FIG. 2 d.

Event dispatch is the dispatching of an event to a specified event target and the triggering of the affected event targets in the proper order. By using an event dispatching mechanism, more complex decoupling can be completed, and the coupling degree between codes is reduced.

PixiJS uses WebGL and is an ultrafast HTML 52D rendering engine. As a Javascript 2D renderer, PixiJS aims to provide a fast, lightweight and all device compatible 2D rendering library. PixiJS provides seamless Canvas fallback, supporting mainstream browsers, including desktop and mobile. By using PixiJS in combination with various graphics optimization means, full-volume professional rendering can be achieved.

ThreeJS is a 3D rendering engine running in a browser for creating various three-dimensional scenes in a webpage, and is an easy-to-use 3D rendering library formed by packaging and simplifying a WebGL interface. The thread js adopts a physical-Based Rendering (PBR) technology to realize batch merging of different materials on the basis of batch merging of the same material, so that the communication cost is reduced, and smooth interactive experience and Rendering effect are provided.

According to the technical scheme provided by the embodiment of the disclosure, full-scale professional adsorption, scale driving, auxiliary lines and extension lines are provided on the basis of realizing full-scale professional rendering, and the accuracy of online editing can be ensured, so that the online accurate editing based on a lightweight engine is realized.

In some embodiments, the online editing method further comprises: after the edited building plan is obtained, based on a preset visualization list, performing visualization rendering on the edited building plan through a rendering engine to obtain a two-dimensional visualization image or a three-dimensional visualization image, and displaying the two-dimensional visualization image or the three-dimensional visualization image by using a webpage.

Specifically, the pre-configured visualization list stores the type of the architectural plan that the user desires to obtain, for example, a two-dimensional visualization image or a three-dimensional visualization image; after the edited building plan is obtained, the server drives a corresponding PixiJS or ThreeJS engine to perform visual rendering on the edited building plan based on the type of the building plan to obtain a two-dimensional visual image or a three-dimensional visual image; further, the server displays the two-dimensional visualization image or the three-dimensional visualization image using a web page. Here, the visualization list may be a list pre-configured by the user according to empirical data, or may be a list obtained by adjusting the configured list according to actual needs by the user, which is not limited in the embodiment of the present disclosure.

For example, taking an escalator in a shopping mall plan as an example, if a two-dimensional visual image of the escalator is desired to be displayed, the two-dimensional visual rendering may be performed on the shopping mall plan through the pixijjs engine to obtain a two-dimensional visual effect, as shown by a circular area in fig. 2 e; if a three-dimensional visual image of the escalator is desired to be displayed, a three-dimensional visual rendering can be performed on the shopping mall plan through the ThreeJS engine, so that a three-dimensional visual effect is obtained, as shown by a square area in fig. 2 f.

In some embodiments, in the event that it is determined that there is no resource identifier or component identifier of the plurality of resource identifiers and the plurality of component identifiers that matches the target area identifier, the server issues an error warning or generates a blank image.

All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.

Fig. 3 is a flowchart illustrating another online editing method provided by the embodiment of the present disclosure. The online editing method of fig. 3 may be performed by a server or a terminal device. As shown in fig. 3, the online editing method includes:

s301, obtaining Revit model data of the building information model, and converting the Revit model data into data which can be identified by a lightweight engine by using a Revit plug-in;

s302, storing data recognizable by a lightweight engine into JSON format data, wherein the JSON format data comprises attribute data and entity data, the attribute data comprises floor identification of a floor, the entity data comprises entity attribute data and entity geometric data of each entity in a plurality of entities in the floor, and the entity attribute data comprises type data of each entity;

s303, traversing each entity in a plurality of entities in the floor by using a lightweight engine based on the floor identification of the floor, and separating resource data and component data of entity data based on type data of each entity to obtain adjusted model data;

s304, acquiring a plurality of resource identifications and resource outline data of a plurality of resources and member outline data of a plurality of member identifications and a plurality of members in the adjusted model data, generating a building plan based on the resource identifications and the resource outline data of the resources and the member identifications and the member outline data of the members, and displaying the building plan through a webpage;

s305, receiving an online editing instruction, and traversing the resource identifiers and the component identifiers one by one based on a target area identifier of a target area carried in the online editing instruction;

s306, determining whether the resource identifier or the component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers based on the traversal result, and if so, executing S307; otherwise, executing S309;

s307, based on the online editing instruction, performing online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier by calling the corresponding application program interface to obtain an edited building plan;

s308, visually rendering the edited building plan through a rendering engine based on a pre-configured visual list to obtain a two-dimensional visual image or a three-dimensional visual image, and displaying the two-dimensional visual image or the three-dimensional visual image by using a webpage;

s309, an error warning is issued or a blank image is generated.

Specifically, taking a server as an example, the server acquires Revit model data of a building information model, converts the Revit model data into data recognizable by a lightweight engine by using a Revit plug-in, and stores the data recognizable by the lightweight engine as JSON format data, wherein the JSON format data comprises attribute data and entity data, the attribute data comprises floor identification of a floor, the entity data comprises entity attribute data and entity geometric data of each entity in a plurality of entities in the floor, and the entity attribute data comprises type data of each entity; next, the server traverses each entity in a plurality of entities in the floor by using a lightweight engine based on the floor identification of the floor, and separates resource data and component data of the entity data based on the type data of each entity to obtain adjusted model data; further, the server acquires a plurality of resource identifications and resource outline data of a plurality of resources and member outline data of a plurality of member identifications and a plurality of member outlines in the adjusted model data, generates a building plan based on the resource identifications and resource outline data of the resources and the member identifications and member outline data of the members, and displays the building plan through a webpage; after receiving the online editing instruction, the server traverses the resource identifications and the component identifications one by one based on the target area identification of the target area carried in the online editing instruction so as to determine whether the resource identification or the component identification matched with the target area identification exists in the resource identifications and the component identifications; under the condition that the resource identification or the component identification matched with the target area identification exists in the plurality of resource identifications and the plurality of component identifications, the server carries out online editing operation on the resource corresponding to the resource identification or the component corresponding to the component identification by calling the corresponding application program interface based on the online editing instruction to obtain an edited building plan; further, the server performs visual rendering on the edited building plan through a rendering engine based on a pre-configured visual list to obtain a two-dimensional visual image or a three-dimensional visual image, and displays the two-dimensional visual image or the three-dimensional visual image by using a webpage; in the case where it is determined that there is no resource identifier or component identifier matching the target area identifier among the plurality of resource identifiers and the plurality of component identifiers, the server issues an error warning or generates a blank image.

According to the technical scheme provided by the embodiment of the disclosure, the building plane drawing can be directly edited on line on the webpage by adopting a lightweight engine technology, and the data package is designed into an event distribution mechanism, so that the two-dimensional editing drives the linkage of three-dimensional visualization, and therefore, the cross-platform capability, the two-dimensional editing capability and the three-dimensional visualization capability are provided, the editing process is optimized, the editing efficiency is improved, the error rate is reduced, a large amount of manpower and time cost are saved, and the user experience is further improved. In addition, the system can provide full-volume professional adsorption, scale driving, assistance of an auxiliary line and an extension line on the basis of realizing full-volume professional rendering, and therefore the accuracy of online editing is guaranteed, and online accurate editing based on a lightweight engine is realized.

In the following, the above online editing method is described in detail by taking a mall plan of a certain shopping mall as an example.

Firstly, creating Revit model data based on a preconfigured Revit model, and converting the Revit model data into data which can be identified by a lightweight engine by using a conversion plug-in secondarily developed by Revit based on a family type in Revit; further, the converted data is stored as GeoJSON format data, and the GeoJSON format data is as follows:

{

"data":{

"properties":{

"RevitID":434843,

"FEATURE_NAME":"3F",

"FEATURE_HEIGHT":11400

},

"features":{

"properties":{

"FEATURE_NAME2":"",

"FEATURE_AREA":-1,

"FEATURE_NAME":"",

"FEATURE_TYPE":"CBD_FLOOR",

"RevitID":2490618

},

"geometry":{

"coordinates":[

[

[

122249.98,

-50847.35

],

[

128004.02,

-50847.35

],

[

128004.02,

-25372.41

],

[

122454.01,

-25372.41

]

]

]

}

},

"assets":{

"version":"longfor.revitplug.2.0.3"

},

"type":"FeatureCollection"

}

}。

as can be seen from the above data, the GeoJSON format data includes two parts of content, namely attribute data (attributes) and entity data (features), wherein the attribute data includes Revit identification (434843), name (3F) and height (11400) of the FLOOR, the entity data includes entity attribute (attributes) data and entity geometry (geometry) data, the entity attribute data includes type data (CBD _ FLOOR) of the entity, and the entity geometry data includes. Coordinates of points of the entity ([ 122249.98, -50847.35], [128004.02, -50847.35], [128004.02, -25372.41], and [122454.01, -25372.41 ]).

It should be noted that, only data of one entity is shown here as an example, and in practical applications, data of multiple entities may be included in the GeoJSON format data.

Secondly, traversing a plurality of entities in the GeoJSON format data by using a lightweight engine based on the floor identification of the floor, and separating resource data and member data of the entity data based on the type data of each entity to obtain adjusted model data, wherein the adjusted model data mainly comprises two parts of contents, namely a resource data set and a member data set. Further, data loading is respectively carried out on the resource data in the resource data set and the component data in the component data set, so that the loaded resource data set comprises a plurality of resource identifications and resource outline data of a plurality of resources corresponding to the plurality of resource identifications, and the component data set comprises a plurality of component identifications and component outline data of a plurality of components corresponding to the plurality of component identifications; and generating adjusted model data based on the resource identification and resource outline data and the component identification and component outline data, and loading the adjusted model data by using a browser to display a market plan corresponding to the adjusted model data on a page, as shown in fig. 4 a.

Next, when the user selects any one of the target areas (e.g., 4F-07 in fig. 4 a) in the mall plan view for splitting, one of the resource lines L1 is selected based on the default of the scale-driven mode as the orthogonal mode, and one of the drop points a is selected as the starting point of splitting based on the distance scales of the starting point and the ending point of the resource line L1, as shown in fig. 4 b; suspending the mouse at the center point B of the wall to generate a horizontal extension line L2 and a vertical extension line L3 based on the center point B, wherein the extension lines themselves have an adsorption capability, and thus an intersection point C is obtained by adsorption in the positive direction of the Y axis, as shown in fig. 4C; further, being adsorbed to the center point B of the wall body and the horizontal vertical drop point D on the resource line L4, after determining that the splitting is completed, the target area (resource) 4F-07 is split into two areas, 4F-07a and 4F-07B, as shown in fig. 4 e.

Finally, based on the type of the mall plan desired by the user, for example, a three-dimensional visual image, the edited mall plan is visually rendered by the ThreeJS engine, so as to obtain a three-dimensional visual image as shown in fig. 4 f.

The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.

Fig. 5 is a schematic structural diagram of an online editing apparatus according to an embodiment of the present disclosure. As shown in fig. 5, the online editing apparatus includes:

an obtaining module 501 configured to obtain a building plan parsed from the building information model, and display the building plan through a web page, wherein the building plan includes a plurality of resource identifiers of a plurality of resources and a plurality of component identifiers of a plurality of components;

a receiving module 502 configured to receive an online editing instruction, where the online editing instruction is used to instruct an online editing operation on a target area and includes a target area identifier of the target area;

a determining module 503 configured to determine whether there is a resource identifier or a component identifier matching the target area identifier in the plurality of resource identifiers and the plurality of component identifiers;

and the editing module 504 is configured to perform online editing operation on the resource corresponding to the resource identifier or the component corresponding to the component identifier based on the online editing instruction when determining that the resource identifier or the component identifier matching with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers.

According to the technical scheme provided by the embodiment of the disclosure, the building plan is displayed through a webpage and a building plan parsed from a building information model, wherein the building plan comprises a plurality of resource identifications of a plurality of resources and a plurality of component identifications of a plurality of components; receiving an online editing instruction, wherein the online editing instruction is used for indicating online editing operation on a target area and comprises a target area identifier of the target area; determining whether a resource identifier or a component identifier matched with the target area identifier exists in the plurality of resource identifiers and the plurality of component identifiers; under the condition that the resource identification or the component identification matched with the target area identification exists in the plurality of resource identifications and the plurality of component identifications, online editing operation is carried out on the resource corresponding to the resource identification or the component corresponding to the component identification based on the online editing instruction, and the building plane drawing can be directly edited on a webpage online, so that the editing process is optimized, the editing efficiency is improved, the error rate is reduced, a large amount of labor and time cost is saved, and the user experience is further improved.

In some embodiments, the obtaining module 501 of fig. 5 obtains model data of the building information model and converts the model data into data recognizable by the lightweight engine using a conversion plug-in, where the conversion plug-in is a Revit plug-in; storing data recognizable by the lightweight engine into JSON format data, wherein the JSON format data comprises attribute data and entity data, the attribute data comprises floor identification of a floor, the entity data comprises entity attribute data and entity geometric data of each entity in a plurality of entities in the floor, and the entity attribute data comprises type data of each entity; and analyzing the JSON format data by using a lightweight engine to obtain adjusted model data, and displaying a building plan generated based on the adjusted model data through a webpage.

In some embodiments, the obtaining module 501 in fig. 5 traverses each entity in the plurality of entities in the floor by using the lightweight engine based on the floor identifier of the floor, and separates the resource data and the component data of the entity data based on the type data of each entity to obtain the adjusted model data, where the adjusted model data includes a resource data set and a component data set, the resource data set includes a plurality of resource identifiers and resource profile data of a plurality of resources corresponding to the plurality of resource identifiers, and the component data set includes a plurality of component identifiers and component profile data of a plurality of components corresponding to the plurality of component identifiers.

In some embodiments, the obtaining module 501 in fig. 5 merges the resource data based on the corresponding relationship between the resource and the object to obtain the object data, and separates the object data and the component data from the entity data based on the type data of each entity to obtain the adjusted model data.

In some embodiments, the obtaining module 501 of fig. 5 obtains a plurality of resource identifications and resource profile data of a plurality of resources and a plurality of component identifications and component profile data of a plurality of components, generates a building plan based on the plurality of resource identifications and resource profile data of the plurality of resources and the plurality of component identifications and component profile data of the plurality of components, and displays the building plan through a web page.

In some embodiments, the determination module 503 of fig. 5 compares the target area identification with each of the plurality of resource identifications and each of the plurality of component identifications to determine whether there is a resource identification or a component identification in the plurality of resource identifications and the plurality of component identifications that matches the target area identification.

In some embodiments, in a case that it is determined that there is a resource identifier or a component identifier matching the target area identifier in the plurality of resource identifiers and the plurality of component identifiers, the editing module 504 of fig. 5 performs an online editing operation on the resource or the component corresponding to the component identifier corresponding to the resource identifier by calling the corresponding application program interface based on the online editing instruction, so as to obtain an edited building plan.

In some embodiments, the online editing apparatus of fig. 5 further comprises: and the rendering module 505 is configured to perform visual rendering on the edited building plan by a rendering engine based on a preconfigured visual list after the edited building plan is obtained, obtain a two-dimensional visual image or a three-dimensional visual image, and display the two-dimensional visual image or the three-dimensional visual image by using a webpage.

In some embodiments, the editing operations include one or more of a divide operation, a merge operation, a delete operation, a translate operation, a rotate operation, a copy operation, a multiple-segment edit operation, a node edit operation, a segment arc rotation operation, a chamfer operation, an add new label operation, a delete label operation.

In some embodiments, the building information model is a Revit model.

It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

Fig. 6 is a schematic diagram of an electronic device 6 provided in an embodiment of the present disclosure. As shown in fig. 6, the electronic apparatus 6 of this embodiment includes: a processor 601, a memory 602, and a computer program 603 stored in the memory 602 and operable on the processor 601. The steps in the various method embodiments described above are implemented when the computer program 603 is executed by the processor 601. Alternatively, the processor 601 realizes the functions of each module/unit in the above-described apparatus embodiments when executing the computer program 603.

Illustratively, the computer program 603 may be partitioned into one or more modules/units, which are stored in the memory 602 and executed by the processor 601 to accomplish the present disclosure. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 603 in the electronic device 6.

The electronic device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 6 may include, but is not limited to, a processor 601 and a memory 602. Those skilled in the art will appreciate that fig. 6 is merely an example of an electronic device 6, and does not constitute a limitation of the electronic device 6, and may include more or fewer components than shown, or combine certain components, or different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.

The Processor 601 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The storage 602 may be an internal storage unit of the electronic device 6, for example, a hard disk or a memory of the electronic device 6. The memory 602 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 6. Further, the memory 602 may also include both internal storage units of the electronic device 6 and external storage devices. The memory 602 is used for storing computer programs and other programs and data required by the electronic device. The memory 602 may also be used to temporarily store data that has been output or is to be output.

It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.

Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.

In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, and multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.

The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

29页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:路径规划方法及计算机可读介质

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类