[go: up one dir, main page]

CN117456125A - Automatic conversion method from building 3ds Max geometric model to Revit information model - Google Patents

Automatic conversion method from building 3ds Max geometric model to Revit information model Download PDF

Info

Publication number
CN117456125A
CN117456125A CN202310922684.XA CN202310922684A CN117456125A CN 117456125 A CN117456125 A CN 117456125A CN 202310922684 A CN202310922684 A CN 202310922684A CN 117456125 A CN117456125 A CN 117456125A
Authority
CN
China
Prior art keywords
geometric
component
information
model
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310922684.XA
Other languages
Chinese (zh)
Other versions
CN117456125B (en
Inventor
童宇
张铭
黄轶
谷志旺
王伟茂
孙沈鹏
任瑛楠
包凌飞
路畅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Construction No 4 Group Co Ltd
Original Assignee
Shanghai Construction No 4 Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Construction No 4 Group Co Ltd filed Critical Shanghai Construction No 4 Group Co Ltd
Priority to CN202310922684.XA priority Critical patent/CN117456125B/en
Publication of CN117456125A publication Critical patent/CN117456125A/en
Priority to PCT/CN2024/089950 priority patent/WO2025020603A1/en
Application granted granted Critical
Publication of CN117456125B publication Critical patent/CN117456125B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides an automatic conversion method from a building 3ds Max geometric model to a Revit information model, which is based on a 3ds Max and Revit software platform, utilizes the secondary development of Maxscript and Revit API, and provides an automatic conversion method from the building 3ds Max geometric model to the Revit information model through algorithms of component type identification, 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 repeated modeling work of the same building under different function applications, perfect the effective conversion method between two types of models in the current building industry and lay a foundation for the universality and expandability of the building three-dimensional model.

Description

建筑3ds Max几何模型到Revit信息模型的自动转换方法Automatic conversion method from architectural 3ds Max geometric model to Revit information model

技术领域Technical field

本发明涉及一种建筑3ds Max几何模型到Revit信息模型的自动转换方法。The invention relates to an automatic conversion method from an architectural 3ds Max geometric model to a Revit information model.

背景技术Background technique

建筑三维模型是实现建筑数字孪生的模型底座,在此基础上,结合数字信息技术的应用,达成模型与实体的虚实结合,其中模型底座是数字孪生的核心与基础。The three-dimensional architectural model 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. The model base is the core and foundation of the digital twin.

目前,建筑三维模型的构建方法主要包括两类:At present, there are two main types of construction methods for building 3D models:

一类是通常以数字测绘数据为基础,通过以3ds Max、SketchUp为代表的三维几何建模软件出色的三维数据处理、多边形编辑建模、场景动画特效扩展功能进行建筑本体、环境、场景的模型构建,优势在于复杂对象的构建及展示效果的扩展;One type is usually based on digital surveying and mapping data, and uses the excellent 3D data processing, polygon editing and modeling, and scene animation special effects expansion functions of 3D geometric modeling software represented by 3ds Max and SketchUp to create models of the building body, environment, and scenes. Construction, the advantage lies in the construction of complex objects and the expansion of display effects;

另一类是通常以设计图纸为基础,通过以Revit为代表的建筑参数化建模软件依据图纸中的轴网、标高、尺寸等标注、基于可灵活扩展的参数化构件族方便地进行构件的建模,并且支持以构件为单元的信息集成及对象管理,优势在于高效的模型构建及单元化管理,并支持后续基于IFC标准的BIM应用扩展。The other type is usually based on design drawings, through architectural parametric modeling software represented by Revit, according to the axis network, elevation, dimensions and other annotations in the drawings, and based on flexibly expandable parametric component families to easily carry out components. Modeling, and supports information integration and object management based on components as units. The advantage lies in efficient model construction and unit management, and supports subsequent BIM application expansion based on IFC standards.

通过上述分析可以看出,两类模型构建方法的核心区别在于建模数据的来源及后续应用的侧重性,在建筑数字孪生广泛的应用场景下都具备相应的价值,如果能够完善两类模型之间的高效转化方法将避免在不同软件中重复建模的工作量。It can be seen from the above analysis that the core difference between the two types of model construction methods lies in the source of modeling data and the focus of subsequent applications. They have corresponding value in a wide range of application scenarios of building digital twins. If the two types of models can be improved, Efficient conversion methods between models will avoid duplicating the modeling workload in different software.

以两类模型构建方法最典型的软件为例,3ds Max支持Revit创建rvt格式文件的直接导入或以fbx格式文件为媒介进行间接导入,导入后可在3ds Max中进行后续的处理及应用;而Revit中虽然也支持fbx格式文件的导入,可以将3ds Max创建的文件间接导入,但模型是以参考块的形式导入的,并不支持后续以构件为单元的信息集成、对象管理及BIM应用,失去了Revit形式文件最核心的优势,所以实际上并不能实现从3ds Max模型到Revit模型的有效转化。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 the indirect import of fbx format files as a medium. After import, subsequent processing and application can be carried out in 3ds Max; 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 a reference block and does not support subsequent information integration, object management and BIM applications based on components. The core advantage of Revit form files is lost, so it is not actually possible to achieve effective conversion from 3ds Max models to Revit models.

发明内容Contents of the invention

本发明的目的在于提供一种建筑3ds Max几何模型到Revit信息模型的自动转换方法。The purpose of the present invention is to provide an automatic conversion method from an architectural 3ds Max geometric model to a Revit information model.

为解决上述问题,本发明提供一种建筑3ds Max几何模型到Revit信息模型的自动转换方法,包括:In order to solve the above problems, the present invention provides an automatic conversion method from an architectural 3ds Max geometric model to a Revit information model, including:

一种建筑3ds Max几何模型到Revit信息模型的自动转换方法,其特征在于,包括:An automatic conversion method from an architectural 3ds Max geometric model to a Revit information model, which is characterized by including:

基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别;Based on the data characteristics of different geometries in the architectural 3ds Max geometric model, component type identification is performed;

获取各个构件类型的几何参数值,将误差在预设预制范围的同类型构件的几何参数值转换为该类型构件对应的统一几何参数值;Obtain the geometric parameter values of each component type, and convert the geometric parameter values of the same type of components with errors within the preset prefabricated range into the unified geometric parameter values corresponding to the component type;

基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息;Based on the unified geometric parameter values corresponding to each type of component, the geometric information of each type of component is obtained;

将各个类型构件的几何信息导出到文本文件中,在Revit API中依据几何信息调用对应的创建语句进行建筑构件的自动化重构。Export the geometric information of each type of component to a text file, and call the corresponding creation statement based on the geometric information in the Revit API to automatically reconstruct the building components.

进一步的,在上述方法中,所述构件类型,包括:基于标准基本体创建的主要结构构件、基于标准基本体拼接及修改的常见族库构件和其他特殊物件。Further, in the above method, the component types include: main structural components created based on standard primitives, common family library components based on splicing and modification of standard primitives, and other special objects.

进一步的,在上述方法中,基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别,包括:Further, in the above method, component type identification is performed based on the data characteristics of different geometries in the architectural 3ds Max geometric model, including:

所述主要结构构件的结构类型包括:梁、柱、墙和板,通过几何体类型和几何尺寸大小的判断确定主要结构构件的构件类型。The structural types of the main structural components include: beams, columns, walls and plates. The component types of the main structural components are determined by judging the geometry type and geometric size.

进一步的,在上述方法中,基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别,包括:Further, in the above method, component type identification is performed based on the data characteristics of different geometries in the architectural 3ds Max geometric model, including:

所述常见族库构件的构件类型包括:门窗、屋顶和桌椅,通过对象的名称识别所述常见族库构件的构件类型。The component types of the common family library components include: doors and windows, roofs, tables and chairs, and the component types of the common family library components are identified by the names of objects.

进一步的,在上述方法中,基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别,包括:Further, in the above method, component type identification is performed based on the data characteristics of different geometries in the architectural 3ds Max geometric model, including:

所述其他特殊物件包括:装饰部件,通过手动选择对其他特殊物件进行构件类型的归类。The other special objects include: decorative components, and other special objects are classified into component types through manual selection.

进一步的,在上述方法中,获取各个构件类型的几何参数值,将误差在预设预制范围的同类型构件的几何参数值转换为该类型构件对应的统一几何参数值,包括:Further, in the above method, the geometric parameter values of each component type are obtained, and the geometric parameter values of the same type of components whose errors are within the preset prefabrication range are converted into unified geometric parameter values corresponding to the component type, including:

将误差误差不超过5%的同类型构件的几何参数值,转换为该类型构件对应的统一几何参数值。Convert the geometric parameter values of the same type of components with an error error not exceeding 5% into the unified geometric parameter values corresponding to the type of component.

进一步的,在上述方法中,基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息,包括:Further, in the above method, the geometric information of each type of component is obtained based on the unified geometric parameter values corresponding to each type of component, including:

基于主要结构构件对应的统一几何参数值,根据基准图元的定义通过分析3dsMax中构件的坐标数据提取对应的几何信息。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 datum primitive.

进一步的,在上述方法中,基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息,包括:Further, in the above method, the geometric information of each type of component is obtained based on the unified geometric parameter values corresponding to each type of component, including:

基于主要结构构件对应的统一几何参数值,根据RevitAPI中对应构件创建所需的数据通过分析3ds Max中标准基本体对象的坐标数据和尺寸数据提取对应的几何信息。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 the creation of the corresponding components in RevitAPI.

进一步的,在上述方法中,基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息,包括:Further, in the above method, the geometric information of each type of component is obtained based on the unified geometric parameter values corresponding to each type of component, including:

基于常见族库构件对应的统一几何参数值,根据RevitAPI中对应构件创建所需的数据通过分析3ds Max中对象的坐标数据和尺寸数据提取对应的几何信息。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 based on the data required to create the corresponding component in RevitAPI.

进一步的,在上述方法中,所述文本文件中墙体信息的储存方式为:第一行为墙体总数,第二行开始每一行为一个墙体创建所需的9个数据;Further, in the above method, the storage method of wall information in the text file is: the first line is the total number of walls, and each line starting from the second line is 9 data required to create a wall;

将各个类型构件的几何信息导出到文本文件中,在Revit API中依据几何信息调用对应的创建语句进行建筑构件的自动化重构,包括:Export the geometric information of each type of component to a text file, and call the corresponding creation statement based on the geometric information in the Revit API to automatically reconstruct the building components, including:

读取文本文件第一行数据内容,将第一行数据内容转化为int型后存储为墙体总数;Read the data content of the first line of the text file, convert the data content of the first line into int type and store it as the total number of walls;

定义一个行为墙体总数列为9的二维数组,用于存储所有墙体的创建数据,其中第一维代表墙体序号,第二维代表指定墙体的相关创建信息序号;Define a two-dimensional array with the total number of behavioral walls listed as 9, used to store the creation data of all walls, where the first dimension represents the wall serial number, and the second dimension represents the related creation information serial 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 position of the two-dimensional array. Finally, the wall model can be constructed by calling the wall creation statement based on the obtained information.

与现有技术相比,本发明的有益效果如下:Compared with the prior art, the beneficial effects of the present invention are as follows:

(1)本发明提供的建筑3ds Max几何模型到Revit信息模型的自动转换方法,基于Maxscript和Revit API的二次开发,通过构件类型识别、构件参数归类、几何信息提取、参数自动化建模的算法,实现了三维几何模型向信息管理模型的自动转化,减少了同一建筑在不同功能应用下的重复建模工作;(1) The automatic conversion method from 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 component type identification, component parameter classification, geometric information extraction, and automatic parameter modeling. The algorithm realizes the automatic transformation of the three-dimensional geometric model into the information management model, reducing the repetitive modeling work of the same building under different functional applications;

(2)本发明提供了通常基于逆向建模的几何模型向信息模型的自动转换方法,后续模型可支持以构件为单元的信息集成、对象管理及BIM应用扩展,提升了模型在建筑全生命期管理中的实际应用价值;(2) The present invention provides an automatic conversion method from a geometric model to an information model, which is usually based on reverse modeling. Subsequent models can support component-based information integration, object management and BIM application expansion, improving the model's use in the entire life cycle of the building. Practical application value in management;

(3)本发明作为不同格式文件间的数据传输探索,完善了目前建筑行业内两类模型之间的有效转换方法,符合建筑数字化的发展趋势,为建筑三维模型的通用性及可扩展性打下基础。(3) As an exploration of data transmission between files in different formats, this invention improves the effective conversion method between two types of models in the current construction industry, conforms to the development trend of architectural digitalization, and lays a solid foundation for the versatility and scalability of three-dimensional architectural models. Base.

附图说明Description of the drawings

图1是本发明一实施例的建筑3ds Max几何模型到Revit信息模型的自动转换方法的流程图;Figure 1 is a flow chart of an automatic conversion method from an architectural 3ds Max geometric model to a Revit information model according to an embodiment of the present invention;

图2是本发明一实施例的构件参数归类算法流程图;Figure 2 is a flow chart of a component parameter classification algorithm according to an embodiment of the present invention;

图3是本发明一实施例的标高几何信息提取算法流程图;Figure 3 is a flow chart of an elevation geometric information extraction algorithm according to an embodiment of the present invention;

图4是本发明一实施例的墙体几何信息提取算法流程图;Figure 4 is a flow chart of a wall geometric information extraction algorithm according to an embodiment of the present invention;

图5是本发明一实施例的墙上窗几何信息提取算法流程图;Figure 5 is a flow chart of the wall window geometric information extraction algorithm according to an embodiment of the present invention;

图6是本发明一实施例的墙体信息传递算法流程图。Figure 6 is a flow chart of a wall information transmission algorithm according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments.

如图1所示,本发明提供一种建筑3ds Max几何模型到Revit信息模型的自动转换方法,包括:As shown in Figure 1, the present invention provides an automatic conversion method from an architectural 3ds Max geometric model to a Revit information model, including:

步骤S1,基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别;Step S1, identify component types based on the data characteristics of different geometries in the architectural 3ds Max geometric model;

步骤S2,获取各个构件类型的几何参数值,将误差在预设预制范围的同类型构件的几何参数值转换为该类型构件对应的统一几何参数值;Step S2: Obtain the geometric parameter values of each component type, and convert the geometric parameter values of the same type of components whose errors are within the preset prefabricated range into the unified geometric parameter values corresponding to the component type;

步骤S3,基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息;Step S3: Obtain the geometric information of each type of component based on the unified geometric parameter values corresponding to each type of component;

步骤S4,将各个类型构件的几何信息导出到文本文件中,在Revit API中依据几何信息调用对应的创建语句进行建筑构件的自动化重构。Step S4: Export the geometric information of each type of component to a text file, and call the corresponding creation statement based on the geometric information in the Revit API to automatically reconstruct the building components.

在此,MAXScript语言是3ds Max自带的脚本语言,可以实现访问、修改3ds Max软件中的内部数据,并实现与文本文件的交互。本发明以MAXScript语言为工具,文本文件为媒介,来实现3ds Max模型中构件类型识别、构件参数归类和几何信息提取三大功能。Here, MAXScript language is the scripting language that comes with 3ds Max, which can access and modify the internal data in the 3ds Max software, and interact with text files. The present invention uses the MAXScript language as a tool and text files as a medium to realize the three major functions of component type identification, component parameter classification and geometric information extraction in the 3ds Max model.

Revit API是适用于Revit软件的二次开发工具,提供了大量创建和修改族文档的方法,可以实现族类型和Revit文档的交互和管理,对Revit软件中数据的读取、创建、修改。本发明以Revit API为工具,文本文件作为媒介,来实现Revit参数自动化建模功能。Revit API is a secondary development tool suitable for Revit software. It provides a large number of methods for creating and modifying family documents. It 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 automatic modeling function of Revit parameters.

为了解决模型文件之间的有效转化问题,本发明提出了一种建筑3ds Max几何模型到Revit信息模型的自动转换方法,其核心在于传递模型文件间的有效数据,主要包含的组成部分有:构件类型识别、构件几何参数归类、几何信息提取和参数自动化建模。本发明总体技术架构如图1所示。In order to solve the problem of effective conversion between model files, the present invention proposes an automatic conversion method from an architectural 3ds Max geometric model to a Revit information model. The core is to transfer effective data between model files. The main components include: components Type identification, component geometric parameter classification, geometric information extraction and parameter automatic modeling. The overall technical architecture of the present invention is shown in Figure 1.

本发明针对上述提到的建筑三维几何模型不能有效转化为信息管理模型的问题,基于3ds Max和Revit软件平台,利用Maxscript和Revit API的二次开发,通过构件类型识别、构件参数归类、几何信息提取、参数自动化建模的算法,提出一种建筑3ds Max几何模型到Revit信息模型的自动转换方法,以实现三维几何模型向信息管理模型的自动转化,减少了同一建筑在不同功能应用下的重复建模工作,完善了目前建筑行业内两类模型之间的有效转换方法,为建筑三维模型的通用性及可扩展性打下基础。This invention aims at the above-mentioned problem that the three-dimensional geometric model of the building cannot be effectively converted into an information management model. Based on the 3ds Max and Revit software platforms, using the secondary development of Maxscript and Revit API, through component type identification, component parameter classification, geometry Algorithms for information extraction and parameter automated modeling propose an automatic conversion method from architectural 3ds Max geometric models to Revit information models to achieve automatic conversion of 3D geometric models to information management models and reduce the number of errors in the same building under different functional applications. Repeated modeling work has improved the effective conversion method between the two types of models in the current construction industry, laying the foundation for the versatility and scalability of the three-dimensional architectural model.

本发明凭借3ds Max在三维几何建模软件中良好的格式通用性,也就能够支持3ds、skp、fbx、obj等常用几何模型格式,完善目前建筑行业内两类模型之间的有效转换方法,为建筑三维模型的通用性及可扩展性打下基础。Relying on 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., and improves the effective conversion method between the two types of models in the current construction industry. Lay the foundation for the versatility and scalability of architectural 3D models.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,所述构件类型,包括:基于标准基本体创建的主要结构构件、基于标准基本体拼接及修改的常见族库构件和其他特殊物件。In one embodiment of the automatic conversion method from an architectural 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 based on splicing and modification of standard primitives and other special items.

在此,建筑的不同类型构件在3ds Max软件中均为不同类型几何体的叠加,并无其类型信息,为了适应Revit软件中对象分类建模的要求,首先需根据不同几何体的数据特征进行构件类型的识别。建筑构件根据在3ds Max软件中的创建方式不同可以分为基于标准基本体创建的主要结构构件、基于标准基本体拼接及修改的常见族库构件和其他特殊物件,可以通过不同方式实现构件的智能识别。Here, different types of components of the building are superpositions of different types of geometry in the 3ds Max software, and there is no type information. In order to adapt to the requirements of object classification modeling in the Revit software, component types must first be determined based on the data characteristics of different geometries. identification. Depending on how they are created in 3ds Max software, architectural components can be divided into main structural components created based on standard primitives, common family library components based on splicing and modification of standard primitives, and other special objects. The intelligence of components can be achieved in different ways. Identify.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,步骤S1,基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别,包括:In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, step S1 is to perform component type identification based on the data characteristics of different geometries in the architectural 3ds Max geometric model, including:

所述主要结构构件的结构类型包括:梁、柱、墙和板,通过几何体类型和几何尺寸大小的判断确定主要结构构件的构件类型。The structural types of the main structural components include: beams, columns, walls and plates. The component types of the main structural components are determined by judging the geometry type and geometric size.

在此,建筑的主要结构构件的类型包括梁、柱、墙和板等,基本呈现规则几何体形状,在3ds Max软件的建模过程中均使用标准几何体创建,例如圆形柱或圆形梁均采用圆柱体进行创建,方形柱、墙、板或矩形梁均采用长方体进行创建。并且此类结构构件在几何尺寸大小方面特征明显,可通过几何体类型和几何尺寸大小的判断确定构件类型。Here, the main structural components of the building include beams, columns, walls, slabs, etc., which basically present regular geometric shapes. They are all created using standard geometry during the modeling process of 3ds Max software, such as circular columns or circular beams. Create using cylinders, square columns, walls, slabs or rectangular beams using cuboids. Moreover, such structural components have obvious characteristics in terms of geometric size, and the component type can be determined by judging the geometry type and geometric size.

例如,3ds Max软件中的墙体对象具有以下特征:墙体的创建类型属于长方体类,其宽度一般小于300mm,高度大于1000mm,考虑到3ds Max软件中可能出现的长宽值颠倒,将对象长和宽中的较小值定义为墙体的宽度,MAXScript代码如下:For example, the wall object in the 3ds Max software has the following characteristics: the creation type of the wall belongs to the rectangular parallelepiped type, its width is generally less than 300mm, and its height is greater than 1000mm. Considering that the length and width values may be reversed in the 3ds Max software, the length of the object is The smaller value of sum and width is defined as the width of the wall. The MAXScript code is as follows:

wall=for iin objects collect--遍历场景内所有对象wall=for iin objects collect--traverse all objects in the scene

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

--如果对象的数据类型为Box且对象的宽度小于300mm,高度大于1000mm(需要进行米到英寸的单位转换),将对象收集到wall数组中,定义为墙;--If the data type of the object is Box and the width of the object is less than 300mm and the height is greater than 1000mm (unit conversion from meters to inches is required), collect the objects into the wall array and define it as a wall;

then ithen i

else DontCollect--不满足则不收集else DontCollect--don't collect if not satisfied

因此,对于建筑3ds Max模型中的其他具有相同特征的结构构件,都可以运用这个方法进行构件识别,需要更改的只是数组名称、判断语句中的几何体类型和几何尺寸大小。Therefore, this method can be used for component identification for other structural components with the same characteristics in the architectural 3ds Max model. All that needs to be changed is the array name, the geometry type and the geometric size in the judgment statement.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,步骤S1,基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别,包括:In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, step S1 is to perform component type identification based on the data characteristics of different geometries in the architectural 3ds Max geometric model, including:

所述常见族库构件的构件类型包括:门窗、屋顶和桌椅,通过对象的名称识别所述常见族库构件的构件类型。The component types of the common family library components include: doors and windows, roofs, tables and chairs, and the component types of the common family library components are identified by the names of objects.

在此,建筑中还包含常见族库构件(通常在Revit中有相应类型构件的预设族库),例如形式各样的门窗、屋顶、桌椅等。此类部件形体较为复杂,模型属性及数据特征各异,不便通过简单的几何体类型及尺寸判断,可通过对象的名称进行识别。下面MAXScript代码表示遍历所有对象,分别识别场景内名称中含有“门”、“窗”对象并归入相应的数组内,实现常见族库构件的识别: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 forms of doors, windows, roofs, tables and chairs, etc. The shape of such parts is relatively complex, and the model attributes and data characteristics are different. It is inconvenient to judge by simple geometry type and size. It can be identified by the name of the object. The following MAXScript code indicates that it traverses all objects, identifies objects with "door" and "window" in their names in the scene and puts them into the corresponding arrays to realize the identification of common family library components:

门=$*门*as array;Gate=$*Gate*as array;

窗=$*窗*as array。window = $*window*as array.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,步骤S1,基于建筑3ds Max几何模型中的不同几何体的数据特征,进行构件类型识别,包括:In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, step S1 is to perform component type identification based on the data characteristics of different geometries in the architectural 3ds Max geometric model, including:

所述其他特殊物件包括:装饰部件,通过手动选择对其他特殊物件进行构件类型的归类。The other special objects include: decorative components, and other special objects are classified into component types through manual selection.

在此,建筑构件种类丰富,可能会存在构件预设族库类型之外的物件。此类物件一般几何外形较为复杂,数据类型及属性未知,不易通过计算机智能识别,通常需保持与实际对象的一致性,可手动选择进行归类。以“装饰部件”为例,下面MAXScript代码表示分别手动选择装饰部件并归入相应数组内,$代表当前选择的所有对象:Here, there are a wide variety of building components, and there may be objects other than the preset family library types of components. Such objects generally have complex geometric shapes, unknown data types and attributes, and are difficult to identify through computer intelligence. They usually need to be consistent with the actual objects and can be manually selected for classification. Taking "decorative components" as an example, the following MAXScript code indicates that the decorative components are manually selected and placed in the corresponding array. $ represents all currently selected objects:

装饰部件=$as array。Decorative widgets = $as array.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,步骤S2,获取各个构件类型的几何参数值,将误差在预设预制范围的同类型构件的几何参数值转换为该类型构件对应的统一几何参数值,包括:In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, step S2 obtains the geometric parameter values of each component type, and converts the geometric parameter values of the same type of components with errors within the preset prefabricated range into The unified geometric parameter values corresponding to this type of component include:

将误差误差不超过5%的同类型构件的几何参数值,转换为该类型构件对应的统一几何参数值。Convert the geometric parameter values of the same type of components with an error error not exceeding 5% into the unified geometric parameter values corresponding to the type of component.

在此,对于设计几何参数值相同的不同构件,由于可能存在的施工误差、测量误差或建模误差,导致几何尺寸数据的离散,原先具有相同参数值的构件呈现出相差极小但数值不同的尺寸参数。这不仅不符合模型的应用要求,同时也给模型的创建带来了麻烦,因此需对数据进行模数化归类处理,通过查阅相关标准资料,设定将误差不超过5%的几何参数值归为统一模数,对于允许偏差5%的定义也可根据实际模数化操作的结果进行修正。Here, for different components with the same design geometric parameter values, due to possible construction errors, measurement errors or modeling errors, the geometric size data will be discrete. The components that originally had the same parameter values will show very small differences but different numerical values. Size parameters. This not only does not meet the application requirements of the model, but also brings trouble to the creation of the model. Therefore, the data needs to be modularized and classified. By consulting relevant standard information, set geometric parameter values with an error of no more than 5%. Classified as a unified module, the definition of the allowable deviation of 5% can also be revised based on the results of the actual modularization operation.

对于某一几何参数值类型,通过遍历几何参数值数组中的数据,将偏差小于5%的数据归为一类,并对同一类数据取平均值后四舍五入,将得到的整数作为类型设计值替代原有的离散数据,作为建模依据,流程图如图2所示。For a certain geometric parameter value type, by traversing the data in the geometric parameter value array, classify the data with a deviation of less than 5% into one category, average the same type of data and then round, and replace the resulting integer as the type design value. The original discrete data is used as the basis for modeling, and the flow chart is shown in Figure 2.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,步骤S3,基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息,包括:In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, step S3 is to obtain the geometric information of each type of component based on the unified geometric parameter values corresponding to each type of component, including:

基于主要结构构件对应的统一几何参数值,根据基准图元的定义通过分析3dsMax中构件的坐标数据提取对应的几何信息。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 datum primitive.

在此,针对识别的构件类型分别进行几何信息提取,其中补充定义的其他特殊物件由于其无法通过Revit中已有的族库进行参数化构建,因此无需进行几何信息提取。除此之外,Revit软件中的构件定位是基于标高、轴网等基础图元实现的,需补充相关基准图元的信息提取。Here, geometric information is extracted separately for the identified component types. Other special objects that are supplementary defined cannot be constructed parametrically through the existing family library in Revit, so there is no need to extract geometric information. In addition, component positioning in Revit software is based on basic elements such as elevation and axis network, and information extraction of relevant datum elements needs to be supplemented.

根据基准图元的定义通过分析3ds Max中构件的坐标数据提取相关几何信息,以标高为例解析基准图元的信息提取算法,其它基准图元同理。标高在Revit中是有限的水平平面,作为“标高托管”图元(包括Revit中建筑的主要构件)的参照,其中最重要的属性是高程值,用于确定标高的相对标高,可通过遍历主要结构构件梁、柱、板、墙的Z坐标,过滤出其中不重复的数值,形成标高高程值数组,其算法流程图如图3所示,包括:According to the definition of the datum primitive, relevant geometric information is extracted by analyzing the coordinate data of the component in 3ds Max. The information extraction algorithm of the datum primitive is analyzed using elevation as an example. The same applies to other datum primitives. The elevation is a limited horizontal plane in Revit, which serves as a reference for the "elevation hosting" elements (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. It can be traversed through the main The Z coordinates of structural components beams, columns, slabs, and walls are filtered out to filter out non-repeating values to form an array of elevation values. The algorithm flow chart is shown in Figure 3, including:

步骤S311,分别遍历梁、柱、板和墙的Z坐标添加至标高数组;Step S311, traverse the Z coordinates of beams, columns, plates and walls respectively and add them to the elevation array;

步骤S312,筛选出标高数组中不重复的几何参数值并进行排序;Step S312, filter out the geometric parameter values that are not repeated in the elevation array and sort them;

步骤S3313,输出标高数组编号依次输出几何参数值值文本文件。Step S3313, output the elevation array number and output the geometric parameter value text file in sequence.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,步骤S3,基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息,包括:In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, step S3 is to obtain the geometric information of each type of component based on the unified geometric parameter values corresponding to each type of component, including:

基于主要结构构件对应的统一几何参数值,根据RevitAPI中对应构件创建所需的数据通过分析3ds Max中标准基本体对象的坐标数据和尺寸数据提取对应的几何信息。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 the creation of the corresponding components in RevitAPI.

在此,根据RevitAPI中对应构件创建所需的数据通过分析3ds Max中标准基本体对象的坐标数据和尺寸数据提取对应的几何信息,以墙体为例解析标准基本体对象的信息提取算法,其它标准基本体对象同理。通过对RevitAPI中对于墙体类基于模型线创建构件的语句分析,每一个在3ds Max中被识别为墙体的长方体,需提取其长方体底面两短边中点坐标(共6个值)、长方体宽、高数值、长方体位置Z坐标对应的标高编号共9个数据。Here, based on the data required to create corresponding components in RevitAPI, the corresponding geometric information is extracted by analyzing the coordinate data and size data of standard primitive objects in 3ds Max. The wall is used as an example to analyze the information extraction algorithm of standard primitive objects. Others The same goes for standard primitive objects. Through the analysis of the statements in the Revit API for creating components based on model lines for the wall class, for each cuboid that is recognized as a wall in 3ds Max, it is necessary to extract the coordinates of the midpoint of the two short sides of the bottom surface of the cuboid (a total of 6 values), the cuboid There are a total of 9 data including the width and height values and the elevation number corresponding to the Z coordinate of the cuboid position.

对于长方体属性参数的调用只能提取长方体的长宽高和局部坐标系原点所在位置坐标,但仅仅根据这些数据去计算长方体底面两短边的中点坐标还是较为繁琐。如果将长方体转化为由点、线、面构成的可编辑网格,则可以调用顶点的位置坐标,不仅可以计算出短边的中点坐标,还可以通过顶点距离计算出长方体的宽、高数据,长方体位置Z坐标也可以通过顶点位置坐标提取,解决长方体9个数据的提取问题,算法流程图如图4所示,包括:Calling the cuboid attribute parameters can only extract the length, width, and height of the cuboid and the coordinates of the origin of the local coordinate system. However, it is still relatively cumbersome to calculate the midpoint coordinates of the two short sides of the bottom of the cuboid based only 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 the width and height data of the cuboid can also be calculated through the distance between the vertices. , the Z coordinate of the cuboid position can also be extracted through the vertex position coordinates to solve the problem of extracting 9 data of the cuboid. The algorithm flow chart is shown in Figure 4, including:

步骤S321,遍历墙体,将墙高的几何参数值存储至墙高数组;Step S321, traverse the wall and store the geometric parameter value of the wall height into the wall height array;

步骤S322,将所有墙体转化为可编辑网格;Step S322, convert all walls into editable grids;

步骤S323,遍历墙体确定Z坐标对应标高编号;Step S323, traverse the wall to determine the elevation number corresponding to the Z coordinate;

步骤S324,比较距离大小确定短边对应的顶点序号;Step S324, compare the distance to determine the vertex number corresponding to the short side;

步骤S325,将两短边的中点坐标存储至模型线数组;Step S325, store the midpoint coordinates of the two short sides into the model line array;

步骤S326,将墙厚数据存储至墙厚数组;Step S326, store the wall thickness data into the wall thickness array;

步骤S327,遍历墙体输出几何谢谢至文本文件。Step S327: Traverse the wall and output the geometric data to a text file.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,步骤S3,基于各个类型构件对应的统一几何参数值,获取各个类型构件的几何信息,包括:In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, step S3 is to obtain the geometric information of each type of component based on the unified geometric parameter values corresponding to each type of component, including:

基于常见族库构件对应的统一几何参数值,根据RevitAPI中对应构件创建所需的数据通过分析3ds Max中对象的坐标数据和尺寸数据提取对应的几何信息。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 based on the data required to create the corresponding component in RevitAPI.

在此,根据RevitAPI中对应构件创建所需的数据通过分析3ds Max中对象的坐标数据和尺寸数据提取对应的几何信息,以墙上窗为例解析常见族库构件对象的信息提取算法,其它族库构件对象同理。通过对RevitAPI中对于墙上窗这类基于宿主的实例创建语句分析,每一个在3ds Max中被定义为窗的对象,需提取其位置坐标(共3个值)、窗体的长宽高、窗所属宿主墙对应的编号、宿主墙对应的标高编号共8个数据。Here, based on the data required to create the corresponding component in RevitAPI, the corresponding geometric information is extracted by analyzing the coordinate data and size data of the object in 3ds Max. Taking the window on the wall as an example, the information extraction algorithm of common family library component objects is analyzed. Other families The same applies to library component objects. Through analysis of 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 form, There are a total of 8 data including the number corresponding to the host wall to which the window belongs and the elevation number corresponding to the host wall.

涉及到复杂几何体对象的信息提取,可以将其转化为由点、线、面构成的可编辑网格,调用顶点的坐标,解决几何数据的提取问题,算法流程图如图5所示,包括:When it comes to information extraction of complex geometric objects, it can be converted into an editable grid composed of points, lines, and surfaces, and the coordinates of the vertices are called to solve the problem of geometric data extraction. The algorithm flow chart is shown in Figure 5, including:

步骤S331,将所有墙上窗转化为可编辑网格;Step S331, convert all wall windows into editable grids;

步骤S332,获取对象X、Y和Z方向范围作为长、宽和高;Step S332, obtain the X, Y and Z direction range of the object as the length, width and height;

步骤S333,获取宿主墙对应的墙体编号;Step S333, obtain the wall number corresponding to the host wall;

步骤S334,获取宿主墙所在的位置坐标;Step S334, obtain the location coordinates of the host wall;

步骤S335,遍历墙上窗输出几何信息至文本文件。Step S335: Traverse the windows on the wall and output geometric information to a text file.

本发明的建筑3ds Max几何模型到Revit信息模型的自动转换方法一实施例中,所述文本文件中墙体信息的储存方式为:第一行为墙体总数,第二行开始每一行为一个墙体创建所需的9个数据;In one embodiment of the automatic conversion method from the architectural 3ds Max geometric model to the Revit information model of the present invention, the storage method of the wall information in the text file is: the first row is the total number of walls, and each row starting from the second row is one wall. 9 data required for body creation;

步骤S4,将各个类型构件的几何信息导出到文本文件中,在Revit API中依据几何信息调用对应的创建语句进行建筑构件的自动化重构,包括:Step S4: Export the geometric information of each type of component to a text file, and call the corresponding creation statement based on the geometric information in the Revit API to automatically reconstruct the building components, including:

读取文本文件第一行数据内容,将第一行数据内容转化为int型后存储为墙体总数;Read the data content of the first line of the text file, convert the data content of the first line into int type and store it as the total number of walls;

定义一个行为墙体总数列为9的二维数组,用于存储所有墙体的创建数据,其中第一维代表墙体序号,第二维代表指定墙体的相关创建信息序号;Define a two-dimensional array with the total number of behavioral walls listed as 9, used to store the creation data of all walls, where the first dimension represents the wall serial number, and the second dimension represents the related creation information serial 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 position of the two-dimensional array. Finally, the wall model can be constructed by calling the wall creation statement based on the obtained information.

在此,通过第三步的几何信息提取算法可以将3ds Max中绝大多数构件的几何信息导出到文本文件中,只需要在Revit API中依据几何信息调用相应的创建语句即可以实现建筑构件的自动化重构。本节以墙体的创建为例,主要介绍利用C#语言读取文本文件提取相应信息和创建墙体模型的方法,其它构件同理。Here, through the geometric information extraction algorithm in the third step, the geometric information of most components in 3ds Max can be exported to text files. You only need to call the corresponding creation statement based on the geometric information in the Revit API to realize the construction of building components. Automated refactoring. This section takes the creation of a wall as an example and mainly introduces the method of using C# language to read text files, extract corresponding information and create a wall model. The same applies to other components.

文本文件中墙体信息的储存方式为:第一行为墙体总数,第二行开始每一行为一个墙体创建所需的9个数据。利用C#语言可以逐行读取文本文件的数据内容,并用逗号予以分离。因此,首先读取文本文件第一行数据内容,将第一行数据内容转化为int型后存储为墙体总数;然后定义一个行为墙体总数列为9的二维数组,用于存储所有墙体的创建数据,其中第一维代表墙体序号,第二维代表指定墙体的相关创建信息序号;通过逐行读取文本文件,并用逗号分离数据,可以实现所有数据的提取,并存储到二维数组的相应位置中去,最终根据获取信息调用墙体创建语句即可完成墙体模型的构建,其算法流程图如图6所示,包括:The storage method of wall information in the text file is: the first line is the total number of walls, and each line starting from the second line is the 9 data required to create a wall. The C# language can be used to read the data content of a text file line by line and separate it 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 int type and store it as the total number of walls; then define a two-dimensional array with the total number of walls listed as 9 to store all walls. The creation data of the wall, where the first dimension represents the wall serial number, and the second dimension represents the related creation information serial 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 to the corresponding position in the two-dimensional array, and finally call the wall creation statement based on the obtained information to complete the construction of the wall model. The algorithm flow chart is shown in Figure 6, including:

步骤S41,打开存储墙体几何信息的文本文件;Step S41, open the text file that stores the wall geometric information;

步骤S42,读取文本文件将数据存储为二维数组;Step S42, read the text file and store the data as a two-dimensional array;

步骤S43,根据两点坐标创建墙体模型线;Step S43, create a wall model line based on the two point coordinates;

步骤S43,根据墙厚数据过滤墙体类型;Step S43, filter wall types according to wall thickness data;

步骤S45,根据前提对应标高编号获取标高ID;Step S45, obtain the elevation ID based on the elevation number corresponding to the premise;

步骤S46,根据获取信息调用墙体创建语句;Step S46: Call the wall creation statement according to the obtained information;

步骤S47,存储墙体ID值至指定数组。Step S47, store the wall ID value into the specified array.

与现有技术相比,本发明的有益效果如下:Compared with the prior art, the beneficial effects of the present invention are as follows:

(1)本发明提供的建筑3ds Max几何模型到Revit信息模型的自动转换方法,基于Maxscript和Revit API的二次开发,通过构件类型识别、构件参数归类、几何信息提取、参数自动化建模的算法,实现了三维几何模型向信息管理模型的自动转化,减少了同一建筑在不同功能应用下的重复建模工作;(1) The automatic conversion method from 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 component type identification, component parameter classification, geometric information extraction, and automatic parameter modeling. The algorithm realizes the automatic transformation of the three-dimensional geometric model into the information management model, reducing the repetitive modeling work of the same building under different functional applications;

(2)本发明提供了通常基于逆向建模的几何模型向信息模型的自动转换方法,后续模型可支持以构件为单元的信息集成、对象管理及BIM应用扩展,提升了模型在建筑全生命期管理中的实际应用价值;(2) The present invention provides an automatic conversion method from a geometric model to an information model, which is usually based on reverse modeling. Subsequent models can support component-based information integration, object management and BIM application expansion, improving the model's use in the entire life cycle of the building. Practical application value in management;

(3)本发明作为不同格式文件间的数据传输探索,完善了目前建筑行业内两类模型之间的有效转换方法,符合建筑数字化的发展趋势,为建筑三维模型的通用性及可扩展性打下基础。(3) As an exploration of data transmission between files in different formats, this invention improves the effective conversion method between two types of models in the current construction industry, conforms to the development trend of architectural digitalization, and lays a solid foundation for the versatility and scalability of three-dimensional architectural models. Base.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art may further realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. In order to clearly illustrate the possible functions of hardware and software, Interchangeability, in the above description, the composition and steps of each example have been generally described according to functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered to be beyond the scope of the present invention.

显然,本领域的技术人员可以对发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包括这些改动和变型在内。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. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims (10)

1. A method for automatically converting a building 3ds Max geometric model to a Revit information model, comprising:
based on the data characteristics of different geometric bodies in the building 3ds Max geometric model, carrying out component type identification;
obtaining geometric parameter values of each component type, and converting the geometric parameter values of the same type of components with errors in a preset prefabrication range into uniform geometric parameter values corresponding to the type of components;
acquiring geometric information of each type of component based on the unified geometric parameter value corresponding to each type of component;
and exporting the geometric information of each type of component into a text file, and calling a corresponding creation sentence in a Revit API according to the geometric information to automatically reconstruct the building component.
2. The method for automatic conversion of building 3ds Max geometric model to Revit information model according to claim 1, wherein said component types comprise: major structural members created based on standard basis, common family library members spliced and modified based on standard basis, and other special objects.
3. The method for automatic conversion of building 3ds Max geometric model to Revit information model according to claim 2, wherein the component type recognition based on the data features of different geometric bodies in the building 3ds Max geometric model comprises:
the main structural members are of the structural type comprising: beams, columns, walls and panels, the type of component of the primary structural component is determined by the judgment of the type of geometry and the size of the geometry.
4. The method for automatic conversion of building 3ds Max geometric model to Revit information model according to claim 2, wherein the component type recognition based on the data features of different geometric bodies in the building 3ds Max geometric model comprises:
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 automatic conversion of building 3ds Max geometric model to Revit information model according to claim 2, wherein the component type recognition based on the data features of different geometric bodies in the building 3ds Max geometric model comprises:
the other special objects include: the decoration component classifies the component types of other special objects through manual selection.
6. The automatic conversion method from a building 3ds Max geometric model to a Revit information model according to claim 1, wherein obtaining geometric parameter values of each component type, converting geometric parameter values of the same type of component having an error within a preset prefabrication range into uniform geometric parameter values corresponding to the same type of component, comprises:
and converting the geometric parameter values of the components of the same type with the error of not more than 5% into uniform geometric parameter values corresponding to the components of the same type.
7. The method for automatically converting a building 3ds Max geometric model to a Revit information model according to claim 2, wherein obtaining geometric information of each type of component based on the unified geometric parameter values corresponding to each type of component comprises:
based on the unified geometric parameter values corresponding to the main structural members, corresponding geometric information is extracted by analyzing coordinate data of the members in 3ds Max according to definition of the reference primitives.
8. The method for automatically converting a building 3ds Max geometric model to a Revit information model according to claim 2, wherein obtaining geometric information of each type of component based on the unified geometric parameter values corresponding to each type of component comprises:
based on the unified geometric parameter values corresponding to the main structural components, corresponding geometric information is extracted by analyzing coordinate data and size data of standard basic body objects in 3ds Max according to data required for creating corresponding components in the RevitAPI.
9. The method for automatically converting a building 3ds Max geometric model to a Revit information model according to claim 2, wherein obtaining geometric information of each type of component based on the unified geometric parameter values corresponding to each type of component comprises:
based on the unified geometric parameter values corresponding to the common family library components, corresponding geometric information is extracted by analyzing coordinate data and size data of objects in 3ds Max according to data required for creating corresponding components in the RevitAPI.
10. The method for automatically converting a building 3ds Max geometric model to a Revit information model according to claim 1, wherein the wall information in the text file is stored in the following manner: the first row represents the total number of walls, and the second row starts to create 9 pieces of data needed for each wall;
exporting the geometric information of each type of component into a text file, calling a corresponding creation sentence according to the geometric information in a Revit API to automatically reconstruct the building component, wherein the method comprises the following steps:
reading the first line data content of the text file, converting the first line data content into the int type, and storing the int type as the total number of the wall bodies;
defining a two-dimensional array with a behavior wall total number column of 9, and storing the creation data of all the walls, wherein the first dimension represents the serial number of the wall, and the second dimension represents the related creation information serial number of the specified wall;
the text file is read line by line, the comma is used for separating data, extraction of all data can be achieved, the data are stored in corresponding positions of the two-dimensional array, and finally, the wall body creation statement is called according to the acquired information, so that the construction of the wall body model can be completed.
CN202310922684.XA 2023-07-26 2023-07-26 Automatic conversion method of architectural 3ds Max geometric model to Revit information model Active CN117456125B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310922684.XA CN117456125B (en) 2023-07-26 2023-07-26 Automatic conversion method of architectural 3ds Max geometric model to Revit information model
PCT/CN2024/089950 WO2025020603A1 (en) 2023-07-26 2024-04-26 Method for automatic transformation from building 3ds max geometric model to revit information model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310922684.XA CN117456125B (en) 2023-07-26 2023-07-26 Automatic conversion method of architectural 3ds Max geometric model to Revit information model

Publications (2)

Publication Number Publication Date
CN117456125A true CN117456125A (en) 2024-01-26
CN117456125B CN117456125B (en) 2024-12-13

Family

ID=89580527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310922684.XA Active CN117456125B (en) 2023-07-26 2023-07-26 Automatic conversion method of architectural 3ds Max geometric model to Revit information model

Country Status (2)

Country Link
CN (1) CN117456125B (en)
WO (1) WO2025020603A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025020603A1 (en) * 2023-07-26 2025-01-30 上海建工四建集团有限公司 Method for automatic transformation from building 3ds max geometric model to revit information model
CN119670506A (en) * 2025-02-20 2025-03-21 上海建工四建集团有限公司 A finite element model automatic modeling method and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120147575A (en) * 2025-05-15 2025-06-13 大禾众邦(厦门)智能科技股份有限公司 Method for managing three-dimensional drawing of building component

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190026400A1 (en) * 2017-07-18 2019-01-24 Fuscoe Engineering, Inc. Three-dimensional modeling from point cloud data migration
CN109492271A (en) * 2018-10-22 2019-03-19 上海建工四建集团有限公司 A kind of geometrical model light-weight technologg method in the BIM towards operation management
CN111259474A (en) * 2020-01-13 2020-06-09 陕西心像信息科技有限公司 Large-scale BIM model data processing and loading method and equipment
CN113158288A (en) * 2021-02-04 2021-07-23 中国铁路设计集团有限公司 Information model geometric lightweight method based on component reuse and reassembly
CN116305392A (en) * 2022-12-01 2023-06-23 上海建工四建集团有限公司 BIM operation and maintenance electromechanical model light weight method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102509339B (en) * 2011-10-10 2014-04-02 武汉大学 Method for simplifying vertex clustering of three-dimensional models with texture constraint
CN108959694B (en) * 2018-05-17 2022-04-26 青岛理工大学 BIM geometric model construction method for large-volume complex building
CN108898662B (en) * 2018-05-30 2022-05-27 中国人民解放军陆军勤务学院 Point cloud data-based pipeline facility BIM (building information modeling) model automatic reconstruction method
CN112685816B (en) * 2020-12-25 2021-08-17 四川省交通勘察设计研究院有限公司 Model and data-based design result online delivery system and method
US20230080380A1 (en) * 2021-09-03 2023-03-16 Northeastern University Automated generation of finite element meshes from laser scanned data
CN117456125B (en) * 2023-07-26 2024-12-13 上海建工四建集团有限公司 Automatic conversion method of architectural 3ds Max geometric model to Revit information model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190026400A1 (en) * 2017-07-18 2019-01-24 Fuscoe Engineering, Inc. Three-dimensional modeling from point cloud data migration
CN109492271A (en) * 2018-10-22 2019-03-19 上海建工四建集团有限公司 A kind of geometrical model light-weight technologg method in the BIM towards operation management
CN111259474A (en) * 2020-01-13 2020-06-09 陕西心像信息科技有限公司 Large-scale BIM model data processing and loading method and equipment
CN113158288A (en) * 2021-02-04 2021-07-23 中国铁路设计集团有限公司 Information model geometric lightweight method based on component reuse and reassembly
CN116305392A (en) * 2022-12-01 2023-06-23 上海建工四建集团有限公司 BIM operation and maintenance electromechanical model light weight method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘珊: "基于BIM-CAE的RCC重力坝施工期结构安全分析与系统开发", 中国优秀硕士学位论文全文数据库 (工程科技Ⅱ辑), 15 February 2023 (2023-02-15) *
朱惠娟;王永利;陈琳琳;: "面向三维模型轻量化的自私羊群优化算法研究", 计算机工程与应用, no. 03, 15 November 2019 (2019-11-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2025020603A1 (en) * 2023-07-26 2025-01-30 上海建工四建集团有限公司 Method for automatic transformation from building 3ds max geometric model to revit information model
CN119670506A (en) * 2025-02-20 2025-03-21 上海建工四建集团有限公司 A finite element model automatic modeling method and system

Also Published As

Publication number Publication date
WO2025020603A1 (en) 2025-01-30
CN117456125B (en) 2024-12-13

Similar Documents

Publication Publication Date Title
CN117456125A (en) Automatic conversion method from building 3ds Max geometric model to Revit information model
CN113094784B (en) Adjacent complex underground engineering parametric modeling method based on building information model
CN109977162A (en) A kind of urban and rural planning data transfer device, system and computer readable storage medium
CN108287483A (en) A kind of immersion Virtual Maintenance Simulation method and system towards Product maintenance verification
CN101216862A (en) Realization Method of Paperless 3D Assembly Process Documentation
CN115713161A (en) Building information management system based on BIM technology
CN114169055B (en) Method and system for enabling BIM model to be light
CN106600700B (en) Three-dimensional model data processing system
CN114266093A (en) Standardized BIM model lightweight realization method
JP4034583B2 (en) CAD analysis result data processing apparatus, CAD analysis result data processing method, and CAD analysis result data processing program
CN114329745B (en) BIM (building information modeling) automatic coding method based on decision tree analysis
CN110795835A (en) Three-dimensional process model reverse generation method based on automatic synchronous modeling
CN114170377A (en) A BIM-based construction method and system for characteristic component family library of historical buildings
CN111859571A (en) Safety evaluation method and system of stacker crane based on parametric design
Liu et al. ExteriorTag: Automatic semantic annotation of BIM building exterior via voxel index analysis
CN113297764A (en) Finite element parametric model modeling method, system and storage medium
CN112733345A (en) Automatic three-dimensional marking method and system for aviation bolt
CN117975246A (en) ONNX-based target detection model library system construction method
CN111832113A (en) Aluminum alloy template matching method based on BIM technology
CN113378334B (en) Parameterized modeling method and system for underground pipeline and computer readable storage medium
CN112434376B (en) Rapid conversion method for heterogeneous CAD hull model of SPD system
CN1834954A (en) System and method of realizing automatic generation of electronic file
CN115659474A (en) Method for realizing integration of BIM and SAP2000 foundation pit excavation calculation
Bocevska et al. An example of application design using solidworks application programming interface
CN108629138A (en) Equip method for building up, equipment knowledge base and the product data management system of maneuver library

Legal Events

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