AutoCAD二次开发中自动判别功能实现
向明,罗贤海
(景德镇陶瓷学院 机电学院,江西 景德镇 333403)
摘要:利用Visual Basic作为开发工具,开发出对CAD平面图形具有自动判别和自动评分功能的软件,该软件通过分析DXF文件,读取DXF文件中的图元数据,包括坐标、线型、宽度及颜色要素。并通过分析初学者常在绘图过程中出现的错误类型,对所判别图线进行连接、分解等前处理,然后与正确的图形元素的图元数据进行一一对比,并建立评分模型直接评价图形得分,从而实现自动判别功能和自动评分功能。软件经过实验运行,查错速度快而准确达到设计要求。
关键词:AutoCAD二次开发;DXF文件;自动判别
中图分类号:TP391          文献标识码:A          文章编号:10060316 (2012) 04004705
The achievement of automatic discriminant in 2nd development of AutoCAD
XIANG Ming,LUO Xian-hai
(Jingdezhen Ceramic Institute Mechanical & Electronic School,Jingdezhen 333403,China)
Abstract:By The use of Visual Basic as a development tool, developed on the CAD graphic with automatic identification and automatic grading function software, through the analysis of DXF file, read the primitive data in the DXF file.including the coordinates、linear、width and color elements.Through the analysis error types of beginners appeared in the process of drawing, one by one contrast with the correct graphic elements of the primitive data after the process o fconnection, decomposition. and achieved automatic discriminant function and automatic grading function.The software is proved that meet the design requirements accuratly.
Key words2nd Development of AutoCAD;DXF file;judges automatically

———————————————
收稿日期:2011-09-15
作者简介:向明(1977),男,江西都昌人,硕士,讲师,主要研究方向为CAD/CAM。

 

设为首页  |  加入收藏    |   免责条款
《机械》杂志版权所有     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