Newbie here. I want to create a table top with an arc cut. I already successful create the top with the arc line. However i cant figureout how to push/pull the arc face to create the cutout
add_arc returns an array of edges, not a singly edge or arc object. To get a face bound by the arc you need to get an edge, e.g. the first one in the array, and then use the faces method on that.
Btw, if you use parenthesis around the method arguments the code becomes much more readable.
One addition, since you say you started with ruby: Learn to read error messages and solve them step by step.
This error wants to say that cut is an object that does not have a method faces. So the previous method returned something different than you thought.
Find out what object you have: cut.class
gives Array,
and cut.inspect
gives [#<Sketchup::Edge:0x000000145d3b30>, #<Sketchup::Edge:0x000000145d3b08>, ...]