摘要
在AutoCAD二次开发中,优化多段线由于可以同时包含直线段与圆弧段,适于表达连续的线,所以在二维曲线绘制方面具有广泛的应用。但因其通过指定多段线顶点的二维OCS坐标数组来生成优化多段线的设计方法的计算量异常庞大,且不易调试,严重影响了二次开发的推广和使用。基于ActiveX技术和面向对象的思想,对将圆弧段封装于顶点之中的动态圆弧顶点数组类clsVerts的设计进行了研究,提高了复杂二维曲线设计与绘图的质量和效率。最后以齿轮坯模锻件图为例对其进行了验证。
The optimal polyline is suitable for expressing a continuous line due to its covering of line segments and arcs simultaneously in the secondary development of AutoCAD,therefore it is applied widely in two-dimensional curves plotting.However,the calculated amount is abnormal huge for designing the optimal polyline generated from two-dimensional OCS coordinates array through vertex of specified polyline and it is difficulty to debug which may impact the promotion and the use of secondary development.Based on the ActiveX technology and object-oriented idea,a dynamic vertex array named as clsVerts to be packaged into the vertex of arc is studied it,which may increase significantly the quality and efficiency of designing and plotting of complex two-dimensional curves.Finally,a drawing of gear blank forging is taken as an example to verify the study.
出处
《机械设计与制造》
北大核心
2011年第6期108-110,共3页
Machinery Design & Manufacture