<?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 How to Control Stretch (%) in &amp;lt;StyleOverrides&amp;gt;? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12417445#M160983</link>
    <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I'm trying control the font stretch % in 3D Annotations. Please help me how to do that? I can't find any relative information about it. Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ngnam1988_0-1701676734282.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1300330iA395BA8E25442F16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ngnam1988_0-1701676734282.png" alt="ngnam1988_0-1701676734282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 07:57:12 GMT</pubDate>
    <dc:creator>ngnam1988</dc:creator>
    <dc:date>2023-12-04T07:57:12Z</dc:date>
    <item>
      <title>How to Control Stretch (%) in &lt;StyleOverrides&gt;?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12417445#M160983</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;I'm trying control the font stretch % in 3D Annotations. Please help me how to do that? I can't find any relative information about it. Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ngnam1988_0-1701676734282.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1300330iA395BA8E25442F16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ngnam1988_0-1701676734282.png" alt="ngnam1988_0-1701676734282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 07:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12417445#M160983</guid>
      <dc:creator>ngnam1988</dc:creator>
      <dc:date>2023-12-04T07:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Control Stretch (%) in &lt;StyleOverrides&gt;?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12419341#M161034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1252980"&gt;@ngnam1988&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;With this code it should work, but since it is not updated I think we have found a bug in the API here.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim p As PartDocument = ThisDoc.Document
Dim td As Inventor.ModelAnnotation

For Each td In p.ComponentDefinition.ModelAnnotations
	
	If td.Type = ObjectTypeEnum.kModelLeaderNoteObject Then

	Dim ml As ModelLeaderNote
	ml = td
	MsgBox(ml.Definition.Text.WidthScale)
	
	Dim mld As ModelLeaderNoteDefinition = ml.Definition
	mld.Text.WidthScale = 2
	MsgBox(mld.Text.WidthScale)
	mld.Text.WidthScale = 3
	MsgBox(mld.Text.WidthScale)
	mld.Text.WidthScale = 4
	MsgBox (mld.Text.WidthScale)
End If
	Next&lt;/LI-CODE&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/486618"&gt;@johnsonshiue&lt;/a&gt;&amp;nbsp;could you and your team take a look at this and maybe confirm that the above is the case.&lt;/P&gt;
&lt;P&gt;Please see the attached video where I change the WidthScale from 1 to 2 to 3 to 4 and it does not update.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1701727114709.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1300711iB5AADEA8007D4550/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1701727114709.png" alt="bradeneuropeArthur_0-1701727114709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 21:59:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12419341#M161034</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-12-04T21:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Control Stretch (%) in &lt;StyleOverrides&gt;?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12420991#M161053</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks!&lt;BR /&gt;I'm working with this Code but nothing changed, what's wrong here? Could you please help me,&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDOC As PartDocument = ThisApplication.ActiveDocument
oDOC.ActiveAnnotationsStandard = "DIN"
Dim TextFormatted As String =
	"&amp;lt;StyleOverride Font='ISOCPEUR' FontSize='0.275'&amp;gt;Title: &amp;lt;/StyleOverride&amp;gt;" &amp;amp;
	"&amp;lt;StyleOverride Font='ISOCPEUR' FontSize='0.275' Bold='True'&amp;gt;&amp;lt;Property Document='Model' FormatID='{F29F85E0-4FF9-1068-AB91-08002B27B3D9}' PropertyID='2'&amp;gt;TITLE&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;&amp;lt;br/&amp;gt;" &amp;amp;
Dim oDefinition As ModelGeneralNoteDefinition = oDOC.ComponentDefinition.ModelAnnotations.ModelGeneralNotes.CreateDefinition(TextFormatted, True, ScreenQuadrantEnum.kLowerRightQuadrant)
Call oDOC.ComponentDefinition.ModelAnnotations.ModelGeneralNotes.Add(oDefinition)
oDefinition.Text.WidthScale = 0.7
MsgBox(oDefinition.Text.WidthScale)
Dim oModelAnnotations As ModelAnnotations = oDOC.ComponentDefinition.ModelAnnotations
Dim oMGN As ModelGeneralNote = oModelAnnotations.ModelGeneralNotes.Item(1)
Dim oMGNDefinition As ModelGeneralNoteDefinition = oMGN.Definition
oMGNDefinition.Text.WidthScale = 0.7
MsgBox(oMGNDefinition.Text.WidthScale)
oMGN.Name = "GeneralNote"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:42:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12420991#M161053</guid>
      <dc:creator>ngnam1988</dc:creator>
      <dc:date>2023-12-05T14:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Control Stretch (%) in &lt;StyleOverrides&gt;?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12421043#M161055</link>
      <description>And what is not changing?&lt;BR /&gt;I have written to the AU team for confirmation that the stretch/scale is a bug regarding not updating!</description>
      <pubDate>Tue, 05 Dec 2023 15:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-control-stretch-in-lt-styleoverrides-gt/m-p/12421043#M161055</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-12-05T15:02:38Z</dc:date>
    </item>
  </channel>
</rss>

