基于ObjectARX的AutoCAD二次开发及优化下料应用
陈勇
(成都电力金具总厂,四川 成都 610100)
摘要:板材下料是有效开展生产的一项必要活动,AutoCAD是进行下料排样的计算机绘图和设计的常用软件,同时AutoCAD为用户提供了非常开放的二次开发环境。为此,对作为AutoCAD 2007二次开发工具的ObjectARX 2007进行了探讨和研究,分析了基于ObjectARX的AutoCAD二次开发的程序开发流程,详细阐述了进行板料优化排样程序开发的关键技术以及进行AutoCAD二次开发的命令订制方法,然后实施了以ObjectARX 2007为基础、以Visual Studio 2005为开发平台、以遗传算法为主要优化算法的下料程序开发,在AutoCAD中开发出自动排样的优化下料应用程序。最后,通过排样实例验证了本方法的实用性。
关键词:ObjectARX 2007;AutoCAD;优化下料;二次开发
中图分类号:TP391.72           文献标识码:B        文章编号:1006-0316 (2012) 02-0030-03
The development of AutoCAD optimal cutting program based on ObjectARX
and genetic algorithm
CHEN Yong
(Chengdu Electric Power Fitting Group,Chengdu 610100,China)
Abstract:Sheet metal cutting is a necessary activity for effective production, AutoCAD is a general computer design and drawing software for placement, and AutoCAD is also easy to be carried out secondary development. in this paper, the research and discussion on ObjectARX which is a tool for developing AutoCAD 2007 have been developed, analysis the process of secondary development based on ObjectARX, describe the key technology for procedure of optimal layout in detail and the methods of custom orders for the secondary development , then the exploitation of cutting program which is taking ObjectARX as foundation, taking Visual Studio 2005 as developing environment , taking genetic algorithm as optimal algorithm has been implemented, and after all the optimal cutting program used for automatic layout has been carried out in AutoCAD. The method has been proved to be be useful through layout example finally.
Keywords:ObjectARX 2007;AutoCAD;optimal cutting;secondary development

———————————————
收稿日期:2011-05-24
作者简介:陈勇(1984-),男,重庆人,工学硕士,助理工程师,主要从事模具设计与加工工艺设计工作。

 

设为首页  |  加入收藏    |   免责条款
《机械》杂志版权所有     Copyright©2008-2012 Jixiezazhi.com All Rights Reserved 

  电话:028-85925070    传真:028-85925073    E-mail:jixie@vip.163.com

地址:四川省成都锦江工业开发区墨香路48号   邮编:610063

蜀ICP备08103512号

Powered by PageAdmin CMS