WO2023109303A1 - 在线协同编辑方法、装置、电子设备及存储介质 - Google Patents

在线协同编辑方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023109303A1
WO2023109303A1 PCT/CN2022/126023 CN2022126023W WO2023109303A1 WO 2023109303 A1 WO2023109303 A1 WO 2023109303A1 CN 2022126023 W CN2022126023 W CN 2022126023W WO 2023109303 A1 WO2023109303 A1 WO 2023109303A1
Authority
WO
WIPO (PCT)
Prior art keywords
model
file
resource
log file
effective date
Prior art date
Application number
PCT/CN2022/126023
Other languages
English (en)
French (fr)
Inventor
田野
王强
翟铭
康思迪
任远
Original Assignee
深圳须弥云图空间科技有限公司
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 深圳须弥云图空间科技有限公司 filed Critical 深圳须弥云图空间科技有限公司
Priority to EP22906055.3A priority Critical patent/EP4432151A1/en
Publication of WO2023109303A1 publication Critical patent/WO2023109303A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
    • 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
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/02CAD in a network environment, e.g. collaborative CAD or distributed simulation

Definitions

  • the present disclosure relates to the technical field of architectural design, and in particular to an online collaborative editing method, device, electronic equipment and computer-readable storage medium.
  • Building Information Modeling (Building Information Modeling, BIM) is a new type of computer application technology in the engineering construction industry. , operation management and other stages of the whole life cycle process to share and transfer, so that engineering and technical personnel can make a correct understanding and efficient response to various building information, for the design team, construction unit and all parties including the construction operation unit
  • the main body provides the basis for collaborative work and plays an important role in improving production efficiency, saving costs and shortening the construction period.
  • AutoCAD Autodesk Computer Aided Design
  • Autodesk Autodesk
  • the embodiments of the present disclosure provide an online collaborative editing method, device, electronic equipment, and computer-readable storage medium to solve the existing problems in the prior art, such as long cycle of drawing modification, low drawing efficiency, error-prone and costly The problem of a lot of manpower and time cost.
  • the first aspect of the embodiments of the present disclosure provides an online collaborative editing method, including: obtaining the imported building information model, converting the building information model into an original model file that meets the predetermined lightweight engine requirements, and displaying the original model file through a web page The building plan corresponding to the model file; receiving the first model log file uploaded by the first user and the second model log file uploaded by the second user, wherein the first model log file is a log obtained by online editing of the building plan by the first user file, the second model log file is a log file obtained by online editing of the building plan by the second user; based on the first effective date corresponding to the first model log file and the second effective date corresponding to the second model log file, determine the first The latest effective date among the effective date and the second effective date; if the first effective date is determined to be the latest effective date, the original model file is updated based on the first model log file to obtain an intermediate model file, and based on the second model The log file updates the intermediate model file to obtain the target model file.
  • the second aspect of the embodiments of the present disclosure provides an online collaborative editing device, including: an acquisition module configured to acquire an imported building information model, and convert the building information model into an original model file that meets the predetermined lightweight engine requirements , and display the building plan corresponding to the original model file through the webpage; the receiving module is configured to receive the first model log file uploaded by the first user and the second model log file uploaded by the second user, wherein the first model log file is The log file obtained by the first user editing the building plan online, and the second model log file is the log file obtained by the second user editing the building plan online; the determining module is configured to be based on the first model corresponding to the first model log file The effective date and the second effective date corresponding to the second model log file, determining the latest effective date among the first effective date and the second effective date; the update module is configured to determine that the first effective date is the latest effective date , updating the original model file based on the first model log file to obtain an intermediate model file, and updating the intermediate model file based on the second model log file to obtain a
  • a third aspect of the embodiments of the present disclosure provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor.
  • the processor implements the steps of the above method when executing the computer program.
  • a fourth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method are implemented.
  • the embodiment of the present disclosure has the beneficial effects that: by acquiring the imported building information model, the building information model is transformed into an original model file that meets the predetermined lightweight engine requirements, and the corresponding original model file is displayed through the webpage.
  • the building plan ; receiving the first model log file uploaded by the first user and the second model log file uploaded by the second user, wherein the first model log file is a log file obtained by online editing of the building plan by the first user, the first The second model log file is a log file obtained by online editing of the building plan by the second user; based on the first effective date corresponding to the first model log file and the second effective date corresponding to the second model log file, determine the first effective date and The latest effective date in the second effective date; when the first effective date is determined to be the latest effective date, update the original model file based on the first model log file to obtain an intermediate model file, and update the intermediate model file based on the second model log file
  • the intermediate model file is updated to obtain the target model file, so that different users can simultaneously edit the architectural plan online
  • FIG. 1 is a schematic flowchart of an online collaborative editing method provided by an embodiment of the present disclosure
  • Fig. 2a is a schematic diagram of a building plan displayed on a browser when a conflict occurs according to an embodiment of the present disclosure
  • Fig. 2b is a schematic diagram of an example involved in an actual application scenario of an embodiment of the present disclosure
  • Fig. 3 is a schematic structural diagram of an online collaborative editing device provided by an embodiment of the present disclosure.
  • Fig. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • a building plan is a drawing composed of the walls, doors, windows, stairs, ground and internal functional layout of a new building or structure, using horizontal projection methods and corresponding legends.
  • architectural plan reflects the plan shape, size, internal layout, ground, specific location of doors and windows, and occupied area of the building.
  • the important basis is also the basis for designing and planning water supply and drainage, strong and weak electricity, HVAC equipment and other professional engineering plans and drawing comprehensive pipeline drawings.
  • Architectural plans can be divided into architectural construction drawings, structural construction drawings and equipment construction drawings.
  • the floor plan of a building used for construction usually includes a ground floor plan, a standard floor plan, a top floor plan and a roof plan.
  • each process may involve the modification of the drawings, and the modification of the drawings usually requires engineering technology
  • Personnel do it manually on professional drawing software (for example, AutoCAD, SketchUp, 3D Studio Max), so it takes a lot of manpower and time costs; further, due to manual drawing of drawings, the drawing speed of drawings is slow, and it is difficult to ensure that drawings the quality of.
  • professional drawing software for example, AutoCAD, SketchUp, 3D Studio Max
  • Fig. 1 is a schematic flowchart of an online collaborative editing method provided by an embodiment of the present disclosure.
  • the online collaborative editing method in FIG. 1 can be executed by a server or a terminal device.
  • the online collaborative editing method includes:
  • the server converts the building information model into an original model file that meets the predetermined lightweight engine requirements, and displays the building plan corresponding to the original model file through a web page; when After receiving the first model log file obtained by the first user's online editing of the building plan and the second model log file obtained by the second user's online editing of the building plan, the server obtains the first effective date corresponding to the first model log file The second effective date corresponding to the second model log file, and determine the effective date closest to the current date among the first effective date and the second effective date as the latest effective date; further, when determining the first effective date as the latest effective date date, the server updates the original model file based on the first model log file to obtain an intermediate model file, and updates the intermediate model file based on the second model log file to obtain a target model file.
  • the server may be a server that provides various services, for example, a background server that receives a request sent by a terminal device that establishes a communication connection with it, and the background server may receive and analyze the request sent by the terminal device, and generate process result.
  • the server may be one server, or a server cluster composed of several servers, or a cloud computing service center, which is not limited in the embodiments of the present disclosure.
  • the server can be hardware or software.
  • the server may be various electronic devices that provide various services for terminal devices.
  • the server is software, it may be a plurality of software or software modules that provide various services for the terminal device, or may be a single software or a software module that provides various services for the terminal device, which is not limited in the embodiments of the present disclosure. It should be noted that the specific type, quantity, and combination of servers may be adjusted according to actual requirements of application scenarios, which is not limited in this embodiment of the present disclosure.
  • Terminal equipment can be hardware or software.
  • the terminal device When the terminal device is hardware, it can be various electronic devices that have a display screen and support communication with the server, including but not limited to smart phones, tablet computers, laptop computers and desktop computers, etc.; when the terminal device is software , which can be installed in an electronic device as described above.
  • the terminal device may be implemented as multiple 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.
  • a model refers to a formalized expression of a practical problem or objective thing or law after abstraction, and usually consists of three parts: target, variable, and relationship.
  • Models may include, but are not limited to, mathematical models, program models, logic models, structural models, method models, analysis models, management models, data models, system models, and the like.
  • the model may be a building information model (BIM), which is based on three-dimensional digital technology and integrates various related information of construction projects. have real information.
  • BIM building information model
  • Revit is a mainstream BIM visualization and modeling tool, therefore, the building information model in the embodiment of the present disclosure can adopt the Revit model.
  • the original model file refers to the model file obtained by converting the building information model and can be identified and loaded by the lightweight engine.
  • the intermediate model file is a model file obtained by updating the original model file
  • the target model file is a model file obtained by updating the intermediate model file.
  • the lightweight engine is used to perform lightweight conversion of the BIM model, and to load and use the lightweight model.
  • the lightweight conversion is to convert the BIM model into graphic metadata and model structured data through a lightweight engine.
  • the graphic metadata is saved in the form of original files; the model structured data is saved in the corresponding relational database in the form of data records. , so that later data retrieval and utilization.
  • the loading and use of the lightweight model is to use WebGL (Web Graphics Library) technology to display the lightweight BIM model on the webpage, including the control function of BIM, the custom function of model component attributes, and the annotation and display based on BIM model function etc.
  • WebGL is a three-dimensional (3Dimensions, 3D) drawing protocol.
  • This drawing technology standard allows the combination of JavaScript and OpenGL ES 2.0.
  • WebGL can provide hardware 3D for HTML5Canvas Accelerated rendering, so that web developers can not only display 3D scenes and models more smoothly in the browser with the help of system graphics cards, but also create complex navigation and data visualization. It can be seen that the WebGL technical standard eliminates the trouble of developing a special rendering plug-in for web pages, and can be used to create website pages with complex 3D structures, and even to design 3D web games.
  • a web page also called a web page (Web Page) is the basic element of a website and a platform for carrying various website applications. Web pages need to be read through a web browser.
  • a web browser is used to load the original model file, so that a page is used to display the architectural plan corresponding to the original model file, so as to facilitate online editing operations on the architectural plan drawing.
  • editing operations can include dividing operations, merging operations, deleting operations, translation operations, rotation operations, copy operations, polyline editing operations, node editing operations, line segments to arc operations, chamfering operations, adding annotation operations, and deleting annotations One or more of the operations.
  • Drawings refer to a technical document that uses graphics and text indicating dimensions to illustrate the structure, shape, size and other requirements of engineering buildings, machinery, equipment, etc.
  • Drawings may be of the work included in the Contract or of additions and amendments issued by the Employer (or on his behalf) under the Contract.
  • Drawings may be architectural drawings, including but not limited to architectural section drawings, architectural plans, architectural general plans, architectural engineering construction drawings, architectural construction drawings, and architectural engineering drawings, etc.
  • the drawing is a building plan, which is used to indicate the plan form, size, room layout, building entrance, entrance hall and staircase layout of the building, indicating the position, thickness and materials of walls and columns As well as the type and location of doors and windows.
  • Log files are record files or file collections used to record system operation events. They can be divided into event logs and message logs. They play an important role in processing historical data, diagnosing problems, and understanding system activities.
  • the event log records events that occur in the execution of the system in order to provide a trace that can be used to understand the activity of the system and diagnose problems.
  • Message logs for Internet Relay Chat (IRC), Instant Messaging (IM) programs, peer-to-peer file sharing clients with chat capabilities, and multiplayer games (particularly MMORPGs) often have the ability to automatically record (i.e. save) text communications.
  • the first model log file is a log file obtained by online editing of the building plan by the first user
  • the second model log file is a log file obtained by online editing of the building plan by the second user.
  • Effective Date means the date on which it becomes effective.
  • the first effective date is the date when the first model log file becomes effective
  • the second effective date is the date when the second model log file becomes effective.
  • the latest effective date is the effective date closest to the current date. For example, assuming that the first user revised the building plan on February 1, 2021, and the revision took effect on February 15, 2021, that is, the first effective date is February 15, 2021; The second user made changes to the floor plan on February 7, 2021, and the changes took effect on February 21, 2021, that is, the second effective date is February 21, 2021, if the current date is 2021 February 9, 2011, the first effective date shall be the most recent effective date.
  • a user may include only one user, or may include two or more users; a model log file may include only one model A log file can also include two or more model log files.
  • the building information model is converted into an original model file that meets the predetermined lightweight engine requirements, and the building plan corresponding to the original model file is displayed through the webpage; receiving the first A first model log file uploaded by a user and a second model log file uploaded by a second user, wherein the first model log file is a log file obtained by online editing of the building plan by the first user, and the second model log file is the first model log file.
  • Obtaining the target model file enables different users to conduct online collaborative editing of architectural plan drawings on the webpage at the same time, thus optimizing the editing process, improving editing efficiency, shortening the adjustment cycle, improving drawing efficiency, and reducing error rates , saving a lot of manpower and time costs, and further improving the user experience.
  • obtaining the imported building information model, converting the building information model into an original model file that meets the predetermined lightweight engine requirements, and displaying the building plan corresponding to the original model file through a web page includes: obtaining the building information model Model data, and use the conversion plug-in to convert the model data into the original model file, where the original model file is a file with a json suffix format; import the original model file into the lightweight engine, and use the lightweight engine to convert the original model file into a building Floor plan and display via web page.
  • the server obtains the model data of the building information model, and uses the conversion plug-in to convert the model data into the original model file in the json suffix format; further, the server imports the original model file into the lightweight engine, and uses the lightweight engine to convert the The original model file is converted into a building plan to display the building plan through a web page.
  • model data refers to model data constructed and generated through various building information modeling technologies.
  • the model data may be Revit model data, and the Revit model data is file data used by Revit software.
  • Revit is a 3D BIM design software (the main file format is .rvt, .rfa or .rte, etc.), which can be used to convert architectural standards into data storage.
  • the model data is not limited to the above-mentioned Revit model data, for example, may also include file data of other engineering drawing software (eg, AutoCAD, CATIA, Pro/ENGINEER, SolidWorks, etc.).
  • the model data is Revit model data.
  • a plug-in is a program written in accordance with a certain standard application program interface, which can only run on the system platform specified by the program (may support multiple platforms at the same time), and cannot run independently from the specified platform.
  • the conversion plug-in can be a Revit plug-in.
  • the Revit plug-in in the embodiment of the present disclosure is a secondary development plug-in.
  • secondary development refers to customizing and modifying existing software to expand functions, that is, to achieve desired functions; secondary development usually does not change the core of the original system.
  • JSON JavaScript Object Notation
  • ECMAScript Object Notation
  • JSON data parsing refers to parsing data in JSON format to obtain different types of data values.
  • the process of parsing JSON data can include: creating a JSON file, including the document.h and cocos-ext.h header files in the class, obtaining the path of the JSON file through FileUtils, and parsing the JSON format data through the Document object to obtain different types of data values .
  • the model data can be compressed and converted into JSON format data recognizable by the lightweight engine, so that the webpage can be loaded and displayed
  • the architectural floor plan generated based on the original model file therefore, realizes lightweight display and improves user experience.
  • determining the latest effective date among the first effective date and the second effective date includes: obtaining The first effective date of the preset first model log file and the second effective date of the preset second model log file; determine the effective date closest to the current date among the first effective date and the second effective date as the latest effective date date.
  • the first user can preset the date on which the first model log file is expected to become effective, that is, the first effective date, and combine the first model log file and The first effective date is submitted to the server together; similarly, after the second model log file is obtained by online editing of the building plan, the second user can preset the date on which the second model log file is expected to become effective, that is, the second effective date , and submit the second model log file and the second effective date to the server; further, the server compares the first effective date with the second effective date to determine the effective date closest to the current date, and compares the The most recent effective date serves as the most recent effective date.
  • the original model file is updated based on the first model log file to obtain an intermediate model file
  • the intermediate model file is updated based on the second model log file Updating to obtain the target model file, including: obtaining the first object data and the first resource data in the first model log file under the condition that the first effective date is determined to be the latest effective date, wherein the first object data includes floor The floor identifier and the first operation type, the first resource data includes the first resource identifier and the first resource attribute data corresponding to the first operation type; execute the operation corresponding to the first operation type on the original model file, and based on the first resource identification and first resource attribute data, merging the first model log file with the original model file to generate an intermediate model file, wherein the intermediate model file includes a plurality of intermediate resource identifiers of a plurality of intermediate resources; obtaining the second model log file The second object data and the second resource data, wherein, the second object data includes the floor identifier and the second
  • the server obtains the floor identifier and the first operation type in the first model log file and the first resource identifier and the first resource attribute corresponding to the first operation type data, and perform an operation corresponding to the first operation type on the original model file, so as to merge the first model log file with the original model file based on the first resource identifier and the first resource attribute data to obtain an intermediate model file; further, The server obtains the floor identifier and the second operation type in the second model log file, as well as the second resource identifier and the second resource attribute data corresponding to the second operation type, and executes the operation corresponding to the second operation type on the intermediate model file, The second model log file is merged with the intermediate model file based on the second resource identifier and the second resource attribute data to obtain the target model file.
  • an object refers to an area composed of resources, for example, a floor of a shopping mall.
  • the object data may include the floor identification (Identity, ID) and operation type of the floor.
  • the floor identifier refers to a unique identifier configured for a floor, which is used to distinguish different objects so as to find objects quickly and accurately.
  • the object identifier can be the geographical location of the object (for example, B area-1F, 1F, B-5F, etc.), and can also be the name of the object (for example, the first floor, the third floor, the tenth floor, the fifteenth floor, etc. ), which is not limited in the embodiments of the present disclosure.
  • the object identifier is the geographic location where the object is located.
  • the operation type may include, but is not limited to, any one of adding operation, modifying operation and deleting operation.
  • a resource refers to an area in a building plan, and is the smallest unit that composes an object, for example, a store in a shopping mall, that is, a investment attraction resource.
  • the specific types of shops may include, but are not limited to, catering shops, entertainment shops, apparel shops, shopping shops, service shops, children’s shops, empty shops, etc.
  • Resource data may include resource identification and resource attribute data corresponding to the operation type.
  • the resource identifier refers to a unique identifier configured for a resource, which is used to distinguish different resources so as to find resources quickly and accurately.
  • the resource identifier may be the geographic location where the resource is located (for example, Building A-5F-D07, 1F036, 2F-18, etc.), or the name of the resource (for example, the name of the store), which is not made in the embodiments of the present disclosure. limit.
  • the resource identifier is the geographic location where the resource is located.
  • the online collaborative editing method further includes: when it is determined that there is a conflict between the operation on the original model file and the operation on the intermediate model file, traversing the multiple intermediate resource identifiers in the intermediate model file to Determine whether there is an intermediate resource identifier that matches the second resource identifier among the multiple intermediate resource identifiers; if there is no intermediate resource identifier that matches the second resource identifier among the multiple intermediate resource identifiers, stop updating the intermediate model file , and send a conflict prompt message.
  • the server traverses the multiple intermediate resource identifiers in the intermediate model file to determine whether there is a Identify the matching intermediate resource identifier; if there is no intermediate resource identifier matching the second resource identifier among the multiple intermediate resource identifiers, the server stops updating the intermediate model file and sends a conflict prompt message.
  • the server will prompt the reason for the failure of the merge and hand it over to the shop maintenance personnel to handle it manually; at this time, the browser will simultaneously display the floor plan of the building corresponding to the different conflicting data, as shown in Figure 2a
  • the left picture in Figure 2a is the operation of the first user on the store 1F-01
  • the right picture in Figure 2a is the operation of the second user on the store 1F-01; further, the store maintenance personnel can manually select one of them as the version in effect.
  • Traversal refers to visiting each node in the tree (or graph) one by one along a certain search route.
  • the operation done by accessing the 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 so on.
  • Different traversal methods have different order of visiting nodes.
  • traversal refers to performing a traversal operation on all intermediate resource identifiers under the same floor to determine whether the intermediate resource identifier matches the second resource identifier.
  • the form of conflict prompt information may include, but not limited to, voice-type information, text-type information, and the like.
  • the conflict prompt information when the conflict prompt information is voice-type information, the conflict prompt information can be pushed to the user in the form of voice broadcast.
  • the conflict prompt information can be, for example, "the store does not exist, please verify!
  • the information can be a preset buzzer sound, such as a warning sound; when the conflict prompt information is text-type information, the conflict prompt information can be pushed to the user by popping up a floating window on the browser.
  • the conflict prompt information is, for example, It can be "The store does not exist and cannot be modified; if you need to modify it, please create a store first!.
  • the online collaborative editing method further includes: if there is an intermediate resource identifier matching the second resource identifier among the plurality of intermediate resource identifiers, converting the second resource attribute data to the intermediate resource attribute corresponding to the intermediate resource identifier data, and if the attribute data of the second resource is not completely consistent with the attribute data of the intermediate resource, stop updating the intermediate model file and send a conflict prompt message, wherein the attribute data of the second resource includes the second Resource identification, second resource type, second resource name, second resource area and second resource outline, the intermediate resource attribute data includes the intermediate resource identification, intermediate resource type, and intermediate resource name of each intermediate resource in the plurality of intermediate resources , intermediate resource area, and intermediate resource outline.
  • the server compares the second resource attribute data with the intermediate resource attribute data corresponding to the intermediate resource identifier one by one to determine the second resource Whether the attribute data is completely consistent with the intermediate resource attribute data; if the second resource attribute data is not completely consistent with the intermediate resource attribute data, the server stops updating the intermediate model file and sends a conflict prompt message; if the second resource attribute data is inconsistent with the intermediate If the resource attribute data is completely consistent, the server merges the second model log file with the intermediate model file to generate the target model file.
  • the resource attribute data refers to the data of the editable area (for example, the available area of the store) in the building plan, including but not limited to the resource identification, resource type, resource name, resource area and resource outline of the resource.
  • the resource outline may include, but not limited to, coordinates and identifiers of points, identifiers of edges, type, thickness, alignment, starting position and end position, identifiers and points of regions, and the like.
  • the resource outline may be the coordinates of the points constituting the outline of the resource, and based on the coordinates of the points, the outline extraction algorithm may be used to generate the outline of the resource.
  • the online collaborative editing method further includes: when it is determined that both the first effective date and the second effective date are the latest effective date, obtaining the first upload date and the second model log of the first model log file The second upload date of the file, and update the original model file according to the order of the first upload date and the second upload date.
  • the server further obtains the first upload date and the second model log file of the first model log file the second upload date of the log file, and determine the order of the first upload date and the second upload date; if the first upload date is earlier than the second upload date, the server updates the original model file based on the first model log file; If the first upload date is later than the second upload date, the server updates the original model file based on the second model log file.
  • the online collaborative editing method further includes: when it is determined that the first upload date and the second upload date are the same, displaying the first architectural plan and the second model log file corresponding to the first model log file through the webpage corresponding to the second architectural plan, and based on the manually selected first architectural plan or the second architectural plan, the original model file is updated.
  • the server cannot determine the order of the first model log file and the second model log file, the original model file cannot be updated; at this time , the server displays the first building floor plan corresponding to the first model log file and the second building floor plan corresponding to the second model log file through the webpage, and notifies the store maintenance personnel to select the first building floor plan and the second building floor plan in a manual manner.
  • One of the two architectural plans to update the original model file is not limited to one of the two architectural plans to update the original model file.
  • Revit model data based on the pre-configured Revit model, create Revit model data, and based on the family type in Revit, use the conversion plug-in developed by Revit to convert the Revit model data into the original model file that can be recognized and loaded by the lightweight engine; further , store the original model file as JSON format data, the JSON format data is as follows:
  • the JSON format data includes two parts: attribute data and resource data collection (areas), wherein the attribute data includes the height (0) and name (1F) of the floor, and the resource data collection includes the first resource data and
  • the second resource data here, the first resource data includes the identification of the first resource (1F-01), type (secondary subsidiary store), brand (empty shop), area (200.0), point coordinates ([20000, 0] , [40000, 0], [40000, 10000], [20000, 10000]), the second resource data includes the identification of the second resource (1F-02), type (main store), brand (MM), area (200.0 ), the coordinates of the point ([50000, 0], [60000, 0], [60000, 10000], [50000, 10000]).
  • data in JSON format may include data of multiple resources.
  • the first user takes the model file copied from the original model file as the first model file to be modified.
  • the first user modified the first model file on February 1, 2021, that is, a new resource "1F-20" was added, and the log file of the modified first model file (that is, the first Model log file) is uploaded to the server.
  • the effective date of the first model log file is set to February 15, 2021.
  • the JSON format data of the first model log file is as follows:
  • JSON format data of the first model file of the first user is as follows:
  • the first user may only upload the first model log file, so that the server can update the original model file based on the first model log file.
  • the second user takes the model file copied from the original model file as the second model file to be modified.
  • the second user modified the second model file on February 7, 2021, that is, the resource "1F-01" was deleted, and the log file of the modified second model file (that is, the second model log file) to the server, and at the same time, set the effective date of the second model log file to February 21, 2021.
  • the JSON format data of the second model log file is as follows:
  • JSON format data of the second model file of the second user is as follows:
  • the server updates the original model file based on the first model log file to obtain an intermediate model file, that is, "1F-20" is added on the basis of the original model file, and the intermediate model file
  • the JSON format data is as follows:
  • the server updates the intermediate model file based on the second model log file on February 21, 2021, and obtains the target model file, that is, deletes "1F-01" on the basis of the intermediate model file, and the target model file
  • the JSON format data is as follows:
  • Fig. 3 is a schematic structural diagram of an online collaborative editing device provided by an embodiment of the present disclosure. As shown in Figure 3, the online collaborative editing device includes:
  • the obtaining module 301 is configured to obtain the imported building information model, convert the building information model into an original model file meeting the predetermined lightweight engine requirements, and display the building plan corresponding to the original model file through the webpage;
  • the receiving module 302 is configured to receive the first model log file uploaded by the first user and the second model log file uploaded by the second user, wherein the first model log file is a log obtained by online editing of the building plan by the first user file, the second model log file is a log file obtained by the second user for online editing of the building plan;
  • the determination module 303 is configured to determine the latest effective date among the first effective date and the second effective date based on the first effective date corresponding to the first model log file and the second effective date corresponding to the second model log file;
  • the update module 304 is configured to update the original model file based on the first model log file to obtain the intermediate model file, and update the intermediate model file based on the second model log file when the first effective date is determined to be the latest effective date. Update to get the target model file.
  • the building information model is converted into an original model file that meets the predetermined lightweight engine requirements, and the building plan corresponding to the original model file is displayed through the webpage; receiving the first A first model log file uploaded by a user and a second model log file uploaded by a second user, wherein the first model log file is a log file obtained by online editing of the building plan by the first user, and the second model log file is the first model log file.
  • Obtaining the target model file enables different users to conduct online collaborative editing of architectural plan drawings on the webpage at the same time, thus optimizing the editing process, improving editing efficiency, shortening the adjustment cycle, improving drawing efficiency, and reducing error rates , saving a lot of manpower and time costs, and further improving the user experience.
  • the acquisition module 301 of FIG. 3 acquires the model data of the building information model, and uses the conversion plug-in to convert the model data into an original model file, wherein the original model file is a file with a json suffix format; the original model file is imported into To the lightweight engine, use the lightweight engine to convert the original model file into a building plan and display it through the web page.
  • the determination module 303 in FIG. 3 acquires the preset first effective date of the first model log file and the preset second effective date of the second model log file; the first effective date and the second effective date The effective date closest to the current date among the dates is determined to be the most recent effective date.
  • the update module 304 in FIG. 3 obtains the first object data and the first resource data in the first model log file, wherein the first object data Including the floor identifier and the first operation type of the floor, the first resource data includes the first resource identifier and the first resource attribute data corresponding to the first operation type; execute the operation corresponding to the first operation type on the original model file, and based on The first resource identifier and the first resource attribute data, the first model log file is merged with the original model file to generate an intermediate model file, wherein the intermediate model file includes a plurality of intermediate resource identifiers of a plurality of intermediate resources; obtaining the second model The second object data and the second resource data in the log file, wherein the second object data includes the floor identifier and the second operation type of the floor, and the second resource data includes the second resource identifier corresponding to the second operation type and the second Resource attribute data; perform an operation corresponding to the second operation type on the intermediate model file
  • the update module 304 in FIG. 3 traverses multiple intermediate resource identifiers in the intermediate model file to determine multiple Whether there is an intermediate resource identifier matching the second resource identifier among the intermediate resource identifiers; if there is no intermediate resource identifier matching the second resource identifier among the multiple intermediate resource identifiers, then stop updating the intermediate model file, and Send a conflict prompt message.
  • the update module 304 in FIG. In comparison, if there is an intermediate resource identifier that matches the second resource identifier among the plurality of intermediate resource identifiers, the update module 304 in FIG. In comparison, if the attribute data of the second resource is not completely consistent with the attribute data of the intermediate resource, stop updating the intermediate model file and send conflict prompt information, wherein the attribute data of the second resource includes the second resource identifier of the second resource , the second resource type, the second resource name, the second resource area and the second resource outline, the intermediate resource attribute data includes the intermediate resource identification, intermediate resource type, intermediate resource name, intermediate resource Resource area and intermediate resource outline.
  • the update module 304 in FIG. 3 acquires the first upload date of the first model log file and the first upload date of the second model log file. The second upload date, and update the original model file according to the order of the first upload date and the second upload date.
  • the building information model is a Revit model.
  • FIG. 4 is a schematic structural diagram of an electronic device 4 according to the present invention.
  • the electronic device 4 of this embodiment includes: a processor 401 , a memory 402 , and a computer program 403 stored in the memory 402 and capable of running on the processor 401 .
  • the processor 401 executes the computer program 403
  • the steps in the foregoing method embodiments are implemented.
  • the processor 401 executes the computer program 403, the functions of the modules/units in the above-mentioned device embodiments are realized.
  • the computer program 403 can be divided into one or more modules/units, and one or more modules/units are stored in the memory 402 and executed by the processor 401 to implement the present invention.
  • One or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 403 in the electronic device 4 .
  • the electronic device 4 can be electronic devices such as desktop computers, notebooks, palmtop computers, and cloud servers.
  • the electronic device 4 may include but not limited to a processor 401 and a memory 402 .
  • FIG. 4 is only an example of the electronic device 4, and does not constitute a limitation to the electronic device 4. It may include more or less components than those shown in the illustration, or combine some components, or different components.
  • an electronic device may also include an input and output device, a network access device, a bus, and the like.
  • the processor 401 can be a central processing unit (Central Processing Unit, CPU), and can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), on-site Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the storage 402 may be an internal storage unit of the electronic device 4 , for example, a hard disk or a memory of the electronic device 4 .
  • the memory 402 can also be an external storage device of the electronic device 4, for example, a plug-in hard disk equipped on the electronic device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card ( Flash Card), etc. Further, the memory 402 may also include both an internal storage unit of the electronic device 4 and an external storage device.
  • the memory 402 is used to store computer programs and other programs and data required by the electronic device.
  • the memory 402 can also be used to temporarily store data that has been output or will be output.
  • the disclosed device/electronic equipment and method can be implemented in other ways.
  • the device/electronic device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. Multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • an integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the present invention realizes all or part of the processes in the methods of the above-mentioned embodiments, and it can also be completed by instructing related hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium, and the computer program can be processed When executed by the controller, the steps in the above-mentioned method embodiments can be realized.
  • a computer program may include computer program code, which may be in source code form, object code form, executable file, or some intermediate form or the like.
  • the computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM), random access Memory (Random Access Memory, RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in computer readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer readable media may not Including electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Architecture (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一种在线协同编辑方法、装置、电子设备及存储介质。该方法包括:获取导入的建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图(S101);接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,所述第一模型日志文件为所述第一用户对所述建筑平面图进行在线编辑得到的日志文件,所述第二模型日志文件为所述第二用户对所述建筑平面图进行在线编辑得到的日志文件(S102);基于第一模型日志文件的第一生效日期和第二模型日志文件的第二生效日期,确定最近生效日期(S103);在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件(S104)。该方法能够实现不同用户对建筑平面图纸的在线协同编辑。

Description

在线协同编辑方法、装置、电子设备及存储介质 技术领域
本公开涉及建筑设计技术领域,尤其涉及一种在线协同编辑方法、装置、电子设备及计算机可读存储介质。
背景技术
建筑信息模型(Building Information Modeling,BIM)是一种新型的工程建设行业的计算机应用技术,通过设计、使用建筑工程项目的各项相关信息数据作为模型的基础,在建设项目的策划、设计、施工、运营管理等阶段的全生命周期过程中进行共享和传递,使工程技术人员对各种建筑信息做出正确理解和高效应对,为设计团队、施工单位以及包括建筑运营单位在内的各方建设主体提供协同工作的基础,在提高生产效率、节约成本和缩短工期方面发挥重要作用。
AutoCAD(Autodesk Computer Aided Design)是Autodesk(欧特克)公司开发的自动计算机辅助设计软件,用于二维绘图、详细绘制、设计文档和基本三维设计,现已经成为国际上广为流行的绘图工具。
现有技术中,当需要对商场内的商铺的轮廓、属性进行调整,或者对商铺进行拆分、合并时,商场的商铺维护人员需要请专业的工程技术人员使用AutoCAD软件对建筑平面图进行定制化设计或修改,以满足不同用户的个性化需求。然而,在实际应用中,由于图纸的调改需要较高的专业技能,因此,未经培训的人员无法对图纸进行调改,导致图纸的调改周期长。另外,对于多个商铺的调改,通常需要等一个商铺调改完成后,再对另一个商铺进行调改,即,无法同时对多个商铺进行调改,导致出图效率低;进一步地,由于多个商铺有多个调改版本的图纸,因此,需要手动将调改后的多张图纸合并到同一张图纸中,导致容易出错且耗费大量人力和时间成本。
发明内容
有鉴于此,本公开实施例提供了一种在线协同编辑方法、装置、电子设备及计算机可读存储介质,以解决现有技术存在的图纸调改周期长、出图效率低、容易出错且耗费大量人力和时间成本的问题。
本公开实施例的第一方面,提供了一种在线协同编辑方法,包括:获取导入的建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,第一模型日志文件为第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件为第二用户对建筑平面图进行在线编辑得到的日志文件;基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期;在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件。
本公开实施例的第二方面,提供了一种在线协同编辑装置,包括:获取模块,被配置为获取导入的 建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;接收模块,被配置为接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,第一模型日志文件为第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件为第二用户对建筑平面图进行在线编辑得到的日志文件;确定模块,被配置为基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期;更新模块,被配置为在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件。
本公开实施例的第三方面,提供了一种电子设备,包括存储器、处理器以及存储在存储器中并且可以在处理器上运行的计算机程序,该处理器执行计算机程序时实现上述方法的步骤。
本公开实施例的第四方面,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述方法的步骤。
本公开实施例与现有技术相比存在的有益效果是:通过获取导入的建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,第一模型日志文件为第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件为第二用户对建筑平面图进行在线编辑得到的日志文件;基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期;在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件,使得不同用户能够在网页上同时对建筑平面图纸进行在线协同编辑,因此,优化了编辑流程,提高了编辑效率,缩短了调改周期,提高了出图效率,降低了出错率,节省了大量人力和时间成本,并进一步提升了用户体验。
附图说明
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1是本公开实施例提供的一种在线协同编辑方法的流程示意图;
图2a是本公开实施例在冲突产生时浏览器上显示的建筑平面图的示意图;
图2b是本公开实施例在实际应用场景中所涉及的示例的示意图;
图3是本公开实施例提供的一种在线协同编辑装置的结构示意图;
图4是本公开实施例提供的一种电子设备的结构示意图。
具体实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透 彻理解本公开实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本公开。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本公开的描述。
此外,本领域普通技术人员应当理解,在此提供的附图都是为了说明的目的,并且附图不一定是按比例绘制的。
除非上下文明确要求,否则整个说明书和权利要求书中的“包括”、“包含”等类似词语应当解释为包含的含义而不是排他或穷举的含义;也就是说,是“包括但不限于”的含义。
在本公开的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本公开的描述中,除非另有说明,“多个”的含义是两个或两个以上。
在建筑施工领域中,建筑平面图是将新建建筑物或构筑物的墙、门窗、楼梯、地面及内部功能布局等建筑情况,以水平投影方法和相应的图例所组成的图纸。建筑平面图作为建筑设计、施工图纸中的重要组成部分,反映了建筑的平面形状、大小、内部布局、地面、门窗的具体位置和占地面积等情况,是新建建筑物的施工及施工现场布置的重要依据,也是设计及规划给排水、强弱电、暖通设备等专业工程平面图和绘制管线综合图的依据。建筑平面图可分为建筑施工图纸、结构施工图纸和设备施工图纸。用作施工使用的房屋建筑平面图通常包括底层平面图纸、标准层平面图纸、顶层平面图纸和屋顶平面图。
以商场内的商铺为例,当需要对商铺的轮廓、属性进行调整,或者对商铺进行拆分、合并时,每个过程都可能涉及对图纸的调改,而图纸的调改通常需要工程技术人员在专业绘图软件(例如,AutoCAD、SketchUp、3D Studio Max)上手工进行,因此,需要耗费大量人力和时间成本;进一步地,由于人工绘制图纸,因此,图纸的绘制速度慢,且难以保证图纸的质量。此外,对于多个商铺的调改,通常需要等一个商铺调改完成后,再对另一个商铺进行调改,即,无法同时对多个商铺进行调改,导致出图效率低;并且,由于多个商铺有多个调改版本的图纸,因此,需要手动将调改后的多张图纸合并到同一张图纸中,导致容易出错且耗费大量人力和时间成本;进一步地,由于图纸的调改是在线下基于纸质图纸完成的,因此,容易出现调改的图纸丢失、混乱、损毁等问题。
由此可见,目前的图纸调改方法主要依赖于工程技术人员手工进行,虽然市场上存在一些能够直接通过图形引擎解析CAD图纸的产品,但这些产品无法对三维模型进行解析,并且也无法满足工程技术人员在线协同编辑的需求。因此,需要提供一种能够基于图形引擎对二维图纸或三维模型进行在线协同编辑,以优化编辑流程,提高编辑效率,缩短调改周期,提高出图效率,降低出错率,节省大量人力和时间成本,并进一步提升用户体验的方案
图1是本公开实施例提供的一种在线协同编辑方法的流程示意图。图1的在线协同编辑方法可以由服务器或终端设备执行。如图1所示,该在线协同编辑方法包括:
S101,获取导入的建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;
S102,接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,第一模型日志文件为第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件为第二用户对建筑平面图进行在线编辑得到的日志文件;
S103,基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期;
S104,在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件。
具体地,以服务器为例,在获取到导入的建筑信息模型之后,服务器将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;当接收到第一用户对建筑平面图进行在线编辑得到的第一模型日志文件和第二用户对建筑平面图进行在线编辑得到的第二模型日志文件之后,服务器获取第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,并将第一生效日期和第二生效日期中距离当前日期最近的生效日期确定为最近生效日期;进一步地,在确定第一生效日期为最近生效日期的情况下,服务器基于第一模型日志文件对原始模型文件进行更新得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新得到目标模型文件。
这里,服务器可以是提供各种服务的服务器,例如,对与其建立通信连接的终端设备发送的请求进行接收的后台服务器,该后台服务器可以对终端设备发送的请求进行接收和分析等处理,并生成处理结果。服务器可以是一台服务器,也可以是由若干台服务器组成的服务器集群,或者还可以是一个云计算服务中心,本公开实施例对此不作限制。
进一步地,服务器可以是硬件,也可以是软件。当服务器为硬件时,其可以是为终端设备提供各种服务的各种电子设备。当服务器为软件时,其可以是为终端设备提供各种服务的多个软件或软件模块,也可以是为终端设备提供各种服务的单个软件或软件模块,本公开实施例对此不作限制。需要说明的是,服务器的具体类型、数量和组合可以根据应用场景的实际需求进行调整,本公开实施例对此不作限制。
终端设备可以是硬件,也可以是软件。当终端设备为硬件时,其可以是具有显示屏且支持与服务器通信的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等;当终端设备为软件时,其可以安装在如上所述的电子设备中。终端设备可以实现为多个软件或软件模块,也可以实现为单个软件或软件模块,本公开实施例对此不作限制。
模型是指对于某个实际问题或客观事物、规律进行抽象后的一种形式化表达方式,通常由目标、变量和关系三部分组成。模型可以包括但不限于数学模型、程序模型、逻辑模型、结构模型、方法模型、分析模型、管理模型、数据模型、系统模型等。在本公开实施例中,模型可以是建筑信息模型(BIM),该建筑信息模型是以三维数字技术为基础,集成建筑工程项目各种相关信息的工程数据模型,通过数字信息仿真模拟建筑物所具有的真实信息。在BIM中,Revit是一个主流的BIM可视化及建模工具,因此,本公开实施例中的建筑信息模型可以采用Revit模型。
进一步地,原始模型文件是指对建筑信息模型进行转化处理得到的能够被轻量化引擎所识别和加载的模型文件。中间模型文件是对原始模型文件进行更新得到的模型文件,目标模型文件是对中间模型文件进行更新得到的模型文件。
轻量化引擎用于将BIM模型进行轻量化转换,并加载和使用轻量化模型。这里,轻量化转换是将BIM模型通过轻量化引擎转换成图元数据和模型结构化数据,图元数据以原始文件的形式保存;模型结构化数据以数据记录的形式保存到相应关系型数据库中,以便后期数据的检索和利用。轻量化模型的加载和 使用是利用WebGL(Web Graphics Library)技术将轻量化后的BIM模型在网页中进行展示,包括BIM的控制功能、模型构件属性的自定义功能、基于BIM模型的标注及展示功能等。
进一步地,WebGL是一种三维(3Dimensions,3D)绘图协议,这种绘图技术标准允许把JavaScript和OpenGL ES 2.0结合在一起,通过增加OpenGL ES 2.0的一个JavaScript绑定,WebGL可以为HTML5Canvas提供硬件3D加速渲染,这样Web开发人员不仅可以借助系统显卡在浏览器里更流畅地展示3D场景和模型,而且还可以创建复杂的导航和数据视觉化。可见,WebGL技术标准免去了开发网页专用渲染插件的麻烦,可以被用于创建具有复杂3D结构的网站页面,甚至可以用来设计3D网页游戏等。
网页,也称网络页面(Web Page),是构成网站的基本元素,是承载各种网站应用的平台。网页需要通过网页浏览器来阅读。在本公开实施例中,使用网页浏览器加载原始模型文件,以使用页面来显示该原始模型文件对应的建筑平面图,从而便于对建筑平面图纸进行在线编辑操作。这里,编辑操作可以包括划分操作、合并操作、删除操作、平移操作、旋转操作、复制操作、多段线编辑操作、节点编辑操作、线段转弧线操作、倒角操作、新增标注操作、删除标注操作中的一种或多种。
图纸是指用标明尺寸的图形和文字来说明工程建筑、机械、设备等的结构、形状、尺寸及其它要求的一种技术文件,也就是说,图纸是标有尺寸、方位及技术参数等施工所需细节和业主希望修建的工程实物的图示表达。图纸可以是包括在合同内的工作的图纸,也可以是由业主(或其代表)根据合同签发的增加和修改的图纸。图纸可以是建筑图纸,包括但不限于建筑剖面图、建筑平面图、建筑总平面图、建筑工程施工图、建筑施工图和建筑工程图等。优选地,在本公开实施例中,图纸为建筑平面图,用于表示建筑的平面形式、大小尺寸、房间布置、建筑人口、门厅及楼梯布置的情况,表明墙、柱的位置、厚度和所用材料以及门窗的类型、位置等情况。
日志文件是用于记录系统操作事件的记录文件或文件集合,可分为事件日志和消息日志,具有处理历史数据、诊断问题的追踪以及理解系统的活动等重要作用。这里,事件日志记录在系统的执行中发生的事件,以便提供可用于理解系统的活动和诊断问题的跟踪。消息日志为互联网中继聊天(IRC),即时消息(IM)程序,具有聊天功能的对等文件共享客户端和多人游戏(特别是MMORPG)通常具有自动记录(即保存)文本通信的能力。在本公开实施例中,第一模型日志文件是第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件是第二用户对建筑平面图进行在线编辑得到的日志文件。
生效日期是指开始生效的日期。第一生效日期为第一模型日志文件开始生效的日期,第二生效日期为第二模型日志文件开始生效的日期。最近生效日期为距离当前日期最近的生效日期。举例来说,假设第一用户在2021年2月1日对建筑平面图进行了调改,并且该调改于2021年2月15日生效,即,第一生效日期为2021年2月15日;第二用户在2021年2月7日对建筑平面图进行了调改,并且该调改于2021年2月21日生效,即,第二生效日期为2021年2月21日,如果当前日期为2021年2月9日,则第一生效日期即为最近生效日期。
需要说明的是,本公开实施例对用户的数量和模型日志文件的数量不作限制,例如,用户可以仅包括一个用户,也可以包括两个或两个以上用户;模型日志文件可以仅包括一个模型日志文件,也可以包括两个或两个以上模型日志文件。
根据本公开实施例提供的技术方案,通过获取导入的建筑信息模型,将建筑信息模型转化为符合预 定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,第一模型日志文件为第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件为第二用户对建筑平面图进行在线编辑得到的日志文件;基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期;在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件,使得不同用户能够在网页上同时对建筑平面图纸进行在线协同编辑,因此,优化了编辑流程,提高了编辑效率,缩短了调改周期,提高了出图效率,降低了出错率,节省了大量人力和时间成本,并进一步提升了用户体验。
在一些实施例中,获取导入的建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图,包括:获取建筑信息模型的模型数据,并利用转换插件将模型数据转换为原始模型文件,其中,原始模型文件为json后缀格式的文件;将原始模型文件导入到轻量化引擎中,利用轻量化引擎将原始模型文件转化为建筑平面图并通过网页进行显示。
具体地,服务器获取建筑信息模型的模型数据,并利用转换插件将模型数据转换为json后缀格式的原始模型文件;进一步地,服务器将原始模型文件导入到轻量化引擎中,并利用轻量化引擎将原始模型文件转化为建筑平面图,以通过网页显示该建筑平面图。
这里,模型数据是指通过各种建筑信息化模型技术所构建生成的模型数据。模型数据可以为Revit模型数据,Revit模型数据为Revit软件所使用的文件数据。这里,Revit是一款三维BIM设计软件(主要文件格式为.rvt、.rfa或.rte等),可以用于将建筑标准转换为数据存储。需要说明的是,模型数据不限于如上所述的Revit模型数据,例如,还可以包括其它工程制图类软件(例如,AutoCAD、CATIA、Pro/ENGINEER、SolidWorks等)的文件数据。优选地,在本公开实施例中,模型数据为Revit模型数据。
插件(Plug-in)是一种遵循一定规范的应用程序接口编写出来的程序,其只能运行在程序规定的系统平台下(可能同时支持多个平台),而不能脱离指定的平台单独运行。转换插件可以为Revit插件。需要说明的是,本公开实施例的Revit插件为二次开发的插件。这里,二次开发是指在现有的软件上进行定制修改,以扩展功能,即,达到想要的功能;二次开发通常不会改变原有系统的内核。
在实际应用中,原始模型文件可以采用.json后缀的模型文件,并利用轻量化引擎对JSON格式数据进行解析。这里,JSON(JavaScript Object Notation)是一种轻量级的数据交换格式,其基于ECMAScript的一个子集,采用完全独立于编程语言的文本格式来存储和表示数据。JSON具有简洁和清晰的层次结构,不仅易于用户阅读和编写,同时也易于机器解析和生成,因此,有效地提升网络传输的效率。进一步地,JOSN数据解析是指对JSON格式数据进行解析,得到不同类型的数据值。JOSN数据解析的过程可以包括:创建JSON文件,在类中包含document.h和cocos-ext.h头文件,通过FileUtils获得JSON文件路径,以及通过Document对象解析JOSN格式数据,得到不同类型的数据值。
根据本公开实施例提供的技术方案,通过利用二次开发的Revit插件对模型数据进行轻量化处理,能够将模型数据压缩并转换为轻量化引擎可识别的JSON格式数据,使得网页能够加载并显示基于原始模型文件生成的建筑平面图,因此,实现了轻量化显示,提升了用户体验。
在一些实施例中,基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期,包括:获取预先设置的第一模型日志文件的第一生效日期和预先设置的第二模型日志文件的第二生效日期;将第一生效日期和第二生效日期中距离当前日期最近的生效日期确定为最近生效日期。
具体地,在对建筑平面图进行在线编辑得到第一模型日志文件之后,第一用户可以预先设置期望第一模型日志文件开始生效的日期,即,第一生效日期,并将第一模型日志文件和第一生效日期一起提交给服务器;同样地,在对建筑平面图进行在线编辑得到第二模型日志文件之后,第二用户可以预先设置期望第二模型日志文件开始生效的日期,即,第二生效日期,并将第二模型日志文件和第二生效日期一起提交给服务器;进一步地,服务器将第一生效日期与第二生效日期进行比较,以确定距离当前日期最近的生效日期,并将距离当前日期最近的生效日期作为最近生效日期。
在一些实施例中,在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件,包括:在确定第一生效日期为最近生效日期的情况下,获取第一模型日志文件中的第一对象数据和第一资源数据,其中,第一对象数据包括楼层的楼层标识和第一操作类型,第一资源数据包括与第一操作类型对应的第一资源标识和第一资源属性数据;对原始模型文件执行与第一操作类型对应的操作,并基于第一资源标识和第一资源属性数据,将第一模型日志文件与原始模型文件进行合并,生成中间模型文件,其中,中间模型文件包括多个中间资源的多个中间资源标识;获取第二模型日志文件中的第二对象数据和第二资源数据,其中,第二对象数据包括楼层的楼层标识和第二操作类型,第二资源数据包括与第二操作类型对应的第二资源标识和第二资源属性数据;对中间模型文件执行与第二操作类型对应的操作,并基于第二资源标识和第二资源属性数据,将第二模型日志文件与中间模型文件进行合并,生成目标模型文件,其中,第一操作类型和第二操作类型包括新增操作、修改操作或删除操作。
具体地,在确定第一生效日期为最近生效日期的情况下,服务器获取第一模型日志文件中的楼层标识和第一操作类型以及与第一操作类型对应的第一资源标识和第一资源属性数据,并对原始模型文件执行与第一操作类型对应的操作,以基于第一资源标识和第一资源属性数据将第一模型日志文件与原始模型文件进行合并,得到中间模型文件;进一步地,服务器获取第二模型日志文件中的楼层标识和第二操作类型以及与第二操作类型对应的第二资源标识和第二资源属性数据,并对中间模型文件执行与第二操作类型对应的操作,以基于第二资源标识和第二资源属性数据将第二模型日志文件与中间模型文件进行合并,得到目标模型文件。
这里,对象是指由资源组成的区域,例如,商场的楼层。对象数据可以包括楼层的楼层标识(Identity,ID)和操作类型。这里,楼层标识是指为楼层配置的唯一标识,用于区分不同的对象,以便快速且准确地查找到对象。进一步地,对象标识可以是对象所在的地理位置(例如,B区-1F、1F、B-5F等),也可以是对象的名称(例如,一楼、三楼、十层、十五层等),本公开实施例对此不作限制。优选地,在本公开实施例中,对象标识为对象所在的地理位置。操作类型可以包括但不限于包括新增操作、修改操作和删除操作中的任一种。
资源是指建筑平面图中的区域,是组成对象的最小单位,例如,商场的商铺,即,招商资源。商铺 的具体类型可以包括但不限于餐饮类商铺、娱乐类商铺、服饰类商铺、购物类商铺、服务类商铺、儿童类商铺、空铺等。资源数据可以包括与操作类型对应的资源标识和资源属性数据。这里,资源标识是指为资源配置的唯一标识,用于区分不同的资源,以便快速且准确地查找到资源。进一步地,资源标识可以是资源所在的地理位置(例如,A栋-5F-D07、1F036、2F-18等),也可以是资源的名称(例如,商铺名称),本公开实施例对此不作限制。优选地,在本公开实施例中,资源标识为资源所在的地理位置。
在一些实施例中,该在线协同编辑方法还包括:在确定对原始模型文件的操作和对中间模型文件的操作存在冲突的情况下,对中间模型文件中的多个中间资源标识进行遍历,以确定多个中间资源标识中是否存在与第二资源标识相匹配的中间资源标识;如果多个中间资源标识中不存在与第二资源标识相匹配的中间资源标识,则停止对中间模型文件进行更新,并发送冲突提示信息。
具体地,当对原始模型文件的操作与对中间模型文件的操作存在冲突时,服务器对中间模型文件中的多个中间资源标识进行遍历,以确定多个中间资源标识中是否存在与第二资源标识相匹配的中间资源标识;如果多个中间资源标识中不存在与第二资源标识相匹配的中间资源标识,则服务器停止对中间模型文件的更新,并发送冲突提示信息。
这里,对原始模型文件的操作与对中间模型文件的操作存在冲突例如可以是第一用户在2021年6月5日删除了商铺1F-01,第二用户在2021年6月10日修改了商铺1F-01,则第二用户对商铺1F-01的修改操作会因为第一用户的删除操作而失败;也就是说,服务器无法查找到商铺1F-01,进而无法对商铺1F-01进行修改,即,中间模型文件中并不存在与商铺1F-01对应的第二资源标识。需要说明的是,当冲突产生时,服务器会提示合并失败的原因,并交由商铺维护人员手动处理;这时,浏览器上会同时显示产生冲突的不同数据对应的建筑平面图,如图2a所示,图2a中的左图为第一用户对商铺1F-01的操作,图2a中的右图为第二用户对商铺1F-01的操作;进一步地,商铺维护人员可以手动选择其中之一作为生效的版本。
遍历(Traversal)是指沿着某条搜索路线,依次对树(或图)中每个节点均做一次访问。访问结点所做的操作依赖于具体的应用问题,具体的访问操作可能是检查节点的值、更新节点的值等。不同的遍历方式,其访问节点的顺序是不一样的。在本公开实施例中,遍历是指对同一楼层下的所有中间资源标识进行遍历操作,以确定中间资源标识是否与第二资源标识相匹配。
冲突提示信息的形式可以包括但不限于语音类型的信息、文字类型的信息等。举例来说,当冲突提示信息为语音类型的信息时,可以通过语音播报的方式向用户推送冲突提示信息,该冲突提示信息例如可以为“商铺不存在,请核实!”,或者,该冲突提示信息可以为预设的蜂鸣提示音,例如:警告声;当冲突提示信息为文字类型的信息时,可以通过在浏览器上弹出悬浮窗的方式向用户推送冲突提示信息,该冲突提示信息例如可以为“商铺不存在,无法修改;如需修改,请先创建商铺!”。
在一些实施例中,该在线协同编辑方法还包括:如果多个中间资源标识中存在与第二资源标识相匹配的中间资源标识,则将第二资源属性数据与中间资源标识对应的中间资源属性数据进行比较,在第二资源属性数据与中间资源属性数据不完全一致的情况下,停止对中间模型文件进行更新,并发送冲突提示信息,其中,第二资源属性数据包括第二资源的第二资源标识、第二资源类型、第二资源名称、第二资源面积和第二资源轮廓,中间资源属性数据包括多个中间资源中的每个中间资源的中间资源标识、中 间资源类型、中间资源名称、中间资源面积和中间资源轮廓。
具体地,当多个中间资源标识中存在与第二资源标识相匹配的中间资源标识时,服务器将第二资源属性数据与中间资源标识对应的中间资源属性数据逐一进行比较,以确定第二资源属性数据与中间资源属性数据是否完全一致;如果第二资源属性数据与中间资源属性数据不完全一致,则服务器停止对中间模型文件进行更新,并发送冲突提示信息;如果第二资源属性数据与中间资源属性数据完全一致,则服务器将第二模型日志文件与中间模型文件进行合并,生成目标模型文件。
这里,资源属性数据是指建筑平面图中的可编辑区域(例如,商铺的可用区域)的数据,包括但不限于资源的资源标识、资源类型、资源名称、资源面积和资源轮廓等。进一步地,资源轮廓可以包括但不限于点的坐标和标识、边的标识、类型、厚度、对齐方式、起始位置和结束位置、区域的标识和点等。例如,资源轮廓可以是构成资源的轮廓的点的坐标,基于点的坐标,利用轮廓提取算法可以生成资源的轮廓线。
需要说明的是,如果第二资源属性数据中的至少一个与对应的中间资源属性数据不一致,则表明针对同一商铺有多个调改记录,因此,产生了冲突。
在一些实施例中,该在线协同编辑方法还包括:在确定第一生效日期和第二生效日期均为最近生效日期的情况下,获取第一模型日志文件的第一上传日期和第二模型日志文件的第二上传日期,并按照第一上传日期和第二上传日期的先后顺序,对原始模型文件进行更新。
具体地,如果第一生效日期和第二生效日期均为最近生效日期,即,第一生效日期和第二生效日期相同,则服务器进一步获取第一模型日志文件的第一上传日期和第二模型日志文件的第二上传日期,并确定第一上传日期和第二上传日期的先后顺序;如果第一上传日期早于第二上传日期,则服务器基于第一模型日志文件对原始模型文件进行更新;如果第一上传日期晚于第二上传日期,则服务器基于第二模型日志文件对原始模型文件进行更新。
在一些实施例中,该在线协同编辑方法还包括:在确定第一上传日期和第二上传日期相同的情况下,通过网页显示第一模型日志文件对应的第一建筑平面图和第二模型日志文件对应的第二建筑平面图,并基于手动选择的第一建筑平面图或第二建筑平面图,对原始模型文件进行更新。
具体地,如果第一生效日期和第二生效日期相同,并且第一上传日期和第二上传日期也相同,则表明第一用户和第二用户在同一时间对原始模型文件进行了调改,并且调改后的第一模型日志文件和第二模型日志文件的生效日期相同,由于服务器无法确定第一模型日志文件和第二模型日志文件先后顺序,因此,无法对原始模型文件进行更新;这时,服务器通过网页将第一模型日志文件对应的第一建筑平面图和第二模型日志文件对应的第二建筑平面图进行显示,并通知商铺维护人员,以基于手动的方式,选择第一建筑平面图和第二建筑平面图中的一个来对原始模型文件进行更新。
上述所有可选技术方案,可以采用任意结合形成本申请的可选实施例,在此不再一一赘述。
下面,以商场的一层为例,通过一个示例来对上述的在线协同编辑方法进行详细描述,具体实现过程如图2b所示。
首先,基于预先配置的Revit模型,创建Revit模型数据,并基于Revit中的族类型,利用Revit二次开发的转换插件将Revit模型数据转换为轻量化引擎可识别和加载的原始模型文件;进一步地,将原始模 型文件存储为JSON格式数据,该JSON格式数据如下:
Figure PCTCN2022126023-appb-000001
从上述数据可以看出,JSON格式数据包括属性数据和资源数据集合(areas)两部分内容,其中,属性数据包括楼层的高度(0)和名称(1F),资源数据集合包括第一资源数据和第二资源数据,这里,第一资源数据包括第一资源的标识(1F-01)、类型(次主力店)、品牌(空铺)、面积(200.0)、点的坐标([20000,0],[40000,0],[40000,10000],[20000,10000]),第二资源数据包括第二资源的标识(1F-02)、类型(主力店)、品牌(MM)、面积(200.0)、点的坐标([50000,0],[60000,0],[60000,10000],[50000,10000])。
需要说明的是,此处仅示出两个资源的数据作为示例,在实际应用中,JSON格式数据中可以包括多个资源的数据。
接下来,第一用户将从原始模型文件复制出的模型文件作为待调改的第一模型文件。第一用户在2021年2月1日对第一模型文件进行了调改,即,新增了资源“1F-20”,并将调改后的第一模型文件的日志文件(即,第一模型日志文件)上传至服务器,同时,将该第一模型日志文件的生效日期设置为2021年2月15日,该第一模型日志文件的JSON格式数据如下:
Figure PCTCN2022126023-appb-000002
Figure PCTCN2022126023-appb-000003
此时,第一用户的第一模型文件的JSON格式数据如下:
Figure PCTCN2022126023-appb-000004
需要说明的是,为了便于第一模型文件与原始模型文件的合并,第一用户可以仅上传第一模型日志文件,使得服务器能够基于该第一模型日志文件对原始模型文件进行更新。
进一步地,第二用户将从原始模型文件复制出的模型文件作为待调改的第二模型文件。第二用户在2021年2月7日对第二模型文件进行了调改,即,删除了资源“1F-01”,并将调改后的第二模型文件的日志文件(即,第二模型日志文件)上传至服务器,同时,将该第二模型日志文件的生效日期设置为2021年2月21日,该第二模型日志文件的JSON格式数据如下:
Figure PCTCN2022126023-appb-000005
此时,第二用户的第二模型文件的JSON格式数据如下:
Figure PCTCN2022126023-appb-000006
最后,服务器在2021年2月15日基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,即,在原始模型文件的基础上新增了“1F-20”,该中间模型文件的JSON格式数据如下:
Figure PCTCN2022126023-appb-000007
Figure PCTCN2022126023-appb-000008
进一步地,服务器在2021年2月21日基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件,即,在中间模型文件的基础上删除了“1F-01”,该目标模型文件的JSON格式数据如下:
Figure PCTCN2022126023-appb-000009
Figure PCTCN2022126023-appb-000010
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。
图3是本公开实施例提供的一种在线协同编辑装置的结构示意图。如图3所示,该在线协同编辑装置包括:
获取模块301,被配置为获取导入的建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;
接收模块302,被配置为接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,第一模型日志文件为第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件为第二用户对建筑平面图进行在线编辑得到的日志文件;
确定模块303,被配置为基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期;
更新模块304,被配置为在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件。
根据本公开实施例提供的技术方案,通过获取导入的建筑信息模型,将建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示原始模型文件对应的建筑平面图;接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,第一模型日志文件为第一用户对建筑平面图进行在线编辑得到的日志文件,第二模型日志文件为第二用户对建筑平面图进行在线编辑得到的日志文件;基于第一模型日志文件对应的第一生效日期和第二模型日志文件对应的第二生效日期,确定第一生效日期和第二生效日期中的最近生效日期;在确定第一生效日期为最近生效日期的情况下,基于第一模型日志文件对原始模型文件进行更新,得到中间模型文件,并基于第二模型日志文件对中间模型文件进行更新,得到目标模型文件,使得不同用户能够在网页上同时对建筑平面图纸进行在线协同编辑,因此,优化了编辑流程,提高了编辑效率,缩短了调改周期,提高了出图效率,降低了出错率,节省了大量人力和时间成本,并进一步提升了用户体验。
在一些实施例中,图3的获取模块301获取建筑信息模型的模型数据,并利用转换插件将模型数据转换为原始模型文件,其中,原始模型文件为json后缀格式的文件;将原始模型文件导入到轻量化引擎中,利用轻量化引擎将原始模型文件转化为建筑平面图并通过网页进行显示。
在一些实施例中,图3的确定模块303获取预先设置的第一模型日志文件的第一生效日期和预先设置的第二模型日志文件的第二生效日期;将第一生效日期和第二生效日期中距离当前日期最近的生效日期确定为最近生效日期。
在一些实施例中,在确定第一生效日期为最近生效日期的情况下,图3的更新模块304获取第一模型日志文件中的第一对象数据和第一资源数据,其中,第一对象数据包括楼层的楼层标识和第一操作类型,第一资源数据包括与第一操作类型对应的第一资源标识和第一资源属性数据;对原始模型文件执行与第一操作类型对应的操作,并基于第一资源标识和第一资源属性数据,将第一模型日志文件与原始模型文件进行合并,生成中间模型文件,其中,中间模型文件包括多个中间资源的多个中间资源标识;获取第二模型日志文件中的第二对象数据和第二资源数据,其中,第二对象数据包括楼层的楼层标识和第二操作类型,第二资源数据包括与第二操作类型对应的第二资源标识和第二资源属性数据;对中间模型文件执行与第二操作类型对应的操作,并基于第二资源标识和第二资源属性数据,将第二模型日志文件与中间模型文件进行合并,生成目标模型文件,其中,第一操作类型和第二操作类型包括新增操作、修改操作或删除操作。
在一些实施例中,在确定对原始模型文件的操作和对中间模型文件的操作存在冲突的情况下,图3的更新模块304对中间模型文件中的多个中间资源标识进行遍历,以确定多个中间资源标识中是否存在与第二资源标识相匹配的中间资源标识;如果多个中间资源标识中不存在与第二资源标识相匹配的中间资源标识,则停止对中间模型文件进行更新,并发送冲突提示信息。
在一些实施例中,如果多个中间资源标识中存在与第二资源标识相匹配的中间资源标识,则图3的更新模块304将第二资源属性数据与中间资源标识对应的中间资源属性数据进行比较,在第二资源属性数据与中间资源属性数据不完全一致的情况下,停止对中间模型文件进行更新,并发送冲突提示信息,其中,第二资源属性数据包括第二资源的第二资源标识、第二资源类型、第二资源名称、第二资源面积和第二资源轮廓,中间资源属性数据包括多个中间资源中的每个中间资源的中间资源标识、中间资源类型、中间资源名称、中间资源面积和中间资源轮廓。
在一些实施例中,在确定第一生效日期和第二生效日期均为最近生效日期的情况下,图3的更新模块304获取第一模型日志文件的第一上传日期和第二模型日志文件的第二上传日期,并按照第一上传日期和第二上传日期的先后顺序,对原始模型文件进行更新。
在一些实施例中,在确定第一上传日期和第二上传日期相同的情况下,图3的更新模块304通过网页显示第一模型日志文件对应的第一建筑平面图和第二模型日志文件对应的第二建筑平面图,并基于手动选择的第一建筑平面图或第二建筑平面图,对原始模型文件进行更新。
在一些实施例中,建筑信息模型为Revit模型。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本公开实施例的实施过程构成任何限定。
图4是根据本发明的电子设备4的结构示意图。如图4所示,该实施例的电子设备4包括:处理器401、存储器402以及存储在该存储器402中并且可以在处理器401上运行的计算机程序403。处理器401执行计算机程序403时实现上述各个方法实施例中的步骤。或者,处理器401执行计算机程序403时实 现上述各装置实施例中各模块/单元的功能。
示例性地,计算机程序403可以被分割成一个或多个模块/单元,一个或多个模块/单元被存储在存储器402中,并由处理器401执行,以完成本发明。一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述计算机程序403在电子设备4中的执行过程。
电子设备4可以是桌上型计算机、笔记本、掌上电脑及云端服务器等电子设备。电子设备4可以包括但不仅限于处理器401和存储器402。本领域技术人员可以理解,图4仅仅是电子设备4的示例,并不构成对电子设备4的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如,电子设备还可以包括输入输出设备、网络接入设备、总线等。
处理器401可以是中央处理单元(Central Processing Unit,CPU),也可以是其它通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
存储器402可以是电子设备4的内部存储单元,例如,电子设备4的硬盘或内存。存储器402也可以是电子设备4的外部存储设备,例如,电子设备4上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器402还可以既包括电子设备4的内部存储单元也包括外部存储设备。存储器402用于存储计算机程序以及电子设备所需的其它程序和数据。存储器402还可以用于暂时地存储已经输出或者将要输出的数据。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所发明的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
在本发明所提供的实施例中,应该理解到,所揭露的装置/电子设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/电子设备实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可以存储在计算机可读存储介质中,该计算机程序在被处理器执行时,可以实现上述各个方法实施例的步骤。计算机程序可以包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如,在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
以上实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的精神和范围,均应包含在本公开的保护范围之内。

Claims (12)

  1. 一种在线协同编辑方法,其特征在于,包括:
    获取导入的建筑信息模型,将所述建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示所述原始模型文件对应的建筑平面图;
    接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,所述第一模型日志文件为所述第一用户对所述建筑平面图进行在线编辑得到的日志文件,所述第二模型日志文件为所述第二用户对所述建筑平面图进行在线编辑得到的日志文件;
    基于所述第一模型日志文件对应的第一生效日期和所述第二模型日志文件对应的第二生效日期,确定所述第一生效日期和所述第二生效日期中的最近生效日期;
    在确定所述第一生效日期为所述最近生效日期的情况下,基于所述第一模型日志文件对所述原始模型文件进行更新,得到中间模型文件,并基于所述第二模型日志文件对所述中间模型文件进行更新,得到目标模型文件。
  2. 根据权利要求1所述的方法,其特征在于,所述获取导入的建筑信息模型,将所述建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示所述原始模型文件对应的建筑平面图,包括:
    获取所述建筑信息模型的模型数据,并利用转换插件将所述模型数据转换为所述原始模型文件,其中,所述原始模型文件为json后缀格式的文件;
    将所述原始模型文件导入到所述轻量化引擎中,利用所述轻量化引擎将所述原始模型文件转化为所述建筑平面图并通过所述网页进行显示。
  3. 根据权利要求1所述的方法,其特征在于,所述基于所述第一模型日志文件对应的第一生效日期和所述第二模型日志文件对应的第二生效日期,确定所述第一生效日期和所述第二生效日期中的最近生效日期,包括:
    获取预先设置的所述第一模型日志文件的第一生效日期和预先设置的所述第二模型日志文件的第二生效日期;
    将所述第一生效日期和所述第二生效日期中距离当前日期最近的生效日期确定为所述最近生效日期。
  4. 根据权利要求1所述的方法,其特征在于,所述在确定所述第一生效日期为所述最近生效日期的情况下,基于所述第一模型日志文件对所述原始模型文件进行更新,得到中间模型文件,并基于所述第二模型日志文件对所述中间模型文件进行更新,得到目标模型文件,包括:
    在确定所述第一生效日期为所述最近生效日期的情况下,获取所述第一模型日志文件中的第一对象数据和第一资源数据,其中,所述第一对象数据包括楼层的楼层标识和第一操作类型,所述第一资源数据包括与所述第一操作类型对应的第一资源标识和第一资源属性数据;
    对所述原始模型文件执行与所述第一操作类型对应的操作,并基于所述第一资源标识和所述第一资源属性数据,将所述第一模型日志文件与所述原始模型文件进行合并,生成所述中间模型文件,其中, 所述中间模型文件包括多个中间资源的多个中间资源标识;
    获取所述第二模型日志文件中的第二对象数据和第二资源数据,其中,所述第二对象数据包括所述楼层的楼层标识和第二操作类型,所述第二资源数据包括与所述第二操作类型对应的第二资源标识和第二资源属性数据;
    对所述中间模型文件执行与所述第二操作类型对应的操作,并基于所述第二资源标识和所述第二资源属性数据,将所述第二模型日志文件与所述中间模型文件进行合并,生成所述目标模型文件,
    其中,所述第一操作类型和所述第二操作类型包括新增操作、修改操作或删除操作。
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    在确定对所述原始模型文件的操作和对所述中间模型文件的操作存在冲突的情况下,对所述中间模型文件中的所述多个中间资源标识进行遍历,以确定所述多个中间资源标识中是否存在与所述第二资源标识相匹配的中间资源标识;
    如果所述多个中间资源标识中不存在与所述第二资源标识相匹配的中间资源标识,则停止对所述中间模型文件进行更新,并发送所述冲突提示信息。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    如果所述多个中间资源标识中存在与所述第二资源标识相匹配的所述中间资源标识,则将所述第二资源属性数据与所述中间资源标识对应的中间资源属性数据进行比较,在所述第二资源属性数据与所述中间资源属性数据不完全一致的情况下,停止对所述中间模型文件进行更新,并发送所述冲突提示信息,
    其中,所述第二资源属性数据包括第二资源的第二资源标识、第二资源类型、第二资源名称、第二资源面积和第二资源轮廓,所述中间资源属性数据包括所述多个中间资源中的每个中间资源的中间资源标识、中间资源类型、中间资源名称、中间资源面积和中间资源轮廓。
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在确定所述第一生效日期和所述第二生效日期均为所述最近生效日期的情况下,获取所述第一模型日志文件的第一上传日期和所述第二模型日志文件的第二上传日期,并按照所述第一上传日期和所述第二上传日期的先后顺序,对所述原始模型文件进行更新。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    在确定所述第一上传日期和所述第二上传日期相同的情况下,通过所述网页显示所述第一模型日志文件对应的第一建筑平面图和所述第二模型日志文件对应的第二建筑平面图,并基于手动选择的所述第一建筑平面图或所述第二建筑平面图,对所述原始模型文件进行更新。
  9. 根据权利要求1项所述的方法,其特征在于,所述建筑信息模型为Revit模型。
  10. 一种在线协同编辑装置,其特征在于,包括:
    获取模块,被配置为获取导入的建筑信息模型,将所述建筑信息模型转化为符合预定的轻量化引擎要求的原始模型文件,并通过网页显示所述原始模型文件对应的建筑平面图;
    接收模块,被配置为接收第一用户上传的第一模型日志文件和第二用户上传的第二模型日志文件,其中,所述第一模型日志文件为所述第一用户对所述建筑平面图进行在线编辑得到的日志文件,所述第二模型日志文件为所述第二用户对所述建筑平面图进行在线编辑得到的日志文件;
    确定模块,被配置为基于所述第一模型日志文件对应的第一生效日期和所述第二模型日志文件对应的第二生效日期,确定所述第一生效日期和所述第二生效日期中的最近生效日期;
    更新模块,被配置为在确定所述第一生效日期为所述最近生效日期的情况下,基于所述第一模型日志文件对所述原始模型文件进行更新,得到中间模型文件,并基于所述第二模型日志文件对所述中间模型文件进行更新,得到目标模型文件。
  11. 一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1所述方法的步骤。
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1所述方法的步骤。
PCT/CN2022/126023 2021-12-15 2022-10-18 在线协同编辑方法、装置、电子设备及存储介质 WO2023109303A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22906055.3A EP4432151A1 (en) 2021-12-15 2022-10-18 Online collaborative editing method and apparatus, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111539521.0 2021-12-15
CN202111539521.0A CN114329669A (zh) 2021-12-15 2021-12-15 在线协同编辑方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023109303A1 true WO2023109303A1 (zh) 2023-06-22

Family

ID=81052088

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/126023 WO2023109303A1 (zh) 2021-12-15 2022-10-18 在线协同编辑方法、装置、电子设备及存储介质

Country Status (3)

Country Link
EP (1) EP4432151A1 (zh)
CN (1) CN114329669A (zh)
WO (1) WO2023109303A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251923A (zh) * 2023-11-15 2023-12-19 深圳市四方智源科技有限公司 Bim模型和二维图纸双向并行的响应式设计方法及系统
CN118279499A (zh) * 2024-05-31 2024-07-02 福建数博讯信息科技有限公司 一种基于3ds max实现模型轻量化的系统及方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114329669A (zh) * 2021-12-15 2022-04-12 深圳须弥云图空间科技有限公司 在线协同编辑方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150262124A1 (en) * 2014-03-14 2015-09-17 Airbus Operations (Sas) Artificial intelligence system and method for processing multilevel bills of materials
CN109886645A (zh) * 2019-01-29 2019-06-14 杭州凌望建筑科技有限公司 基于bim的多维模审平台
CN111782585A (zh) * 2020-06-18 2020-10-16 万翼科技有限公司 建筑信息模型数据处理方法、装置与系统
CN112560129A (zh) * 2020-12-17 2021-03-26 北京构力科技有限公司 基于构件级的建筑信息模型数据协同方法和系统
CN114329669A (zh) * 2021-12-15 2022-04-12 深圳须弥云图空间科技有限公司 在线协同编辑方法、装置、电子设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150262124A1 (en) * 2014-03-14 2015-09-17 Airbus Operations (Sas) Artificial intelligence system and method for processing multilevel bills of materials
CN109886645A (zh) * 2019-01-29 2019-06-14 杭州凌望建筑科技有限公司 基于bim的多维模审平台
CN111782585A (zh) * 2020-06-18 2020-10-16 万翼科技有限公司 建筑信息模型数据处理方法、装置与系统
CN112560129A (zh) * 2020-12-17 2021-03-26 北京构力科技有限公司 基于构件级的建筑信息模型数据协同方法和系统
CN114329669A (zh) * 2021-12-15 2022-04-12 深圳须弥云图空间科技有限公司 在线协同编辑方法、装置、电子设备及存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251923A (zh) * 2023-11-15 2023-12-19 深圳市四方智源科技有限公司 Bim模型和二维图纸双向并行的响应式设计方法及系统
CN117251923B (zh) * 2023-11-15 2024-03-12 深圳市四方智源科技有限公司 Bim模型和二维图纸双向并行的响应式设计方法及系统
CN118279499A (zh) * 2024-05-31 2024-07-02 福建数博讯信息科技有限公司 一种基于3ds max实现模型轻量化的系统及方法

Also Published As

Publication number Publication date
EP4432151A1 (en) 2024-09-18
CN114329669A (zh) 2022-04-12

Similar Documents

Publication Publication Date Title
WO2023109303A1 (zh) 在线协同编辑方法、装置、电子设备及存储介质
US11663375B2 (en) Configuration of a digital twin for a building or other facility via BIM data extraction and asset register mapping
CN109190209B (zh) 一种基于bim模型的弱关联方法及系统
US20210295266A1 (en) Presence and Collaboration Tools for Building Information Models
Zhang et al. A multi-server information-sharing environment for cross-party collaboration on a private cloud
US9158803B2 (en) Incremental schema consistency validation on geographic features
US8843352B2 (en) System and methods facilitating interfacing with a structure design and development process
CN111161390A (zh) 一种基于BIM模型和WebGL的渲染方法及装置
CN114969586A (zh) 基于web端的bim图形引擎加载方法及装置
Lu et al. Open3D: crowd-sourced distributed curation of city models
Isikdag et al. Building information modelling
CN109063223B (zh) Bim模型的轻量化方法和装置以及bim模型的处理方法和系统
CN117407951A (zh) Bim模型处理方法、服务器及存储介质
CN113468626B (zh) 图纸生成方法、装置、电子设备及存储介质
CN111639380A (zh) 基于bim模型的数据联动方法、装置、电子终端及存储介质
CN116776436A (zh) 一种面向建筑平面图的面积数据分析方法及装置
CN115859431A (zh) 三维建筑模型与二维图纸的联动方法、装置和设备
US9135267B2 (en) Method for adding real time collaboration to existing data structure
CN114692055A (zh) 表单处理方法、装置、存储介质与电子设备
Dobos Management and visualisation of non-linear history of polygonal 3d models
Zibion Development of a BIM-enabled software tool for facility management using interactive floor plans, graph-based data management and granular information retrieval
CN113610512A (zh) 电子签章生成方法、装置、设备及存储介质
CN110737939A (zh) 建筑信息模型的拼接方法、装置及计算机存储介质
Cembranos et al. Supporting the automatic extraction of HBIM elements from point clouds
CN112860836B (zh) 一种不动产权籍调查表自动化生产方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22906055

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022906055

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022906055

Country of ref document: EP

Effective date: 20240613

NENP Non-entry into the national phase

Ref country code: DE