I am trying to do some programmatic rendering of text. Right now, I try to render text pretty simply in the interactive Ruby box:
view = Sketchup.active_model.active_view point16 = Geom::Point3d.new 0,0,0 status = view.draw_text point16, "This is a test"
(Note: this is taken directly from the API docs)
As far as I can see, this does nothing. If it renders text, it’s being rendered invisibly. I poked around on the web and found:
Which suggested setting either the view’s drawing model or the model’s rendering color itself:
model = Sketchup.active_model model.rendering_options['ForegroundColor'] = Sketchup::Color.new(255, 0, 0)
view.drawing_color= Sketchup::Color.new(255, 0, 0)
Subsequently trying to draw_text after each of these operations has resulted in no text being drawn to the screen. What am I doing wrong?