<?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: Copying views into another sheet (iLogic or API ) in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5861979#M115148</link>
    <description>Either select your base view first or use command manager</description>
    <pubDate>Wed, 14 Oct 2015 20:13:58 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2015-10-14T20:13:58Z</dc:date>
    <item>
      <title>Copying views into another sheet (iLogic or API )</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5844188#M115145</link>
      <description>&lt;P&gt;Suppoese I have series of catalogue drawings of &lt;STRONG&gt;AssemblyA.dwg&lt;/STRONG&gt;&amp;nbsp;and &lt;STRONG&gt;AssemblyB. dwg &amp;nbsp;&lt;/STRONG&gt;that are completed.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;(Each set contains a lot of version.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I need to create an Assembly drawings called &lt;STRONG&gt;AssemblyA-B.dwg&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; which contains&amp;nbsp;&lt;STRONG&gt;AssemblyA.dwg&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and &lt;/SPAN&gt;&lt;STRONG&gt;AssemblyB. dwg&lt;/STRONG&gt;&amp;nbsp;as subassemblies&lt;STRONG&gt;. &lt;/STRONG&gt;I need to create an automatik task to create the all of combination of the&amp;nbsp;&lt;STRONG&gt;AssemblyA-B.dwg&lt;/STRONG&gt;s without manually copying and pasting the views. The code will place &amp;nbsp;(or change in prepared template &amp;nbsp;) the views of the&amp;nbsp;&lt;STRONG&gt;AssemblyA.dwg&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;AssemblyB. dwg &lt;/STRONG&gt;into&amp;nbsp;&lt;STRONG&gt;AssemblyA-B.dwg&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a solution for ilogic or API? (I logic preferred)&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 15:04:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5844188#M115145</guid>
      <dc:creator>ulasdeniz</dc:creator>
      <dc:date>2015-10-04T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Copying views into another sheet (iLogic or API )</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5848724#M115146</link>
      <description>&lt;P&gt;Hi Ulas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an iLogic code to copy view from one sheet to a sheet in another drawing.&lt;/P&gt;
&lt;P&gt;You may need to tweak the view index and the file path to suit your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oSrcDwg As DrawingDocument
oSrcDwg = ThisApplication.ActiveDocument

Dim oDestDwg As DrawingDocument
oDestDwg = ThisApplication.Documents.Open("D:\Temp\Inventor\MyProj\Axle\Test.dwg")
    
Dim oView As DrawingView
If oSrcDwg.ActiveSheet.DrawingViews.Count &amp;lt; 1 Then
    MsgBox ("No views found in the source drawing !")
    Return
End If

oView = oSrcDwg.ActiveSheet.DrawingViews(1)

Dim oSheet As Sheet
For Each oSheet In oDestDwg.Sheets
    oSheet.Activate
    Call oView.CopyTo(oSheet)
    Exit For
Next

Call oDestDwg.Save
Call oDestDwg.Close(False)&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Balaji&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 08:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5848724#M115146</guid>
      <dc:creator>Balaji_Ram</dc:creator>
      <dc:date>2015-10-07T08:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Copying views into another sheet (iLogic or API )</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5861109#M115147</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/765444"&gt;@Balaji_Ram﻿&lt;/a&gt; Thanks for this example, but I would like to go a step further. How should can we handle multiple views that depend on each other?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oSrcDwg.ActiveSheet.DrawingViews(1) = base view&lt;/P&gt;&lt;P&gt;oSrcDwg.ActiveSheet.DrawingViews(2) = Section from base view&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to copy the section + the base view to my new dwg. How should I handle this?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:13:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5861109#M115147</guid>
      <dc:creator>Jef_E</dc:creator>
      <dc:date>2015-10-14T14:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Copying views into another sheet (iLogic or API )</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5861979#M115148</link>
      <description>Either select your base view first or use command manager</description>
      <pubDate>Wed, 14 Oct 2015 20:13:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/5861979#M115148</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2015-10-14T20:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Copying views into another sheet (iLogic or API )</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/8704291#M115149</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3139519"&gt;@Jef_E&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/765444"&gt;@Balaji_Ram&lt;/a&gt; Thanks for this example, but I would like to go a step further. How should can we handle multiple views that depend on each other?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to be able to do this, too. The copy/paste via Command Manager isn't a good solution. It's not pure-API, it's clunky, and it results in duplicates of the Views (with new Labels) rather than moving the Views themselves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I created an idea for this here:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/ilogic-api-move-multiple-drawing-views-to-different-sheet-at/idi-p/8704281" target="_blank" rel="noopener"&gt;iLogic/API: Move or Copy multiple Drawing Views to different sheet at once&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please consider giving it a vote.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 13:10:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/copying-views-into-another-sheet-ilogic-or-api/m-p/8704291#M115149</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-04-03T13:10:03Z</dc:date>
    </item>
  </channel>
</rss>

