各高手鄙人受教了,之前的问题已经得到解决,感谢大家的热心帮助,现在我又有难题了是关于基于VB的SW的二次开发,还是一条空间曲线,怎样实现参数化,如下
Set equationDriveCurve = Part.SketchManager.CreateEquationSpline2("25*cos(t)", "25*sin(t)", "3*cos(t)-24.5", "0", "pi", False, 0, 0, 0, True, True)
如将上述改为变量形式却无法执行
Set equationDriveCurve = Part.SketchManager.CreateEquationSpline2("RR*cos(t)", "RR*sin(t)", "A*cos(t)-24.5", "0", "pi", False, 0, 0, 0, True, True)
A、RR在VB中已经定义为变量,并有相应的计算值 |