Are you asking how to rotate the 3D text? Create an empty group, add the 3d text to that group, then rotate the group any way you like with transformations. Once created, the 3d text is just faces and edges.
No, I was wondering if there was some built in parameter I was missing. I will drop into a group and then move and rotate into position, I’ve got that covered.
The 3dText geometry is not rotate-able in the API methods.
But it’s easily done - initially add it into a new group, then rotate that group.
You can also consider moving that group’s origin [transformation.origin etc] - relocating its entities by a translation transformation, and then moving that group by that transformation-inverse…
Thus its container’s origin is maintained, but the text itself located as you wish…
e.g. useful if you want the text-group centered on a particular point etc…
Also consider naming the text-group logically so it can be easily found in the Outliner.
The text is aligned IF it’s multi-line.
So two lines of text justified left/center/right.
However, the group taking the text geometry will always have its origin at the text’s bottom left corner.
To change it follow the steps in my previous post.
For example, to place the 3dText centered on a given point, add an empty group to some entities context, add the 3dText into that group, using that given point.
At this stage that point is the bottom-left of the text.
To relocate the text’s geometry, find the group.bounds.center and group.bounds.min…
Then get the vector between them.
Make a transformation translation using that vector.
Transform the group.entities by that using Class: Sketchup::Entities — SketchUp Ruby API Documentation
In that case there’s no need to relocate the group as its center is at the given point…
And its text-geometry is now also centered about point.