基于UG/OpenAPI的空调产品结构设计特征库的开发系别:专业班:姓名:学号:指导老师:年月基于UG/OpenAPI的空调产品结构设计特征库的开发TheDevelopmentofStructuralDesignFeatureLibraryofAirConditioningProductBasedonUG/OpenAPII摘要Unigraphics(简称UG)软件是目前应用最为广泛的大型CAD/CAE/CAM集成化软件之一,其内容涵盖设计、分析、加工、管理等各个领域,它除了为用户提供零件建模、装配、有限元分析、运动分析、制图、数控加工编程等通用模块,还提供了各种专用模块,如工业设计、模具设计加工、钣金设计加工、管路设计等。Unigraphics不仅具有强大的实体造型、曲面造型、参数化造型、装配和工程图创建等功能,还提供了功能强大的二次开发工具UG/OpenAPI。用户或第三方可以使用该开发工具,开发出基于UG系统的应用程序,实现与UG系统的无缝集成,从而满足用户的特殊需求。本文基于UG/OpenAPI二次开发软件,结合美的空调塑料件及板金件产品常用结构设计特征库的开发,在VC++9.0的环境下,运用C语言编程进行程序的设计,开发出基于UG系统的应用程序,在UG的环境下进行实体造型与参数化设计,实现与UG系统的无缝集成。本文以螺丝柱的实体造型为例,详细描述了VC环境下的编程、生成代码过程和UG环境写的参数化造型。关键字:UGUG/OpenAPI特征库IIAbstractUnigraphics(abbreviatedUG)Softwareisoneofthethemostwidelyusedlarge-scaleCAD/CAE/CAMintegratedsoftware,Theycoverdesign,analysis,processing,managementandotherfields,Itadditiontoprovidingpartsmodeling,assembly,finiteelementanalysis,motionanalysis,mapping,NCprogrammingandothergeneral-purposemodulesofferavarietyofspecializedmodules,suchasindustrialdesign,molddesign,sheetmetaldesignandprocessing,pipelinedesign.UGnotonlypowerfulsolidmodeling,surfacemodeling,parametricmodeling,assemblyandengineeringplanstocreateotherfunctions,butalsoprovidesapowerfuldevelopmenttoolUG/OpenAPI.Usersorthirdpartiesmayusethedevelopmenttools,developedUG-basedsystemapplications,ToachieveseamlessintegrationwiththeUGsystemtomeettheuser'sspecificneeds.Thispaper,basedonUG/OpenAPIsecondarydevelopmentsoftware,combinationofmideaairconditioningandsheetmetalparts,plasticproductscommonlyusedinstructuraldesigncharacteristicsofdatabasedevelopment,inVC++9.0environment,theuseofClanguageprogrammingforthedesignprocesstodevelopapplicationsbasedontheUGsystem,intheUGenvironmentforsolidmodelingandparametricdesign,toachieveseamlessintegrationwiththeUGsystem.Inthispaper,thesolidmodelingscrewcolumnexample,thedetaileddescriptionoftheVCenvironment,programming,codegenerationprocessandtheUGenvironmentwritteninparametricmodeling.KeyWords:UGUG/OpenAPIFeaturesLibraryIII目录摘要.....................................................................................................................................IAbstract.................................................................................................................................II绪论.....................................................................................................................................11UG/OpenAPI介绍..........................................................................................................21.1UG简介.........................................................................................................................21.2UG/Open的相关模块...................................................................................................21.3在VC环境下开发UG应用程序................................................................................51.3.1使用工程向导ugopen.awx创建应用程序...............................................................61.4应用程序的自动卸载...................................................................................................72美的空调产品结构特征库整理......................................................................................92.1墩口...............................................................................................................................92.2扩缩口、喇叭口.........................................................................................................102.3翻边孔.........................................................................................................................112.4压口.............................................................................................................................122.6塑料件.........................................................................................................................132.7板金件.........................................................................................................................143、空调产品结构特征库的开发......................................................................................163.1菜单创建.....................................................................................................................163.1.1MenuScript菜单技术..............................................................................................163.1.2菜单脚本文件的语法..............................................................................................173.1.3菜单的位置..............................................................................................................18参考文献............................................................................................................................371绪论Unigraphics(简称UG)是当今世界上最先进和紧密集成的面向制造业的CAD/CAE/CAM高级软件。UG软件被许多世界领先的制造商用来从事概念设计、工业设计、详细的机械设计及工程仿真和数字化制造等各领域。UG是EDS公司出品的一个产品工程解决方案,它为用户的产品设计及加工过程提供了数字化造型和验证手段。在产品的三维造型结构方面,UG只是一个通用软件。尽管它有众多模块(例如板金、管道等),但还是满足不了不同企业的个性化需求。为了提高产品设计效率和质量,需要对UG进行定制化开发。UG/Open二次开发模块为UG软件的二次开发工具集,便于用户进行二次开发工作,利用该模块可对UG系统进行用户化剪裁和开发,满足用户的开发需求。UG/Open包括以下几个部分:UG/OpenMenuscript开发工具,对UG软件操作界面进行用户化开发