现在的位置: 首页 > 综合 > 正文

脚本式参数化建模

2013年08月20日 ⁄ 综合 ⁄ 共 454字 ⁄ 字号 评论关闭

测试环境 AnyCAD Editor 2.0.1

1. 首先建立参数

打开参数管理窗口,建立double类型的参数, Id分别为:

Height

Radius

Angle

2. 编写脚本

aBrepTool=BrepTools();
aHeightParam = theParameterSet:FindParameter(“Height”)
aAngleParam = theParameterSet:FindParameter(“Angle”)
aRadiusParam = theParameterSet:FindParameter(“Radius”)
aShape=aBrepTool:MakeCylinder(Vector3(0,0,0), Vector3(0,0,1), aRadiusParam:AsDouble(), aHeightParam:AsDouble(), aAngleParam:AsDouble())
theShape = aBrepTool:Fillet(aShape, 5)
3. 生成模型
4. 程序下载
本程序在各大下载站点均有下载

【上篇】
【下篇】

抱歉!评论已关闭.