<?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 Export Layout tabs into seperate drawings. in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/export-layout-tabs-into-seperate-drawings/m-p/1632093#M34752</link>
    <description>What is the best method of copying out layouts from a drawing into seperate &lt;BR /&gt;
drawings named after the  layout tab itself.</description>
    <pubDate>Wed, 03 May 2006 15:35:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-05-03T15:35:32Z</dc:date>
    <item>
      <title>Export Layout tabs into seperate drawings.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/export-layout-tabs-into-seperate-drawings/m-p/1632093#M34752</link>
      <description>What is the best method of copying out layouts from a drawing into seperate &lt;BR /&gt;
drawings named after the  layout tab itself.</description>
      <pubDate>Wed, 03 May 2006 15:35:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/export-layout-tabs-into-seperate-drawings/m-p/1632093#M34752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-03T15:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export Layout tabs into seperate drawings.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/export-layout-tabs-into-seperate-drawings/m-p/1632094#M34753</link>
      <description>day is over, gtg&lt;BR /&gt;
&lt;BR /&gt;
here is something for you to try....&lt;BR /&gt;
&lt;BR /&gt;
need some code to create the new doc, then reactivate the original etc ....&lt;BR /&gt;
&lt;BR /&gt;
hope this helps, if not i'll try to do something tomorrow&lt;BR /&gt;
&lt;BR /&gt;
Public Sub LayOut_copy(strFrom As String, strTo As String)&lt;BR /&gt;
  Dim objLayOut As AcadLayout&lt;BR /&gt;
  Dim objEnt As AcadObject&lt;BR /&gt;
  Dim objNewLayOut As AcadLayout&lt;BR /&gt;
  Dim colLayOuts As AcadLayouts&lt;BR /&gt;
  Dim objEntArray() As Object&lt;BR /&gt;
  Dim intCnt As Integer&lt;BR /&gt;
  Dim blnExists As Boolean&lt;BR /&gt;
  Set colLayOuts = ThisDrawing.Layouts&lt;BR /&gt;
  For Each objLayOut In colLayOuts&lt;BR /&gt;
    If objLayOut.Name = "VBD LayOut" Then&lt;BR /&gt;
      blnExists = True&lt;BR /&gt;
      Exit For&lt;BR /&gt;
    End If&lt;BR /&gt;
  Next objLayOut&lt;BR /&gt;
  If Not blnExists Then&lt;BR /&gt;
    Set objNewLayOut = colLayOuts.Add(strTo)&lt;BR /&gt;
    Set objLayOut = colLayOuts.Item(strFrom)&lt;BR /&gt;
    ReDim objEntArray(objLayOut.Block.Count - 1)&lt;BR /&gt;
    For Each objEnt In objLayOut.Block&lt;BR /&gt;
      Set objEntArray(intCnt) = objEnt&lt;BR /&gt;
      intCnt = intCnt + 1&lt;BR /&gt;
    Next&lt;BR /&gt;
    ThisDrawing.CopyObjects objEntArray, objNewLayOut.Block&lt;BR /&gt;
    objNewLayOut.CopyFrom objLayOut&lt;BR /&gt;
  End If&lt;BR /&gt;
End Sub</description>
      <pubDate>Wed, 03 May 2006 15:53:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/export-layout-tabs-into-seperate-drawings/m-p/1632094#M34753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-03T15:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export Layout tabs into seperate drawings.</title>
      <link>https://forums.autodesk.com/t5/vba-forum/export-layout-tabs-into-seperate-drawings/m-p/1632095#M34754</link>
      <description>Thanks for the start&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;CALV&gt; wrote in message news:5162478@discussion.autodesk.com...&lt;BR /&gt;
day is over, gtg&lt;BR /&gt;
&lt;BR /&gt;
here is something for you to try....&lt;BR /&gt;
&lt;BR /&gt;
need some code to create the new doc, then reactivate the original etc ....&lt;BR /&gt;
&lt;BR /&gt;
hope this helps, if not i'll try to do something tomorrow&lt;BR /&gt;
&lt;BR /&gt;
Public Sub LayOut_copy(strFrom As String, strTo As String)&lt;BR /&gt;
  Dim objLayOut As AcadLayout&lt;BR /&gt;
  Dim objEnt As AcadObject&lt;BR /&gt;
  Dim objNewLayOut As AcadLayout&lt;BR /&gt;
  Dim colLayOuts As AcadLayouts&lt;BR /&gt;
  Dim objEntArray() As Object&lt;BR /&gt;
  Dim intCnt As Integer&lt;BR /&gt;
  Dim blnExists As Boolean&lt;BR /&gt;
  Set colLayOuts = ThisDrawing.Layouts&lt;BR /&gt;
  For Each objLayOut In colLayOuts&lt;BR /&gt;
    If objLayOut.Name = "VBD LayOut" Then&lt;BR /&gt;
      blnExists = True&lt;BR /&gt;
      Exit For&lt;BR /&gt;
    End If&lt;BR /&gt;
  Next objLayOut&lt;BR /&gt;
  If Not blnExists Then&lt;BR /&gt;
    Set objNewLayOut = colLayOuts.Add(strTo)&lt;BR /&gt;
    Set objLayOut = colLayOuts.Item(strFrom)&lt;BR /&gt;
    ReDim objEntArray(objLayOut.Block.Count - 1)&lt;BR /&gt;
    For Each objEnt In objLayOut.Block&lt;BR /&gt;
      Set objEntArray(intCnt) = objEnt&lt;BR /&gt;
      intCnt = intCnt + 1&lt;BR /&gt;
    Next&lt;BR /&gt;
    ThisDrawing.CopyObjects objEntArray, objNewLayOut.Block&lt;BR /&gt;
    objNewLayOut.CopyFrom objLayOut&lt;BR /&gt;
  End If&lt;BR /&gt;
End Sub&lt;/CALV&gt;</description>
      <pubDate>Wed, 03 May 2006 16:03:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/export-layout-tabs-into-seperate-drawings/m-p/1632095#M34754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-05-03T16:03:36Z</dc:date>
    </item>
  </channel>
</rss>

