CN114386152A - Lightweight BIM model linkage labeling system based on WebSocket - Google Patents

Lightweight BIM model linkage labeling system based on WebSocket Download PDF

Info

Publication number
CN114386152A
CN114386152A CN202210039998.0A CN202210039998A CN114386152A CN 114386152 A CN114386152 A CN 114386152A CN 202210039998 A CN202210039998 A CN 202210039998A CN 114386152 A CN114386152 A CN 114386152A
Authority
CN
China
Prior art keywords
server
websocket
model
connection
bim model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210039998.0A
Other languages
Chinese (zh)
Other versions
CN114386152B (en
Inventor
赵昕
邓旭艳
张卫强
成蕾
陈昌黎
张镇宇
杨文�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PowerChina Kunming Engineering Corp Ltd
Original Assignee
PowerChina Kunming Engineering Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by PowerChina Kunming Engineering Corp Ltd filed Critical PowerChina Kunming Engineering Corp Ltd
Priority to CN202210039998.0A priority Critical patent/CN114386152B/en
Publication of CN114386152A publication Critical patent/CN114386152A/en
Application granted granted Critical
Publication of CN114386152B publication Critical patent/CN114386152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5011Pool
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of BIM model cooperative work, in particular to a lightweight BIM model linkage annotation system based on WebSocket, which adopts a B/S framework and consists of a server side and a WebSocket client side, wherein the server side is a WebSocket server based on IIS; the WebSocket client sends a connection handshake request to the server side and acquires lightweight BIM model data; the WebSocket client returns the lightweight BIM model data after receiving a connection handshake success command sent by the server side, establishes communication connection with the server side, and accesses the lightweight BIM model data of the server side through the browser to generate linkage labels. The system provides a method for real-time marking and real-time collaborative communication of the BIM between project teams, owners, designers and the like, and is convenient to implement, simple in technology, low in cost and high in collaborative efficiency.

Description

Lightweight BIM model linkage labeling system based on WebSocket
Technical Field
The invention relates to the technical field of BIM model cooperative work, in particular to a BIM model data interaction and model annotation updating system based on WebSocket.
Background
Today, with the rapid development of informatization and digitization, most BIM models are in operations such as model browsing, member query, attribute check and the like after being lightened in the process of engineering project digitization, and are difficult to communicate and communicate with project team members, clients and external unit personnel in remote real-time online model design. Therefore, a webpage-based BIM collaborative linkage labeling system is needed to be designed, and the problem that the existing lightweight BIM cannot realize online real-time communication and labeling is solved.
Publication No. CN107784162 discloses a BIM model sharing method based on web pages, and model copies are shared after models are created; establishing a model, acquiring a model copy corresponding to the model, sharing the model copy, and establishing WebSocket editing authority connection between a creator of the model and a calculation instance corresponding to the model copy; when the model copy is viewed, establishing WebSocket viewing permission connection between a viewer and a calculation instance corresponding to the model copy; editing the model copy, and sending an editing instruction to a calculation example corresponding to the model copy; responding to an editing instruction, and modifying the model copy according to the editing instruction; and updating the original model copy with the modified model copy. The method is characterized in that the BIM model needs to be modified and updated, so that an additional BIM model copy can be stored in the server side, time difference can be generated when the client side uploads and downloads the BIM model, and real-time linkage cannot be realized.
Disclosure of Invention
The invention aims to provide a light weight BIM model linkage marking system based on WebSocket, which is convenient for project team members, clients and external unit personnel to perform real-time online real-time linkage marking on a light weight BIM model in different places, and improves the cooperative communication efficiency.
In order to achieve the purpose, the invention discloses a lightweight BIM (building information modeling) model linkage labeling system based on Websocket, which adopts a B/S (browser/server) framework and consists of a server side and a Websocket client, wherein:
the server side is a WebSocket server based on IIS, and lightweight BIM model data and WebSocket service based on a B/S framework are provided; the WebSocket client sends a connection handshake request to the server side and acquires lightweight BIM model data; the WebSocket client returns light-weight BIM model data after receiving a connection handshake success instruction sent by the server side, establishes communication connection with the server side, and accesses the light-weight BIM model data of the server side through a browser to generate linkage labels; the WebSocket client monitors the connection state with the server in real time through the connection monitoring module.
Specifically, the WebSocket client is divided into a creator side and a participant side, where:
the method comprises the steps that a server side firstly receives a WebSocket connection request sent by a creator side, establishes connection between the creator side and the server side, adds the connection into a connection pool, and simultaneously generates a linkage label access page address;
the participant end accesses the linkage label access page address generated by the creator end, the participant end receives the lightweight BIM model data returned by the server end and simultaneously starts a label function, and the participant end and the creator end are added into a connection pool with the same identification; the creator side starts a labeling function on the lightweight BIM returned by the server side, and a labeling monitoring module sends model labeling information to the server side;
and the server side receives the model marking information sent by the creator side, sends the received model marking information to the participant side in the connection pool, and updates the linkage marking information accessed by the participant side when the participant side receives the model marking information.
The operation mode of the connection monitoring module is as follows: and setting a timer, sending a ping data to the server at fixed intervals, if the connection is normal, returning normal connection information to the WebSocket client by the server, monitoring the returned normal connection information by the client through an onmessage event, otherwise, sending the connection handshake request to the server again when the connection is disconnected or abnormal.
The operation mode of the marking monitoring module is as follows: and setting a timer, detecting whether new model marking information exists on lightweight BIM model data opened by a client at fixed time intervals, and if detecting that the new model marking information exists locally, sending the model marking information to a server in a JSON format.
Specifically, the server side performs annotation information interaction in the light weight BIM model data with the WebSocket client side through a full-duplex asynchronous ASP-NET thread pool, information transmitted between the server side and the WebSocket client side is in a JSON format, and annotation information in the light weight BIM model data is SVG vector graphic information so as to synchronously update information obtained on the WebSocket client side. After the full-duplex asynchronous ASP-NET thread pool is adopted, every time a server receives a request, each processing step of the request in the thread pool is carried out on one thread, the response capability of the service is improved, the real-time synchronous experience of client cooperation is enhanced, the BIM model application channel is unblocked, the full-duplex asynchronous ASP-NET thread pool is adopted to manage the time sequence queue problem of lightweight BIM model data request and model marking information forwarding, meanwhile, the network transmission is carried out by adopting the SVG graphic information which is simple in format, easy to read and write and small in occupied bandwidth to carry out BIM model marking, the response speed of the system is greatly improved, the client is easy to rapidly generate and analyze, the stability and the bandwidth utilization rate of the system are improved on the basis of realizing a full-duplex mechanism, and the service efficiency and the processing performance of the system are improved.
Compared with the comparison file: on one hand, the technical scheme of the invention takes the BIM model after being lightened as the application basis of the real-time linkage marking system, the server side does not generate extra BIM model copies and does not modify and update the BIM model, the marking is carried out on the lightened BIM model opened on a client browser, and model marking information is not stored in the server side and the client side; the server only provides WebSocket connection service and label information forwarding functions.
And on the other hand, the real-time linkage labeling system is based on a B/S framework, adopts a full-duplex asynchronous ASP/NET thread pool to manage the BIM model data request and the time sequence queue problem of model labeling information forwarding, enriches the application scenes of the BIM model in a multi-terminal real-time sharing available annotation mode, enhances the intention expression of application models such as design, construction and the like, eliminates network delay, and realizes real instant response and real-time sharing.
The system provides a method for real-time marking and real-time collaborative communication of the BIM between project teams, owners, designers and the like, and is convenient to implement, simple in technology, low in cost and high in collaborative efficiency.
Drawings
FIG. 1 is a block diagram of the present invention.
FIG. 2 is a schematic flow chart of the present invention.
Fig. 3 is a model linkage annotation diagram of an application example of the present invention, where the left side is a creator-side model annotation page, and the right side is a participant-side page, where the participant side updates annotation information sent from the server side.
Detailed Description
Example 1: in order to facilitate the understanding and implementation of the present invention for those of ordinary skill in the art, the present invention is further described in detail with reference to the accompanying drawings and examples, it is to be understood that the embodiments described herein are merely illustrative and explanatory of the present invention and are not restrictive thereof.
The lightweight BIM model linkage labeling system based on the WebSocket is described in the following with the aid of the attached drawings. The system comprises a server side and a WebSocket client side; the WebSocket client consists of a creator end and a participant end.
The WebSocket client communicates with the server side and sends a lightweight BIM model data request, a WebSocket connection request and model marking information to the server side.
And the server side receives the lightweight BIM model data request and returns the lightweight BIM model data to the creator WebSocket client side.
And the server receives the WebSocket connection request and adds the WebSocket client request into the connection pool.
And the server side receives the model marking information, sends the model marking information to other WebSocket client sides, and the other WebSocket client sides receive the model marking information sent by the server side and update the model marking information on the light weight BIM accessed by the server side.
The BIM model annotation information is data in a JSON format, and the WebSocket client sends the model annotation information to the server through the HTTP channel.
And the server receives the WebSocket client model labeling information, traverses the rest WebSocket clients in the connection pool, and sends the model labeling information to the clients.
And communication connection is established between the plurality of WebSocket clients and the server side, so that the annotation information on the lightweight BIM can be updated in real time when the model annotation information of the server side is received.
The WebSocket client comprises a connection monitoring module, so that the WebSocket client can monitor the connection state with the server end in real time through the connection monitoring module and send a connection handshake request to the server end again when the connection is disconnected or abnormal.
The WebSocket client comprises a model marking information change monitoring module, so that the WebSocket client can monitor the change state of local marking information in real time through the model marking information change monitoring module, and can send the model marking information to the server in time after new marking information exists.
The server side is a WebSocket server based on IIS. Based on this, the connection between the server and the WebSocket client is WebSocket connection. And the server side and the WebSocket client side are realized based on IIS and ASP. For the server, calling WebSocket.ReceiveAsync (buffer, token) to monitor the model annotation information sent by the WebSocket client, calling CONNECT _ POOL.ContainsKey (client user) to traverse the WebSocket client in the connection pool, and calling WebSocket.SendAsync (buffer, type) to send the model annotation information to the rest of WebSocket clients.
For the WebSocket client, WebSocket.send (markupInfo) is called to send model marking information to the server, an Onmessage () method monitors the model marking information sent by the server in real time, and when the model marking information of the server is received, an update () method is immediately called to update the marking information on the opened model.
In this embodiment, the operation flow of the lightweight BIM model linkage annotation system based on the WebSocket is summarized as follows:
step 1, a creator WebSocket client opens a lightweight BIM model access page, and a server returns lightweight BIM model data;
step 2, a creator WebSocket client starts linkage annotation, establishes WebSocket connection with a server, and adds a creator end into a connection pool in the server end; meanwhile, the server end returns the address of the linkage label page to the creator end;
step 3, the creator end sends the linkage annotation page to other participant ends;
step 4, the participant end opens a linkage annotation page, the server end returns light BIM model data, and the participant end automatically joins in a connection pool in the server end;
step 5, selecting any marking tool from the creator side, wherein the marking tool comprises but is not limited to a painting pen, characters, a rectangular frame, an arrow and the like, marking the place needing to be marked on the BIM model, and generating SVG graphic information after marking;
step 6, the linkage marking model page of the creator end detects that new model marking information exists, and sends the generated SVG vector model marking graphic information to the server end;
step 7, the server side receives the model marking information sent by the creator side, traverses the participant sides in the connection pool, and simultaneously sends the received model marking information to the participant sides;
and 8, the participant side can acquire the model labeling information from the server side in real time through an Onmessage callback function in the linkage labeling page, and meanwhile, the acquired model labeling information is updated to the light BIM model accessed by the participant side.
And 9, if new model marking information exists, repeatedly executing the processes from the step 5 to the step 8, and realizing the collaborative linkage marking of the BIM model.

Claims (5)

1. The lightweight BIM model linkage annotation system based on the WebSocket is characterized in that the system adopts a B/S framework and consists of a server side and a WebSocket client side, wherein:
the server side is a WebSocket server based on IIS, and lightweight BIM model data and WebSocket service based on a B/S framework are provided; the WebSocket client sends a connection handshake request to the server side and acquires lightweight BIM model data; the WebSocket client returns light-weight BIM model data after receiving a connection handshake success instruction sent by the server side, establishes communication connection with the server side, and accesses the light-weight BIM model data of the server side through a browser to generate linkage labels; the WebSocket client monitors the connection state with the server in real time through the connection monitoring module;
specifically, the WebSocket client is divided into a creator side and a participant side, where:
the method comprises the steps that a server side firstly receives a WebSocket connection request sent by a creator side, establishes connection between the creator side and the server side, adds the connection into a connection pool, and simultaneously generates a linkage label access page address;
the participant end accesses the linkage label access page address generated by the creator end, the participant end receives the lightweight BIM model data returned by the server end and simultaneously starts a label function, and the participant end and the creator end are added into a connection pool with the same identification; the creator side starts a labeling function on the lightweight BIM returned by the server side, and a labeling monitoring module sends model labeling information to the server side;
and the server side receives the model marking information sent by the creator side, sends the received model marking information to the participant side in the connection pool, and updates the linkage marking information accessed by the participant side when the participant side receives the model marking information.
2. The WebSocket-based lightweight BIM model linkage labeling system as claimed in claim 1, wherein the operation mode of the connection monitoring module is as follows: and setting a timer, sending a ping data to the server at fixed intervals, if the connection is normal, returning normal connection information to the WebSocket client by the server, monitoring the returned normal connection information by the client through an onmessage event, otherwise, sending the connection handshake request to the server again when the connection is disconnected or abnormal.
3. The WebSocket-based lightweight BIM model linkage annotation system as claimed in claim 1, wherein the annotation monitoring module operates in the following manner: and setting a timer, detecting whether new model marking information exists on lightweight BIM model data opened by a client at fixed time intervals, and if detecting that the new model marking information exists locally, sending the model marking information to a server in a JSON format.
4. The WebSocket-based lightweight BIM model linkage annotation system as claimed in claim 1, wherein a server side performs annotation information interaction in lightweight BIM model data with a WebSocket client side through a full-duplex asynchronous ASP-NET thread pool, information transmitted between the server side and the WebSocket client side is in a JSON format, and annotation information in the lightweight BIM model data is SVG vector graphics information to synchronously update information obtained from the WebSocket client side.
5. The utility model provides an operation flow of lightweight BIM model linkage marking system based on WebSocket which characterized in that:
step 1), a creator WebSocket client opens a lightweight BIM model access page, and a server returns lightweight BIM model data;
step 2), the creator WebSocket client starts linkage annotation, establishes WebSocket connection with the server, and adds the creator to a connection pool in the server; meanwhile, the server end returns the address of the linkage label page to the creator end;
step 3), the creator end sends the linkage annotation page to other participant ends;
step 4), the participant end opens a linkage annotation page, the server end returns light BIM model data, and meanwhile, the participant end automatically joins in a connection pool in the server end;
step 5), the creator end selects any marking tool, the marking tool comprises but is not limited to a painting pen, characters, a rectangular frame, an arrow and the like, the place needing marking on the BIM model is marked, and SVG graphic information is generated after marking;
step 6), the linkage marking model page of the creator end detects that new model marking information exists, and sends the generated SVG vector model marking graphic information to the server end;
step 7), the server receives the model marking information sent by the creator, traverses the participant ends in the connection pool, and simultaneously sends the received model marking information to the participant ends;
and 8), the participant side can acquire the model labeling information from the server side in real time through an Onmessage callback function in the linkage labeling page, and meanwhile, the acquired model labeling information is updated to the light BIM model accessed by the participant side.
CN202210039998.0A 2022-01-14 2022-01-14 Light BIM model linkage labeling system based on WebSocket Active CN114386152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210039998.0A CN114386152B (en) 2022-01-14 2022-01-14 Light BIM model linkage labeling system based on WebSocket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210039998.0A CN114386152B (en) 2022-01-14 2022-01-14 Light BIM model linkage labeling system based on WebSocket

Publications (2)

Publication Number Publication Date
CN114386152A true CN114386152A (en) 2022-04-22
CN114386152B CN114386152B (en) 2024-03-29

Family

ID=81201300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210039998.0A Active CN114386152B (en) 2022-01-14 2022-01-14 Light BIM model linkage labeling system based on WebSocket

Country Status (1)

Country Link
CN (1) CN114386152B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117315494A (en) * 2023-11-29 2023-12-29 中国科学院空天信息创新研究院 Collaborative concurrency labeling method and system based on regional association

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013097401A1 (en) * 2011-12-30 2013-07-04 华为技术有限公司 Method, gateway and communication system for browser client directly communicating with back-end server
CN104010039A (en) * 2014-06-05 2014-08-27 北京航空航天大学 Multi-radar remote monitoring system and method based on WebSocket
CN107515997A (en) * 2017-09-27 2017-12-26 深圳拎得清软件有限公司 The multi-specialized collaborative design methods of BIM and its system based on webpage

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013097401A1 (en) * 2011-12-30 2013-07-04 华为技术有限公司 Method, gateway and communication system for browser client directly communicating with back-end server
CN104010039A (en) * 2014-06-05 2014-08-27 北京航空航天大学 Multi-radar remote monitoring system and method based on WebSocket
CN107515997A (en) * 2017-09-27 2017-12-26 深圳拎得清软件有限公司 The multi-specialized collaborative design methods of BIM and its system based on webpage

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周乐钦;燕彩蓉;苏厚勤;: "基于Web-Socket协议的推送数据技术在监控系统中的应用研究", 计算机应用与软件, no. 05, 31 May 2013 (2013-05-31), pages 229 - 232 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117315494A (en) * 2023-11-29 2023-12-29 中国科学院空天信息创新研究院 Collaborative concurrency labeling method and system based on regional association

Also Published As

Publication number Publication date
CN114386152B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN111367445B (en) Image annotation method and device
US8516050B1 (en) Methods and program products for communicating file modifications during a collaboration event
KR101928266B1 (en) Collaborative video application for remote servicing
US8121990B1 (en) Methods, systems and program products for communicating file modification information
US8395652B1 (en) Data network collaboration systems having a shared file
KR100711661B1 (en) Method and apparatus for prioritizing data change requests and maintaining data consistency in a distributed computer system equipped for activity-based collaboration
CN107040416B (en) Virtual data center visual management method based on Cairngorm framework
US6829630B1 (en) Mechanisms for web-object event/state-driven communication between networked devices
US9753888B2 (en) Information processing device and conference system
CN111597005A (en) Big data visualization three-dimensional GIS cloud rendering project generation system and method
US8458283B1 (en) Methods and program products for efficient communication of shared file modifications during a collaboration event
KR20020035565A (en) Method and apparatus for activity-based collaboration by a computer system equipped with a dynamics manager
CN110633436B (en) Visual and user-defined panoramic editing method, system, storage medium and equipment
CN113902866B (en) Double-engine driven digital twin system
CN104951996A (en) Power distribution network operation monitoring method based on scalable vector graphics
CN111949256A (en) Webpage real-time preview editing method, device, equipment and storage medium
CN103324605A (en) Method, equipment and system for collaborative editing of multiple users
US20150019486A1 (en) System and Method for Delta Change Synchronization of Data Changes across a Plurality of Nodes
CN102523109A (en) Resource state updating method, management client ends, and server
CN114386152B (en) Light BIM model linkage labeling system based on WebSocket
CN113139219B (en) Coordination-oriented three-dimensional CAD model external information synchronization system and method
CN113556387A (en) Edge gateway control method, system, device, electronic equipment and storage medium
CN112650653A (en) Plug-and-play and visual operation and maintenance system and method for equipment
US20080313200A1 (en) Method and apparatus for data exploration
Kovachev et al. Mobile real-time collaboration for semantic multimedia: A case study with mobile augmented reality systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant