<?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: Positional Representation Name in Drawing View Label or Text in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798528#M53265</link>
    <description>&lt;P&gt;Unfortunately if your not seeing it the drawing view properties then it likely doesn't exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an ilogic method to retrieve the pos rep for each view and put it in the view label. Majority of the code sourced from this helpful&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/design-view-name-on-drawings/m-p/10803819#M848972" target="_blank" rel="noopener"&gt;post to retrieve design view rep name.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And to get the Active Position Rep here is the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=DrawingView" target="_blank" rel="noopener"&gt;API help for that property from the drawing view object&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need a specific format in the label there is many methods to achieve this and you can search on the ilogic customization forum.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oSheets As Sheets
Dim oSheet As Sheet
Dim oViews As DrawingViews
Dim oView As DrawingView
Dim ViewRep As String
Dim PosRep As String

oSheets = ThisDoc.Document.Sheets

For Each oSheet In oSheets
	oViews = oSheet.DrawingViews
    	For Each oView In oViews
			oView.ShowLabel = True

			ViewRep = oView.DesignViewRepresentation
            PosRep = oView.ActivePositionalRepresentation	

            oView.Label.FormattedText = "Design View Rep: " &amp;amp; ViewRep &amp;amp; "Positional View Rep: " &amp;amp; PosRep
    	Next
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Mar 2023 18:54:41 GMT</pubDate>
    <dc:creator>A.Acheson</dc:creator>
    <dc:date>2023-03-04T18:54:41Z</dc:date>
    <item>
      <title>Positional Representation Name in Drawing View Label or Text</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11797475#M53264</link>
      <description>&lt;P&gt;I have an assembly with multiple positional representations, and am creating a drawing for it. I would like to show these positional representations with separate views. (Yes, I know about Overlay, have used that on some other drawings. This particular one will be clearer to understand showing the PosReps in separate views.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make things clear for the reader &amp;amp; easy for me, I wanted to pull the PosRep name into the view label or a note, but cannot seem to locate the correct Type/Source/Property combination to do so. Is this capability available in Inventor? Entirely possible it's right under my nose and I've missed it, I'm into my 6th month-ish of using Inventor, but so far I have been unable to locate it. Nor was I able to find any forum posts about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 00:56:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11797475#M53264</guid>
      <dc:creator>rcolquhounPUE4B</dc:creator>
      <dc:date>2023-03-04T00:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Positional Representation Name in Drawing View Label or Text</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798528#M53265</link>
      <description>&lt;P&gt;Unfortunately if your not seeing it the drawing view properties then it likely doesn't exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an ilogic method to retrieve the pos rep for each view and put it in the view label. Majority of the code sourced from this helpful&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/design-view-name-on-drawings/m-p/10803819#M848972" target="_blank" rel="noopener"&gt;post to retrieve design view rep name.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And to get the Active Position Rep here is the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=DrawingView" target="_blank" rel="noopener"&gt;API help for that property from the drawing view object&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need a specific format in the label there is many methods to achieve this and you can search on the ilogic customization forum.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oSheets As Sheets
Dim oSheet As Sheet
Dim oViews As DrawingViews
Dim oView As DrawingView
Dim ViewRep As String
Dim PosRep As String

oSheets = ThisDoc.Document.Sheets

For Each oSheet In oSheets
	oViews = oSheet.DrawingViews
    	For Each oView In oViews
			oView.ShowLabel = True

			ViewRep = oView.DesignViewRepresentation
            PosRep = oView.ActivePositionalRepresentation	

            oView.Label.FormattedText = "Design View Rep: " &amp;amp; ViewRep &amp;amp; "Positional View Rep: " &amp;amp; PosRep
    	Next
Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 18:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798528#M53265</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-03-04T18:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Positional Representation Name in Drawing View Label or Text</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798544#M53266</link>
      <description>&lt;P&gt;Alas, as I feared, but thanks for confirming. The&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-forum/design-view-name-on-drawings/m-p/10803819#M848972" target="_blank" rel="noopener"&gt;post to retrieve design view rep name&lt;/A&gt;&amp;nbsp;was more what I was looking for, i.e. how to pull the active pos rep name from a selected view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you happen to have a code snippet which prompts the user for a view selection &amp;amp; returns the DrawingView object? I have spent nearly 0 time with iLogic, but looks like I could just jam that together with the bit buried inside your for-loops to do what I want?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 19:11:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798544#M53266</guid>
      <dc:creator>rcolquhounPUE4B</dc:creator>
      <dc:date>2023-03-04T19:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Positional Representation Name in Drawing View Label or Text</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798762#M53267</link>
      <description>&lt;P&gt;Sure, i believe there is an ilogic snippet buried in the ilogic editor for the pick command, it is hard to find and use unless you have seen enough samples. But here is the source from &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=CommandManager_Pick_Sample" target="_blank" rel="noopener"&gt;API help. &lt;/A&gt;The sample is written in VBA so needs tweeeking for the ilogic environment. To pick&amp;nbsp; a specific object you need to set the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=SelectionFilterEnum" target="_blank" rel="noopener"&gt;Selection filter Enumerator.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    Dim oDrawView As DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.&lt;SPAN&gt;kDrawingViewFilter&lt;/SPAN&gt;, "Pick a Drawing View!")

    MsgBox "Picked: " &amp;amp; oDrawView.Name&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 22:02:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798762#M53267</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2023-03-04T22:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Positional Representation Name in Drawing View Label or Text</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798956#M53268</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7946284"&gt;@A.Acheson&lt;/a&gt;&amp;nbsp;thanks much for the pointers &amp;amp; snippets. Got it working without too much trouble - finalized script below.&lt;/P&gt;&lt;P&gt;For those who pick this up later, this also adds the view scale in parentheses, so if you don't want that, be sure to take it out of the view label string.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim PosRep As String
Dim oView As DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select Drawing View.")

oView.ShowLabel = True
PosRep = oView.ActivePositionalRepresentation
oView.Label.FormattedText = PosRep &amp;amp; vbCrLf &amp;amp; "(" &amp;amp; oView.ScaleString &amp;amp; ")"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 02:26:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/positional-representation-name-in-drawing-view-label-or-text/m-p/11798956#M53268</guid>
      <dc:creator>rcolquhounPUE4B</dc:creator>
      <dc:date>2023-03-05T02:26:35Z</dc:date>
    </item>
  </channel>
</rss>

