<?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 change default viewcube orientation through API in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5475543#M53683</link>
    <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do what I describe&amp;nbsp;in the title but with no luck.&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;building an assembly from scratch and I want the orientation to be different than the default because when&amp;nbsp;creating drawings using&amp;nbsp;topview&amp;nbsp;the result&amp;nbsp;is as if I used&amp;nbsp;frontview.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can change the orientation permanently&amp;nbsp;from &lt;STRONG&gt;&lt;EM&gt;tools-&amp;gt;application options--&amp;gt;display--&amp;gt;viewcube--&amp;gt;default view cube orientation&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;but I would rather do it through the API so that I wouldn't&amp;nbsp;have concerns&amp;nbsp;of what each user has as a preference in his/her PC and after finishing with the assembly I could restore the user's options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jan 2015 12:34:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-20T12:34:03Z</dc:date>
    <item>
      <title>change default viewcube orientation through API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5475543#M53683</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to do what I describe&amp;nbsp;in the title but with no luck.&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;building an assembly from scratch and I want the orientation to be different than the default because when&amp;nbsp;creating drawings using&amp;nbsp;topview&amp;nbsp;the result&amp;nbsp;is as if I used&amp;nbsp;frontview.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can change the orientation permanently&amp;nbsp;from &lt;STRONG&gt;&lt;EM&gt;tools-&amp;gt;application options--&amp;gt;display--&amp;gt;viewcube--&amp;gt;default view cube orientation&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;but I would rather do it through the API so that I wouldn't&amp;nbsp;have concerns&amp;nbsp;of what each user has as a preference in his/her PC and after finishing with the assembly I could restore the user's options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2015 12:34:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5475543#M53683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-20T12:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: change default viewcube orientation through API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5478015#M53714</link>
      <description>&lt;P&gt;Unfortunately the APIs for view cube orientation options have not been exposed yet. But I am curiouse about what you said&amp;nbsp;"&lt;SPAN&gt;when&amp;nbsp;creating drawings using&amp;nbsp;topview&amp;nbsp;the result&amp;nbsp;is as if I used&amp;nbsp;frontview.&lt;/SPAN&gt;", when you create a drawing view you are able to specify the orientation of model so seems you need not to change the view cube options at all. Can you explain more about what you want to do when create a drawing view?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 07:43:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5478015#M53714</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-01-22T07:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: change default viewcube orientation through API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5478028#M53715</link>
      <description>&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, after creating the assembly I add baseviews in a drawing and when placing the baseviews I use the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DrawingViews.AddBaseView Method DrawingViews.&lt;STRONG&gt;AddBaseView&lt;/STRONG&gt;( &lt;STRONG&gt;&lt;EM&gt;Model&lt;/EM&gt;&lt;/STRONG&gt; As &lt;A target="_blank" href="https://forums.autodesk.com/HTML/Document.htm"&gt;Document&lt;/A&gt;, &lt;STRONG&gt;&lt;EM&gt;Position&lt;/EM&gt;&lt;/STRONG&gt; As &lt;A target="_blank" href="https://forums.autodesk.com/HTML/Point2d.htm"&gt;Point2d&lt;/A&gt;, &lt;STRONG&gt;&lt;EM&gt;Scale&lt;/EM&gt;&lt;/STRONG&gt; As Double, &lt;STRONG&gt;&lt;EM&gt;ViewOrientation&lt;/EM&gt;&lt;/STRONG&gt; As &lt;A target="_blank" href="https://forums.autodesk.com/HTML/ViewOrientationTypeEnum.htm"&gt;ViewOrientationTypeEnum&lt;/A&gt;, &lt;STRONG&gt;&lt;EM&gt;ViewStyle&lt;/EM&gt;&lt;/STRONG&gt; As &lt;A target="_blank" href="https://forums.autodesk.com/HTML/DrawingViewStyleEnum.htm"&gt;DrawingViewStyleEnum&lt;/A&gt;, [&lt;STRONG&gt;&lt;EM&gt;ModelViewName&lt;/EM&gt;&lt;/STRONG&gt;] As String, [&lt;STRONG&gt;&lt;EM&gt;ArbitraryCamera&lt;/EM&gt;&lt;/STRONG&gt;] As Variant, [&lt;STRONG&gt;&lt;EM&gt;AdditionalOptions&lt;/EM&gt;&lt;/STRONG&gt;] As Variant )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, If I want the baseview to be displayd&amp;nbsp;as if someone is looking at the assembly from above I use&amp;nbsp;kTopViewOrientation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I clarified what I want to do and where the problem is.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 07:54:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5478028#M53715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-22T07:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: change default viewcube orientation through API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5479488#M53737</link>
      <description>&lt;P&gt;As you said "&lt;SPAN&gt;when&amp;nbsp;creating drawings using&amp;nbsp;topview&amp;nbsp;the result&amp;nbsp;is as if I used&amp;nbsp;frontview&lt;/SPAN&gt;",so seems you want to create a base view with model's "Top" orientation but you expect model's "Top" is not currently the model's top defined by the view cube, right? If so, you&amp;nbsp;can choose one of below three methods:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. To specify a different ViewOrientation value for AddBaseview which can make the view displays the model's "Top" as you expected, but the value maybe &lt;SPAN&gt;&amp;nbsp;kBackViewOrientation&amp;nbsp;&lt;/SPAN&gt;or&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;kBottomViewOrientation etc., but need you to check it first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. Use custom camera to specify the view orientation for&amp;nbsp;AddBaseview. You need to input kArbitraryViewOrientation for the&amp;nbsp;ViewOrientation argument, and then provide a value for the&amp;nbsp;ArbitraryCamera argument which specify a custom model view orientation as you expected.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. In the model you can rotate the model to be the orientation you think it should be "Top", and then call the View.SetCurrentAsTop and save the model document. Then in drawing you call the AddBaseview and specify the&amp;nbsp;ViewOrientation argument the&amp;nbsp;&amp;nbsp;kTopViewOrientation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope above suggestions help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 02:39:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5479488#M53737</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2015-01-23T02:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: change default viewcube orientation through API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5479568#M53739</link>
      <description>&lt;HR /&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715"&gt;@YuhanZhang&lt;/a&gt; wrote:&lt;/P&gt;&lt;P&gt;As you said "&lt;SPAN&gt;when&amp;nbsp;creating drawings using&amp;nbsp;topview&amp;nbsp;the result&amp;nbsp;is as if I used&amp;nbsp;frontview&lt;/SPAN&gt;",so seems you want to create a base view with model's "Top" orientation but you expect model's "Top" is not currently the model's top defined by the view cube, right?&lt;/P&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;exactly right!&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/532715"&gt;@YuhanZhang&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;you&amp;nbsp;can choose one of below three methods:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. To specify a different ViewOrientation value for AddBaseview which can make the view displays the model's "Top" as you expected, but the value maybe &lt;SPAN&gt;&amp;nbsp;kBackViewOrientation&amp;nbsp;&lt;/SPAN&gt;or&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;kBottomViewOrientation etc., but need you to check it first.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Use custom camera to specify the view orientation for&amp;nbsp;AddBaseview. You need to input kArbitraryViewOrientation for the&amp;nbsp;ViewOrientation argument, and then provide a value for the&amp;nbsp;ArbitraryCamera argument which specify a custom model view orientation as you expected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. In the model you can rotate the model to be the orientation you think it should be "Top", and then call the View.SetCurrentAsTop and save the model document. Then in drawing you call the AddBaseview and specify the&amp;nbsp;ViewOrientation argument the&amp;nbsp;&amp;nbsp;kTopViewOrientation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope above suggestions help.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;The first method is something I also thought of but is counterintuitive&amp;nbsp;and so, I would only use it if there was no other option.&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;The second is very promising and I will test it right now&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;The third is something I tried but I couldn't see the rotation I was hoping. In fact There was no rotation. Obviously I did something wrong. What I did, was to create a Matrix instance and set its properties&amp;nbsp;to the desired values and then, use that matrix to place the first part in to an empty assembly. But whatever I tried I was always getting the same result....&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 06:00:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/change-default-viewcube-orientation-through-api/m-p/5479568#M53739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-23T06:00:54Z</dc:date>
    </item>
  </channel>
</rss>

