<?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 Link Text Height of an Emboss Feature to a parameter in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/link-text-height-of-an-emboss-feature-to-a-parameter/m-p/11791945#M149656</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got a head scratcher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an emboss feature with 10 text boxes in the sketch. I want to be able to link the font size of all of the text boxes to a control parameter. I've got the code below but it doesn't work and doesn't seem to update the emboss feature either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oPartDoc As PartDocument
oPartDoc = ThisDoc.Document

Dim oCompDef As ComponentDefinition
oCompDef = oPartDoc.ComponentDefinition

Dim oSketchText As Inventor.TextBox
Dim oSketch As PlanarSketch
Dim oFontSize = text_height / 10

For Each oSketch In oCompDef.Sketches
	For Each oSketchText In oSketch.TextBoxes
		oSketchText.FormattedText = "&amp;lt;StyleOverride FontSize = '" &amp;amp; oFontSize &amp;amp; "'&amp;gt;" &amp;amp; "&amp;lt;/StyleOverride&amp;gt;" 
	Next
Next

iLogicVb.UpdateWhenDone = True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be gratefully received.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 01:04:48 GMT</pubDate>
    <dc:creator>Rich-T</dc:creator>
    <dc:date>2023-03-02T01:04:48Z</dc:date>
    <item>
      <title>Link Text Height of an Emboss Feature to a parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/link-text-height-of-an-emboss-feature-to-a-parameter/m-p/11791945#M149656</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got a head scratcher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an emboss feature with 10 text boxes in the sketch. I want to be able to link the font size of all of the text boxes to a control parameter. I've got the code below but it doesn't work and doesn't seem to update the emboss feature either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oPartDoc As PartDocument
oPartDoc = ThisDoc.Document

Dim oCompDef As ComponentDefinition
oCompDef = oPartDoc.ComponentDefinition

Dim oSketchText As Inventor.TextBox
Dim oSketch As PlanarSketch
Dim oFontSize = text_height / 10

For Each oSketch In oCompDef.Sketches
	For Each oSketchText In oSketch.TextBoxes
		oSketchText.FormattedText = "&amp;lt;StyleOverride FontSize = '" &amp;amp; oFontSize &amp;amp; "'&amp;gt;" &amp;amp; "&amp;lt;/StyleOverride&amp;gt;" 
	Next
Next

iLogicVb.UpdateWhenDone = True&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be gratefully received.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 01:04:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/link-text-height-of-an-emboss-feature-to-a-parameter/m-p/11791945#M149656</guid>
      <dc:creator>Rich-T</dc:creator>
      <dc:date>2023-03-02T01:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Link Text Height of an Emboss Feature to a parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/link-text-height-of-an-emboss-feature-to-a-parameter/m-p/11792112#M149659</link>
      <description>&lt;P&gt;Well, I figured out the issue I was having. The text in some of my text boxes contained the "&amp;amp;" character and this throws a problem with the rules from the post linked below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take out the "&amp;amp;"&amp;nbsp;character and it works fine. Even "@" and "%" and "+" work, but not the useful "&amp;amp;" - go figure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/controlling-textbox-size-with-ilogic/m-p/7676241" target="_blank"&gt;Controlling Textbox size with iLogic. - Autodesk Community - Inventor&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 03:25:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/link-text-height-of-an-emboss-feature-to-a-parameter/m-p/11792112#M149659</guid>
      <dc:creator>Rich-T</dc:creator>
      <dc:date>2023-03-02T03:25:48Z</dc:date>
    </item>
  </channel>
</rss>

