AnyCAD Editor Sample 1

Posted Posted by anycad in Help, News     Comments 1 comment
Dec
9

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

anycad.editor.sample

PS:

This sample is based on AnyCAD Editor 2011

1 Comment to “AnyCAD Editor Sample 1”

Post comment

ACIS OpenCASCADE SketchUp Ogre3d VTK AutoCAD SKP IGES STEP SAT DWG DWF DXF STL free viewer editor freeware 3d model