<?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: Text stretch with ilogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194853#M36603</link>
    <description>&lt;P&gt;I just tried doing what you are talking about manually, using the Format Text dialog,&amp;nbsp; and could not make that happen, so I'm pretty sure that you could not make it happen by code then.&amp;nbsp; It wants to apply the stretch value to the whole thing, not just a selected portion of the text.&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 13:29:44 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2022-05-26T13:29:44Z</dc:date>
    <item>
      <title>Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194344#M36597</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a ilogic rule to turn on the view label in a drawing and change it using iproperties.&lt;/P&gt;&lt;P&gt;The rule use the line below to change font type and size:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oModelPN&lt;/SPAN&gt;=&lt;SPAN&gt;"&amp;lt;StyleOverride Font='"&lt;/SPAN&gt; &amp;amp; &lt;FONT color="#339966"&gt;&lt;SPAN&gt;Sfont1&lt;/SPAN&gt;&lt;/FONT&gt; &amp;amp; &lt;SPAN&gt;"'&lt;FONT color="#FF0000"&gt; FontSize='0.7'&lt;/FONT&gt;&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oPropSet&lt;/SPAN&gt;(2).&lt;SPAN&gt;Value&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to change the text stretch as well?&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 09:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194344#M36597</guid>
      <dc:creator>aurel_e</dc:creator>
      <dc:date>2022-05-26T09:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194755#M36598</link>
      <description>&lt;P&gt;Try something like this to change the view label&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN&gt;oView&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1)

&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;ShowLabel&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Label&lt;/SPAN&gt;.&lt;SPAN&gt;FormattedText&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;StyleOverride FontSize = '0.9525'&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"HI"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;oView&lt;/SPAN&gt;.&lt;SPAN&gt;Label&lt;/SPAN&gt;.&lt;SPAN&gt;WidthScale&lt;/SPAN&gt; = 2&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:06:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194755#M36598</guid>
      <dc:creator>dalton98</dc:creator>
      <dc:date>2022-05-26T13:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194790#M36599</link>
      <description>&lt;P data-unlink="true"&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6128690"&gt;@aurel_e&lt;/a&gt;.&amp;nbsp; It looks like you are attempting to manipulate the style of the text showing for a DrawingView.Label (&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-09930E4B-CD3E-4A12-9A9B-AF62D38C7720" target="_blank" rel="noopener"&gt;Link1&lt;/A&gt;, &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-C59FC3ED-69BB-4110-8076-52AC8BBE8BAE" target="_blank" rel="noopener"&gt;Link2&lt;/A&gt;) by editing its &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-8FD512FB-D1E1-4D0B-A490-86F2F6C916E0" target="_blank" rel="noopener"&gt;FormattedText&lt;/A&gt;.&amp;nbsp; This is always pretty challenging, because it involves using XML tags, and the documentation for doing&amp;nbsp; so is pretty brief.&amp;nbsp; The &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-915B75BA-4696-4fc7-A2C6-54B2BACDE7E1" target="_blank" rel="noopener"&gt;online help page for editing FormattedText&lt;/A&gt; has a small area about the 'Style Override' settings, but it does not list a property for stretching text, just properties for Font, FontSize, Bold, Italic, &amp;amp; Underline.&amp;nbsp; You could always try formatting the text manually to the way you want it to be, then check that FormattedText content by code afterwards to see how it is done within that code.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:08:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194790#M36599</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-05-26T13:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194802#M36600</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11795854"&gt;@dalton98&lt;/a&gt;&amp;nbsp;for trying this.&lt;/P&gt;&lt;P&gt;It's a bit more complex though:&lt;/P&gt;&lt;P&gt;In the same view label I would like to have the first line stretched 180% and all the rest normal 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the discussion:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/qr-code-in-the-view-label/td-p/11191746" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/qr-code-in-the-view-label/td-p/11191746&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:12:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194802#M36600</guid>
      <dc:creator>aurel_e</dc:creator>
      <dc:date>2022-05-26T13:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194807#M36601</link>
      <description>&lt;P&gt;After posting that, then seeing &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11795854"&gt;@dalton98&lt;/a&gt; 's updated post content, I realized that in this case the actual &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-C59FC3ED-69BB-4110-8076-52AC8BBE8BAE" target="_blank" rel="noopener"&gt;DrawingViewLabel&lt;/A&gt; object itself as a lot of very useful properties that you could use for manipulating most of its visual aspects.&amp;nbsp; He already pointed out the most obvious one for &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-2EDF0F94-E0BF-4686-880D-252A9446091E" target="_blank" rel="noopener"&gt;WidthScale&lt;/A&gt;, which seems to match your inquiry.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:14:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194807#M36601</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-05-26T13:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194815#M36602</link>
      <description>Yes but as I said above:&lt;BR /&gt;In the same view label I would like to have the first line stretched 180% and all the rest normal 100%.&lt;BR /&gt;Is it possible?&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2022 13:19:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194815#M36602</guid>
      <dc:creator>aurel_e</dc:creator>
      <dc:date>2022-05-26T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194853#M36603</link>
      <description>&lt;P&gt;I just tried doing what you are talking about manually, using the Format Text dialog,&amp;nbsp; and could not make that happen, so I'm pretty sure that you could not make it happen by code then.&amp;nbsp; It wants to apply the stretch value to the whole thing, not just a selected portion of the text.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:29:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194853#M36603</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-05-26T13:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194871#M36604</link>
      <description>&lt;P&gt;If this is important, you may have to use the view's label for part of the text, then use a leader note for the rest of the text, then turn the leader visibility off.&amp;nbsp; I would use the leader text because it can be attached to the view and will move with the view and stay in place.&amp;nbsp; If done right, it would look like a single note.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:32:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194871#M36604</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-05-26T13:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Text stretch with ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194939#M36605</link>
      <description>&lt;P&gt;Thanks to both&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11795854"&gt;@dalton98&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least I know it is not possible in that way.&lt;/P&gt;&lt;P&gt;As a workaround I'm thinking now to use a condensed font for the other lines.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 13:59:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/text-stretch-with-ilogic/m-p/11194939#M36605</guid>
      <dc:creator>aurel_e</dc:creator>
      <dc:date>2022-05-26T13:59:14Z</dc:date>
    </item>
  </channel>
</rss>

