<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert a non-fitted textbox back to fitted in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-a-non-fitted-textbox-back-to-fitted/m-p/7593140#M77609</link>
    <description>&lt;P&gt;Yeah, I know that. It seems no other solution.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 08:03:34 GMT</pubDate>
    <dc:creator>smilinger</dc:creator>
    <dc:date>2017-12-04T08:03:34Z</dc:date>
    <item>
      <title>Convert a non-fitted textbox back to fitted</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-a-non-fitted-textbox-back-to-fitted/m-p/7574732#M77336</link>
      <description>&lt;P&gt;When creating a new titleblock of border, in the definition sketch we can add a textbox in two ways:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. By single click, this way the textbox created is a &lt;STRONG&gt;fitted textbox&lt;/STRONG&gt;, the width of the textbox can auto grow or shrink based on the text, and it's a single line textbox no matter how long the text is or whether there is whitespace or not.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In code this kind of textbox can be created using DrawingSketch.TextBoxes.AddFitted(), the Fitted property of the textbox object is True.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. By click and drag a box, this way the textbox is non-fitted textbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In code this kind of textbox can be created using DrawingSketch.TextBoxes.AddByRectangle(), the Fitted property of the textbox object is False.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A fitted textbox can be converted into non-fitted textbox, by dragging the corner of the textbox, or from code by set the height or width value of the textbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the question is, can I convert it back? For some reason I want to convert all my textboxes to fitted textbox. I found no inventor command to do this, and I found no way to do it in code.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 12:20:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-a-non-fitted-textbox-back-to-fitted/m-p/7574732#M77336</guid>
      <dc:creator>smilinger</dc:creator>
      <dc:date>2017-11-27T12:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a non-fitted textbox back to fitted</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-a-non-fitted-textbox-back-to-fitted/m-p/7575159#M77338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;maybe we cant convert to fitted but we can replace with new text fitted, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oDwg As DrawingDocument&lt;BR /&gt;Set oDwg = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;Dim oSheet As Sheet&lt;BR /&gt;Set oSheet = oDwg.ActiveSheet&lt;BR /&gt;Dim oGenNotes As GeneralNote&lt;BR /&gt;Dim oPoint As Point2d&lt;/P&gt;&lt;P&gt;For Each oGenNotes In oSheet.DrawingNotes&lt;BR /&gt;If oGenNotes.Fitted = False Then&lt;BR /&gt;X = oGenNotes.Position.X&lt;BR /&gt;Y = oGenNotes.Position.Y&lt;BR /&gt;Field = oGenNotes.Text&lt;BR /&gt;Set oPoint = ThisApplication.TransientGeometry.CreatePoint2d(X, Y)&lt;BR /&gt;&lt;BR /&gt;oGenNotes.Delete&lt;BR /&gt;Call oSheet.DrawingNotes.GeneralNotes.AddFitted(oPoint, Field)&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 14:30:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-a-non-fitted-textbox-back-to-fitted/m-p/7575159#M77338</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2017-11-27T14:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a non-fitted textbox back to fitted</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-a-non-fitted-textbox-back-to-fitted/m-p/7593140#M77609</link>
      <description>&lt;P&gt;Yeah, I know that. It seems no other solution.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 08:03:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/convert-a-non-fitted-textbox-back-to-fitted/m-p/7593140#M77609</guid>
      <dc:creator>smilinger</dc:creator>
      <dc:date>2017-12-04T08:03:34Z</dc:date>
    </item>
  </channel>
</rss>

