AnyCAD Editor Sample 1
This sample demonstrates how to build a cylinder geometry and apply the fillet feature on it.
1. Add Parameters
Open the Parameter Manager dialog, add three double parameters: Height, Radius, Angle.
2. Write the script:
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. Run
PS:
This sample is based on AnyCAD Editor 2011

Posted by anycad in

AnyCAD Editor 2011 « AnyCAD.Net says:
[...] Add parameters, use the parameter to create the geometry. See sample 1. [...]