脚本式参数化建模

    技术2022-05-20  35

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


    最新回复(0)