Automatic conversion method of architectural 3ds Max geometric model to Revit information model

By identifying and converting component types and parameter values ​​in 3ds Max, exporting geometric information and using the Revit API for automated reconstruction, the problem that the 3ds Max model cannot be effectively converted into the Revit information model is solved, and automatic conversion and information integration is achieved, reducing Repeated modeling work has been implemented to enhance the application value of the model.

CN117456125BActive Publication Date: 2024-12-13SHANGHAI CONSTRUCTION FOURTH CONSTRUCTION GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310922684.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-26
Publication Date
2024-12-13
Estimated Expiration
2043-07-26

AI Technical Summary

Technical Problem

The existing 3ds Max model cannot be effectively converted into a Revit information model, resulting in a large amount of workload in repeated modeling in different software and losing the core advantages of Revit form files.

Method used

By identifying component types based on geometric data features in 3ds Max, obtaining component parameter values, and converting them into unified geometric parameter values, exporting geometric information to text files, and using Revit API for automated reconstruction, realizing the geometric model from 3ds Max Automatic conversion to Revit information model.

Benefits of technology

The automatic transformation of three-dimensional geometric model into information management model is realized, reducing duplicate modeling work, supporting information integration of components as units and BIM application expansion, improving the application value of the model in the entire life of the building, and improving two types of Effective conversion method between models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117456125B_ABST
    Figure CN117456125B_ABST
Patent Text Reader

Abstract

The present invention provides an automatic conversion method from a building 3ds Max geometric model to a Revit information model. Based on 3ds Max and Revit software platforms and using the secondary development of Maxscript and Revit API, an automatic conversion method from a building 3ds Max geometric model to a Revit information model is proposed through algorithms for component type recognition, component parameter classification, geometric information extraction, and parameter automatic modeling, so as to realize the automatic conversion from a three-dimensional geometric model to an information management model, reduce the repeated modeling work of the same building under different functional applications, improve the effective conversion method between the two types of models in the current construction industry, and lay a foundation for the versatility and scalability of building three-dimensional models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an automatic conversion method from a building 3ds Max geometric model to a Revit information model. Background Art

[0002] The three-dimensional model of the building is the model base for realizing the digital twin of the building. On this basis, combined with the application of digital information technology, the virtual and real combination of the model and the entity is achieved. Among them, the model base is the core and foundation of the digital twin.

[0003] At present, there are two main methods for constructing building 3D models:

[0004] The first type is usually based on digital surveying and mapping data, and uses 3D geometric modeling software such as 3ds Max and SketchUp to build models of building entities, environments, and scenes. The advantages are the construction of complex objects and the expansion of display effects.

[0005] The other type is usually based on design drawings. It uses architectural parametric modeling software such as Revit to conveniently model components based on the axis grid, elevation, size and other annotations in the drawings and based on flexibly expandable parametric component families. It also supports information integration and object management based on components. Its advantage lies in efficient model construction and unit management, and supports subsequent BIM application expansion based on the IFC standard.

[0006] From the above analysis, it can be seen that the core difference between the two types of model building methods lies in the source of modeling data and the focus of subsequent applications. Both methods have corresponding value in a wide range of application scenarios of building digital twins. If the efficient conversion method between the two types of models can be improved, the workload of repeated modeling in different software will be avoided.

[0007] Taking the most typical software of the two types of model building methods as an example, 3ds Max supports the direct import of rvt format files created by Revit or indirect import using fbx format files as the medium, which can be subsequently processed and applied in 3ds Max after import; and although Revit also supports the import of fbx format files and can indirectly import files created by 3ds Max, the model is imported in the form of reference blocks and does not support subsequent information integration, object management and BIM applications based on component units, thus losing the core advantage of Revit format files. Therefore, it is actually impossible to achieve effective conversion from 3ds Max models to Revit models. Summary of the invention

[0008] The purpose of the present invention is to provide a method for automatically converting a building 3ds Max geometric model into a Revit information model.

[0009] To solve the above problems, the present invention provides a method for automatically converting a building 3ds Max geometric model to a Revit information model, comprising:

[0010] A method for automatically converting a building 3ds Max geometric model to a Revit information model, comprising:

[0011] Identify component types based on the data features of different geometric bodies in the architectural 3ds Max geometric model;

[0012] Obtaining geometric parameter values ​​of each component type, and converting geometric parameter values ​​of components of the same type whose errors are within a preset prefabrication range into unified geometric parameter values ​​corresponding to the components of that type;

[0013] Based on the unified geometric parameter values ​​corresponding to the components of each type, the geometric information of each type of component is obtained;

[0014] The geometric information of each type of component is exported to a text file, and the corresponding creation statement is called in the Revit API according to the geometric information to automatically reconstruct the building components.

[0015] Furthermore, in the above method, the component types include: main structural components created based on standard primitives, common family library components spliced ​​and modified based on standard primitives, and other special objects.

[0016] Furthermore, in the above method, component type identification is performed based on data features of different geometric bodies in the architectural 3ds Max geometric model, including:

[0017] The structural types of the main structural components include: beams, columns, walls and plates, and the component types of the main structural components are determined by judging the geometric body type and geometric size.

[0018] Furthermore, in the above method, component type identification is performed based on data features of different geometric bodies in the architectural 3ds Max geometric model, including:

[0019] The component types of the common family library components include: doors and windows, roofs, and tables and chairs. The component types of the common family library components are identified by the names of the objects.

[0020] Furthermore, in the above method, component type identification is performed based on data features of different geometric bodies in the architectural 3ds Max geometric model, including:

[0021] The other special objects include decorative parts, and the component types of other special objects are classified by manual selection.

[0022] Furthermore, in the above method, the geometric parameter values ​​of each component type are obtained, and the geometric parameter values ​​of components of the same type with errors within a preset prefabrication range are converted into unified geometric parameter values ​​corresponding to the components of the type, including:

[0023] The geometric parameter values ​​of the same type of components with an error not exceeding 5% are converted into the unified geometric parameter values ​​corresponding to the components of this type.

[0024] Furthermore, in the above method, based on the unified geometric parameter values ​​corresponding to the components of each type, the geometric information of each type of component is obtained, including:

[0025] Based on the unified geometric parameter values ​​corresponding to the main structural components, the corresponding geometric information is extracted by analyzing the coordinate data of the components in 3dsMax according to the definition of the base primitives.

[0026] Furthermore, in the above method, based on the unified geometric parameter values ​​corresponding to the components of each type, the geometric information of each type of component is obtained, including:

[0027] Based on the unified geometric parameter values ​​corresponding to the main structural components, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the standard primitive objects in 3ds Max according to the data required for creating the corresponding components in Revit API.

[0028] Furthermore, in the above method, based on the unified geometric parameter values ​​corresponding to the components of each type, the geometric information of each type of component is obtained, including:

[0029] Based on the unified geometric parameter values ​​corresponding to common family library components, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the object in 3ds Max according to the data required for creating the corresponding components in RevitAPI.

[0030] Furthermore, in the above method, the wall information in the text file is stored in the following manner: the first line contains the total number of walls, and each line starting from the second line contains 9 data required for creating a wall;

[0031] Export the geometric information of each type of component to a text file, and call the corresponding creation statement in the Revit API based on the geometric information to automatically reconstruct the building components, including:

[0032] Read the first line of data in the text file, convert it into int type and store it as the total number of walls;

[0033] Define a two-dimensional array with a total number of 9 behavioral walls to store the creation data of all walls, where the first dimension represents the wall number and the second dimension represents the related creation information number of the specified wall;

[0034] By reading the text file line by line and separating the data with commas, all data can be extracted and stored in the corresponding positions of the two-dimensional array. Finally, the wall creation statement is called according to the obtained information to complete the construction of the wall model.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] (1) The automatic conversion method of the architectural 3ds Max geometric model to the Revit information model provided by the present invention is based on the secondary development of Maxscript and Revit API. Through the algorithms of component type recognition, component parameter classification, geometric information extraction, and parameter automatic modeling, the automatic conversion of the three-dimensional geometric model to the information management model is realized, thereby reducing the repeated modeling work of the same building under different functional applications;

[0037] (2) The present invention provides an automatic conversion method from a geometric model usually based on reverse modeling to an information model. The subsequent model can support component-based information integration, object management, and BIM application expansion, thereby enhancing the practical application value of the model in the full life cycle management of buildings.

[0038] (3) As an exploration of data transmission between files of different formats, the present invention improves the effective conversion method between the two types of models in the current construction industry, conforms to the development trend of building digitalization, and lays the foundation for the universality and scalability of building three-dimensional models. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flow chart of a method for automatically converting a building 3ds Max geometric model to a Revit information model according to an embodiment of the present invention;

[0040] Figure 2 is a flow chart of a component parameter classification algorithm according to an embodiment of the present invention;

[0041] Figure 3 is a flow chart of an algorithm for extracting elevation geometric information according to an embodiment of the present invention;

[0042] Figure 4 is a flow chart of a wall geometry information extraction algorithm according to an embodiment of the present invention;

[0043] Figure 5 is a flow chart of an algorithm for extracting geometric information of windows on a wall according to an embodiment of the present invention;

[0044] Figure 6This is a flow chart of a wall information transmission algorithm according to an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0046] like Figure 1 As shown, the present invention provides a method for automatically converting a building 3ds Max geometric model to a Revit information model, comprising:

[0047] Step S1, identifying component types based on data features of different geometric bodies in the building 3ds Max geometric model;

[0048] Step S2, obtaining geometric parameter values ​​of each component type, and converting the geometric parameter values ​​of components of the same type whose errors are within a preset prefabrication range into unified geometric parameter values ​​corresponding to the components of the same type;

[0049] Step S3, obtaining geometric information of each type of component based on the unified geometric parameter value corresponding to each type of component;

[0050] Step S4, exporting the geometric information of each type of component into a text file, and calling the corresponding creation statement in the Revit API according to the geometric information to automatically reconstruct the building component.

[0051] Here, MAXScript language is a scripting language that comes with 3ds Max, which can access and modify the internal data in 3ds Max software and interact with text files. The present invention uses MAXScript language as a tool and text files as a medium to realize the three functions of component type identification, component parameter classification and geometric information extraction in 3ds Max models.

[0052] Revit API is a secondary development tool for Revit software. It provides a large number of methods for creating and modifying family documents, which can realize the interaction and management of family types and Revit documents, and read, create and modify data in Revit software. The present invention uses Revit API as a tool and text files as a medium to realize the Revit parameter automatic modeling function.

[0053] In order to solve the problem of effective conversion between model files, the present invention proposes an automatic conversion method for architectural 3ds Max geometric models to Revit information models. The core of the method is to transfer effective data between model files. The main components include: component type identification, component geometric parameter classification, geometric information extraction and parameter automatic modeling. The overall technical architecture of the present invention is as follows: Figure 1 shown.

[0054] In response to the above-mentioned problem that the three-dimensional geometric model of the building cannot be effectively converted into an information management model, the present invention is based on the 3ds Max and Revit software platforms, utilizes the secondary development of Maxscript and Revit API, and proposes an automatic conversion method of the architectural 3ds Max geometric model to the Revit information model through algorithms of component type recognition, component parameter classification, geometric information extraction, and parameter automatic modeling, so as to realize the automatic conversion of the three-dimensional geometric model to the information management model, reduce the repeated modeling work of the same building under different functional applications, improve the effective conversion method between the two types of models in the current construction industry, and lay the foundation for the versatility and scalability of the architectural three-dimensional model.

[0055] By virtue of the good format versatility of 3ds Max in three-dimensional geometric modeling software, the present invention can support common geometric model formats such as 3ds, skp, fbx, obj, etc., improve the effective conversion method between the two types of models in the current construction industry, and lay the foundation for the versatility and scalability of architectural three-dimensional models.

[0056] In one embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, the component types include: main structural components created based on standard primitives, common family library components spliced ​​and modified based on standard primitives, and other special objects.

[0057] Here, different types of building components are superpositions of different types of geometric bodies in 3ds Max software, and there is no type information. In order to meet the requirements of object classification modeling in Revit software, it is necessary to first identify the component type based on the data characteristics of different geometric bodies. Building components can be divided into main structural components created based on standard basic bodies, common family library components based on the splicing and modification of standard basic bodies, and other special objects according to different creation methods in 3ds Max software. Intelligent identification of components can be achieved in different ways.

[0058] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, step S1, based on data features of different geometric bodies in the building 3ds Max geometric model, performs component type identification, including:

[0059] The structural types of the main structural components include: beams, columns, walls and plates, and the component types of the main structural components are determined by judging the geometric body type and geometric size.

[0060] Here, the main structural components of the building include beams, columns, walls and plates, which basically present regular geometric shapes. In the modeling process of 3ds Max software, standard geometric bodies are used to create them. For example, circular columns or circular beams are created with cylinders, and square columns, walls, plates or rectangular beams are created with cuboids. In addition, such structural components have obvious characteristics in terms of geometric size, and the component type can be determined by judging the geometric type and geometric size.

[0061] For example, the wall object in 3ds Max software has the following characteristics: the wall is created as a cuboid, its width is generally less than 300mm, and its height is greater than 1000mm. Considering the possible reversal of length and width in 3ds Max software, the smaller value of the object's length and width is defined as the width of the wall. The MAXScript code is as follows:

[0062] wall = for iin objects collect--traverse all objects in the scene

[0063] if classof i==box and amin i.length i.width<300*0.0393701andi.height>1000*0.0393701

[0064] --If the object's data type is Box and the object's width is less than 300mm and its height is greater than 1000mm (unit conversion from meters to inches is required), collect the object into the wall array and define it as a wall;

[0065] then

[0066] else DontCollect--If not satisfied, do not collect

[0067] Therefore, this method can be used to identify other structural components with the same characteristics in the architectural 3ds Max model. What needs to be changed are only the array name, the geometry type in the judgment statement, and the geometry size.

[0068] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, step S1, based on data features of different geometric bodies in the building 3ds Max geometric model, performs component type identification, including:

[0069] The component types of the common family library components include: doors and windows, roofs, and tables and chairs. The component types of the common family library components are identified by the names of the objects.

[0070] Here, the building also contains common family library components (usually there are preset family libraries of corresponding types of components in Revit), such as various types of doors and windows, roofs, tables and chairs, etc. These components are relatively complex in shape, with different model properties and data characteristics, and are not convenient to judge by simple geometric type and size. They can be identified by the name of the object. The following MAXScript code means traversing all objects, identifying objects with "door" and "window" in the scene and classifying them into corresponding arrays, so as to realize the identification of common family library components:

[0071] gate = $*gate* as array;

[0072] window = $*window* as array.

[0073] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, step S1, based on data features of different geometric bodies in the building 3ds Max geometric model, performs component type identification, including:

[0074] The other special objects include decorative parts, and the component types of other special objects are classified by manual selection.

[0075] Here, there are many types of building components, and there may be objects outside the component preset family library types. Such objects generally have complex geometric shapes, unknown data types and properties, and are not easy to be identified by computer intelligence. Usually, they need to be consistent with the actual objects and can be manually selected for classification. Taking "decorative parts" as an example, the following MAXScript code represents manually selecting decorative parts and classifying them into the corresponding array, and $ represents all currently selected objects:

[0076] Decoration parts = $as array.

[0077] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, step S2, obtaining geometric parameter values ​​of each component type, converting the geometric parameter values ​​of components of the same type whose errors are within a preset prefabrication range into unified geometric parameter values ​​corresponding to the components of the same type, comprises:

[0078] The geometric parameter values ​​of the same type of components with an error not exceeding 5% are converted into the unified geometric parameter values ​​corresponding to the components of this type.

[0079] Here, for different components with the same design geometric parameter values, due to possible construction errors, measurement errors or modeling errors, the geometric dimension data is discrete, and the components with the same parameter values ​​originally present dimension parameters with very small differences but different values. This not only does not meet the application requirements of the model, but also brings trouble to the creation of the model. Therefore, it is necessary to classify the data into modules. By consulting relevant standard materials, the geometric parameter values ​​with an error of no more than 5% are set as a unified module. The definition of the allowable deviation of 5% can also be modified according to the results of the actual modular operation.

[0080] For a certain geometric parameter value type, by traversing the data in the geometric parameter value array, the data with a deviation of less than 5% is classified into one category, and the average value of the same category of data is taken and rounded off. The obtained integer is used as the type design value to replace the original discrete data as the basis for modeling. The flowchart is as follows: Figure 2 shown.

[0081] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, step S3, based on the unified geometric parameter values ​​corresponding to each type of component, obtains geometric information of each type of component, including:

[0082] Based on the unified geometric parameter values ​​corresponding to the main structural components, the corresponding geometric information is extracted by analyzing the coordinate data of the components in 3dsMax according to the definition of the base primitives.

[0083] Here, geometric information extraction is performed for each identified component type. Other special objects that are additionally defined do not need to be extracted because they cannot be parametrically constructed through the existing family library in Revit. In addition, component positioning in Revit software is based on basic elements such as elevation and axis grid, and the information extraction of related benchmark elements is required.

[0084] According to the definition of the base element, the relevant geometric information is extracted by analyzing the coordinate data of the components in 3ds Max. The information extraction algorithm of the base element is analyzed by taking the elevation as an example. The same is true for other base elements. The elevation is a limited horizontal plane in Revit. It is used as a reference for the "elevation managed" element (including the main components of the building in Revit). The most important attribute is the elevation value, which is used to determine the relative elevation of the elevation. The Z coordinates of the main structural components, beams, columns, plates, and walls, are traversed to filter out the non-repeated values ​​to form an elevation value array. The algorithm flow chart is as follows: Figure 3 As shown, including:

[0085] Step S311, traverse the Z coordinates of beams, columns, slabs and walls respectively and add them to the elevation array;

[0086] Step S312, filtering out non-repeated geometric parameter values ​​in the elevation array and sorting them;

[0087] Step S313, output the elevation array numbers and output the geometric parameter value text files in sequence.

[0088] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, step S3, based on the unified geometric parameter values ​​corresponding to each type of component, obtains geometric information of each type of component, including:

[0089] Based on the unified geometric parameter values ​​corresponding to the main structural components, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the standard primitive objects in 3ds Max according to the data required for creating the corresponding components in Revit API.

[0090] Here, according to the data required for the creation of the corresponding components in RevitAPI, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the standard primitive objects in 3ds Max. The information extraction algorithm of the standard primitive objects is analyzed by taking the wall as an example, and the same is true for other standard primitive objects. By analyzing the statements in RevitAPI for creating components based on model lines for the wall class, for each cuboid identified as a wall in 3ds Max, it is necessary to extract the coordinates of the midpoints of the two short sides of the bottom of the cuboid (a total of 6 values), the width and height of the cuboid, and the elevation number corresponding to the Z coordinate of the cuboid position, a total of 9 data.

[0091] The call of the cuboid attribute parameters can only extract the length, width, height and the coordinates of the origin of the local coordinate system, but it is still cumbersome to calculate the midpoint coordinates of the two short sides of the bottom of the cuboid based on these data. If the cuboid is converted into an editable grid composed of points, lines, and faces, the position coordinates of the vertices can be called. Not only can the midpoint coordinates of the short sides be calculated, but also the width and height data of the cuboid can be calculated through the vertex distance. The Z coordinate of the cuboid position can also be extracted through the vertex position coordinates, solving the problem of extracting 9 data of the cuboid. The algorithm flow chart is as follows: Figure 4 As shown, including:

[0092] Step S321, traverse the wall and store the geometric parameter value of the wall height into the wall height array;

[0093] Step S322, converting all walls into editable grids;

[0094] Step S323, traverse the wall to determine the elevation number corresponding to the Z coordinate;

[0095] Step S324, comparing the distances to determine the vertex numbers corresponding to the short edges;

[0096] Step S325, storing the midpoint coordinates of the two short sides into the model line array;

[0097] Step S326, storing the wall thickness data into the wall thickness array;

[0098] Step S327, traverse the wall and output the geometric information to a text file.

[0099] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, step S3, based on the unified geometric parameter values ​​corresponding to each type of component, obtains geometric information of each type of component, including:

[0100] Based on the unified geometric parameter values ​​corresponding to common family library components, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the object in 3ds Max according to the data required for creating the corresponding components in RevitAPI.

[0101] Here, according to the data required for the corresponding component creation in RevitAPI, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the object in 3ds Max. The information extraction algorithm of common family library component objects is analyzed by taking the wall window as an example, and the same is true for other family library component objects. By analyzing the host-based instance creation statements such as wall windows in RevitAPI, each object defined as a window in 3ds Max needs to extract its position coordinates (a total of 3 values), the length, width and height of the window, the number corresponding to the host wall to which the window belongs, and the elevation number corresponding to the host wall, a total of 8 data.

[0102] When it comes to extracting information about complex geometric objects, it can be converted into an editable mesh consisting of points, lines, and surfaces, and the coordinates of the vertices can be called to solve the problem of extracting geometric data. The algorithm flow chart is as follows Figure 5 As shown, including:

[0103] Step S331, converting all the windows on the wall into editable grids;

[0104] Step S332, obtaining the X, Y and Z direction extents of the object as length, width and height;

[0105] Step S333, obtaining the wall number corresponding to the host wall;

[0106] Step S334, obtaining the location coordinates of the host wall;

[0107] Step S335, traverse the windows on the wall and output the geometric information to a text file.

[0108] In an embodiment of the method for automatically converting a building 3ds Max geometric model to a Revit information model of the present invention, the wall information in the text file is stored in the following manner: the first line is the total number of walls, and each line starting from the second line contains 9 data required for creating one wall;

[0109] Step S4, exporting the geometric information of each type of component into a text file, and calling the corresponding creation statement in the Revit API according to the geometric information to automatically reconstruct the building component, including:

[0110] Read the first line of data in the text file, convert it into int type and store it as the total number of walls;

[0111] Define a two-dimensional array with a total number of 9 behavioral walls to store the creation data of all walls, where the first dimension represents the wall number and the second dimension represents the related creation information number of the specified wall;

[0112] By reading the text file line by line and separating the data with commas, all data can be extracted and stored in the corresponding positions of the two-dimensional array. Finally, the wall creation statement is called according to the obtained information to complete the construction of the wall model.

[0113] Here, through the third step of the geometric information extraction algorithm, the geometric information of most components in 3ds Max can be exported to a text file. Only by calling the corresponding creation statement in the Revit API according to the geometric information, the automatic reconstruction of the building components can be realized. This section takes the creation of the wall as an example, and mainly introduces the method of using the C# language to read the text file to extract the corresponding information and create the wall model. The same is true for other components.

[0114] The wall information in the text file is stored as follows: the first line is the total number of walls, and each line starting from the second line contains the 9 data required to create a wall. The C# language can be used to read the data content of the text file line by line and separate them with commas. Therefore, first read the data content of the first line of the text file, convert the data content of the first line into an int type and store it as the total number of walls; then define a two-dimensional array with a line of 9 for the total number of walls to store the creation data of all walls, where the first dimension represents the wall number, and the second dimension represents the relevant creation information number of the specified wall; by reading the text file line by line and separating the data with commas, all data can be extracted and stored in the corresponding positions of the two-dimensional array. Finally, the wall creation statement can be called according to the acquired information to complete the construction of the wall model. The algorithm flow chart is shown below Figure 6 As shown, including:

[0115] Step S41, opening a text file storing wall geometry information;

[0116] Step S42, reading the text file and storing the data as a two-dimensional array;

[0117] Step S43, creating a wall model line according to the coordinates of the two points;

[0118] Step S43, filtering the wall type according to the wall thickness data;

[0119] Step S45, obtaining the elevation ID according to the elevation number corresponding to the premise;

[0120] Step S46, calling a wall creation statement according to the acquired information;

[0121] Step S47, storing the wall ID value into a specified array.

[0122] Compared with the prior art, the present invention has the following beneficial effects:

[0123] (1) The automatic conversion method of the architectural 3ds Max geometric model to the Revit information model provided by the present invention is based on the secondary development of Maxscript and Revit API. Through the algorithms of component type recognition, component parameter classification, geometric information extraction, and parameter automatic modeling, the automatic conversion of the three-dimensional geometric model to the information management model is realized, thereby reducing the repeated modeling work of the same building under different functional applications;

[0124] (2) The present invention provides an automatic conversion method from a geometric model usually based on reverse modeling to an information model. The subsequent model can support component-based information integration, object management, and BIM application expansion, thereby enhancing the practical application value of the model in the full life cycle management of buildings.

[0125] (3) As an exploration of data transmission between files of different formats, the present invention improves the effective conversion method between the two types of models in the current construction industry, conforms to the development trend of building digitalization, and lays the foundation for the universality and scalability of building three-dimensional models.

[0126] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0127] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0128] Obviously, those skilled in the art can make various changes and modifications to the invention without departing from the spirit and scope of the invention. Thus, if these modifications and variations of the invention fall within the scope of the claims of the invention and their equivalents, the invention is also intended to include these modifications and variations.

Claims

1. A method for automatically converting a building 3ds Max geometric model to a Revit information model, characterized in that: include: Identify component types based on the data features of different geometric bodies in the architectural 3ds Max geometric model; Obtaining geometric parameter values ​​of each component type, and converting geometric parameter values ​​of components of the same type whose errors are within a preset prefabrication range into unified geometric parameter values ​​corresponding to the components of that type; Based on the unified geometric parameter values ​​corresponding to the components of each type, the geometric information of each type of component is obtained; Export the geometric information of each type of component into a text file, and call the corresponding creation statement in the Revit API based on the geometric information to automatically reconstruct the building components; Based on the unified geometric parameter values ​​corresponding to each type of component, the geometric information of each type of component is obtained, including: Based on the unified geometric parameter values ​​corresponding to the main structural components, the corresponding geometric information is extracted by analyzing the coordinate data of the components in 3ds Max according to the definition of the reference primitives, including: step S311, traversing the Z coordinates of beams, columns, plates and walls respectively and adding them to the elevation array; step S312, screening out non-repeated geometric parameter values ​​in the elevation array and sorting them; step S313, outputting the elevation array numbers and outputting the geometric parameter value text files in sequence; Based on the unified geometric parameter values ​​corresponding to each type of component, the geometric information of each type of component is obtained, including: Based on the unified geometric parameter values ​​corresponding to the main structural components, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the standard basic body objects in 3ds Max according to the data required for the corresponding component creation in Revit API, including: step S321, traversing the wall, and storing the geometric parameter value of the wall height in the wall height array; step S322, converting all walls into editable grids; step S323, traversing the wall to determine the elevation number corresponding to the Z coordinate; step S324, comparing the distance to determine the vertex number corresponding to the short side; step S325, storing the midpoint coordinates of the two short sides in the model line array; step S326, storing the wall thickness data in the wall thickness array; step S327, traversing the wall to output the geometric information to a text file; Based on the unified geometric parameter values ​​corresponding to each type of component, the geometric information of each type of component is obtained, including: Based on the unified geometric parameter values ​​corresponding to the common family library components, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the object in 3ds Max according to the data required for the corresponding component creation in RevitAPI, including: step S331, converting all the windows on the wall into editable grids; step S332, obtaining the X, Y and Z direction ranges of the object as the length, width and height; step S333, obtaining the wall number corresponding to the host wall; step S334, obtaining the position coordinates of the host wall; step S335, traversing the windows on the wall and outputting the geometric information to a text file.

2. The method for automatically converting a building 3ds Max geometric model to a Revit information model as claimed in claim 1, characterized in that: The component types include: main structural components created based on standard primitives, common family library components spliced ​​and modified based on standard primitives, and other special objects.

3. The method for automatically converting a building 3ds Max geometric model to a Revit information model as claimed in claim 2, characterized in that: Based on the data features of different geometric bodies in the architectural 3ds Max geometric model, component type identification is performed, including: The structural types of the main structural components include: beams, columns, walls and plates, and the component types of the main structural components are determined by judging the geometric body type and geometric size.

4. The method for automatically converting a building 3ds Max geometric model to a Revit information model as claimed in claim 2, characterized in that: Based on the data features of different geometric bodies in the architectural 3ds Max geometric model, component type identification is performed, including: The component types of the common family library components include: doors and windows, roofs, and tables and chairs. The component types of the common family library components are identified by the names of the objects.

5. The method for automatically converting a building 3ds Max geometric model to a Revit information model as claimed in claim 2, characterized in that: Based on the data features of different geometric bodies in the architectural 3ds Max geometric model, component type identification is performed, including: The other special objects include decorative parts, and the component types of other special objects are classified by manual selection.

6. The method for automatically converting a building 3ds Max geometric model to a Revit information model as claimed in claim 1, characterized in that: Obtain the geometric parameter values ​​of each component type, and convert the geometric parameter values ​​of components of the same type whose errors are within the preset prefabrication range into the unified geometric parameter values ​​corresponding to the components of this type, including: The geometric parameter values ​​of the same type of components with an error not exceeding 5% are converted into the unified geometric parameter values ​​corresponding to the components of this type.

7. The method for automatically converting a building 3ds Max geometric model to a Revit information model as claimed in claim 1, characterized in that: The storage method of the wall information in the text file is: the first line is the total number of walls, and each line starting from the second line contains 9 data required to create a wall; Export the geometric information of each type of component to a text file, and call the corresponding creation statement in the Revit API based on the geometric information to automatically reconstruct the building components, including: Read the first line of data in the text file, convert it into int type and store it as the total number of walls; Define a two-dimensional array with a total number of 9 behavioral walls to store the creation data of all walls, where the first dimension represents the wall number and the second dimension represents the related creation information number of the specified wall; By reading the text file line by line and separating the data with commas, all data can be extracted and stored in the corresponding positions of the two-dimensional array. Finally, the wall creation statement is called according to the obtained information to complete the construction of the wall model.