摘要
利用AutoCAD二次开发接口VBA和MATLAB提供给其它软件调用的接口,实现对命题"求与空间四条异面直线相切的球中最小的球"的可视化求解。采用的方法是:先利用VBA在AutoCAD中创建一个用户界面,再通过人机对话的方式记录下用户给定的初始条件,然后调用MATLAB进行计算,将计算结果返回给VBA,由VBA程序绘图,在AutoCAD的窗口中将结果显示出来。
Using computer to solve the problem of "get the smallest ball which is tangent to four lines in general position" is discussed, which is realized based on the programming through the interface provided by AutoCAD and MATLAB. A user interface in AutoCAD is established using VBA at first, and then the initial conditions are filled in this interface. The calculation is carried out in MATLAB and the results are retuned to VBA. Then the graphics is generated from VBA program and displayed in the window of AutoCAD.
出处
《工程图学学报》
CSCD
北大核心
2008年第6期118-122,共5页
Journal of Engineering Graphics
关键词
工程图学
画法几何
异面直线
最小球
engineering graphics
descriptive geometry
general position lines
smallest ball