Hi all,
I just discover that we can’t change the 2D text font by API ?
Is it true ?
BS
TIG
June 30, 2016, 9:18pm
2
Yes.
2d Text has quite limited methods.
3d Text offers more possibilities - e.g. you can change the font of 3d text - but then checking if the specific font exists etc is pretty complex and it also varies between PC and MAC… but it’s doable…
1 Like
Thanks TIG, I can’t use 3D text.
I see some 2010 wish list about that, …
Does something changed past 8 years?
I would like to change text font for Class: Sketchup::Text — SketchUp Ruby API Documentation entity.
For example change font size and style to: font 16, Arial from default font 12, Tahoma
dezmo
March 7, 2024, 9:31am
5
No, these are still unsatisfied wishes.
sad, but thanks for answer!
This official request was logged 6 years ago … please add your comments there:
opened 05:11AM - 13 Feb 18 UTC
enhancement
Ruby API
SketchUp
logged
# Feature Requests
1. Access to Font and Size (Point or Unit).
2. Access to i… nstalled Fonts.
3. The ability to attach text to any user defined point within a group or component.
4. The Bounding Box of the Text itself.
5. Align Text to a Plane (x,y / x,z / ...)
Also, take note of requests for dimensions:
opened 05:16AM - 13 Feb 18 UTC
enhancement
Ruby API
SketchUp
logged
# Feature Requests
1. Access to Font and Size (Point or Unit).
2. Access to i… nstalled Fonts.
3. The ability to attach text to any user defined point within a group or component.
4. The Bounding Box of the Text itself.
2 Likes
Also, more discussion in this issue thread:
opened 12:56PM - 22 Apr 22 UTC
enhancement
Ruby API
SketchUp
logged
parity
**Feature Request:**
**_Enhance the ruby API at least such, that during creat… ion of a dimension or text we can pass the font/size/style. (similar to how 3D text is created)_**
There are other requests on that topic that go much further. (see issue #48 )
This request here is what I consider the minimal enhancement to be able to **create** flexibly a dimension or text object.
**Business/use case**:
(see also the Sketchup forum at: [Minimal Enh. to create dimension and text objects with ruby](https://forums.sketchup.com/t/minimal-enhancement-on-creation-of-dimensions-and-leader-objects-using-ruby/196508) )
We model in 3D and communicate during the modeling phase in 3D (using Sketchup, Sketchup viewer, trimble connect and Sketchup viewer on iPad).
This is very efficient and many involved people prefer this to 3D modeling with communication in 2D.
Later, when most of the modeling and detail design phase is done and the production/building starts, 2D drawings become important.
Key for modeling, communicating and collaborating in 3D is being able to attach text and focus points using different colors and styles to the 3D model. Only being able to orbit a house, chair or gear box and walk around it, does not help.
Sketchup provides the basic tools for communication in 3D like linear dimensions, leaders (text) and 3D text (angular dimensions are however missing).
During design, we use for example predefined styles to indicate dimensions that are fixed (red), dimensions which might be made larger (green) or may be only changed to smaller values (blue).
Different font styles are used to indicate confirmed, proposed or to be answered dimensions or areas.
The main issue is, that neither font styles, sizes, fonts nor colors can be set from within ruby. We have ruby scripts to create the various dimensions, leaders or 3D texts. But as the style can only be set via the UI, the script ends with a message box telling the user to which color/font/style he has to manually change the created and pre-selected objects, so that it conforms to the rules.
This is not comfortable.
2 Likes