<?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: Base and Projected View Label Name to match Orientation Name in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8599891#M136577</link>
    <description>&lt;P&gt;Johnson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you, thats what it is my work computer is set to "XY" and not "From Model".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there any way i can work around this leaving it set as "XY" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
    <pubDate>Sat, 16 Feb 2019 04:39:26 GMT</pubDate>
    <dc:creator>jpchaisson</dc:creator>
    <dc:date>2019-02-16T04:39:26Z</dc:date>
    <item>
      <title>Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3432701#M136566</link>
      <description>&lt;P&gt;I would like to know if there is a way to have each view name to be set to the orientation names/ the 3D view cube's name. Is there a way to do this without manually changing each one?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 15:38:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3432701#M136566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-26T15:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3437479#M136567</link>
      <description>&lt;P&gt;Hi jbauer,&lt;/P&gt;
&lt;P&gt;you could manage this with a little macro like this:&lt;/P&gt;
&lt;PRE&gt;Sub OrientationToLabel()

Dim odoc As DrawingDocument
Set odoc = ThisApplication.ActiveDocument

'active sheet
Dim tmpSheet As Sheet
Set tmpSheet = odoc.ActiveSheet


Dim tmpView As DrawingView
'every draring view

For Each tmpView In tmpSheet.DrawingViews

Dim myDrawingViewName As String


'Which text for which orientation
Select Case tmpView.Camera.ViewOrientationType
    Case ViewOrientationTypeEnum.kBackViewOrientation
        myDrawingViewName = "Back View"
    Case ViewOrientationTypeEnum.kBottomViewOrientation
        myDrawingViewName = "Bottom View"
    Case ViewOrientationTypeEnum.kFrontViewOrientation
        myDrawingViewName = "Front View"
    Case ViewOrientationTypeEnum.kIsoBottomLeftViewOrientation
        myDrawingViewName = "Iso - Bottom Left View"
    Case ViewOrientationTypeEnum.kIsoBottomRightViewOrientation
        myDrawingViewName = "Iso - Bottom Right View"
    Case ViewOrientationTypeEnum.kIsoTopLeftViewOrientation
        myDrawingViewName = "Iso - Top Left View"
    Case ViewOrientationTypeEnum.kIsoTopRightViewOrientation
        myDrawingViewName = "Iso - Top Right View"
    Case ViewOrientationTypeEnum.kLeftViewOrientation
        myDrawingViewName = "Left View"
    Case ViewOrientationTypeEnum.kRightViewOrientation
        myDrawingViewName = "Right View"
    Case ViewOrientationTypeEnum.kTopViewOrientation
        myDrawingViewName = "Top View"
    Case Else
        myDrawingViewName = ""
    End Select

'Chang if view orientation was found
If Not myDrawingViewName = "" Then
    'change drawing view name
    tmpView.Name = myDrawingViewName
End If

Next

End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;bofore:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.autodesk.com/t5/image/serverpage/image-id/27355i3ABB31AAF5E8B8A7/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Screenshot1.png" title="Screenshot1.png" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After using the macro:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://forums.autodesk.com/t5/image/serverpage/image-id/27357i812F82255C51FE6D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Screenshot2.png" title="Screenshot2.png" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The macro will change the name of the drawing view of all view on that sheet.&lt;/P&gt;
&lt;P&gt;You can adjust the code and replace the names of the orientation with names you like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you think, this would work for you?&lt;/P&gt;
&lt;P&gt;Please use the button "Accept as Solution" if it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 14:55:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3437479#M136567</guid>
      <dc:creator>Dennis.Ossadnik</dc:creator>
      <dc:date>2012-04-30T14:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3437597#M136568</link>
      <description>&lt;P&gt;When I paste this code into the iLogic Browser, I get an error message. I attached a screenshot image of it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2012 15:36:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3437597#M136568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-30T15:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3440287#M136569</link>
      <description>&lt;P&gt;Hi jbauer,&lt;/P&gt;
&lt;P&gt;sorry, i was not aware that you wanted to use it in iLogic. The code above is for using as a macro in VBA.&lt;/P&gt;
&lt;P&gt;I changed the code. Now you should be able to use it&amp;nbsp;with iLogic:&lt;/P&gt;
&lt;P&gt;Here is the code for iLogic:&lt;/P&gt;
&lt;PRE&gt;Sub Main()

Dim odoc As DrawingDocument
odoc = ThisApplication.ActiveDocument

'active sheet
Dim tmpSheet As Sheet
tmpSheet = odoc.ActiveSheet


Dim tmpView As DrawingView
'every draring view

For Each tmpView In tmpSheet.DrawingViews

Dim myDrawingViewName As String


'Which text for which orientation
Select Case tmpView.Camera.ViewOrientationType
    Case ViewOrientationTypeEnum.kBackViewOrientation
        myDrawingViewName = "Back View"
    Case ViewOrientationTypeEnum.kBottomViewOrientation
        myDrawingViewName = "Bottom View"
    Case ViewOrientationTypeEnum.kFrontViewOrientation
        myDrawingViewName = "Front View"
    Case ViewOrientationTypeEnum.kIsoBottomLeftViewOrientation
        myDrawingViewName = "Iso - Bottom Left View"
    Case ViewOrientationTypeEnum.kIsoBottomRightViewOrientation
        myDrawingViewName = "Iso - Bottom Right View"
    Case ViewOrientationTypeEnum.kIsoTopLeftViewOrientation
        myDrawingViewName = "Iso - Top Left View"
    Case ViewOrientationTypeEnum.kIsoTopRightViewOrientation
        myDrawingViewName = "Iso - Top Right View"
    Case ViewOrientationTypeEnum.kLeftViewOrientation
        myDrawingViewName = "Left View"
    Case ViewOrientationTypeEnum.kRightViewOrientation
        myDrawingViewName = "Right View"
    Case ViewOrientationTypeEnum.kTopViewOrientation
        myDrawingViewName = "Top View"
    Case Else
        myDrawingViewName = ""
    End Select

'Chang if view orientation was found
If Not myDrawingViewName = "" Then
    'change drawing view name
    tmpView.Name = myDrawingViewName
End If

Next

End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please use the button "Accept as Solution" if it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 08:04:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3440287#M136569</guid>
      <dc:creator>Dennis.Ossadnik</dc:creator>
      <dc:date>2012-05-02T08:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3441033#M136570</link>
      <description>&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;It's greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2012 16:15:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/3441033#M136570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-02T16:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/4600173#M136571</link>
      <description>&lt;P&gt;hi &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;work great, but is you have a section in your drawing, put side view in view label name????&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2013 11:18:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/4600173#M136571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T11:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/7751323#M136572</link>
      <description>&lt;P&gt;Hey Dennis, nice bit of code - works really well! Would it be difficult to modify it to ignore detail and section views? At the moment if you have any in the drawing they get modified too so you wind up with things like "DETAIL TOP" and "LEFT-LEFT SECTION"!&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;Kevin&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 11:20:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/7751323#M136572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-05T11:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/7751378#M136573</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you please give this code a try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VBA:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub IDW_OrientationToLabel()

Dim odoc As DrawingDocument
Set odoc = ThisApplication.ActiveDocument

'active sheet
Dim tmpSheet As Sheet
Set tmpSheet = odoc.ActiveSheet


Dim tmpView As DrawingView

For Each tmpView In tmpSheet.DrawingViews

    Dim myDrawingViewName As String
    
    If tmpView.Type = kDrawingViewObject Then
    
        'Which text for which orientation
        Select Case tmpView.Camera.ViewOrientationType
            Case ViewOrientationTypeEnum.kBackViewOrientation
                myDrawingViewName = "Back View"
            Case ViewOrientationTypeEnum.kBottomViewOrientation
                myDrawingViewName = "Bottom View"
            Case ViewOrientationTypeEnum.kFrontViewOrientation
                myDrawingViewName = "Front View"
            Case ViewOrientationTypeEnum.kIsoBottomLeftViewOrientation
                myDrawingViewName = "Iso - Bottom Left View"
            Case ViewOrientationTypeEnum.kIsoBottomRightViewOrientation
                myDrawingViewName = "Iso - Bottom Right View"
            Case ViewOrientationTypeEnum.kIsoTopLeftViewOrientation
                myDrawingViewName = "Iso - Top Left View"
            Case ViewOrientationTypeEnum.kIsoTopRightViewOrientation
                myDrawingViewName = "Iso - Top Right View"
            Case ViewOrientationTypeEnum.kLeftViewOrientation
                myDrawingViewName = "Left View"
            Case ViewOrientationTypeEnum.kRightViewOrientation
                myDrawingViewName = "Right View"
            Case ViewOrientationTypeEnum.kTopViewOrientation
                myDrawingViewName = "Top View"
            Case Else
                myDrawingViewName = ""
            End Select
        
        'Change if view orientation was found
        If Not myDrawingViewName = "" Then
            'change drawing view name
            tmpView.Name = myDrawingViewName
        End If
    
    End If

    myDrawingViewName = ""

Next

End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;iLogic:&lt;/P&gt;
&lt;PRE&gt;'active sheet
Dim tmpSheet As Sheet = ThisDrawing.ActiveSheet.Sheet


Dim tmpView As DrawingView

For Each tmpView In tmpSheet.DrawingViews

    Dim myDrawingViewName As String = ""
    
	If tmpView.Type = ObjectTypeEnum.kDrawingViewObject Then
    
        'Which text for which orientation
        Select Case tmpView.Camera.ViewOrientationType
            Case ViewOrientationTypeEnum.kBackViewOrientation
                myDrawingViewName = "Back View"
            Case ViewOrientationTypeEnum.kBottomViewOrientation
                myDrawingViewName = "Bottom View"
            Case ViewOrientationTypeEnum.kFrontViewOrientation
                myDrawingViewName = "Front View"
            Case ViewOrientationTypeEnum.kIsoBottomLeftViewOrientation
                myDrawingViewName = "Iso - Bottom Left View"
            Case ViewOrientationTypeEnum.kIsoBottomRightViewOrientation
                myDrawingViewName = "Iso - Bottom Right View"
            Case ViewOrientationTypeEnum.kIsoTopLeftViewOrientation
                myDrawingViewName = "Iso - Top Left View"
            Case ViewOrientationTypeEnum.kIsoTopRightViewOrientation
                myDrawingViewName = "Iso - Top Right View"
            Case ViewOrientationTypeEnum.kLeftViewOrientation
                myDrawingViewName = "Left View"
            Case ViewOrientationTypeEnum.kRightViewOrientation
                myDrawingViewName = "Right View"
            Case ViewOrientationTypeEnum.kTopViewOrientation
                myDrawingViewName = "Top View"
            Case Else
                myDrawingViewName = ""
            End Select
        
        'Change if view orientation was found
        If Not myDrawingViewName = "" Then
            'change drawing view name
            tmpView.Name = myDrawingViewName
        End If
    
    End If

    myDrawingViewName = ""

Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better now?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 12:23:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/7751378#M136573</guid>
      <dc:creator>Dennis.Ossadnik</dc:creator>
      <dc:date>2018-02-05T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/7967871#M136574</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a 'twist' on this thread.&lt;/P&gt;&lt;P&gt;In the model representations you can create views. Is it possible to collect and use the name of the view in the title block of a sheet?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 11:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/7967871#M136574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-29T11:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8599771#M136575</link>
      <description>&lt;P&gt;Dennis,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;im into a problem with your code. when i create the Left View it labels it as Front View and Front View as Right View.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 00:14:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8599771#M136575</guid>
      <dc:creator>jpchaisson</dc:creator>
      <dc:date>2019-02-16T00:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8599884#M136576</link>
      <description>&lt;P&gt;Hi! I guess you may need to check your Style setting and see if the view is based on model XY plane or Front. Open the idw/dwg file and go to Manage -&amp;gt; Styles Editor -&amp;gt; View Preference -&amp;gt; Front View Plane. Is it set to "From Model" or one of the origin planes?&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 04:18:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8599884#M136576</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2019-02-16T04:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8599891#M136577</link>
      <description>&lt;P&gt;Johnson,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you, thats what it is my work computer is set to "XY" and not "From Model".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is there any way i can work around this leaving it set as "XY" ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Sat, 16 Feb 2019 04:39:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8599891#M136577</guid>
      <dc:creator>jpchaisson</dc:creator>
      <dc:date>2019-02-16T04:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8603630#M136578</link>
      <description>&lt;P&gt;Hi! I guess it may work but you will have to modify the code/rule so that it is changing the view you want to change. It can be a bit tricky.&lt;/P&gt;
&lt;P&gt;Many thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 18:47:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/8603630#M136578</guid>
      <dc:creator>johnsonshiue</dc:creator>
      <dc:date>2019-02-18T18:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/9661290#M136579</link>
      <description>&lt;P&gt;&lt;EM&gt;I am using this Code and&amp;nbsp; its working well for me. I was just wondering if there was a way to update the rule so that the view label scale is overridden to show NTS for the ISO views? I have tried&amp;nbsp;&lt;/EM&gt;&lt;I&gt;unsuccessfully.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 05:46:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/9661290#M136579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T05:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/11862846#M136580</link>
      <description>&lt;P&gt;Is it normal that you have to "&lt;SPAN&gt;Regenerate All Rules" before this takes effect? Or did i do something wrong?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 14:29:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/11862846#M136580</guid>
      <dc:creator>marcel.coufreur</dc:creator>
      <dc:date>2023-03-31T14:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/11868945#M136581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12465820"&gt;@marcel.coufreur&lt;/a&gt;.&amp;nbsp; That should not be needed.&amp;nbsp; However, you may just need to add an extra line of code in there at the end to update the drawing document before you will see the changes.&amp;nbsp; If using an internal iLogic rule, you can use the line:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;InventorVb.DocumentUpdate&lt;/LI-CODE&gt;
&lt;P&gt;...for that purpose.&amp;nbsp; Or if using VBA, you would use the variable for the document to update the document, similar to the following, where 'oDoc' is the variable that the DrawingDocument is assigned to:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;oDoc.Update&lt;/LI-CODE&gt;
&lt;P&gt;There is also a setting within the Document Settings of drawings, on the Drawing tab, named 'Defer Updates', which may be on (checked).&amp;nbsp; When that is checked, some changes will require you to click the update button before the changes will show on your screen.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-1E32149E-D99B-4875-AEEC-849A36DE5023" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-1E32149E-D99B-4875-AEEC-849A36DE5023&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2023 17:55:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/11868945#M136581</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-04-03T17:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12036041#M136582</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;Where exactly do I write this? I'm not really familiar with Ilogic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 14:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12036041#M136582</guid>
      <dc:creator>marcel.coufreur</dc:creator>
      <dc:date>2023-06-23T14:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12056223#M136583</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12465820"&gt;@marcel.coufreur&lt;/a&gt;.&amp;nbsp; I am not sure which of the codes above you may be trying to use, but I was referring to an iLogic rule, not a VBA macro.&amp;nbsp; If the code you are using starts with "Sub Main", and ends with "End Sub" (both unquoted), then you would need to put the code to update the document on a line just above the "End Sub".&amp;nbsp; But if your code does not have those terms enclosing the code, you could just put the line of code for updating the document at the very end, on its own line.&amp;nbsp; The "InventorVb.DocumentUpdate" line will only work within an iLogic rule, and will not be recognized in a VBA macro.&amp;nbsp; But both iLogic and VBA would both recognize a line like the following.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;ThisApplication.ActiveDocument.Update&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But to explain a bit more about the 'regenerate rules' thing, I am not sure there is an official online help page for this, but it is basically used to reconnect parameter recognition within internal iLogic rules.&amp;nbsp; What that means is, when the iLogic rule is an internal one (saved within an Inventor document), and you include the unquoted names of parameters (that exist within that same document) within that rule, that will cause the rule to be triggered to run any time the value of any of those parameters changes.&amp;nbsp; Sometimes either that triggering action, or the rule's ability to recognize that unquoted parameter name as representing a parameter gets broken some reason, clicking that tool will fix that association,&amp;nbsp; recognition, and triggering behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a link to some online help documentation that mentions this.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-C5ADE109-10E9-41A0-BC4A-BE73AA68A1C7" target="_blank" rel="noopener"&gt;To Work with Rules in iLogic&lt;/A&gt; (and scroll to the heading "Run Rules", where this is mentioned)&lt;/P&gt;
&lt;P&gt;You can also see a description of it when you hover your mouse over the Regenerate All Rules button for a while.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;When you use that tool, not only will it try to fix any problems, but it will run all of the internal iLogic rules within that document, and within any referenced documents too.&amp;nbsp; So be very careful using that tool while a large assembly may be open on your screen, and it may contain many other components that contain some internal iLogic rules.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 15:09:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12056223#M136583</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-06-23T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12140634#M136584</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;right now I have this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;()

&lt;SPAN&gt;'active sheet&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;tmpSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Sheet&lt;/SPAN&gt;


&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;tmpView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;

&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;tmpView&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;tmpSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;

    &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt;
    
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;tmpView&lt;/SPAN&gt;.&lt;SPAN&gt;Type&lt;/SPAN&gt; = &lt;SPAN&gt;ObjectTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingViewObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    
        &lt;SPAN&gt;'Which text for which orientation&lt;/SPAN&gt;
        &lt;SPAN&gt;Select&lt;/SPAN&gt; &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;tmpView&lt;/SPAN&gt;.&lt;SPAN&gt;Camera&lt;/SPAN&gt;.&lt;SPAN&gt;ViewOrientationType&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kBackViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"Achteraanzicht"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kBottomViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"Onderaanzicht"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kFrontViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"Vooraanzicht"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoBottomLeftViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"3D indruk"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoBottomRightViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"3D indruk"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoTopLeftViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"3D indruk"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kIsoTopRightViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"3D indruk"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kLeftViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"Linker zijaanzicht"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kRightViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"Rechter zijaanzicht"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;ViewOrientationTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kTopViewOrientation&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;"Bovenaanzicht"&lt;/SPAN&gt;
            &lt;SPAN&gt;Case&lt;/SPAN&gt; &lt;SPAN&gt;Else&lt;/SPAN&gt;
                &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt;
            &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Select&lt;/SPAN&gt;
        
        &lt;SPAN&gt;'Change if view orientation was found&lt;/SPAN&gt;
        &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
            &lt;SPAN&gt;'change drawing view name&lt;/SPAN&gt;
            &lt;SPAN&gt;tmpView&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt;
        &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
    
    &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

    &lt;SPAN&gt;myDrawingViewName&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt;

&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;.&lt;SPAN&gt;Update&lt;/SPAN&gt;

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; But It doesn't automatically update what am I missing?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 08:51:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12140634#M136584</guid>
      <dc:creator>marcel.coufreur</dc:creator>
      <dc:date>2023-08-01T08:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Base and Projected View Label Name to match Orientation Name</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12140990#M136585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12465820"&gt;@marcel.coufreur&lt;/a&gt;.&amp;nbsp; I slightly edit your code a bit in an attempt to maybe being able to help with the updating.&amp;nbsp; The terms 'ThisDrawing' and 'ThisApplication.ActiveDocument' can potentially be pointing to two different documents in certain situations, so eliminated both terms, and am now using the 'ThisDoc.Document' term to refer to the drawing document in the first two lines, then once I store that document reference to a variable (oDDoc), I use that same document variable at the end, to make sure I am working with the exact same document.&amp;nbsp; I also included a line to update the drawing sheet itself.&amp;nbsp; And I am using an Inventor API method of that document to update it directly, while accepting any errors that might arise, and continue.&amp;nbsp; I am also checking a related Document Setting within that drawing called Defer Updates, and if it is turned ON, that code will turn it OFF.&amp;nbsp; Give this a try, and hopefully it will update better for you.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub Main()
	If ThisDoc.Document.DocumentType &amp;lt;&amp;gt; DocumentTypeEnum.kDrawingDocumentObject Then Exit Sub
	Dim oDDoc As DrawingDocument = ThisDoc.Document
	If oDDoc.IsModifiable = False Then
		MsgBox("This drawing is not modifiable.  Exiting rule.", , "")
		Exit Sub
	End If
	If oDDoc.DrawingSettings.DeferUpdates = True Then
		oDDoc.DrawingSettings.DeferUpdates = False
	End If
	Dim oSheet As Inventor.Sheet = oDDoc.ActiveSheet
	Dim oViews As DrawingViews = oSheet.DrawingViews
	For Each oView As DrawingView In oViews
		Select Case oView.Camera.ViewOrientationType
		Case ViewOrientationTypeEnum.kBackViewOrientation
			oView.Name = "Achteraanzicht"
		Case ViewOrientationTypeEnum.kBottomViewOrientation
			oView.Name = "Onderaanzicht"
		Case ViewOrientationTypeEnum.kFrontViewOrientation
			oView.Name = "Vooraanzicht"
		Case ViewOrientationTypeEnum.kIsoBottomLeftViewOrientation
			oView.Name = "3D indruk"
		Case ViewOrientationTypeEnum.kIsoBottomRightViewOrientation
			oView.Name = "3D indruk"
		Case ViewOrientationTypeEnum.kIsoTopLeftViewOrientation
			oView.Name = "3D indruk"
		Case ViewOrientationTypeEnum.kIsoTopRightViewOrientation
			oView.Name = "3D indruk"
		Case ViewOrientationTypeEnum.kLeftViewOrientation
			oView.Name = "Linker zijaanzicht"
		Case ViewOrientationTypeEnum.kRightViewOrientation
			oView.Name = "Rechter zijaanzicht"
		Case ViewOrientationTypeEnum.kTopViewOrientation
			oView.Name = "Bovenaanzicht"
		Case Else
		End Select
	Next 'oView
	'update the sheet
	oSheet.Update
	'update the drawing, True = accept any errors and continue
	oDDoc.Update2(True)
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;...and by the way, that 'Defer Updates' setting can be found manually by going to the Tools tab &amp;gt; Options panel &amp;gt; click the Document Settings tool, activate the Drawing tab within that dialog, and there is a checkbox for that setting near the top left of that dialog.&lt;/P&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&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>Tue, 01 Aug 2023 11:57:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/base-and-projected-view-label-name-to-match-orientation-name/m-p/12140990#M136585</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-08-01T11:57:23Z</dc:date>
    </item>
  </channel>
</rss>

