摘要: |
拱坝的曲线曲面众多,结构复杂,建模过程繁琐且耗时耗力。为便于快速构建拱坝模型,提高建模效率,减少建模过程中的重复工作,本文提出了一种基于CATIA二次开发的拱坝三维建模方法,以实现高效快速构建拱坝的目的。该方法依托于3DEXPERIENCE平台,运用面向对象的Python语言,利用Python代码简洁易懂的特点,通过自动化接口连接CATIA模块,对CATIA模块进行二次开发。编写的二次开发程序可读取给定的EXCEL文件中的拱坝模型参数,自动生成草图,继而构建实体,实现批量构建三维形状的功能。这种快速建模方式减少了手动输入参数的重复工作带来的麻烦,提高了工作效率,因此具有很好的推广价值。此外,3DE平台还具有多阶段建模、叠加模型、关联模型的技术特点,为实现三维环境下的模型并行协同设计提供了基础。 |
关键词: 拱坝 3DEXPERIENCE CATIA二次开发 Python语言 |
DOI: |
分类号:TV698 |
基金项目:国家重点研发计划(2018YFC1508603、2016YFC0401601),国家自然科学基金资助项目(51579086、51739003);江苏高校优势学科建设工程资助项目(水利工程)(YS11001) |
|
Rapid modeling of arch dam structure under CATIA secondary development based on 3DEXPERIENCE platform |
Lou Tao, Bao Tengfei
|
College of Water-conservancy and Hydropower,Hohai University
|
Abstract: |
Arch dams is consisted of various curves and surfaces and the structure is complex. It is tedious and time-consuming to model them. In order to facilitate rapid construction of arch dam model, improve the modeling efficiency and reduce duplication of effort in the modeling process, a new method is proposed for constructing arch dam efficiently and quickly, which is based on CATIA secondary development of arch dam. Based on 3DEXPERIENCE platform, this method applies the object-oriented Python language to connect the CATIA module through the automated interface, and to conduct secondary development for the CATIA module,which takes advantage of the simplicity of Python code.The secondary development program can access the given EXCEL file to get the parameters of the arch dam, automatically create sketches, and then construct solid models, to realize the function of building 3D shape in batch. It can reduce the trouble caused by the repetitive work of manual inputting parameters. Meanwhile the work efficiency can also be improved. For this reason, there is great value of promotion for all. In addition, the 3DE platform also has the technical characteristics of multi-stage modeling, superposition model and correlation model, which provides the basis for the realization of parallel collaborative design of models in the three-dimensional environment. |
Key words: Arch dam 3DEXPERIENCE CATIA secondary development The Python language. |