Skip to content

Commit d4c2e32

Browse files
Update 2022.0 to include Entities add_3d_text fix
1 parent 455b82f commit d4c2e32

File tree

1 file changed

+192
-41
lines changed

1 file changed

+192
-41
lines changed

Sketchup/Entities.html

Lines changed: 192 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ <h2>
310310
<li class="public ">
311311
<span class="summary_signature">
312312

313-
<a href="#add_3d_text-instance_method" title="#add_3d_text (instance method)">#<strong>add_3d_text</strong>(string, alignment, font, is_bold = false, is_italic = false, letter_height) &#x21d2; Boolean </a>
313+
<a href="#add_3d_text-instance_method" title="#add_3d_text (instance method)">#<strong>add_3d_text</strong>(string, alignment, font, is_bold = false, is_italic = false, letter_height = 1.0, tolerance = 0.0, z = 0.0, is_filled = true, extrusion = 0.0) &#x21d2; Boolean </a>
314314

315315

316316

@@ -325,7 +325,7 @@ <h2>
325325

326326

327327
<span class="summary_desc"><div class='inline'>
328-
<p>The add_3d_text is used to create 3D text.</p>
328+
<p>The <span class='object_link'><a href="#add_3d_text-instance_method" title="Sketchup::Entities#add_3d_text (method)">#add_3d_text</a></span> method is used to create 3D text.</p>
329329
</div></span>
330330

331331
</li>
@@ -1422,7 +1422,7 @@ <h3 class="signature " id="active_section_plane=-instance_method">
14221422
<h3 class="signature " id="add_3d_text-instance_method">
14231423
<a style="float: right;" href="#header" title="Return to Top">&uarr;</a>
14241424

1425-
#<strong>add_3d_text</strong>(string, alignment, font, is_bold = false, is_italic = false, letter_height) &#x21d2; <tt>Boolean</tt>
1425+
#<strong>add_3d_text</strong>(string, alignment, font, is_bold = false, is_italic = false, letter_height = 1.0, tolerance = 0.0, z = 0.0, is_filled = true, extrusion = 0.0) &#x21d2; <tt>Boolean</tt>
14261426

14271427

14281428

@@ -1431,43 +1431,7 @@ <h3 class="signature " id="add_3d_text-instance_method">
14311431
</h3><div class="docstring">
14321432
<div class="discussion">
14331433

1434-
<p>The add_3d_text is used to create 3D text. It will be added as edges and faces drawn at the origin.</p>
1435-
1436-
<h1 id="label-1.0-2C+tolerance+-3D+0.0-2C+z+-3D+0.0-2C+is_filled+-3D+true-2C+extrusion+-3D+0.0-29">1.0, tolerance = 0.0, z = 0.0, is_filled = true, extrusion = 0.0)</h1>
1437-
1438-
<pre class="code"><code class="">@param [String] string
1439-
The text to create.
1440-
1441-
@param [Integer] alignment
1442-
Number that defines the alignment. There are constants
1443-
called TextAlignLeft, TextAlignRight, and
1444-
TextAlignCenter that can be passed.
1445-
1446-
@param [String] font
1447-
font name.
1448-
1449-
@param [Boolean] is_bold
1450-
true for bold.
1451-
1452-
@param [Boolean] is_italic
1453-
true for italic.
1454-
1455-
@param [Numeric] letter_height
1456-
Height of the text in inches.
1457-
1458-
@param [Numeric] tolerance
1459-
Tolerance of the curve creation. Defaults to
1460-
0.0, which creates the highest possible curve quality.
1461-
1462-
@param [Numeric] z
1463-
z position in inches.
1464-
1465-
@param [Boolean] is_filled
1466-
true for filled, which will put a face between the edges of the letters.
1467-
1468-
@param [Numeric] extrusion
1469-
Extrusion depth in inches.
1470-
</code></pre>
1434+
<p>The <span class='object_link'><a href="#add_3d_text-instance_method" title="Sketchup::Entities#add_3d_text (method)">#add_3d_text</a></span> method is used to create 3D text. It will be added as edges and faces drawn at the origin.</p>
14711435

14721436

14731437
</div>
@@ -1483,11 +1447,198 @@ <h1 id="label-1.0-2C+tolerance+-3D+0.0-2C+z+-3D+0.0-2C+is_filled+-3D+true-2C+ext
14831447
</span><span class='comment'># with an extrusion size of 5&quot;.
14841448
</span><span class='id identifier rubyid_entities'>entities</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../Sketchup.html" title="Sketchup (module)">Sketchup</a></span></span><span class='period'>.</span><span class='id identifier rubyid_active_model'><span class='object_link'><a href="../Sketchup.html#active_model-class_method" title="Sketchup.active_model (method)">active_model</a></span></span><span class='period'>.</span><span class='id identifier rubyid_entities'><span class='object_link'><a href="Model.html#entities-instance_method" title="Sketchup::Model#entities (method)">entities</a></span></span>
14851449
<span class='id identifier rubyid_success'>success</span> <span class='op'>=</span> <span class='id identifier rubyid_entities'>entities</span><span class='period'>.</span><span class='id identifier rubyid_add_3d_text'>add_3d_text</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>test</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="../top-level-namespace.html#TextAlignLeft-constant" title="TextAlignLeft (constant)">TextAlignLeft</a></span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Arial</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
1486-
<span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='float'>1.0</span><span class='comma'>,</span> <span class='float'>0.0</span><span class='comma'>,</span> <span class='float'>0.5</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='float'>5.0</span><span class='rparen'>)</span></code></pre>
1450+
<span class='kw'>true</span><span class='comma'>,</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='int'>1</span><span class='period'>.</span><span class='id identifier rubyid_inch'>inch</span><span class='comma'>,</span> <span class='float'>0.0</span><span class='comma'>,</span> <span class='float'>0.5</span><span class='period'>.</span><span class='id identifier rubyid_inch'>inch</span><span class='comma'>,</span> <span class='kw'>true</span><span class='comma'>,</span> <span class='float'>5.0</span><span class='period'>.</span><span class='id identifier rubyid_inch'>inch</span><span class='rparen'>)</span></code></pre>
14871451

14881452
</div>
14891453

1454+
<div class="docstring">
1455+
<div class="discussion">
1456+
1457+
1458+
</div>
1459+
</div>
1460+
<div class="tags">
1461+
<p class="tag_title">Parameters:</p>
1462+
<ul class="param">
1463+
1464+
<li>
1465+
1466+
<span class='name'>string</span>
1467+
1468+
1469+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1470+
1471+
1472+
1473+
&mdash;
1474+
<div class='inline'>
1475+
<p>The text to create.</p>
1476+
</div>
1477+
1478+
</li>
14901479

1480+
<li>
1481+
1482+
<span class='name'>alignment</span>
1483+
1484+
1485+
<span class='type'>(<tt>Integer</tt>)</span>
1486+
1487+
1488+
1489+
&mdash;
1490+
<div class='inline'>
1491+
<p>Number that defines the alignment. There are constants called TextAlignLeft, TextAlignRight, and TextAlignCenter that can be passed.</p>
1492+
</div>
1493+
1494+
</li>
1495+
1496+
<li>
1497+
1498+
<span class='name'>font</span>
1499+
1500+
1501+
<span class='type'>(<tt><span class='object_link'><a href="../String.html" title="String (class)">String</a></span></tt>)</span>
1502+
1503+
1504+
1505+
&mdash;
1506+
<div class='inline'>
1507+
<p>font name.</p>
1508+
</div>
1509+
1510+
</li>
1511+
1512+
<li>
1513+
1514+
<span class='name'>is_bold</span>
1515+
1516+
1517+
<span class='type'>(<tt>Boolean</tt>)</span>
1518+
1519+
1520+
<em class="default">(defaults to: <tt>false</tt>)</em>
1521+
1522+
1523+
&mdash;
1524+
<div class='inline'>
1525+
<p>true for bold.</p>
1526+
</div>
1527+
1528+
</li>
1529+
1530+
<li>
1531+
1532+
<span class='name'>is_italic</span>
1533+
1534+
1535+
<span class='type'>(<tt>Boolean</tt>)</span>
1536+
1537+
1538+
<em class="default">(defaults to: <tt>false</tt>)</em>
1539+
1540+
1541+
&mdash;
1542+
<div class='inline'>
1543+
<p>true for italic.</p>
1544+
</div>
1545+
1546+
</li>
1547+
1548+
<li>
1549+
1550+
<span class='name'>letter_height</span>
1551+
1552+
1553+
<span class='type'>(<tt><span class='object_link'><a href="../Length.html" title="Length (class)">Length</a></span></tt>)</span>
1554+
1555+
1556+
<em class="default">(defaults to: <tt>1.0</tt>)</em>
1557+
1558+
1559+
&mdash;
1560+
<div class='inline'>
1561+
<p>Height of the text</p>
1562+
</div>
1563+
1564+
</li>
1565+
1566+
<li>
1567+
1568+
<span class='name'>tolerance</span>
1569+
1570+
1571+
<span class='type'>(<tt><span class='object_link'><a href="../Numeric.html" title="Numeric (class)">Numeric</a></span></tt>)</span>
1572+
1573+
1574+
<em class="default">(defaults to: <tt>0.0</tt>)</em>
1575+
1576+
1577+
&mdash;
1578+
<div class='inline'>
1579+
<p>Tolerance of the curve creation. Defaults to 0.0, which creates the highest possible curve quality.</p>
1580+
</div>
1581+
1582+
</li>
1583+
1584+
<li>
1585+
1586+
<span class='name'>z</span>
1587+
1588+
1589+
<span class='type'>(<tt><span class='object_link'><a href="../Length.html" title="Length (class)">Length</a></span></tt>)</span>
1590+
1591+
1592+
<em class="default">(defaults to: <tt>0.0</tt>)</em>
1593+
1594+
1595+
&mdash;
1596+
<div class='inline'>
1597+
<p>z position of the text</p>
1598+
</div>
1599+
1600+
</li>
1601+
1602+
<li>
1603+
1604+
<span class='name'>is_filled</span>
1605+
1606+
1607+
<span class='type'>(<tt>Boolean</tt>)</span>
1608+
1609+
1610+
<em class="default">(defaults to: <tt>true</tt>)</em>
1611+
1612+
1613+
&mdash;
1614+
<div class='inline'>
1615+
<p>true for filled, which will put a face between the edges of the letters.</p>
1616+
</div>
1617+
1618+
</li>
1619+
1620+
<li>
1621+
1622+
<span class='name'>extrusion</span>
1623+
1624+
1625+
<span class='type'>(<tt><span class='object_link'><a href="../Length.html" title="Length (class)">Length</a></span></tt>)</span>
1626+
1627+
1628+
<em class="default">(defaults to: <tt>0.0</tt>)</em>
1629+
1630+
1631+
&mdash;
1632+
<div class='inline'>
1633+
<p>Extrusion depth</p>
1634+
</div>
1635+
1636+
</li>
1637+
1638+
</ul>
1639+
1640+
1641+
</div>
14911642

14921643
<p class="tag_title">Returns:</p>
14931644
<ul class="return">

0 commit comments

Comments
 (0)