摘要
通过VBA语言对CAD进行二次开发,将二维的CAD典型横剖面图纸信息导入MARS中实现快速建模。此程序可以从CAD图形中自动读取外板、甲板和纵骨的坐标信息,将其输出至xml文件中,而后只需稍作修改便可完成MARS建模工作。其中外板的处理是难点,需要在表示外板的样条曲线(或圆弧)中插入细密的节点,将其转化为直线多段线,从而准确模拟原曲线的形状,然后在满足精度的条件下过滤多余节点,只提取有效节点的坐标信息。该程序可辅助计算剖面模数,有效提高工作效率。
The secondary development of CAD is carried out by using VBA language,aiming at fast modeling by importing the 2D CAD typical cross-section drawings into the multivariate adaptive regression splines(MARS).This program is capable of reading the coordinates of the shell plating,deck and longitudinal from the CAD drawing which are output into xml file,subsequently resulting in MARS modeling with a few modifications.Among them,the processing of the shell plating is difficult.The spline curves that represent the shell plating are transformed into polylines by inserting fine nodes in order to accurately simulate the shape of the original curve.Then the extra nodes are filtered with sufficient accuracy,and only the coordinates of effective nodes are extracted.The program can assist in calculating section modulus and can effectively improve work efficiency.
作者
朱青淳
曾文源
ZHU Qing-chun;ZENG Wen-yuan(Marine Design & Research Institute of China,Shanghai 200011,China)
出处
《船舶》
2019年第2期13-20,共8页
Ship & Boat
关键词
剖面模数计算
CAD二次开发
样条曲线
section modulus calculation
secondary development of CAD
multivariate adaptive regression splines(MARS)