This Plugin creates a rack. The plugin defines five faces and two circles. Circles are duplicated with z axis. The width of the rack can be entered through the text field. In SketchUp all geometry is created on edges and surfaces and each model uses these two building blocks. The basic surface consists of four edges and one surface. In the formation of the surface, at least three edges of the same level are required. The edges must form a loop. So every surface must have at least three edges.The add-on draws the first surface from the point of 0.0.0. Next, the remaining four surfaces will be added to the value entered. Next, the loop defined in the program duplicates two circles in the z - axis direction.
Block of code a specified number of times ...
If you need to execute the same block of code a specified number of times you can use loops. In these examples the loops are executed with For statement. The loop defined in the program duplicates two circles in the z - axis direction by this method.
for i in 0..5
puts "The value is #{i}"
end
First the range is defined which is 0 - 5. When the loop is run
i get values from 0 to 5. Program produce the following result to Ruby panel ...
The value is 0
The value is 1
The value is 2
The value is 3
The value is 4
The value is 5