<?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: General Notes Formatted Text - Linked Parameter Bug in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9036402#M71525</link>
    <description>&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried on my Inventor 2019 and could reproduce your problem.&lt;/P&gt;&lt;P&gt;This seems to be caused the bug it is still remaining Inventor 2019 as you mentioned...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked that the drawing document causing error with Inventor 2019 works fine with Inventor 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2019 01:34:29 GMT</pubDate>
    <dc:creator>HideoYamada</dc:creator>
    <dc:date>2019-09-20T01:34:29Z</dc:date>
    <item>
      <title>General Notes Formatted Text - Linked Parameter Bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9028896#M71520</link>
      <description>&lt;P&gt;There seems to be an issue with the formatted text for general notes. You can only add a linked parameter if it is for a part file and not an assembly.&lt;/P&gt;&lt;P&gt;The below code works only if there are no assemblies on the drawing sheet. As soon as you put one on there, this code crashes every time.&lt;/P&gt;&lt;P&gt;I am trying to make a note with numerous links for an assembly files, but this bugs means that you cannot create linked parameters for assemblies. Does anyone have a work around that doesn't involve manually linking all of the files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks, Matt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oSheet As Sheet = oDoc.ActiveSheet
Dim oGNs As GeneralNotes = oSheet.DrawingNotes.GeneralNotes
Dim oTG As TransientGeometry = ThisApplication.TransientGeometry

Dim sText As String = "Drawing Notes"

Dim oNoteB As GeneralNote = oGNs.AddFitted(oTG.CreatePoint2d(5, 18), "sText")
oNoteB.FormattedText = "TEST &amp;lt;Parameter Resolved='True' ComponentIdentifier='C:\temp\test.ipt' Name='THK' Precision='2'&amp;gt;&amp;lt;/Parameter&amp;gt;"&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Sep 2019 05:05:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9028896#M71520</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2019-09-17T05:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: General Notes Formatted Text - Linked Parameter Bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9032837#M71521</link>
      <description>&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems working with an assembly for me.&lt;/P&gt;&lt;P&gt;Would you upload sample files and tell us what parameter you need?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2019 15:29:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9032837#M71521</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2019-09-18T15:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: General Notes Formatted Text - Linked Parameter Bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9033961#M71522</link>
      <description>&lt;P&gt;Hi Hideo, Thanks for your reply. There are many parameter names and types i have tried, none seem to work.&lt;/P&gt;&lt;P&gt;I have tried with both custom and default assembly templates that come with inventor and have had no success. Any files I attach would just be the default ones that come with Inventor.&lt;/P&gt;&lt;P&gt;I have tried marking the parameters as exported + key, changing the units, changing parameter name etc. but nothing has worked. Even if i am referencing a part document and there is an assembly document on the sheet it crashes. Delete the assembly and the part reference works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably should have mentioned my Inventor version, might have been fixed in a different / newer version.&lt;/P&gt;&lt;P&gt;Inventor Pro 2019 Build 330 / 2019.4&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Matt.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 02:28:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9033961#M71522</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2019-09-19T02:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: General Notes Formatted Text - Linked Parameter Bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9034829#M71523</link>
      <description>&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I don't understand what your problem is exactly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code is working, but your problem is existing at another region.&lt;/P&gt;&lt;P&gt;(The code is for VBA.)&lt;/P&gt;&lt;PRE&gt;Option Explicit

Sub AddGeneralNotes()
    Dim oDoc As DrawingDocument: Set oDoc = ThisApplication.ActiveDocument
    Dim oSheet As Sheet: Set oSheet = oDoc.ActiveSheet
    Dim oGNs As GeneralNotes: Set oGNs = oSheet.DrawingNotes.GeneralNotes
    Dim oTG As TransientGeometry: Set oTG = ThisApplication.TransientGeometry
    
    Dim oNoteB As GeneralNote
    Set oNoteB = oGNs.AddFitted(oTG.CreatePoint2d(5, 18), "sText")
    
    Dim assyPath As String
    assyPath = oSheet.DrawingViews(1).ReferencedDocumentDescriptor.FullDocumentName
    
    oNoteB.FormattedText = "TEST &amp;lt;Parameter Resolved='True' ComponentIdentifier='" &amp;amp; assyPath &amp;amp; "' Name='TestParam' Precision='2'&amp;gt;&amp;lt;/Parameter&amp;gt;"
End Sub&lt;/PRE&gt;&lt;P&gt;Sample documents are attached to this post and the code above is also stored in CubeAssy.idw.&lt;/P&gt;&lt;P&gt;Please tell me what is different from your issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 12:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9034829#M71523</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2019-09-19T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: General Notes Formatted Text - Linked Parameter Bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9036381#M71524</link>
      <description>&lt;P&gt;Thanks Hideo,&lt;/P&gt;&lt;P&gt;I downloaded your files but i am only Running Inventor 2019 at the moment. I did test out your code and it throws the same type of error as i get with my ilogic code. I guess it answers my question then, that there is a bug in Inventor for 2019 but it has been fixed in 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again, Matt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 01:05:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9036381#M71524</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2019-09-20T01:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: General Notes Formatted Text - Linked Parameter Bug</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9036402#M71525</link>
      <description>&lt;P&gt;Hello Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried on my Inventor 2019 and could reproduce your problem.&lt;/P&gt;&lt;P&gt;This seems to be caused the bug it is still remaining Inventor 2019 as you mentioned...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked that the drawing document causing error with Inventor 2019 works fine with Inventor 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;Freeradical&lt;/P&gt;&lt;P&gt;&amp;nbsp;Hideo Yamada&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 01:34:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/general-notes-formatted-text-linked-parameter-bug/m-p/9036402#M71525</guid>
      <dc:creator>HideoYamada</dc:creator>
      <dc:date>2019-09-20T01:34:29Z</dc:date>
    </item>
  </channel>
</rss>

