Here is an example of the method descriptions lacking information
puts "Point 0: " + pent.vertices[0].position.to_s
I lookup vertices and it says nothing about position and lookup position and it says nothing about to_s
Are there so many methods that can act on any particular method that they can’t be listed?
Here is the example for the vertices method:
depth = 100
width = 100
model = Sketchup.active_model
entities = model.active_entities
pts =
pts[0] = [0, 0, 0]
pts[1] = [width, 0, 0]
pts[2] = [width, depth, 0]
pts[3] = [0, depth, 0]
Add the face to the entities in the model
face = entities.add_face(pts)
vertices = face.vertices
saying: vertices = face.vertices is not all that helpful
face.vertices actually returns
[Sketchup::Vertex:0x0000000a0ee020, Sketchup::Vertex:0x0000000a0edff8, Sketchup::Vertex:0x0000000a0edfd0, Sketchup::Vertex:0x0000000a0edfa8]
which would at least demonstrate what it is actually doing without having to copy and paste it into the console
.GetString -and that is documented where?