AnyCAD Editor Sample 3
Let’s create a simple Table in this sample.
Paste the following code to the Edit area:
aBrepTool=BrepTools();
aDir = Vector3(0, 0, 1)
aRadius = 5
aHeight = 120
aShape1=aBrepTool:MakeCylinder(Vector3(-100, -100, 0), aDir, aRadius, aHeight, 0)
aShape2=aBrepTool:MakeCylinder(Vector3(100, -100, 0), aDir, aRadius, aHeight, 0)
aShape3=aBrepTool:MakeCylinder(Vector3(-100, 100, 0), aDir, aRadius, aHeight, 0)
aShape4=aBrepTool:MakeCylinder(Vector3(100, 100, 0), aDir, aRadius, aHeight, 0)
aShape5 = aBrepTool:BooleanAdd(aShape1, aShape2)
aShape6 = aBrepTool:BooleanAdd(aShape5, aShape3)
aShape7 = aBrepTool:BooleanAdd(aShape6, aShape4)
aBox = aBrepTool:MakeCylinder(Vector3(0, 0, aHeight), aDir, 160, 10, 0)
theShape = aBrepTool:BooleanAdd(aShape7, aBox)

Posted by anycad in
