<?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: how to know if a view is baseview with vb.net? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3773833#M132538</link>
    <description>&lt;P&gt;Hi &lt;FONT size="-2"&gt;&lt;STRONG&gt;Rocky&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just made a cube and generated a base view, a top view,a right view and an iso view. Then I change the view scale of the iso view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I want the code to tell me which one's scale is changed and it is not a base view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2013 23:44:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-08T23:44:08Z</dc:date>
    <item>
      <title>how to know if a view is baseview with vb.net?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3769654#M132533</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While loop through all Views in a sheet, I can use oView.ScaleFromBase to know if the scale of the view is changed from Base-View. Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;  For Each oView In oViews
                If oView.ScaleFromBase = False Then&lt;BR /&gt;                    'This view's scale is different from that of the Base-View &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;But I can't tell in this way if it is a Base-View or views with different view scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a oView.ViewType,&amp;nbsp; I tried this&lt;/P&gt;&lt;PRE&gt;Dim mytype As String
mytype = oView.ViewType&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for Base-View, mytype=10501&lt;/P&gt;&lt;P&gt;for other-view with different scale, mytype=10504&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there other property I could use? Can't work out how to get the View Type Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 11:01:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3769654#M132533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-05T11:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to know if a view is baseview with vb.net?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3769847#M132534</link>
      <description>&lt;P&gt;You may check oView.ParentView property.&lt;/P&gt;
&lt;P&gt;For base view it returns Nothing.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 15:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3769847#M132534</guid>
      <dc:creator>Vladimir.Ananyev</dc:creator>
      <dc:date>2013-02-05T15:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to know if a view is baseview with vb.net?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3770392#M132535</link>
      <description>&lt;P&gt;Hi Vladimir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, but both baseview and view whose scale if different from baseview return a Nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;            Dim myView As DrawingView

            For Each oView In oViews
                If oView.ScaleFromBase = False Then

                    myView = oView.ParentView

                    If myView Is Nothing Then
                        MsgBox("nothing")
                    Else
                        MsgBox("something")
                    end if
                 end if
             next  &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 00:47:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3770392#M132535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-06T00:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to know if a view is baseview with vb.net?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3770560#M132536</link>
      <description>&lt;P&gt;Can you attach the data that you see the problem? Or double check the drawing view which has different scale from its parent view does have a parent view or not?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 09:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3770560#M132536</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2013-02-06T09:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to know if a view is baseview with vb.net?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3772348#M132537</link>
      <description>&lt;P&gt;You can check this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;For each oView in oViews
     If oView.ViewType = Inventor.DrawingViewTypeEnum.kStandardDrawingViewType Then
          Debug.Print("This is a base view")
     Else
          Debug.Print("This is not a base view")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Or you can check the oView.Aligned property but this will also return false if the alignment has been broken from the base view.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3772348#M132537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-07T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to know if a view is baseview with vb.net?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3773833#M132538</link>
      <description>&lt;P&gt;Hi &lt;FONT size="-2"&gt;&lt;STRONG&gt;Rocky&lt;/STRONG&gt;&lt;/FONT&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just made a cube and generated a base view, a top view,a right view and an iso view. Then I change the view scale of the iso view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I want the code to tell me which one's scale is changed and it is not a base view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 23:44:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3773833#M132538</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T23:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to know if a view is baseview with vb.net?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3773834#M132539</link>
      <description>&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's works for me. thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2013 23:45:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-know-if-a-view-is-baseview-with-vb-net/m-p/3773834#M132539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-08T23:45:24Z</dc:date>
    </item>
  </channel>
</rss>

