<?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: VBA - Convert 2010 Acad Drawings to 2004/LT2004 in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3770938#M11339</link>
    <description>&lt;P&gt;If you just want to convert drawing format from Acad2010 to Acad2000/4/7, you can use Dwg TrueView to do batch job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you&amp;nbsp;have to do it with&amp;nbsp;VBA code, you can easily save them as older drawing format all the way back to R14 version (assume you use Acad2010-2012). You certainly do not need to mix your VBA code with LISP code (e.g. you do it either with LISP or VBA, both are simple enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do like this (pseudo code, assuming you have a string array of dwg file names):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim fileNames As String()&lt;/P&gt;&lt;P&gt;Dim saveAsFielNames As strinig()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;''Then fill the strinig arrays with dwg file names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim dwg As AcadDocument&lt;/P&gt;&lt;P&gt;Dim app As AcadApplication&lt;/P&gt;&lt;P&gt;Set app=ThisDrawing.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim i As Integer&lt;/P&gt;&lt;P&gt;For i=0 to Ubound(fileNames)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set dwg=app.Documents.Open(fileNames(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''Do something if needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dwg.SaveAs saveAsFileName(i), ac2000(4/7))_dwg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dwg.Close&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2013 14:52:28 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2013-02-06T14:52:28Z</dc:date>
    <item>
      <title>VBA - Convert 2010 Acad Drawings to 2004/LT2004</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3766749#M11337</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple and quick question:&lt;/P&gt;&lt;P&gt;Is is possitlbe using VBA (not .NET) to open an Acad 2010 Drawing, then re-save it as a Acad 2004/LT2004 Drawing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to import the drawing into some third party software, and for some reason, it is incompatible with the newer versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like to know if it is possible to convert ANY version of a drawings (be it 2007, 2000, 2012, etc...).&amp;nbsp; Also if at all possible, is there an easy way to re-save a drawing that was created using other software (aka SolidWorks) to use AutoCAD's specific file formatting?&amp;nbsp; I know that when you try to open a drawing created in SolidWorks (opening in AutoCAD), that it will display a message saying the drawing was created by an external application.&amp;nbsp; I would like to be able to change the file so that AutoCAD created the drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your help, it is greatly appreciated! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;God Bless,&lt;/P&gt;&lt;P&gt;-Nick&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 13:49:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3766749#M11337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-01T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Convert 2010 Acad Drawings to 2004/LT2004</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3769910#M11338</link>
      <description>&lt;P&gt;Okay so after doing some research I came across the following forums.&amp;nbsp; It looks like I might be able to accomplish this using LISP, but this would still need to be done using VBA (as I need to interface with Microsoft Office).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the forum about running LISP using VBA:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/Visual-Basic-Customization/Run-lisp-command-in-autocad-from-VBA/td-p/2357718" target="_blank"&gt;http://forums.autodesk.com/t5/Visual-Basic-Customization/Run-lisp-command-in-autocad-from-VBA/td-p/2357718&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the forum about saving as a specified file format.&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.augi.com/showthread.php?50250-Use-Saveas-Command-from-a-Lisp-Routine" target="_blank"&gt;http://forums.augi.com/showthread.php?50250-Use-Saveas-Command-from-a-Lisp-Routine&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, as I try to understand this even further;&amp;nbsp; if anyone can answer, I'd like to know if taking this route is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I run a VBA program to open AutoCAD, and then execute a LISP file to save the drawing as a different format?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 15:39:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3769910#M11338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-05T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Convert 2010 Acad Drawings to 2004/LT2004</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3770938#M11339</link>
      <description>&lt;P&gt;If you just want to convert drawing format from Acad2010 to Acad2000/4/7, you can use Dwg TrueView to do batch job.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you&amp;nbsp;have to do it with&amp;nbsp;VBA code, you can easily save them as older drawing format all the way back to R14 version (assume you use Acad2010-2012). You certainly do not need to mix your VBA code with LISP code (e.g. you do it either with LISP or VBA, both are simple enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You do like this (pseudo code, assuming you have a string array of dwg file names):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim fileNames As String()&lt;/P&gt;&lt;P&gt;Dim saveAsFielNames As strinig()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;''Then fill the strinig arrays with dwg file names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim dwg As AcadDocument&lt;/P&gt;&lt;P&gt;Dim app As AcadApplication&lt;/P&gt;&lt;P&gt;Set app=ThisDrawing.Application&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim i As Integer&lt;/P&gt;&lt;P&gt;For i=0 to Ubound(fileNames)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set dwg=app.Documents.Open(fileNames(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ''Do something if needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dwg.SaveAs saveAsFileName(i), ac2000(4/7))_dwg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dwg.Close&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 14:52:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3770938#M11339</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2013-02-06T14:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Convert 2010 Acad Drawings to 2004/LT2004</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3771409#M11340</link>
      <description>&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like this will work!&lt;/P&gt;&lt;P&gt;However, is it possible you can enumerate all the different dwg file formats?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 18:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3771409#M11340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-06T18:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Convert 2010 Acad Drawings to 2004/LT2004</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3771670#M11341</link>
      <description>&lt;P&gt;If you open VBA IDE in autoCAd and open Object Browser, find AcSaveAsType in the left and highlight it, you can see all the enum values of it for your versio of AutoCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the screen picture froom my acad2012.&lt;IMG title="Untitled.png" border="0" alt="Untitled.png" align="center" src="https://forums.autodesk.com/t5/image/serverpage/image-id/46958iCF30DE6B026094ED/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 20:19:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3771670#M11341</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2013-02-06T20:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: VBA - Convert 2010 Acad Drawings to 2004/LT2004</title>
      <link>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3772364#M11342</link>
      <description>&lt;P&gt;Wow thanks, that will be very helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I appreciate all your efforts!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;God Bless,&lt;/P&gt;&lt;P&gt;-Nick&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2013 15:25:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/vba-convert-2010-acad-drawings-to-2004-lt2004/m-p/3772364#M11342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-07T15:25:58Z</dc:date>
    </item>
  </channel>
</rss>

