Automatic encoding method, apparatus, device and readable storage medium for structural twins
By receiving structural twin information to generate a BIM model and automatically encoding it, the problems of low efficiency and poor accuracy in existing technologies are solved, and efficient and accurate structural twin encoding is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUNAN FUTURE BRIDGE TECH CO LTD
- Filing Date
- 2022-12-14
- Publication Date
- 2026-05-26
AI Technical Summary
Existing technologies for structural twin coding are inefficient and inaccurate, especially in automatic coding methods for BIM components based on Revit software, which require manual creation of standardized models, are time-consuming and prone to errors.
By receiving structural twin information, a BIM model is generated, the coordinates of the positioning center point are determined based on the location information, and the positioning center point and elevation are sorted and classified, and the structural twin is automatically coded.
It improves the efficiency and accuracy of structural twin coding, and realizes automatic coding association at the same time as BIM model generation, without the need for manual creation of standardized models.
Smart Images

Figure CN115797564B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of building engineering technology, and in particular to an automatic encoding method, apparatus, device and readable storage medium for structural twins. Background Technology
[0002] Digital twins refer to highly accurate digital information models created based on real-world objects, enabling operations such as real-world description, simulation, and predictive evaluation. Establishing parallel digital twin worlds in the infrastructure sector is a future development trend. In infrastructure, the application of digital twins must be combined with Building Information Modeling (BIM) for full lifecycle operation and maintenance management, with the structural twin corresponding to a specific BIM model component. Each structural twin has its own unique attributes, therefore each has a unique code.
[0003] When coding BIM-based structural twins, there are often problems such as the large number of structural twins (i.e., BIM model components) and the difficulty of manually associating and matching various structural twins with their codes. To solve this problem, traditional methods mainly rely on tools for automatically establishing BIM component coding systems based on Revit software and associating BIM model components with their codes. However, current methods for automatically coding and associating BIM components with BIM models based on Revit software are for existing and standardized BIM models. This requires uniformly inputting and storing information such as the structural twin coding system in a database. When the program starts, it searches for the coding information in the database according to the Revit family name and assigns the code to the structural twin. However, since standardized models require manual creation and are time-consuming and prone to errors, traditional methods for coding structural twins are inefficient and inaccurate. Summary of the Invention
[0004] This application provides an automatic encoding method, apparatus, device, and readable storage medium for structural twins, to solve the problems of low efficiency and poor accuracy in structural twin encoding using traditional methods in related technologies.
[0005] Firstly, an automatic encoding method for structural twins is provided, comprising the following steps:
[0006] Receive structural twin information input by the user. The structural twin information includes multiple structural twin objects and their corresponding basic information, including structural twin type, quantity, elevation, and relative position information.
[0007] A BIM model is generated based on the structural twin object and its basic information, and multiple target structural twins corresponding one-to-one with the structural twin object are selected from the preset project file library according to the structural twin type and the quantity.
[0008] The coordinates of the 0 positioning center point of each target structure twin in the three-dimensional coordinate system are determined based on the relative position information;
[0009] Based on the coordinates of the positioning center point and the elevation, all target structural twins are sorted and classified to obtain a sorted set and a classified set.
[0010] All target structural twins are encoded based on the sorting set and the classification set.
[0011] 5. In some embodiments, the step of basing all positions on the coordinates of the positioning center point and the elevation is...
[0012] The target structural twins are sorted and classified to obtain sorted sets and classified sets, including:
[0013] All target structure twins are classified according to the elevation to obtain multiple target structure twin category sets;
[0014] Based on the coordinates of the positioning center point, the target structural twins in each target structural twin category set are sorted according to 0, resulting in a sorted set corresponding to each target structural twin category set;
[0015] Based on the x-coordinate in the coordinates of the positioning center point, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0016] 5. In some embodiments, the step of sorting the target structural twins in each target structural twin category set according to the coordinates of the positioning center point to obtain a sorted set corresponding to each target structural twin category set includes:
[0017] Sort the coordinates of the positioning center points of the target structure twins in each target structure twin category set in ascending order of the horizontal and / or vertical coordinates to obtain the coordinate sorting set corresponding to each target structure twin category set;
[0018] The target structural twins are sorted according to the coordinate sorting set corresponding to each target structural twin category set, resulting in a structural twin sorting set.
[0019] In some embodiments, classifying the target structural twins in the sorted set corresponding to each target structural twin category set based on the abscissa of the positioning center point coordinates to obtain multiple target structural twin classification sets corresponding to each target structural twin category set includes:
[0020] The classification criterion is whether the twins of the target structure have the same x-coordinate.
[0021] Based on the classification criteria, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0022] Secondly, an automatic encoding device for structural twins is provided, comprising:
[0023] The receiving unit is used to receive structural twin information input by the user. The structural twin information includes multiple structural twin objects and their corresponding basic information, including structural twin type, quantity, elevation and relative position information.
[0024] The filtering unit is used to generate a BIM model based on the structural twin object and its basic information, and to filter out multiple target structural twins that correspond one-to-one with the structural twin object from a preset project file library according to the structural twin type and the quantity.
[0025] The processing unit is used to determine the coordinates of the positioning center point of each target structural twin in the three-dimensional coordinate system based on the relative position information; and to sort and classify all target structural twins based on the positioning center point coordinates and the elevation to obtain a sorted set and a classified set.
[0026] The encoding unit is used to encode all target structural twins according to the sorting set and the classification set.
[0027] In some embodiments, the processing unit is specifically used for:
[0028] All target structure twins are classified according to the elevation to obtain multiple target structure twin category sets;
[0029] Based on the coordinates of the positioning center point, the target structural twins in each target structural twin category set are sorted to obtain the sorted set corresponding to each target structural twin category set;
[0030] Based on the x-coordinate in the coordinates of the positioning center point, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0031] In some embodiments, the processing unit is further specifically used for:
[0032] Sort the coordinates of the positioning center points of the target structure twins in each target structure twin category set in ascending order of the horizontal and / or vertical coordinates to obtain the coordinate sorting set corresponding to each target structure twin category set;
[0033] The target structural twins are sorted according to the coordinate sorting set corresponding to each target structural twin category set, resulting in a structural twin sorting set.
[0034] In some embodiments, the processing unit is specifically used for:
[0035] The classification criterion is whether the twins of the target structure have the same x-coordinate.
[0036] Based on the classification criteria, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0037] Thirdly, an automatic encoding device for structural twins is provided, comprising: a memory and a processor, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the aforementioned automatic encoding method for structural twins.
[0038] Fourthly, a computer-readable storage medium is provided, the computer storage medium storing a computer program that, when executed by a processor, implements the aforementioned automatic encoding method for structural twins.
[0039] The beneficial effects of the technical solution provided in this application include: effectively improving the coding efficiency and accuracy of structural twins.
[0040] This application provides an automatic encoding method, apparatus, device, and readable storage medium for structural twins, including receiving structural twin information input by a user, the structural twin information including multiple structural twin objects and their corresponding basic information, the basic information including structural twin type, quantity, elevation, and relative position information; generating a BIM model based on the structural twin objects and their basic information, and selecting multiple target structural twins corresponding one-to-one with the structural twin objects from a preset project file library according to the structural twin type and quantity; determining the positioning center point coordinates of each target structural twin in a three-dimensional coordinate system according to the relative position information; sorting and classifying all target structural twins based on the positioning center point coordinates and the elevation to obtain a sorted set and a classified set; and encoding all target structural twins according to the sorted set and the classified set. This application enables the automatic generation of BIM models while sequentially assigning codes to each structural twin based on its spatial location. In other words, the coding information is automatically generated at the same time as the model is generated, eliminating the need for manually creating standardized models and effectively improving the coding efficiency and accuracy of structural twins. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 A flowchart illustrating an automatic encoding method for structural twins provided in this application embodiment;
[0043] Figure 2 This is a schematic diagram of the structure of an automatic coding device for a structural twin provided in an embodiment of this application;
[0044] Figure 3 This is a schematic diagram of the structure of an automatic coding device for a structural twin provided in an embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] This application provides an automatic encoding method, apparatus, device, and readable storage medium for structural twins, which can solve the problem of component encoding using traditional methods in related technologies.
[0047] However, it suffers from low efficiency and poor accuracy.
[0048] Figure 1 This application provides an automatic encoding method for structural twins, comprising the following steps:
[0049] Step S10: Receive structural twin information input by the user. The structural twin information includes multiple structural twin objects and their corresponding basic information, including...
[0050] Information on the type, number, elevation, and relative position of structural twins;
[0051] In this exemplary embodiment, the user can select the required standard bridge components, such as pile foundations, piers, cap beams, abutments, supports, and beam segments, from the family library manager according to the bridge project requirements and load them into the bridge project. Simultaneously, the user can input the relevant requirement information for each standard bridge component through the UI interface, such as the longitudinal number of pile foundations, longitudinal spacing between pile foundations, transverse number of pile foundations, transverse spacing between pile foundations, and pile foundation elevation of the substructure, and the number of supports of the superstructure. Therefore, it can be understood that when the user clicks the "Quick Modeling" button, this embodiment can receive the various structural twin objects and their related basic information.
[0052] For example, information such as the structural twin type corresponding to the structural twin object, the required total number, and the relative distance to 0. It should be noted that the structural twin object (i.e., the family name) refers to a specific standard bridge component. For example, if the standard bridge components in the bridge project requirements include pile foundations and bearings, then the component object includes pile foundations and bearings. The structural twin type (i.e., the family type name) refers to the model of the structural twin. For example, a pile foundation with a diameter of 500mm has a component type of d50.
[0053] Step S20: Generate a BIM model based on the structural twin object and its basic information.
[0054] Based on the type and quantity of the structural twin, multiple target structural twins corresponding one-to-one with the structural twin objects are selected from a preset project file library;
[0055] In this exemplary embodiment, upon receiving the structural twin information input by the user, not only is a BIM model constructed using Revit software based on this information to generate a BIM model, but multiple target structural twins corresponding one-to-one with the structural twin object are also selected from a preset project file library according to the structural twin type and quantity. The project file library contains instances corresponding to various standard bridge components, and multiple target structural twins with the same family name and family type name as the structural twin object can be found from the project file library based on the structural twin type and quantity. Specifically, taking the lower structure pile foundation as an example, when executing the "Create Pile Foundation" command, a transaction named "Place Pile Foundation" can be created, and a method for finding the type can be invoked. This method mainly queries all family names and family type names that are the same as the family name and family type name input by the user; these are the target structural twins required in this embodiment. For example, if the structural twin object is a pile foundation, its structural twin type is d50, and the quantity is 5, then 5 d50 pile foundation instances will be selected from the project file library.
[0056] Step S30: Determine the coordinates of the positioning center point of each target structural twin in the three-dimensional coordinate system based on the relative position information;
[0057] As an example, it is understandable that the starting point for BIM model creation is usually the project base point (i.e., the project origin). Therefore, in this embodiment, the space is divided into horizontal and vertical directions using the project base point as the origin. The X-axis and Y-axis coordinates of each target structural twin are created using the relative position information of the target structural twins, thereby obtaining the positioning center point coordinates of each target structural twin. Then, multiple "elevations (i.e., the Z-axis direction)" are created in space, and the target structural twins are placed in batches at the corresponding "elevation" positions according to the positioning center point coordinates, elevations, and other parameters.
[0058] Taking the target structural twin as an example of pile foundations, the X-axis and Y-axis coordinates of each pile foundation are created by determining the relative position information of the pile foundations based on parameters such as the number of horizontal axes and the horizontal distance, thereby obtaining the coordinates of the positioning center point of each pile foundation; then, based on the positioning center point coordinates, pile foundation type, elevation and other parameters, the pile foundations are placed in batches at the corresponding "elevation" positions.
[0059] Step S40: Sort and classify all target structural twins based on the coordinates of the positioning center point and the elevation to obtain a sorted set and a classified set;
[0060] Furthermore, the process of sorting and classifying all target structural twins based on the coordinates of the positioning center point and the elevation to obtain a sorted set and a classified set includes:
[0061] All target structure twins are classified according to the elevation to obtain multiple target structure twin category sets;
[0062] Based on the coordinates of the positioning center point, the target structural twins in each target structural twin category set are sorted to obtain the sorted set corresponding to each target structural twin category set;
[0063] Based on the x-coordinate in the coordinates of the positioning center point, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0064] Furthermore, the step of sorting the target structural twins in each target structural twin category set according to the coordinates of the positioning center point, to obtain a sorted set corresponding to each target structural twin category set, includes:
[0065] Sort the coordinates of the positioning center points of the target structure twins in each target structure twin category set in ascending order of the horizontal and / or vertical coordinates to obtain the coordinate sorting set corresponding to each target structure twin category set;
[0066] The target structural twins are sorted according to the coordinate sorting set corresponding to each target structural twin category set, resulting in a structural twin sorting set.
[0067] Furthermore, the classification of target structural twins in the sorted set corresponding to each target structural twin category set based on the abscissa of the positioning center point coordinates yields multiple target structural twin classification sets corresponding to each target structural twin category set, including:
[0068] The classification criterion is whether the twins of the target structure have the same x-coordinate.
[0069] Based on the classification criteria, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0070] As an example, in this embodiment, a project-shared parameter field can be created, and a transaction named "Basic Code" can be created in this field. The process of this transaction is as follows: first, an elevation filter is created to filter and collect all pile foundation components placed at the corresponding "elevation". For example, there are "Elevation 1", "Elevation 2" and "Elevation 3", where "Elevation 1" corresponds to an elevation of 5m, "Elevation 2" corresponds to 6m and "Elevation 3" corresponds to 7m. Then, the elevation filter can classify all target structural twins at elevation 5m into category A, all target structural twins at elevation 6m into category B, and all target structural twins at elevation 7m into category C.
[0071] Then, the coordinates of the positioning center points of the target structural twin are sorted in ascending order to obtain the sorting results. For example, taking the target structural twin as a pile foundation, assuming that class A includes pile foundations M1, M2, M3, and M4, and the coordinates of the positioning center points of pile foundations M1 to M4 are (3,1), (3,2), (2,2), and (2,1) respectively, then since the x-coordinate 2 of pile foundations M3 and M4 is less than the x-coordinate 3 of pile foundations M1 and M2, pile foundations M3 and M4 are ranked before pile foundations M1 and M2; at the same time, since the y-coordinate 1 of pile foundation M4 is less than the y-coordinate 2 of pile foundation M3, pile foundation M4 is ranked before pile foundation M3, and similarly, pile foundation M1 is ranked before pile foundation M2. In summary, the coordinates of the positioning center points of the pile foundations in Class A are (2,1), (2,2) and (3,1), (3,2). Therefore, the order of the pile foundations in Class A is pile foundation M4, pile foundation M3, pile foundation M1, and pile foundation M2.
[0072] After sorting each type of target structural twin, each type of target structural twin can be further subdivided and classified according to its x-coordinate value, that is, those with the same x-coordinate value are grouped together. For example, since the x-coordinate of pile foundation M4 and pile foundation M3 is 2, while the x-coordinate of pile foundation M1 and pile foundation M2 is 3, pile foundation 4 and pile foundation 3 can be grouped into one category to obtain the first target structural twin classification set, and pile foundation 1 and pile foundation 2 can be grouped into another category to obtain the second target structural twin classification set.
[0073] Step S50: Encode all target structural twins according to the sorting set and the classification set.
[0074] As an example, in this embodiment, after categorizing, the target structural twins are coded. Specifically, the spans can be cyclically divided according to the previously grouped sections. Then, within a certain span, the side views are cyclically sorted from left to right. Finally, "#target structural twin name" is added to complete the numbering. Taking the coding of a two-span single-span continuous beam bridge as an example, assuming that the first target structural twin classification set corresponding to category A includes pile foundation 4 and pile foundation 3, and the sorting is pile foundation 4 before pile foundation 3, and the second target structural twin classification set includes pile foundation 1 and pile foundation 2, and the sorting is...
[0075] Since pile foundation 1 precedes pile foundation 2, and the third target structure twin classification set includes pile foundations 5 and 6, with pile foundation 5 ordered such that pile foundation 6 precedes pile foundation 5, the coding rule for the pile foundations is as follows: First, divide the structure into three spans, with two pile foundations in each span. The first span is denoted as 0, the second as 1, and the third as 2. Then, in the first span, counting from the left, the first pile foundation 4 is denoted as 1, the second as 3, and so on. That is, the first pile foundation 4 on the left side of the first span is numbered as 0-1#, and the second as 0-2#; similarly, the first pile foundation 1 on the left side of the second span is numbered as 1-1#, and the second as 1-2#.
[0076] For the pile foundations, the first pile foundation (6) on the left side of the third span is numbered 2-1#, and the second pile foundation (5) is numbered 2-2#. Other target structural twins are modeled and coded based on the pile foundations; for the sake of simplicity, these details will not be elaborated here.
[0077] It should be understood that for target structural twins at different elevations, the "center" of the target structural twin can be obtained based on its positional parameter attributes. This "center" can then be projected onto the same elevation and coded accordingly. Further differentiation can be achieved by adding a specific elevation value or elevation classification value before the number. For example, when coding pile foundations in category A, the elevation value of 5m for category A can be represented by the number 5.
[0078] Add it to it, for example, the number of pile foundation 4 is 005-0-1# pile foundation; of course, you can also add the code corresponding to the 0 elevation category (this code can be defined according to actual needs, and is not limited here, such as A) to it, for example, the number of pile foundation 4 is A-0-1# pile foundation.
[0079] In summary, this application obtains the quantity and relative position information of components through user-input parameters, and sorts them according to their spatial location using Revit software, i.e., according to each...
[0080] The positioning points or lines of each component are sorted from smallest to largest, and a code is assigned to each of the five types of components upon completion. Therefore, this application enables the automatic generation of BIM models while simultaneously assigning codes to each component in sequence based on its spatial location. In other words, the coding information is automatically generated along with the model, eliminating the need for manual creation of standardized models and effectively improving the coding efficiency and accuracy of components.
[0081] See Figure 2 As shown in the figure, this application embodiment also provides an automatic encoding device for structural twins, including:
[0082] The receiving unit is used to receive structural twin information input by the user. The structural twin information includes multiple structural twin objects and their corresponding basic information. The basic information includes structural twin type, quantity, elevation and relative position information.
[0083] The filtering unit is used to generate a BIM model based on the structural twin object and its basic information, and to filter out multiple target structural twins that correspond one-to-one with the structural twin object from a preset project file library according to the structural twin type and the quantity.
[0084] The processing unit is used to determine the coordinates of the positioning center point of each target structural twin 0 in the three-dimensional coordinate system based on the relative position information; and to sort and classify all target structural twins based on the positioning center point coordinates and the elevation to obtain a sorted set and a classified set.
[0085] The encoding unit is used to encode all target structural twins according to the sorting set and the classification set.
[0086] 5. Further, the processing unit is specifically used for:
[0087] All target structure twins are classified according to the elevation to obtain multiple target structure twin category sets;
[0088] Based on the coordinates of the positioning center point, each target structure twin category set is analyzed.
[0089] The target structural twins are sorted to obtain a sorted set corresponding to 0 for each target structural twin category set;
[0090] Based on the x-coordinate in the coordinates of the positioning center point, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0091] Furthermore, the processing unit is specifically used to: 5 sort the coordinates of the positioning center points corresponding to the target structure twins in each target structure twin category set according to the order of the horizontal coordinate and / or vertical coordinate from small to large, so as to obtain the coordinate sorting set corresponding to each target structure twin category set;
[0092] The target structural twins are sorted according to the coordinate sorting set corresponding to each target structural twin category set, resulting in a structural twin sorting set.
[0093] Furthermore, the processing unit is specifically used for:
[0094] The classification criterion is whether the twins of the target structure have the same x-coordinate.
[0095] Based on the classification criteria, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
[0096] It should be noted that those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and each unit can be referred to the corresponding process in the aforementioned embodiments of the automatic coding method for structural twins, and will not be repeated here.
[0097] The apparatus provided in the above embodiments can be implemented as a computer program, which can be used in, for example... Figure 3 The structure twin shown runs on an automated coding device.
[0098] This application also provides an automatic encoding device for structural twins, including: a memory, a processor, and a network interface connected via a system bus. The memory stores at least one instruction, which is loaded and executed by the processor to implement all or part of the steps of the aforementioned automatic encoding method for structural twins.
[0099] The network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0100] A processor can be a CPU, or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor, or any conventional processor. The processor is the control center of a computer device, connecting all parts of the computer device through various interfaces and lines.
[0101] Memory can be used to store computer programs and / or modules. The processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory, and by accessing data stored in the memory. Memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for at least one function (such as video playback, image playback, etc.), etc.; the data storage area can store data created based on the use of the mobile phone (such as video data, image data, etc.). Furthermore, memory can include high-speed random access memory (RAM), and can also include non-volatile memory, such as hard disks, RAM, plug-in hard disks, SmartMediaCards (SMC), SecureDigital (SD) cards, FlashCards, at least one disk storage device, flash memory devices, or other volatile solid-state storage devices.
[0102] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements all or part of the steps of the aforementioned automatic encoding method for structural twins.
[0103] The embodiments of this application can implement all or part of the aforementioned processes, or they can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various methods described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium can be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0104] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, servers, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0105] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0106] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0107] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. An automatic encoding method for structural twins, characterized in that, Includes the following steps: Receive structural twin information input by the user. The structural twin information includes multiple structural twin objects and their corresponding basic information, including structural twin type, quantity, elevation, and relative position information. A BIM model is generated based on the structural twin object and its basic information, and multiple target structural twins corresponding one-to-one with the structural twin object are selected from the preset project file library according to the structural twin type and the quantity. The coordinates of the positioning center point of each target structure twin in the three-dimensional coordinate system are determined based on the relative position information. Based on the coordinates of the positioning center point and the elevation, all target structural twins are sorted and classified to obtain a sorted set and a classified set. Encode all target structural twins according to the sorting set and the classification set; The step of sorting and classifying all target structural twins based on the coordinates of the positioning center point and the elevation to obtain a sorted set and a classified set includes: All target structure twins are classified according to the elevation to obtain multiple target structure twin category sets; Based on the coordinates of the positioning center point, the target structural twins in each target structural twin category set are sorted to obtain the sorted set corresponding to each target structural twin category set; Based on the x-coordinate in the coordinates of the positioning center point, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
2. The automatic encoding method for structural twins as described in claim 1, characterized in that, The step of sorting the target structural twins in each target structural twin category set according to the coordinates of the positioning center point, to obtain a sorted set corresponding to each target structural twin category set, includes: Sort the coordinates of the positioning center points of the target structure twins in each target structure twin category set in ascending order of the horizontal and / or vertical coordinates to obtain the coordinate sorting set corresponding to each target structure twin category set; The target structural twins are sorted according to the coordinate sorting set corresponding to each target structural twin category set, resulting in a structural twin sorting set.
3. The automatic encoding method for structural twins as described in claim 2, characterized in that, The classification of target structural twins in the sorted set corresponding to each target structural twin category set based on the horizontal coordinate of the positioning center point yields multiple target structural twin category sets corresponding to each target structural twin category set, including: The classification criterion is whether the twins of the target structure have the same x-coordinate. Based on the classification criteria, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
4. An automatic encoding device for structural twins, characterized in that, include: The receiving unit is used to receive structural twin information input by the user. The structural twin information includes multiple structural twin objects and their corresponding basic information, including structural twin type, quantity, elevation and relative position information. The filtering unit is used to generate a BIM model based on the structural twin object and its basic information, and to filter out multiple target structural twins that correspond one-to-one with the structural twin object from a preset project file library according to the structural twin type and the quantity. The processing unit is used to determine the coordinates of the positioning center point of each target structural twin in the three-dimensional coordinate system based on the relative position information; and to sort and classify all target structural twins based on the positioning center point coordinates and the elevation to obtain a sorted set and a classified set. The encoding unit is used to encode all target structural twins according to the sorting set and the classification set; Specifically, the processing unit is used for: All target structure twins are classified according to the elevation to obtain multiple target structure twin category sets; Based on the coordinates of the positioning center point, the target structural twins in each target structural twin category set are sorted to obtain the sorted set corresponding to each target structural twin category set; Based on the x-coordinate in the coordinates of the positioning center point, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
5. The automatic coding device for structural twins as described in claim 4, characterized in that, The processing unit is also specifically used for: Sort the coordinates of the positioning center points of the target structure twins in each target structure twin category set in ascending order of the horizontal and / or vertical coordinates to obtain the coordinate sorting set corresponding to each target structure twin category set; The target structural twins are sorted according to the coordinate sorting set corresponding to each target structural twin category set, resulting in a structural twin sorting set.
6. The automatic coding device for structural twins as described in claim 5, characterized in that, The processing unit is specifically used for: The classification criterion is whether the twins of the target structure have the same x-coordinate. Based on the classification criteria, the target structural twins in the sorted set corresponding to each target structural twin category set are classified to obtain multiple target structural twin classification sets corresponding to each target structural twin category set.
7. An automatic coding device for structural twins, characterized in that, include: A memory and a processor, wherein the memory stores at least one instruction, which is loaded and executed by the processor to implement the automatic encoding method for structural twins according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that, when executed by a processor, implements the automatic encoding method for structural twins according to any one of claims 1 to 3.