<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[View.draw_text invisible?]]></title><description><![CDATA[<p dir="auto">After drawing points, text is not displayed. Any ideas?<br />
My workaround is to draw the text first, but I'm just wondering if something else is wrong.</p>
<p dir="auto">**```<br />
class TestTool<br />
def draw(view)<br />
view.draw_text(view.screen_coords(ORIGIN)+[20,-100,0], "visible text")<br />
view.draw_points(ORIGIN+[10,10,10], 10, 3, Sketchup;;Color.new("black"))<br />
view.draw_text(view.screen_coords(ORIGIN)+[20,-50,0], "invisible text")<br />
end<br />
end<br />
Sketchup.active_model.select_tool(TestTool.new)</p>
<pre><code class="language-**"></code></pre>
]]></description><link>https://community.sketchucation.com/topic/134480/view-draw_text-invisible</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 00:59:29 GMT</lastBuildDate><atom:link href="https://community.sketchucation.com/topic/134480.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Apr 2012 03:24:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to View.draw_text invisible? on Mon, 16 Apr 2012 10:38:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aerilius" aria-label="Profile: aerilius">@<bdi>aerilius</bdi></a> said:</p>
<blockquote>
<p dir="auto">(I hope the API comments will be back at the site at some time.)</p>
</blockquote>
<p dir="auto">Yea - I'd made notes about the <code> draw_points</code> bug in the old comments... <img src="https://community.sketchucation.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=6529dfcbe5e" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":disappointed:" alt="😞" /></p>
]]></description><link>https://community.sketchucation.com/post/1322202</link><guid isPermaLink="true">https://community.sketchucation.com/post/1322202</guid><dc:creator><![CDATA[thomthom]]></dc:creator><pubDate>Mon, 16 Apr 2012 10:38:57 GMT</pubDate></item><item><title><![CDATA[Reply to View.draw_text invisible? on Mon, 16 Apr 2012 10:33:54 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for explaining this!</p>
<p dir="auto">(I hope the API comments will be back at the site at some time.)</p>
]]></description><link>https://community.sketchucation.com/post/1322201</link><guid isPermaLink="true">https://community.sketchucation.com/post/1322201</guid><dc:creator><![CDATA[Aerilius]]></dc:creator><pubDate>Mon, 16 Apr 2012 10:33:54 GMT</pubDate></item><item><title><![CDATA[Reply to View.draw_text invisible? on Mon, 16 Apr 2012 08:33:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aerilius" aria-label="Profile: aerilius">@<bdi>aerilius</bdi></a> said:</p>
<blockquote>
<p dir="auto">After drawing points, text is not displayed. Any ideas?</p>
</blockquote>
<p dir="auto">There is a bug where <code> view.draw_points</code> kills off the drawing operation that succeed it. I try to move all point drawing operations to the end of the <code> draw</code> event.</p>
<p dir="auto">Just to be sure it doesn't mute any other operations, when I'm done drawing points I draw an line outside the viewport area just to make sure the next operations will work fine.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dan" aria-label="Profile: dan">@<bdi>dan</bdi></a> rathbun said:</p>
<blockquote>
<p dir="auto"><a href="https://developers.google.com/sketchup/docs/ourdoc/view#drawing_color" target="_blank" rel="noopener noreferrer nofollow ugc">View.drawing_color=</a></p>
</blockquote>
<p dir="auto">Unfortunately the drawing colour is not used for text - it always draws the text in the colour of the foreground color: <code> model.rendering_options['ForegroundColor']</code> - that's the model edge colour.</p>
]]></description><link>https://community.sketchucation.com/post/1322184</link><guid isPermaLink="true">https://community.sketchucation.com/post/1322184</guid><dc:creator><![CDATA[thomthom]]></dc:creator><pubDate>Mon, 16 Apr 2012 08:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to View.draw_text invisible? on Mon, 16 Apr 2012 08:01:24 GMT]]></title><description><![CDATA[<p dir="auto">In my original code I had set a drawing_color, but text doesn't use it (and the first text works without it).</p>
]]></description><link>https://community.sketchucation.com/post/1322181</link><guid isPermaLink="true">https://community.sketchucation.com/post/1322181</guid><dc:creator><![CDATA[Aerilius]]></dc:creator><pubDate>Mon, 16 Apr 2012 08:01:24 GMT</pubDate></item><item><title><![CDATA[Reply to View.draw_text invisible? on Mon, 16 Apr 2012 07:05:18 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://developers.google.com/sketchup/docs/ourdoc/view#drawing_color" target="_blank" rel="noopener noreferrer nofollow ugc">View.drawing_color=</a></p>
]]></description><link>https://community.sketchucation.com/post/1322178</link><guid isPermaLink="true">https://community.sketchucation.com/post/1322178</guid><dc:creator><![CDATA[Dan Rathbun]]></dc:creator><pubDate>Mon, 16 Apr 2012 07:05:18 GMT</pubDate></item></channel></rss>