<?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: List all view scale on current sheet in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10127070#M27706</link>
    <description>&lt;P&gt;thanks!!&lt;/P&gt;&lt;P&gt;some like this? but how&amp;nbsp; can read the scale of vw?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  Dim CTAV As ViewSheet = doc.ActiveView
  Dim LISTVIEW As IList(Of Viewport) = CTAV.GetAllPlacedViews()

        For Each vw As Viewport In LISTVIEW


        Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 15:53:47 GMT</pubDate>
    <dc:creator>stefano.cartaKGT96</dc:creator>
    <dc:date>2021-03-03T15:53:47Z</dc:date>
    <item>
      <title>List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10126514#M27704</link>
      <description>&lt;P&gt;Hi guys..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would to make a list of all view on the current sheet and find relative view scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt; csheet = doc.ActiveView
 For Each vw As Viewport In csheet.view


  Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thinking to use this..but&amp;nbsp; csheet.view is not correct..&lt;/P&gt;&lt;P&gt;Where I can find a sample? What approch I have to follow?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 13:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10126514#M27704</guid>
      <dc:creator>stefano.cartaKGT96</dc:creator>
      <dc:date>2021-03-03T13:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10126685#M27705</link>
      <description>&lt;P&gt;First cast your active view to a ViewSheet using :&amp;nbsp;&lt;/P&gt;&lt;P&gt;var sheet = doc.ActiveView as ViewSheet&lt;/P&gt;&lt;P&gt;then use sheet.GetAllPlacedViews() to find the views placed on your sheet.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 13:56:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10126685#M27705</guid>
      <dc:creator>ridaabderrahmane</dc:creator>
      <dc:date>2021-03-03T13:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10127070#M27706</link>
      <description>&lt;P&gt;thanks!!&lt;/P&gt;&lt;P&gt;some like this? but how&amp;nbsp; can read the scale of vw?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  Dim CTAV As ViewSheet = doc.ActiveView
  Dim LISTVIEW As IList(Of Viewport) = CTAV.GetAllPlacedViews()

        For Each vw As Viewport In LISTVIEW


        Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 15:53:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10127070#M27706</guid>
      <dc:creator>stefano.cartaKGT96</dc:creator>
      <dc:date>2021-03-03T15:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10127091#M27707</link>
      <description>&lt;P&gt;view.Scale&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 15:59:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10127091#M27707</guid>
      <dc:creator>ridaabderrahmane</dc:creator>
      <dc:date>2021-03-03T15:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10127760#M27708</link>
      <description>&lt;P&gt;sorry..but I have problem with the view.scale&lt;/P&gt;&lt;P&gt;in the for each I can't utilize viwp.scale because scale is not a member of viwp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt; Dim CTAV As ViewSheet = doc.ActiveView
        Dim LIST As IList(Of Viewport) = CTAV.GetAllPlacedViews()

        For Each viwp As Viewport In LIST

            

        Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 19:30:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10127760#M27708</guid>
      <dc:creator>stefano.cartaKGT96</dc:creator>
      <dc:date>2021-03-03T19:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10128750#M27709</link>
      <description>&lt;P&gt;I work in C# - I think this is it:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;    For Each viwp As Viewport In LIST
		Dim view as View = doc.GetElement(viwp.OwnerViewId)
		Dim sc as Double = view.Scale
		...
	Next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 05:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10128750#M27709</guid>
      <dc:creator>peteregan</dc:creator>
      <dc:date>2021-03-04T05:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10131292#M27710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8643905"&gt;@stefano.cartaKGT96&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="GetAllPlacedViews " href="https://www.revitapidocs.com/2020/816db942-4e9c-7278-7f59-53048becc46a.htm" target="_blank" rel="noopener"&gt;GetAllPlacedViews &lt;/A&gt;&amp;nbsp;returns a list (Iset) of Elementid's not Viewport elements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See fragment below, this retrieves all unique scales.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;If TypeOf (doc.ActiveView) Is ViewSheet Then
	Dim VS As ViewSheet = CType(doc.ActiveView, ViewSheet)
	
	Dim ViewScales As New List(Of Integer)
		For Each ViewId As ElementId In VS.GetAllPlacedViews
			Dim ViewElem As View = CType(doc.GetElement(ViewId), View)
			Dim Scale As Integer = ViewElem.Scale
			If Not (ViewScales.Contains(Scale)) Then ViewScales.Add(Scale)
		Next

	'ViewScales.Distinct 'Or use distinct after all scales are added.

End If&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Michel&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 20:29:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10131292#M27710</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2021-03-04T20:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: List all view scale on current sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10131316#M27711</link>
      <description>&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;Tomorrow I will try your code...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 20:39:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/list-all-view-scale-on-current-sheet/m-p/10131316#M27711</guid>
      <dc:creator>stefano.cartaKGT96</dc:creator>
      <dc:date>2021-03-04T20:39:54Z</dc:date>
    </item>
  </channel>
</rss>

