APP下载

基于SolidWorks的自动焊缝标注的二次开发

2020-05-21张泽南仲梁维

软件工程 2020年5期
关键词:二次开发

张泽南 仲梁维

摘  要:在进行大型焊接零部件设计时,在现有的三维设计软件中设计人员通常采用多实体零件的设计方式进行设计,但是在工程图中焊缝的标注往往是十分费时和费力的,同时为了统计模型中的焊缝信息形成相应的焊缝清单,目前任是人工操作,大大增加了工作量和焊接件的设计周期。文章主要基于SolidWorks三维设计软件,采用C#编程语言,利用SolidWorks对外开放的API函数接口,结合实际的焊缝识别准则,实现了自动提取多实体三维设计模型中的焊缝信息,采用SQLServer数据库对焊缝信息进行存储与读取,并在工程图中进行自动焊缝标注,同时导出对应的焊缝清单。大大减少了人工进行焊缝识别和标注的过程,提高了焊接件的工程图的出图效率,对于减少焊接件的设计周期有着现实的意义。

关键词:焊缝识别;自动标注;多实体零件;二次开发;SolidWorks

中图分类号:TP319     文献标识码:A

Abstract: When designing large welded parts, the existing 3-d design software designers usually design the parts as separate entities, but the drawing of the weld marks tend to be very time-consuming and laborious, and at the same time in order to form the corresponding weld mark list, the task is now a manual operation, which greatly increased the workload and product design cycle. Based on SolidWorks 3-d design software, the paper uses C# programming language, SolidWorks open API interface, and the actual welding seam recognition criteria to achieve the automatic extraction of multi-entity weld information in three-dimension design model, SQLServer database is used to store and save the weld information, carries out automatic weld marking of engineering drawing, and export the corresponding weld listing at the same time. It greatly simplifies the process of manual identification and marking of welding seams, and improves the efficiency of engineering drawing of welding parts, with practical significance for reducing the design cycle of welding parts.

Keywords: weld identification; automatic marking; multiple solid parts; secondary development; SolidWorks

1   引言(Introduction)

焊接与连接是国家自然科学基金委员会机械工程学科的重要领域,是零部件成形制造的重要工艺方法,是实现大到巨型结构小到微纳器件轻量化和功能化的主要途径之一,对实现装备制造绿色环保和节能减排具有重要意义[1]。焊接技术被誉为工业的裁缝,在工业化发展的进程中,焊接在船舶、汽车、航空航天、军事等领域发挥着不可替代的作用。21世纪的制造业正在逐步向“数字化”“智能化”方向发展,焊接也正顺应着这种趋势,向自动化焊接的方向快步前进[2,3]。……

登录APP查看全文

猜你喜欢

二次开发
浅谈基于Revit平台的二次开发
西门子Operate高级编程的旋转坐标系二次开发
浅谈Mastercam后处理器的二次开发
基于C#的AutoCAD建筑构件库二次开发
西门子Easy Screen对倒棱机床界面二次开发
基于全站仪二次开发的覆冰厚度测量与实现
Micaps3.2 版本二次开发入门浅析
基于VB的ANSYS二次开发在变压器抗短路性能分析中的应用
基于CATIA的橡皮囊成形毛料展开的二次开发
ANSYS Workbench二次开发在汽车稳定杆CAE分析中的应用