基于VB的同拓扑结构机械三维自动建模技术研究
2020-02-14左明伟曼茂立田辉
左明伟 曼茂立 田辉



摘 要:结合SolidWorks API开发平台及Visual Basic程序语言,文章针对系列化机械产品提出一种参数化自动三维建模方法。并通过典型辊子输送线系列化产品为建模对象,验证此方法的有效性。参数化建模过程总体上经历录制基本鼠标操作代码,根据需要参数化处理相关代码的指令调试过程;对于装配体内各零件通过遍历面的方式设置参考基准面,通过引用基准面的绝对ID来实现装配关系的设定。文章所提出的参数化自动建模方法有助于显著提高机械设计效率、便于批量评价新结构性能,为进行大样本产品优化设计提供可行途径。
关键词:SolidWorks;Visual Basic;参数化;自动建模
中图分类号:TP311.52 文献标志码:A 文章编号:2095-2945(2020)01-0030-03
Abstract: Combined with SolidWorks API development platform and Visual Basic programming language, this paper presents a parameterized automatic 3D modeling method for serialized mechanical products. And through the typical roller conveyor line series products as the modeling object to verify the effectiveness of this method. The parametric modeling process generally goes through the process of recording the basic mouse operation code and parameterizing the relevant code according to the need; setting the reference datum for each part in the assembly body by traversing the surface and setting the assembly relationship by referencing the absolute ID of the datum. The parametric automatic modeling method proposed in this paper can significantly improve the efficiency of mechanical design, facilitate batch evaluation of the performance of new structures, and provide a feasible way for the optimal design of large samples of products.
Keywords: SolidWorks; Visual Basic; parameterization; automatic modeling
引言
隨着人们生产、生活节奏的不断加快,自动化生产、设计领域不但拓展,如何将技术人员从繁重的重复性技术工作中解放出来,如何自动完成类似结构产品设计甚至是结构优化都成为相关学者和技术人员关注的焦点。传统情况下,技术人员需要为拓扑结构相同的同系列产品,分别进行结构设计、性能分析;优化过程需要分别进行个体构型、性能评估,从而造成工作效率低,消耗人力资源多,设计任务达成度不高[1]。本文在SolidWorks商用软件API接口功能基础上,通过Visual Basic程序设计实现典型机械零件装配体的自动三维建模,为机械产品自动实现系列化、实现多样本性能评价及结构优化提供了有效途径。
1 总体思路
针对具有相同拓扑结构的系列化机械产品三维自动建模涉及各组成零件的自动建模过程和零件的自动装配过程。……
