Hey TIG,
thanks for the speedy respons, i don’t get what you mean with constants ORIGIN anda X-AXIS, and i cant find it annywhere, and also is [0,0,0] wrong? because when the script reaches this line it simply stops excecuting, leaving no error message
The rotation expects a point and a vector, however it will take the equivalent three element array, as you have shown.
SketchUp has several Constants… like ORIGIN, X_AXIS etc
These are a convenient way of passing a ‘standard’ point or vector to a method…
The fail is because the transform_entities method expects a transformation and an entity OR an array of entities.
So if you are passing an entities collection or a selection turn it into a suitable array using .to_a