欢迎访问《图学学报》 分享到:

图学学报 ›› 2026, Vol. 47 ›› Issue (1): 194-203.DOI: 10.11996/JG.j.2095-302X.2026010194

• 建筑与城市信息模型 • 上一篇    下一篇

基于Revit二次开发的独立基础参数化建模方法研究

邓鹏(), 谭文正, 罗慧明, 李帅, 杨斌   

  1. 中国轻工业长沙工程有限公司湖南 长沙 410114
  • 收稿日期:2025-06-12 接受日期:2025-09-08 出版日期:2026-02-28 发布日期:2026-03-16
  • 通讯作者:邓鹏,E-mail:1522958838@qq.com
  • 基金资助:
    中国海诚数字化研发创新基金(0307RD2024001)

Research of parametric modeling methods for isolated foundation based on Revit secondary development

DENG Peng(), TAN Wenzheng, LUO Huiming, LI Shuai, YANG Bin   

  1. China CEC Engineering Corporation, Changsha Hunan 410114, China
  • Received:2025-06-12 Accepted:2025-09-08 Published:2026-02-28 Online:2026-03-16
  • Supported by:
    The Digital Research and Development Fund of China Haisum Engineering Co., Ltd(0307RD2024001)

摘要:

随着建筑信息模型(BIM)技术在工程设计领域的广泛应用,由Revit平台驱动的三维正向设计在上部结构中已形成了较为成熟的解决方案。然而,独立基础作为结构的重要组成部分,其三维建模与出图仍存在效率低、信息完整性差等问题,且因主流的结构分析软件数据接口封闭,直接提取基础数据库文件的配筋信息并同步至Revit构件属性也极具挑战。为此,利用Revit API与MVVM架构模式,提出了一种基于AutoCAD图层与字段识别的独立基础参数化建模算法。将YJK结构分析软件生成的基础平面布置与配筋标注图导入至Revit平台,通过图层识别方法计算基础中心定位坐标与平面尺寸,再根据基础与配筋标注的相对位置关系,建立两者间的匹配逻辑,进而利用字段识别获取基础对应标注中的编号、高度及配筋信息,并将其自动写入模型的族属性中。此外,通过提取模型属性与几何面参照,还实现了基础尺寸与配筋自动标注等功能。最后,以某冷柜自制厂房为工程案例开展了独立基础参数化建模及出图应用实践,并与常规方法进行了对比。结果表明,该算法能显著提高独立基础三维建模与标注出图效率,且对PKPM软件导出的计算文件具有良好的适配性。

关键词: 独立基础, 参数化建模, Revit, 二次开发, 建筑信息模型

Abstract:

With the widespread application of Building Information Modeling (BIM) technology in the field of engineering design, the Revit platform-driven 3D forward design has developed into a relatively mature solution for superstructure. However, as a critical structural component, isolated foundations still face challenges such as low efficiency and poor information integrity in 3D modeling and drawing generation. Moreover, due to the closed data interfaces of mainstream structural analysis software, it is extremely challenging to directly extract reinforcement information from fundamental database files and synchronize to the properties of Revit elements. To address this limitation, a new parametric modeling algorithm for isolated foundations based on AutoCAD layer and text recognition was proposed, utilizing the Revit Application Programming Interface (API) and the Model-View-ViewModel (MVVM) design pattern. By importing foundation layout and reinforcement annotation drawings generated by structural analysis software (e.g., YJK) into Revit, the algorithm calculated the center coordinates and planar dimensions of foundations using layer-recognition methods. Then, a matching logic was established between foundations and reinforcement annotations according to their relative positions. Subsequently, text recognition was employed to extract the corresponding annotations’ numbering, height, and reinforcement information, which were then automatically written into the family properties of the model. Additionally, the extraction of model attributes and geometric face references enabled automatic annotation of foundation dimensions and reinforcement. Finally, the proposed method was applied to the parametric modeling and drafting of isolated foundations for a self- built cold storage factory and was compared against conventional methods. The results demonstrated that this algorithm significantly improved the efficiency of three-dimensional modeling and annotation drawing for isolated foundations, while exhibiting excellent compatibility with calculation files exported from PKPM software.

Key words: isolated foundation, parametric modeling, Revit, secondary development, building information modeling

中图分类号: