基于XML的CAD装配模型数据交换
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着经济全球化进程的加速,许多复杂产品的设计需要由分布在不同地点的产品设计人员协同完成,各企业都在积极使用CAD软件来缩短产品的开发周期。然而往往由于不同企业甚至同一企业内部会采用不同的设计软件,数据交换和共享日益重要,但是现有的数据交换方法存在一定的局限性,数据交换是在较低的层次上进行的,丢失了高层语义设计信息。针对这些问题,本文对于异构CAD系统之间的装配体数据交换提出了一种基于XML的数据交换方法,该方法在一定程度上实现了特征形式的数据交换,有利于设计数据的重复利用。
     本文首先分析了课题背景并提出本课题,分别介绍了CAD技术和数据交换的研究概况,阐述了课题的主要任务。接着针对与课题有关的理论作了简要的介绍,并提出了相关的方案设计。接着根据SolidWorks和JhSolid装配体建模的特点设计了中间交换模型的XML描述,此描述是装配体数据交换的中介。然后介绍了JhSolid的内核和SolidWorks的二次开发,根据JhSolid的源码、SolidWorks的API接口和MSXML的DOM接口给出了装配体数据交换的具体实现流程,并对流程中的重要问题做了说明。
     最后,本文在Windows平台上以Visual C++6.0为开发工具,利用XML技术和基于COM的CAD二次开发技术,在JhSolid 2005上添加了代码,并在SolidWorks 2006上制作了数据转换插件。从进行的双向装配体数据交换的运行结果看,重构模型保留了零件特征的构造历史,从JhSolid到SolidWorks的数据交换保留了装配约束的构造历史,并且转换后的模型是可编辑的,从而验证了方法的正确性和实用性。
Along with the accelerated process of economic globalization, the design of many complex products needs for the product design personnel to complete, and all enterprises are actively using the CAD software to shorten the product development cycle. However, often because different companies and even within the same company may use different design software, data exchange and sharing is increasingly important, but the existing data exchange methods have some limitations, the data exchange is carried out at a lower level and high-level semantic design information is lost. To solve these problems, this paper proposes a XML-based data exchange method for the assembly data exchange among heterogeneous CAD systems, the method achieves data exchange in the form of feature to some extent and is conductive to the reuse of design data.
     This paper first analyzes the topic background and puts forward the subject, introduces research overview of the CAD technology and the data exchange respectively, and sets out main tasks of the subject. Then the thesis makes a concise introduction to the theory about the topic and brings forward the relevant program design. And then the dissertation designs XML descriptions of the intermediate exchange model according to the assembly modeling traits of SolidWorks and JhSolid, and the descriptions are intermediaries for the assembly data exchange. After that the paper introduces the JhSolid core and the secondary development of SolidWorks, gives the concrete realization processes of the assembly data exchange based on JhSolid source, the API interface of SolidWorks and the DOM interface of MSXML, and gives introductions to the important issues in processes.
     Finally, the thesis adds codes in JhSolid 2005 and makes data conversion plug-ins in SolidWorks 2006 on the Windows platform with Visual C++ 6.0 as development tools, using XML technology and the COM-based secondary development technology of CAD. From the two-way assembly data exchange operation outcome, reconstruction models retain the construction history of part features, the data exchange from JhSolid to SolidWorks retains the construction history of assembly constraints and the converted models are editable, and thus the method is verified correct and practical.
引文
[1]欧长劲.机械CAD/CAM[M].西安:西安电子科大学出版社,2007.
    [2]张晓斌,叶含笑,彭维,等.基于特征的CAD数据交换方法研究[J].计算机应用研究,2006(1):22-24.
    [3]齐建军,刘爱军,雷毅,等.基于XML模式的制造信息集成规范的研究[J].计算机集成制造系统,2005,11(4):565-571.
    [4]马金山.特征造型方式及其在Pro/E中的应用[J].机械管理开发,2007(1):68-69.
    [5]叶修梓,彭维,唐荣锡.国际CAD产业的发展历史回顾与几点经验教训[J].计算机辅助设计与图形学学报,2003,15(10):1185-1193.
    [6]王刚.CAD的演变发展与核心建模技术[J].咸宁师专学报,2001,21(3):45-47.
    [7]王慧奇.特征造型中拓扑元素命名及辨识方法研究[D]:(硕士学位论文).大连:大连理工大学,2008.
    [8]童秉枢,吴志军.李学志,等.机械CAD技术基础(第3版)[M].北京:清华大学出版社,2008.
    [9]蔡汉明,宋金霞,肖举.CAD数据交换接口技术[J].CAD/CAM与制造信息化,2007(11):50-51.
    [10]程晓民.机械CAD[M].北京:机械工业出版社,2004.
    [11]支晓斌,周海燕.STEP标准在机械行业CAD集成系统中的应用研究[J].甘肃科技,2006,22(9):50-52.
    [12]Homarm C M.,Juan E R.An editable high-level representation for geometric design and analysis[J].Geometric Modeling for Product Realization,1993,10(2):129-164.
    [13]Choi G H.,Mun D.,Han S.Exchange of CAD part models based on the macro-parametric approach[J].International Journal of CAD/CAM,2002,2(2):23-31.
    [14]Shih C H,Anderson W D.A design/constraint model to capture design intent[C].Proc.1997 ACM solid modeling symposium,New York,1997:255-264.
    [15]ISO 10303-108.Industrial automation systems and integration--Product data representation and exchange:Integrated application resource:Parameterization and constraints for explicit geometric product models.Geneva(Switzerland):International Organization for Standardization,2005.
    [16]唐荣锡,席平.协同设计特征造型软件发展概况[J].计算机辅助设计与图形学学报,2003,15(1):15-20.
    [17]邵晓东,陈锋.基于特征的异构CAD模型转换技术研究[J].中国机械工程,2007,18(1):60-64.
    [18]李伟平,谷正气,张洪涛.支持产品协同设计的隐式特征表达[J].中国机械工程,2006,17(21):2233-2237.
    [19]王钰,杨国为.一种含设计意图的3D模型数据实时交换格式[J].计算机辅助设计与图形学学报,2007,19(11):1429-1435.
    [20]张帆,张友良.基于XML的可重构装配模型[J].计算机集成制造系统,2003,9(8):626-630.
    [21]张鑫.基于RDF/XML的装配语义建模研究[J].计算机时代,2007(6):51-53.
    [22]N.Shyamsundar,R.Gadh.Collaborative virtual prototyping of product assemblies over the Internet[J].Computer-Aided Design,2002,34(10):755-769.
    [23]田蕴.基于装配模型的产品变型设计与应用[D]:(硕士学位论文).济南:山东大学,2005.
    [24]周新建,丁阳喜,张申生,等.面向设计的集成产品装配模型[J].机械科学与技术,2000,19(6):1025-1028.
    [25]张涅萍,杨军.装配体的参数化设计研究[J].工程图学学报,2008(1):25-331.
    [26]Michael J.Pratt,Bill D.Anderson,Tony Ranger.Towards the standardized exchange of parameterized feature-based CAD models[J].Computer-Aided Design,2005,37:1251-1265.
    [27]魏晓鸣,杨春立.机械产品模型的研究与进展[J].组合机床与自动化加工技术,2003(5):1-4.
    [28]Junhwan Kim,Michael J.Pratt,Raj G.Iyer,et al.Standardized data exchange of CAD models with design intent[J].Computer-Aided Design,2008,40:760-777.
    [29]李耀祥,石广田,丁俊,等.基于特征映射的数据交换方法研究[J].组合机床与自动化加工技术,2008(6):42-44.
    [30]Bettig B,Shah JJ.Derivation of a standard set of geometric constraints for parametric modeling and data exchange[J].Computer-Aided Design,2001,33:17-33.
    [31]顾兵.XML实用技术教程[M].北京:清华大学出版社,2007.
    [32]夏松竹.基于XML的数据格式转换方法研究[J].哈尔滨工程大学学报,2006(3):20-25.
    [33]杨永国.Visual C++6.0实用教程(第二版)[M].北京:清华大学出版社,2007.
    [34]王站立.利用MSXML解析XML文档[J].科技信息,2008(15):61-62.
    [35]刘云华,陈立平,钟毅芳.利用设计历史实现异构CAD系统特征信息交换[J].中国机械工程,2003,14(21):1845-1848.
    [36]叶炜威,余才佳.SolidWorks 2006实体建模与二次开发教程[M].北京:国防工业出版社,2006.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700