aiwz

脚本式参数化建模

测试环境 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. 程序下载
本程序在各大下载站点均有下载

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2022-02-08
  • 2022-01-29
  • 2021-12-04
猜你喜欢
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
  • 2022-01-01
相关资源
相似解决方案