<?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: Default View Label Characters in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5930213#M60158</link>
    <description>&lt;P&gt;Hi Brandon. &amp;nbsp;Thats where im heading with it but i was looking for the internal counter, not the name itself. &amp;nbsp;I havent looked too far into it yet to see if VBA has its own letter counter but i was hoping to avoid creating array A, B, C...... AA, AB etc. &amp;nbsp;I can find the excluded characters so i could just compare my list to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2015 22:31:09 GMT</pubDate>
    <dc:creator>CadUser46</dc:creator>
    <dc:date>2015-11-30T22:31:09Z</dc:date>
    <item>
      <title>Default View Label Characters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5928429#M60141</link>
      <description>&lt;P&gt;Does anyone know where the default view label characters&amp;nbsp;are in the API?&amp;nbsp; Im wondering if/where the internal counter is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to re-letter the detail and section views using the active standard rules if possible as opposed to hard coding my own lettering sequence.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Sun, 29 Nov 2015 16:54:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5928429#M60141</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2015-11-29T16:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Default View Label Characters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5930091#M60154</link>
      <description>&lt;P&gt;If you don't mind spending $5:&lt;/P&gt;&lt;P&gt;&lt;A href="https://designandmotion.net/autodesk/inventor-view-labels-whack/" target="_self"&gt;https://designandmotion.net/autodesk/inventor-view-labels-whack/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, in the API, the alphabetical view label name is in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sheet -&amp;gt; DrawingView.Name()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the API help, search DrawingView Object, scroll down to Properties, and you'll find Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 21:12:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5930091#M60154</guid>
      <dc:creator>BrandonBG</dc:creator>
      <dc:date>2015-11-30T21:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Default View Label Characters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5930213#M60158</link>
      <description>&lt;P&gt;Hi Brandon. &amp;nbsp;Thats where im heading with it but i was looking for the internal counter, not the name itself. &amp;nbsp;I havent looked too far into it yet to see if VBA has its own letter counter but i was hoping to avoid creating array A, B, C...... AA, AB etc. &amp;nbsp;I can find the excluded characters so i could just compare my list to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 22:31:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5930213#M60158</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2015-11-30T22:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Default View Label Characters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5942727#M60301</link>
      <description>&lt;P&gt;The label ID that will be used in the next view is not exposed through the API and neither is any functionality to create a view label independent of actually creating a view.&amp;nbsp; However, I went ahead and wrote a little VBA function that takes an existing view label as input and returns the next view label.&amp;nbsp; For example if I pass in "A" it will return "B".&amp;nbsp; It skips the letters not allowed in the ISO standard and will begin outputting double letters when it reaches the end of the alphabet.&amp;nbsp; For example, if I pass in "Y" it will return "AA" since "Z" is skipped.&amp;nbsp; The important function is GetNextLabel and TestViewLabel is just for testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub TestViewLabel()
    Dim i As Integer
    For i = 1 To 50
        Dim lbl As String
        Dim oldLabel As String
        oldLabel = lbl
        lbl = GetNextLabel(lbl)
        
        Debug.Print oldLabel &amp;amp; " = " &amp;amp; lbl
    Next
End Sub


Public Function GetNextLabel(Optional ByVal ExistingLabel As String = "") As String
    If ExistingLabel = "" Then
        GetNextLabel = "A"
    Else
        ExistingLabel = UCase(Trim(ExistingLabel))
        
        Dim charCount As Integer
        charCount = Len(ExistingLabel)
        
        Dim charString As String
        charString = Mid(ExistingLabel, 1, 1)
        
        Dim charCode As Integer
        charCode = Asc(charString)
        Select Case charString
            Case "H", "N", "P", "R", "W"
                ' Special case for characters before I, O, Q, S, and X. Increment
                ' by two in those cases to skip those letters which aren't to be
                ' in the ISO standard.
                charCode = charCode + 2
            Case "Y"
                ' Special case for the character before Z, so that it will start
                ' over at A but have an additional character.
                charCode = 65
                charCount = charCount + 1
            Case Else
                charCode = charCode + 1
        End Select
        
        ' Build the label string.
        Dim labelChar As String
        labelChar = Chr(charCode)
        GetNextLabel = String(charCount, labelChar)
    End If
End Function&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2015 01:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5942727#M60301</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2015-12-09T01:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Default View Label Characters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5944551#M60335</link>
      <description>&lt;P&gt;Thanks Brian. &amp;nbsp;Interesting method. &amp;nbsp;I had been doing some reading about ASCII character codes and was trying to figure out how i was going to wrap the labels after Z.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll give it a bash when i get back to it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:20:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5944551#M60335</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2015-12-09T21:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Default View Label Characters</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5951121#M60426</link>
      <description>&lt;P&gt;Just for completness i wanted to say thanks, again.&amp;nbsp; I used what you provided and it works a charm &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp; I was also reading through an old post on ModTheMachine about writing VBA for best performance and timing&amp;nbsp;which meant i had to go back and look at some of my existing code.&amp;nbsp; Everyday's a school day.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:26:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/default-view-label-characters/m-p/5951121#M60426</guid>
      <dc:creator>CadUser46</dc:creator>
      <dc:date>2015-12-14T21:26:13Z</dc:date>
    </item>
  </channel>
</rss>

