<?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: Annotation in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11682441#M61908</link>
    <description>&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 16:43:08 GMT</pubDate>
    <dc:creator>DeckTechnick</dc:creator>
    <dc:date>2023-01-18T16:43:08Z</dc:date>
    <item>
      <title>Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9584693#M61892</link>
      <description>&lt;P&gt;Hi, I would like to add a code that automatically puts a Annotation in my model but i cant seem to find how.&lt;BR /&gt;What I'm doing is measuring the flat pattern and if it goes above my recommended size, i want it to show up as a annotation. Pop-ups wont work well and are way to intrusive for this. I also want the note to get deleted when it goes under my specified value.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All the measuring and stuff I can do myself but I dont know how to call the API to make/delete Annotations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/784635i06402458CBA1F70D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation.png" alt="Annotation.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 11:08:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9584693#M61892</guid>
      <dc:creator>Thetigerpirro</dc:creator>
      <dc:date>2020-06-17T11:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9584736#M61893</link>
      <description>&lt;P&gt;Under the PartComponentDefinition, you should find ModelAnnotations, then depending on what type of model annotation you want, you can either go the ModelDimensions, ModelGeneralNotes, or ModelLeaderNotes (or others), then you should find options for adding one.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2020 11:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9584736#M61893</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-06-17T11:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9586610#M61894</link>
      <description>&lt;P&gt;Thanks. I have gotten a little bit further but I dont have a good grasp on how to work against API.&lt;BR /&gt;This is my code so far:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;partcompdef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;partcompdef&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN&gt;partcompdef&lt;/SPAN&gt;.&lt;SPAN&gt;ModelGeneralNoteDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"kaka"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;Any pointers?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:14:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9586610#M61894</guid>
      <dc:creator>Thetigerpirro</dc:creator>
      <dc:date>2020-06-18T06:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9586912#M61895</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3106260"&gt;@Thetigerpirro&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code will add the note:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;partcompdef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;partcompdef&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;noteDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ModelGeneralNoteDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;partcompdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelAnnotations&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelGeneralNotes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateDefinition&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"kaka"&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;onote&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ModelGeneralNote&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;partcompdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelAnnotations&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelGeneralNotes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;noteDef&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oNote&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"KAKA NOTE"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;And this code will delete it:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;partcompdef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;partcompdef&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;On&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Error&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Resume&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oNote&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ModelGeneralNote&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;partcompdef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelAnnotations&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelGeneralNotes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"KAKA NOTE"&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Name of note&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oNote&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Hope it helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kaka.PNG" style="width: 474px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/785126iFA33576E80DC6293/image-size/large?v=v2&amp;amp;px=999" role="button" title="kaka.PNG" alt="kaka.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 09:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9586912#M61895</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-06-18T09:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9978772#M61896</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;First code, in an assembly environment,&amp;nbsp; for adding the General Note works fine. But the second one the method for deleting fails.&lt;BR /&gt;&lt;BR /&gt;Do you know why? I also tried the Proxy but not sure if the implementation is similar.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Luís&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 11:13:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9978772#M61896</guid>
      <dc:creator>Luisfmts</dc:creator>
      <dc:date>2021-01-05T11:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9978818#M61897</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4307950"&gt;@Luisfmts&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that... I guess it's just a bug that you cannot delete ModelGeneralNotes in Assembly Environment.&lt;/P&gt;
&lt;P&gt;Something like this as a workaround will have to do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oAsm&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;odef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyComponentDefinition&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAsm&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;selSet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oAsm&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;selSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Clear&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;On&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Error&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Resume&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;selSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Select&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;odef&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelAnnotations&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelGeneralNotes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"KAKA NOTE"&lt;/SPAN&gt;)) &lt;SPAN style="color: #808080;"&gt;'Name of note&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AppDeleteCmd"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Execute&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 11:39:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9978818#M61897</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2021-01-05T11:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9981295#M61898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;It worked perfectly. It is always nice to learn some new workarounds like this&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 08:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/9981295#M61898</guid>
      <dc:creator>Luisfmts</dc:creator>
      <dc:date>2021-01-06T08:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10685123#M61899</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you share Code that delete all General Note in 3D Model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 09:10:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10685123#M61899</guid>
      <dc:creator>ngdnam88</dc:creator>
      <dc:date>2021-10-13T09:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10685987#M61900</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1252980"&gt;@ngdnam88&lt;/a&gt;.&amp;nbsp; Here is an iLogic rule you can try for deleting all &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-A99E02CD-B79D-4BB0-9EE6-B308C1AC6863" target="_blank" rel="noopener"&gt;ModelGeneralNote&lt;/A&gt; objects from a Part or Assembly document.&amp;nbsp; It can be used on either a Part or an Assembly, and can also be used as an external rule if needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Main
	Dim oDoc As Document = ThisApplication.ActiveDocument
	Dim oMA As ModelAnnotations
	If oDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
		Dim oADoc As AssemblyDocument = oDoc
		oMA = oADoc.ComponentDefinition.ModelAnnotations
	ElseIf oDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
		Dim oPDoc As PartDocument = oDoc
		oMA = oPDoc.ComponentDefinition.ModelAnnotations
	Else
		MsgBox("A Part or Assembly must be 'Active' for this rule to work.  Exiting.", vbExclamation, "iLogic")
		Exit Sub
	End If
	
	If oMA.ModelGeneralNotes.Count = 0 Then Exit Sub
	For Each oMGN As ModelGeneralNote In oMA.ModelGeneralNotes
		oMGN.Delete
	Next
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;
&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank" rel="noopener"&gt;My IDEAS &lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank" rel="noopener"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 15:20:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10685987#M61900</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-10-13T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10686144#M61901</link>
      <description>Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&lt;BR /&gt;It's working perfectly!</description>
      <pubDate>Wed, 13 Oct 2021 16:19:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10686144#M61901</guid>
      <dc:creator>ngdnam88</dc:creator>
      <dc:date>2021-10-13T16:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10692157#M61902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I just tested one more times and got a problem with assembly. Please help me. Thanks,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A005.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/977932i2B3BB2EC32B54F84/image-size/large?v=v2&amp;amp;px=999" role="button" title="A005.PNG" alt="A005.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 03:56:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10692157#M61902</guid>
      <dc:creator>ngdnam88</dc:creator>
      <dc:date>2021-10-16T03:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10693455#M61903</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tested one more times and got a problem with assembly. Please help me. Thanks,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="A005.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/977932i2B3BB2EC32B54F84/image-size/large?v=v2&amp;amp;px=999" role="button" title="A005.PNG" alt="A005.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 06:31:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10693455#M61903</guid>
      <dc:creator>ngdnam88</dc:creator>
      <dc:date>2021-10-17T06:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10695470#M61904</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1252980"&gt;@ngdnam88&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt; posted works for inventor 2022. For older versions though (don't know about 2021, but at least 2020 and earlier), there's a bug when it comes to deleting annotations in assemblies. That's why I wrote a workaround for that earlier in this thread. I have modified &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;'s code to use this workaround for assemblies. Hope it helps!&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Main&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMA&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ModelAnnotations&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oADoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oMA&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oADoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelAnnotations&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oMA&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelAnnotations&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"A Part or Assembly must be 'Active' for this rule to work.  Exiting."&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;vbExclamation&lt;/SPAN&gt;, &lt;SPAN style="color: #008080;"&gt;"iLogic"&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMA&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelGeneralNotes&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt; = 0 &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAssemblyDocumentObject&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSelSet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectSet&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oCol&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ObjectCollection&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientObjects&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateObjectCollection&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMGN&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ModelGeneralNote&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMA&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelGeneralNotes&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;oCol&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oMGN&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oSelSet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SelectMultiple&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oCol&lt;/SPAN&gt;)
		&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ControlDefinitions&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"AppDeleteCmd"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Execute&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMGN&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ModelGeneralNote&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMA&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ModelGeneralNotes&lt;/SPAN&gt;
			&lt;SPAN style="color: #800000;"&gt;oMGN&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;
		&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Oct 2021 12:21:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10695470#M61904</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2021-10-18T12:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10696143#M61905</link>
      <description>I'm using Inventor 2018.3. Your code is working perfectly!&lt;BR /&gt;Thanks you very much!</description>
      <pubDate>Mon, 18 Oct 2021 15:49:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/10696143#M61905</guid>
      <dc:creator>ngdnam88</dc:creator>
      <dc:date>2021-10-18T15:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11660887#M61906</link>
      <description>&lt;P&gt;Dears&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5330176"&gt;@JhoelForshav&lt;/a&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Is possible rename it to new name?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ngnam1988_0-1672988331732.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1159390i684BFE9927C3D6FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ngnam1988_0-1672988331732.png" alt="ngnam1988_0-1672988331732.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 06:53:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11660887#M61906</guid>
      <dc:creator>ngdnam88</dc:creator>
      <dc:date>2023-01-06T06:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11661440#M61907</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1252980"&gt;@ngdnam88&lt;/a&gt;.&amp;nbsp; Yes.&amp;nbsp; Much like before, you just have to dig down to that ModelGeneralNote object, then change the value of its Name property to something else.&amp;nbsp; The following code is just a very basic example for doing that in an assembly, which has just one ModelGeneralNote.&amp;nbsp; It just had its default name before running the code, then when I ran this code, it change its name to "INFO", just like in your image.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oADoc As AssemblyDocument = ThisDoc.Document
Dim oMAs As ModelAnnotations = oADoc.ComponentDefinition.ModelAnnotations
Dim oMGN As ModelGeneralNote = oMAs.ModelGeneralNotes.Item(1)
oMGN.Name = "INFO"&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 13:10:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11661440#M61907</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-01-06T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11682441#M61908</link>
      <description>&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 16:43:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11682441#M61908</guid>
      <dc:creator>DeckTechnick</dc:creator>
      <dc:date>2023-01-18T16:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11688655#M61909</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a similar problem:&lt;/P&gt;&lt;P&gt;I tried to put a note baseded&amp;nbsp; in user parameter (kind "int_ref=1.234") into a model general note (into kUpperLeftQuadrant), and when i use&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"&amp;lt;Parameter Resolved='True' ComponentIdentifier='"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;FullDocumentName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"' Name='int_ref' Precision='2'&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;"int_ref"&lt;/SPAN&gt;) &amp;amp; &lt;SPAN&gt;"&amp;lt;/Parameter&amp;gt;"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;it keep me sending the same error:&lt;/P&gt;&lt;P&gt;"The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"&lt;/P&gt;&lt;P&gt;The error persist in assamblies and parts documents.&lt;/P&gt;&lt;P&gt;Can u tell what is wrong ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 16:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/annotation/m-p/11688655#M61909</guid>
      <dc:creator>DeckTechnick</dc:creator>
      <dc:date>2023-01-18T16:42:27Z</dc:date>
    </item>
  </channel>
</rss>

