<?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 Place assembly view from dialog box in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474146#M108533</link>
    <description>&lt;P&gt;I have some iLogic written to place a view of an assembly in my drawing sheet to the scale I want. Is there a way to use a dialog box to select the assembly file I want to use rather than specify the full path in the code?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 17:23:44 GMT</pubDate>
    <dc:creator>jishee</dc:creator>
    <dc:date>2020-04-27T17:23:44Z</dc:date>
    <item>
      <title>Place assembly view from dialog box</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474146#M108533</link>
      <description>&lt;P&gt;I have some iLogic written to place a view of an assembly in my drawing sheet to the scale I want. Is there a way to use a dialog box to select the assembly file I want to use rather than specify the full path in the code?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:23:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474146#M108533</guid>
      <dc:creator>jishee</dc:creator>
      <dc:date>2020-04-27T17:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Place assembly view from dialog box</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474150#M108534</link>
      <description>&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oPartDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;(&lt;SPAN&gt;"C:\Users\jishee\Documents\Work\Inventor_modeling\Dimensioning_Test\U001_Assembly.iam"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
	
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN&gt;oSheet&lt;/SPAN&gt; = &lt;SPAN&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(1)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPoint1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;
&lt;SPAN&gt;oPoint1&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(4.5#, 6#)
	
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN&gt;oView1&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN&gt;AddBaseView&lt;/SPAN&gt;(&lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;, &lt;SPAN&gt;oPoint1&lt;/SPAN&gt;, 0.03125#, &lt;SPAN&gt;kFrontViewOrientation&lt;/SPAN&gt;, &lt;SPAN&gt;kHiddenLineRemovedDrawingViewStyle&lt;/SPAN&gt;)

&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN&gt;View&lt;/SPAN&gt;(&lt;SPAN&gt;oView1&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;).&lt;SPAN&gt;SetCenter&lt;/SPAN&gt;(4.5, 6)

&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Close&lt;/SPAN&gt;(&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:24:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474150#M108534</guid>
      <dc:creator>jishee</dc:creator>
      <dc:date>2020-04-27T17:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Place assembly view from dialog box</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474176#M108537</link>
      <description>&lt;P&gt;I added i filebrowser to select iam file to your code. Is this what you're looking for? &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileDialog&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateFileDialog&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Filter&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Inventor Assembly Files (*.iam)|*.iam"&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowOpen&lt;/SPAN&gt;() &lt;SPAN style="color: #808080;"&gt;' to open files&lt;/SPAN&gt;


&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;AssemblyDocument&lt;/SPAN&gt;

&lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDrawingDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
	
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPoint1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Point2d&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oPoint1&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePoint2d&lt;/SPAN&gt;(4.5#, 6#)
	
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oView1&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddBaseView&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oPoint1&lt;/SPAN&gt;, 0.03125#, &lt;SPAN style="color: #800000;"&gt;kFrontViewOrientation&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;kHiddenLineRemovedDrawingViewStyle&lt;/SPAN&gt;)

&lt;SPAN style="color: #800080;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;View&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oView1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;).&lt;SPAN style="color: #800080;"&gt;SetCenter&lt;/SPAN&gt;(4.5, 6)

&lt;SPAN style="color: #ff0000;"&gt;Call&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPartDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:37:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474176#M108537</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-04-27T17:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Place assembly view from dialog box</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474272#M108540</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4018433"&gt;@jishee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example if you want to be able to select ipt and ipn&amp;nbsp; aswell.&lt;/P&gt;&lt;P&gt;Also in this example i added code so that if the file is already open in inventor, it doesnt close it when the rule is done.&lt;/P&gt;&lt;P&gt;If it isn't already open however, the file gets closed like in the previous code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileDialog&lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreateFileDialog&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;)
&lt;SPAN style="color: #ff0000;"&gt;With&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;
	.&lt;SPAN style="color: #800000;"&gt;Filter&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"Assembly File (*.iam)|*.iam"&lt;/SPAN&gt; _
	&amp;amp; &lt;SPAN style="color: #008080;"&gt;"|Part File (*.ipt)|*.ipt"&lt;/SPAN&gt; _
	&amp;amp; &lt;SPAN style="color: #008080;"&gt;"|Presentation File (*.ipn)|*.ipn"&lt;/SPAN&gt; 
	.&lt;SPAN style="color: #800000;"&gt;FilterIndex&lt;/SPAN&gt; = 1
	.&lt;SPAN style="color: #800000;"&gt;InitialDirectory&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DesignProjectManager&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDesignProject&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;WorkspacePath&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;With&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'oDlg.Filter = "Inventor Assembly Files (*.iam)|*.iam"&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowOpen&lt;/SPAN&gt;() &lt;SPAN style="color: #808080;"&gt;' to open files&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;""&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Exit&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CloseWhenDone&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ItemByName&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt;) &lt;SPAN style="color: #808080;"&gt;'Get the document if it's already open.&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Catch&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Documents&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Open&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDlg&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FileName&lt;/SPAN&gt;, &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;CloseWhenDone&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;'If document wasn't already open, close it again after view is placed.&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Try&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oDrawingDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
	
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDrawingDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sheets&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPoint1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Point2d&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oPoint1&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePoint2d&lt;/SPAN&gt;(4.5#, 6#)
	
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;oView1&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddBaseView&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;oPoint1&lt;/SPAN&gt;, 0.03125#, &lt;SPAN style="color: #800000;"&gt;kFrontViewOrientation&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;kHiddenLineRemovedDrawingViewStyle&lt;/SPAN&gt;)

&lt;SPAN style="color: #800080;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;View&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oView1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt;).&lt;SPAN style="color: #800080;"&gt;SetCenter&lt;/SPAN&gt;(4.5, 6)

&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;CloseWhenDone&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Close&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Apr 2020 18:09:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/place-assembly-view-from-dialog-box/m-p/9474272#M108540</guid>
      <dc:creator>JhoelForshav</dc:creator>
      <dc:date>2020-04-27T18:09:29Z</dc:date>
    </item>
  </channel>
</rss>

