<?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 VBA and Multiple dwg files in AutoCAD Map 3D Developer Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104203#M2953</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is there a method in VBA to work with multiple drawings programmatically?&lt;BR /&gt;
&lt;BR /&gt;
I have approximately 800 files that I have to open by hand to update &lt;BR /&gt;
values(Parcel ID numbers) based on values within each drawing. Rether than &lt;BR /&gt;
open each drawing by hand, I'd prefer to handle under code control.&lt;BR /&gt;
&lt;BR /&gt;
VBA doesn't seem to like opening and closing drawings very cleanly when &lt;BR /&gt;
iterating through a list of file names. Would I be better to drop to full VB &lt;BR /&gt;
and handle it there?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Tom</description>
    <pubDate>Mon, 29 Oct 2007 19:24:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-10-29T19:24:30Z</dc:date>
    <item>
      <title>VBA and Multiple dwg files</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104203#M2953</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is there a method in VBA to work with multiple drawings programmatically?&lt;BR /&gt;
&lt;BR /&gt;
I have approximately 800 files that I have to open by hand to update &lt;BR /&gt;
values(Parcel ID numbers) based on values within each drawing. Rether than &lt;BR /&gt;
open each drawing by hand, I'd prefer to handle under code control.&lt;BR /&gt;
&lt;BR /&gt;
VBA doesn't seem to like opening and closing drawings very cleanly when &lt;BR /&gt;
iterating through a list of file names. Would I be better to drop to full VB &lt;BR /&gt;
and handle it there?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Tom</description>
      <pubDate>Mon, 29 Oct 2007 19:24:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104203#M2953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-29T19:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: VBA and Multiple dwg files</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104204#M2954</link>
      <description>Hi Tom,&lt;BR /&gt;
&lt;BR /&gt;
Post the code you're using.&lt;BR /&gt;
&lt;BR /&gt;
I've had no problems opening and closing files with VBA.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
CADApps&lt;BR /&gt;
www.cadapps.com.au&lt;BR /&gt;
www.civil3Dtools.com&lt;BR /&gt;
"Tom Homan" &lt;THOMAN&gt; wrote in message &lt;BR /&gt;
news:5763545@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is there a method in VBA to work with multiple drawings programmatically?&lt;BR /&gt;
&lt;BR /&gt;
I have approximately 800 files that I have to open by hand to update&lt;BR /&gt;
values(Parcel ID numbers) based on values within each drawing. Rether than&lt;BR /&gt;
open each drawing by hand, I'd prefer to handle under code control.&lt;BR /&gt;
&lt;BR /&gt;
VBA doesn't seem to like opening and closing drawings very cleanly when&lt;BR /&gt;
iterating through a list of file names. Would I be better to drop to full VB&lt;BR /&gt;
and handle it there?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Tom&lt;/THOMAN&gt;</description>
      <pubDate>Mon, 29 Oct 2007 19:48:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104204#M2954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-29T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: VBA and Multiple dwg files</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104205#M2955</link>
      <description>Please describe more deails on "VBA doesn't seem to like opening and closing &lt;BR /&gt;
drawings very cleanly".&lt;BR /&gt;
&lt;BR /&gt;
If you are convinced on that, then full VB doesn't do any better than VBA in &lt;BR /&gt;
Acad does.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Tom Homan" &lt;THOMAN&gt; wrote in message &lt;BR /&gt;
news:5763545@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is there a method in VBA to work with multiple drawings programmatically?&lt;BR /&gt;
&lt;BR /&gt;
I have approximately 800 files that I have to open by hand to update&lt;BR /&gt;
values(Parcel ID numbers) based on values within each drawing. Rether than&lt;BR /&gt;
open each drawing by hand, I'd prefer to handle under code control.&lt;BR /&gt;
&lt;BR /&gt;
VBA doesn't seem to like opening and closing drawings very cleanly when&lt;BR /&gt;
iterating through a list of file names. Would I be better to drop to full VB&lt;BR /&gt;
and handle it there?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Tom&lt;/THOMAN&gt;</description>
      <pubDate>Mon, 29 Oct 2007 20:11:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104205#M2955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-29T20:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: VBA and Multiple dwg files</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104206#M2956</link>
      <description>Never mind, fat fingers got the better of me. Thanks anyway. -t&lt;BR /&gt;
"Tom Homan" &lt;THOMAN&gt; wrote in message &lt;BR /&gt;
news:5763545@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is there a method in VBA to work with multiple drawings programmatically?&lt;BR /&gt;
&lt;BR /&gt;
I have approximately 800 files that I have to open by hand to update&lt;BR /&gt;
values(Parcel ID numbers) based on values within each drawing. Rether than&lt;BR /&gt;
open each drawing by hand, I'd prefer to handle under code control.&lt;BR /&gt;
&lt;BR /&gt;
VBA doesn't seem to like opening and closing drawings very cleanly when&lt;BR /&gt;
iterating through a list of file names. Would I be better to drop to full VB&lt;BR /&gt;
and handle it there?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Tom&lt;/THOMAN&gt;</description>
      <pubDate>Tue, 30 Oct 2007 19:55:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104206#M2956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-30T19:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: VBA and Multiple dwg files</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104207#M2957</link>
      <description>Hi:&lt;BR /&gt;
I have used this macro. In this example I have a text file with path and &lt;BR /&gt;
names of some drawings (c:\volumenes.txt).&lt;BR /&gt;
This program open "volumenes.txt" and it catch the first file, open the &lt;BR /&gt;
drawing, aply the function "adosmil", close drawing and open the next file, &lt;BR /&gt;
this while volumenes.txt isn't eof.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Function adosmil()&lt;BR /&gt;
camino = ThisDrawing.Path + "\acad2000\" + ThisDrawing.Name&lt;BR /&gt;
ThisDrawing.SaveAs camino, ac2000_dwg&lt;BR /&gt;
ThisDrawing.Close&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Sub RepiteTarea()&lt;BR /&gt;
procesoenlotex = "bai"&lt;BR /&gt;
If procesoenlotex = "bai" Then&lt;BR /&gt;
    archivo = "c:\volumenes.txt"&lt;BR /&gt;
    Open archivo For Input As #1&lt;BR /&gt;
    Do&lt;BR /&gt;
    Input #1, reg&lt;BR /&gt;
    fichactual = LTrim(RTrim(reg))&lt;BR /&gt;
    ThisDrawing.Application.Documents.Open fichactual&lt;BR /&gt;
    adosmil&lt;BR /&gt;
    Loop Until EOF(1)&lt;BR /&gt;
Else&lt;BR /&gt;
adosmil&lt;BR /&gt;
End If&lt;BR /&gt;
MsgBox ("tarea terminada...")&lt;BR /&gt;
Close #1&lt;BR /&gt;
End Sub&lt;BR /&gt;
"Tom Homan" &lt;THOMAN&gt; escribió en el mensaje &lt;BR /&gt;
news:5763545@discussion.autodesk.com...&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is there a method in VBA to work with multiple drawings programmatically?&lt;BR /&gt;
&lt;BR /&gt;
I have approximately 800 files that I have to open by hand to update&lt;BR /&gt;
values(Parcel ID numbers) based on values within each drawing. Rether than&lt;BR /&gt;
open each drawing by hand, I'd prefer to handle under code control.&lt;BR /&gt;
&lt;BR /&gt;
VBA doesn't seem to like opening and closing drawings very cleanly when&lt;BR /&gt;
iterating through a list of file names. Would I be better to drop to full VB&lt;BR /&gt;
and handle it there?&lt;BR /&gt;
&lt;BR /&gt;
TIA&lt;BR /&gt;
&lt;BR /&gt;
Tom&lt;/THOMAN&gt;</description>
      <pubDate>Wed, 31 Oct 2007 08:58:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/vba-and-multiple-dwg-files/m-p/2104207#M2957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-31T08:58:42Z</dc:date>
    </item>
  </channel>
</rss>

