<?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: Creating automatic note number in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13234887#M3330</link>
    <description>&lt;P&gt;I could create you an add-in for that!&lt;/P&gt;
&lt;P&gt;Is that also ok?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 14:09:19 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2024-12-30T14:09:19Z</dc:date>
    <item>
      <title>Creating automatic note number</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13234813#M3329</link>
      <description>&lt;P&gt;I want an iLogic rule that creates an increasing text number string each time I insert a note into an Inventor drawing of type: "W001", W002" etc.&amp;nbsp; Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="86171VLTWG_2014_0F_0-1735563910708.png" style="width: 179px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1449900iCF30DE02D9936F28/image-dimensions/179x126?v=v2" width="179" height="126" role="button" title="86171VLTWG_2014_0F_0-1735563910708.png" alt="86171VLTWG_2014_0F_0-1735563910708.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 13:08:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13234813#M3329</guid>
      <dc:creator>86171VLTWG_2014_0F</dc:creator>
      <dc:date>2024-12-30T13:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating automatic note number</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13234887#M3330</link>
      <description>&lt;P&gt;I could create you an add-in for that!&lt;/P&gt;
&lt;P&gt;Is that also ok?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 14:09:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13234887#M3330</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2024-12-30T14:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating automatic note number</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13234903#M3331</link>
      <description>Thanks, that would be great!!&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Dec 2024 14:25:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13234903#M3331</guid>
      <dc:creator>86171VLTWG_2014_0F</dc:creator>
      <dc:date>2024-12-30T14:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating automatic note number</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13248794#M3332</link>
      <description>&lt;P&gt;I know &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;is making an Add-In but I thought I'd have a crack at it. With this code you can place multiple note leaders and it will name them all correctly! Just place the note leader how you normally would but don't enter any text! When you hit escape to back out of the tool it will update the names. Enjoy!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub Main

	Dim oDoc As DrawingDocument = ThisDoc.Document

	Dim oLeaderNotes As LeaderNotes = oDoc.ActiveSheet.DrawingNotes.LeaderNotes
	Dim oCount As Integer = oLeaderNotes.Count

	Dim oHighestNumber As New List(Of Integer)

	For Each oLeader As LeaderNote In oLeaderNotes
		If oLeader.Text.StartsWith("W")

			oHighestNumber.Add(Right(oLeader.Text, 2))

		End If
	Next

	ThisApplication.CommandManager.ControlDefinitions("DrawingLeaderTextCmd").Execute2(True)
	
	Dim oNoteNum As Integer = 1
	If oHighestNumber.Count &amp;lt;&amp;gt; 0 Then oNoteNum = oHighestNumber.Max + 1
		
	If oLeaderNotes.Count - oCount &amp;gt;= 1

		For i = oLeaderNotes.Count - (oLeaderNotes.Count - oCount) + 1 To oLeaderNotes.Count 
			
			Select Case oNoteNum
				Case &amp;lt; 10 
					oLeaderNotes(i).Text = "W00" &amp;amp; oNoteNum
				Case &amp;lt; 100 
					oLeaderNotes(i).Text = "W0" &amp;amp; oNoteNum
				Case &amp;gt;= 100
					oLeaderNotes(i).Text = "W" &amp;amp; oNoteNum
			End Select
			
			oNoteNum += 1

		Next

	Else

		Exit Sub

	End If
	
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 18:24:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/creating-automatic-note-number/m-p/13248794#M3332</guid>
      <dc:creator>C_Haines_ENG</dc:creator>
      <dc:date>2025-01-08T18:24:52Z</dc:date>
    </item>
  </channel>
</rss>

