<?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: formatting code to not go to next line. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064053#M154562</link>
    <description>&lt;P&gt;Now that I look at it again and think about how it is laid out on the right, I believe those "[" &amp;amp; "]" type characters may have special meaning in XML.&amp;nbsp; You may have to either use double quotation marks ("""") around both of those characters, or use a different means of conveying those special characters within that text.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.w3schools.com/XML/xml_syntax.asp" target="_blank" rel="noopener"&gt;https://www.w3schools.com/XML/xml_syntax.asp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2023 15:08:55 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2023-06-27T15:08:55Z</dc:date>
    <item>
      <title>formatting code to not go to next line.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12063924#M154556</link>
      <description>&lt;P&gt;I have found a code to automatically enter information to my detail view label. It works great. I am just having trouble finding the right code format so the values do not go to the next line. the detail on the left is what is desired. the detail on the right is what the code currently does.&amp;nbsp; What do I need to keep those values on the same line?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:31:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12063924#M154556</guid>
      <dc:creator>eric.smyth</dc:creator>
      <dc:date>2023-06-27T14:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: formatting code to not go to next line.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064027#M154560</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12707125"&gt;@eric.smyth&lt;/a&gt;.&amp;nbsp; This looks to me like a simple TextBox boundary not updating its size to fit its contents, and therefore is causing the text to wrap to the next line.&amp;nbsp; To test this theory, if you double click on the view label on the right, to bring up the Format Text dialog, then enter a single space in there somewhere, then delete that space, then click the OK button to accept the change, and close the dialog box, does that cause the contents to show up correctly?&amp;nbsp; If so, you may be able to simulate that same type of action to get it to update by code.&amp;nbsp; The &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingView_Label" target="_blank" rel="noopener"&gt;DrawingView.Label&lt;/A&gt; (a &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-DrawingViewLabel" target="_blank" rel="noopener"&gt;DrawingViewLabel&lt;/A&gt; type object), does not have any built-in method for causing it to resize itself.&amp;nbsp; So, you may just need to adjust something about its contents after the fact, to get it to update its bounding box, to fit its new contents.&amp;nbsp; You could try changing its &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=DrawingViewLabel_HorizontalJustification" target="_blank" rel="noopener"&gt;DrawingViewLabel.HorizontalJustification&lt;/A&gt; to a different variation of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=HorizontalTextAlignmentEnum" target="_blank" rel="noopener"&gt;HorizontalTextAlignmentEnum&lt;/A&gt;, then back again, and see if that works.&amp;nbsp; If not, you could try adjusting some other propery value momentarily, then setting it back.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 15:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064027#M154560</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-06-27T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: formatting code to not go to next line.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064033#M154561</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12707125"&gt;@eric.smyth&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in the formatted text this creates a break:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;Br/&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 15:03:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064033#M154561</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2023-06-27T15:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: formatting code to not go to next line.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064053#M154562</link>
      <description>&lt;P&gt;Now that I look at it again and think about how it is laid out on the right, I believe those "[" &amp;amp; "]" type characters may have special meaning in XML.&amp;nbsp; You may have to either use double quotation marks ("""") around both of those characters, or use a different means of conveying those special characters within that text.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references" target="_blank" rel="noopener"&gt;https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.w3schools.com/XML/xml_syntax.asp" target="_blank" rel="noopener"&gt;https://www.w3schools.com/XML/xml_syntax.asp&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 15:08:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064053#M154562</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-06-27T15:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: formatting code to not go to next line.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064993#M154578</link>
      <description>&lt;P&gt;probably should have added a piece of the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oLargediastring&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride FontSize='0.317'&amp;gt;LARGE DIA. INISDE = Ø&amp;lt;/StyleOverride&amp;gt; "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oLargedia&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"["&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oLargediamm&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"]"&lt;/SPAN&gt;
&lt;SPAN&gt;oSmalldiastring&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride FontSize='0.317'&amp;gt;SMALL DIA. INISDE = Ø&amp;lt;/StyleOverride&amp;gt; "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oSmalldia&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"["&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oSmalldiamm&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"]"&lt;/SPAN&gt;
&lt;SPAN&gt;oInsideheightstring&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride FontSize='0.317'&amp;gt;INISDE HEIGHT = &amp;lt;/StyleOverride&amp;gt; "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oInsideheight&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"["&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oInsideheightmm&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"]"&lt;/SPAN&gt;
&lt;SPAN&gt;oCompletecone&lt;/SPAN&gt; = &lt;SPAN&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride FontSize='0.317'&amp;gt;(2) REQ'D FOR COMPLETE CONE&amp;lt;/StyleOverride&amp;gt; "&lt;/SPAN&gt;

&lt;SPAN&gt;'add to the view label&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 Underline='True'&amp;gt;DETAIL ITEM#&amp;lt;/StyleOverride&amp;gt; "&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oDescription&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oStringScale&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oCompletecone&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oLargediastring&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oSmalldiastring&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oInsideheightstring&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jun 2023 22:51:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/formatting-code-to-not-go-to-next-line/m-p/12064993#M154578</guid>
      <dc:creator>eric.smyth</dc:creator>
      <dc:date>2023-06-27T22:51:25Z</dc:date>
    </item>
  </channel>
</rss>

