<?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 Extract Block Att with ObjectDBX in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076849#M23222</link>
    <description>I'm sure this has been done before, but my searches have left me somewhat empty-handed.&lt;BR /&gt;
I have a drawing with a block called TITLEBLOCK in Paperspace, with 15 attributes.&lt;BR /&gt;
I don't know LISP, but I do know VB so I'd like to use it along with ObjectDBX to do the following:&lt;BR /&gt;
[1] Open a series of drawings one by one, in the background, not actually in the AutoCAD editor.&lt;BR /&gt;
[2] Extract the block and write its attribute values to a text file.&lt;BR /&gt;
[3] Close the drawing (no changes) without saving again, then move on to the next.&lt;BR /&gt;
&lt;BR /&gt;
I'm using AC2006.&lt;BR /&gt;
I'm new to the ObjectDBX or ARX stuff, but I've done a little VBA in AutoCAD, and I'm looking for any code samples to get me started.  I've found a few, but I need some more to chew on, and any crumbs you can throw my way will be greatly appreciated.&lt;BR /&gt;
Thanks.&lt;BR /&gt;
Steve</description>
    <pubDate>Tue, 25 Sep 2007 20:46:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-09-25T20:46:53Z</dc:date>
    <item>
      <title>Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076849#M23222</link>
      <description>I'm sure this has been done before, but my searches have left me somewhat empty-handed.&lt;BR /&gt;
I have a drawing with a block called TITLEBLOCK in Paperspace, with 15 attributes.&lt;BR /&gt;
I don't know LISP, but I do know VB so I'd like to use it along with ObjectDBX to do the following:&lt;BR /&gt;
[1] Open a series of drawings one by one, in the background, not actually in the AutoCAD editor.&lt;BR /&gt;
[2] Extract the block and write its attribute values to a text file.&lt;BR /&gt;
[3] Close the drawing (no changes) without saving again, then move on to the next.&lt;BR /&gt;
&lt;BR /&gt;
I'm using AC2006.&lt;BR /&gt;
I'm new to the ObjectDBX or ARX stuff, but I've done a little VBA in AutoCAD, and I'm looking for any code samples to get me started.  I've found a few, but I need some more to chew on, and any crumbs you can throw my way will be greatly appreciated.&lt;BR /&gt;
Thanks.&lt;BR /&gt;
Steve</description>
      <pubDate>Tue, 25 Sep 2007 20:46:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076849#M23222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-25T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076850#M23223</link>
      <description>did you do a google groups search on this ng?&lt;BR /&gt;
should have yielded a ton of samples dbx&lt;BR /&gt;
&lt;BR /&gt;
f1 will give you everything you need for writing to file "Print" "Open" etc&lt;BR /&gt;
eg:&lt;BR /&gt;
  Dim iFileNum As Long&lt;BR /&gt;
  If Len(msLogFileName) &amp;gt; 0 Then&lt;BR /&gt;
    iFileNum = FreeFile&lt;BR /&gt;
    Open msLogFileName For Append As #iFileNum&lt;BR /&gt;
    Print #iFileNum, sMsg&lt;BR /&gt;
    Close #iFileNum&lt;BR /&gt;
  End If&lt;BR /&gt;
&lt;BR /&gt;
are you stuck on a particular part?&lt;BR /&gt;
what do you have so far?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;STEVIELEE&gt; wrote in message news:5731615@discussion.autodesk.com...&lt;BR /&gt;
I'm sure this has been done before, but my searches have left me somewhat &lt;BR /&gt;
empty-handed.&lt;BR /&gt;
I have a drawing with a block called TITLEBLOCK in Paperspace, with 15 &lt;BR /&gt;
attributes.&lt;BR /&gt;
I don't know LISP, but I do know VB so I'd like to use it along with &lt;BR /&gt;
ObjectDBX to do the following:&lt;BR /&gt;
[1] Open a series of drawings one by one, in the background, not actually in &lt;BR /&gt;
the AutoCAD editor.&lt;BR /&gt;
[2] Extract the block and write its attribute values to a text file.&lt;BR /&gt;
[3] Close the drawing (no changes) without saving again, then move on to the &lt;BR /&gt;
next.&lt;BR /&gt;
&lt;BR /&gt;
I'm using AC2006.&lt;BR /&gt;
I'm new to the ObjectDBX or ARX stuff, but I've done a little VBA in &lt;BR /&gt;
AutoCAD, and I'm looking for any code samples to get me started.  I've found &lt;BR /&gt;
a few, but I need some more to chew on, and any crumbs you can throw my way &lt;BR /&gt;
will be greatly appreciated.&lt;BR /&gt;
Thanks.&lt;BR /&gt;
Steve&lt;/STEVIELEE&gt;</description>
      <pubDate>Tue, 25 Sep 2007 21:23:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076850#M23223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-25T21:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076851#M23224</link>
      <description>Okay, I found one sample (thanks Tony T.) and I've tweaked it in a way that makes sense to me.  I'm using AC2006, so I hope my AXDB16Lib is right.&lt;BR /&gt;
Here's what I have so far - untested.&lt;BR /&gt;
Any pointers will be heeded.&lt;BR /&gt;
&lt;BR /&gt;
First, I'd set up a browser to navigate to a folder with the series of drawings.  Once the folder was selected, I would cycle thru each file in the folder.  For each file I would :&lt;BR /&gt;
&lt;BR /&gt;
Call AttGet  filename&lt;BR /&gt;
Then I would write the text array (append) to a text file, (with each item separated by a semicolon) adding on new lines with each new file until all files have been examined.  I've done this with CNC files, but they are text files, and the DWG files are a little more involved.&lt;BR /&gt;
&lt;BR /&gt;
Here's the code for the sub AttGet.&lt;BR /&gt;
&lt;BR /&gt;
Public Sub AttGet(DwgName as String)&lt;BR /&gt;
Dim DbxDoc As AXDB16Lib.AxDbDocument&lt;BR /&gt;
Set DbxDoc = GetInterfaceObject("ObjectDBX.AxDbDocument")&lt;BR /&gt;
DbxDoc.Open (DwgName)&lt;BR /&gt;
Dim Ent As AXDB16Lib.AcadEntity&lt;BR /&gt;
Dim BlockRef As AXDB16Lib.AcadBlockReference&lt;BR /&gt;
Dim AttRef As AXDB16Lib.AcadAttributeReference&lt;BR /&gt;
Dim Attributes As Variant&lt;BR /&gt;
Dim AttString() as String&lt;BR /&gt;
Dim i As Integer&lt;BR /&gt;
&lt;BR /&gt;
For Each Ent In DbxDoc.PaperSpace&lt;BR /&gt;
If TypeOf Ent Is AXDB16Lib.AcadBlockReference Then&lt;BR /&gt;
Set BlockRef = Ent&lt;BR /&gt;
If BlockRef.Name = "TITLEBLOCK" Then&lt;BR /&gt;
Attributes = BlockRef.GetAttributes&lt;BR /&gt;
For i = LBound(Attributes) To UBound(Attributes)&lt;BR /&gt;
Set AttRef = Attributes(i)&lt;BR /&gt;
&lt;BR /&gt;
'///This I'm fuzzy on - haven't used ReDim much.///&lt;BR /&gt;
ReDim AttString((Attributes) To UBound(Attributes))&lt;BR /&gt;
'///This is to create a string array to hold attribute text.///&lt;BR /&gt;
'///This is actually a known value, so I could just use it.///&lt;BR /&gt;
&lt;BR /&gt;
AttString(i)=AttRef.TextString&lt;BR /&gt;
'///Read every attribute in the block into a string array.///&lt;BR /&gt;
Next i&lt;BR /&gt;
End If&lt;BR /&gt;
End If&lt;BR /&gt;
Next Ent&lt;BR /&gt;
&lt;BR /&gt;
Set DbxDoc = Nothing&lt;BR /&gt;
'///Close without changing or saving.///&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Like I said, I haven't tested it yet.  I need to set up a set of drawings to test.  Any pointers will be greatly appreciated.</description>
      <pubDate>Tue, 25 Sep 2007 22:03:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076851#M23224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-25T22:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076852#M23225</link>
      <description>A few pointers.....&lt;BR /&gt;
First, create the DbxDoc once before you start the loop through the drawings &lt;BR /&gt;
and set it to nothing once when you are done. Just kjeep opening the &lt;BR /&gt;
drawings, the previous one will be replaced with the next one.&lt;BR /&gt;
&lt;BR /&gt;
I haven't looked at the code you found of Tony's, but he's usually right. &lt;BR /&gt;
However, I've not seen where you need to explictly Dim the variables as &lt;BR /&gt;
AxDb16LIB types. This is how I would do it: Make sure you have the ObjectDBX &lt;BR /&gt;
type library referenced, then the code.....&lt;BR /&gt;
&lt;BR /&gt;
Dim oDBX As AxDbDocument&lt;BR /&gt;
Dim oEnt As AcadEntity&lt;BR /&gt;
Dim oBlock As AcadBlockReference&lt;BR /&gt;
&lt;BR /&gt;
The GetInterfaceObject needs the version info, for 2004-2006 it is:&lt;BR /&gt;
Set oDBX = GetInterfaceObject("ObjectDBX.AxDbDocument.16")&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"StevieLee" wrote in message news:5731696@discussion.autodesk.com...&lt;BR /&gt;
Okay, I found one sample (thanks Tony T.) and I've tweaked it in a way that &lt;BR /&gt;
makes sense to me.  I'm using AC2006, so I hope my AXDB16Lib is right.&lt;BR /&gt;
Here's what I have so far - untested.&lt;BR /&gt;
Any pointers will be heeded.</description>
      <pubDate>Wed, 26 Sep 2007 00:09:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076852#M23225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T00:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076853#M23226</link>
      <description>Hi Steve&lt;BR /&gt;
Try this one, gathered from many authors&lt;BR /&gt;
on this NG&lt;BR /&gt;
&lt;BR /&gt;
~'J'~&lt;BR /&gt;
&lt;BR /&gt;
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'&lt;BR /&gt;
'' Requires:&lt;BR /&gt;
'' AutoCAD/ObjectDBX Common 16.0 Type Library (for A2004-6)&lt;BR /&gt;
'' Microsoft Scripting Runtime&lt;BR /&gt;
&lt;BR /&gt;
Public Function BrowseForFolderF(ByVal msg As String) As String&lt;BR /&gt;
     Dim oBrowser, folderObj, folderAcpt As Object&lt;BR /&gt;
     Dim folderStr As String&lt;BR /&gt;
&lt;BR /&gt;
     Set oBrowser = ThisDrawing.Application.GetInterfaceObject("Shell.Application")&lt;BR /&gt;
     Set folderAcpt = oBrowser.BrowseForFolder(vbOKOnly, msg, vbDefaultButton3, 0)&lt;BR /&gt;
&lt;BR /&gt;
     With folderAcpt&lt;BR /&gt;
          Set folderObj = .Self&lt;BR /&gt;
          folderStr = folderObj.Path&lt;BR /&gt;
     End With&lt;BR /&gt;
     Set folderObj = Nothing&lt;BR /&gt;
     Set folderAcpt = Nothing&lt;BR /&gt;
     Set oBrowser = Nothing&lt;BR /&gt;
     BrowseForFolderF = folderStr&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Public Function CheckFolder(ByVal strPath As String) As Variant&lt;BR /&gt;
     Dim objFolder     ''As Scripting.Folder&lt;BR /&gt;
     Dim objFile     ''As Scripting.File&lt;BR /&gt;
     Dim objSubdirs     ''As Scripting.Folders&lt;BR /&gt;
     Dim objLoopFolder     ''As Scripting.Folder&lt;BR /&gt;
     Dim varFs() As Variant&lt;BR /&gt;
     Dim m_objFSO, n, m_lngFileCount&lt;BR /&gt;
&lt;BR /&gt;
     Set m_objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
     Set objFolder = m_objFSO.GetFolder(strPath)&lt;BR /&gt;
     '&lt;BR /&gt;
     ' Check files in this directory&lt;BR /&gt;
     '&lt;BR /&gt;
     n = -1&lt;BR /&gt;
     For Each objFile In objFolder.Files&lt;BR /&gt;
          If UCase$(Right$(objFile.ShortPath, 4)) = ".DWG" Then&lt;BR /&gt;
               m_lngFileCount = m_lngFileCount + 1&lt;BR /&gt;
               n = n + 1&lt;BR /&gt;
               ReDim Preserve varFs(n)&lt;BR /&gt;
               varFs(n) = objFile.Path&lt;BR /&gt;
          End If&lt;BR /&gt;
     Next objFile&lt;BR /&gt;
&lt;BR /&gt;
     ' Loop through all subdirectories and&lt;BR /&gt;
     ' do the same thing.&lt;BR /&gt;
     '&lt;BR /&gt;
     Set objSubdirs = objFolder.SubFolders&lt;BR /&gt;
     For Each objLoopFolder In objSubdirs&lt;BR /&gt;
          CheckFolder objLoopFolder.Path&lt;BR /&gt;
     Next objLoopFolder&lt;BR /&gt;
&lt;BR /&gt;
     Set objSubdirs = Nothing&lt;BR /&gt;
     Set objFolder = Nothing&lt;BR /&gt;
     CheckFolder = varFs&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CreateCSVFile(fso As Variant, strFname As String)&lt;BR /&gt;
     Dim tf&lt;BR /&gt;
     If Not fso.FileExists(strFname) Then&lt;BR /&gt;
          Set tf = fso.CreateTextFile(strFname, True)&lt;BR /&gt;
          Set tf = Nothing&lt;BR /&gt;
     End If&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Private Sub WriteToCSVFile(strFname As String, strData As String)&lt;BR /&gt;
     Open strFname For Append As #1&lt;BR /&gt;
     Write #1, strData&lt;BR /&gt;
     Close #1&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Sub BatchReadTitleBlock()&lt;BR /&gt;
     Dim oblkRef As AcadBlockReference&lt;BR /&gt;
     Dim objFnd As Object&lt;BR /&gt;
     Dim indx As Integer&lt;BR /&gt;
     Dim iFiles() As Variant&lt;BR /&gt;
     Dim m_objFSO&lt;BR /&gt;
     Dim fold, DwgName, cnt As Integer, nm As String&lt;BR /&gt;
&lt;BR /&gt;
     fold = BrowseForFolderF("Where are my title blocks?")&lt;BR /&gt;
     Set m_objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
&lt;BR /&gt;
     iFiles = CheckFolder(fold)&lt;BR /&gt;
&lt;BR /&gt;
     CreateCSVFile m_objFSO, "C:\Temp\Test.csv"     '// CHANGE TEXT FILE NAME HERE&lt;BR /&gt;
&lt;BR /&gt;
     Dim oDbx As New AxDbDocument&lt;BR /&gt;
&lt;BR /&gt;
     Set oDbx = GetInterfaceObject("ObjectDBX.AxDbDocument.16")     '' or 17 for A2007-8&lt;BR /&gt;
&lt;BR /&gt;
     On Error Resume Next&lt;BR /&gt;
     For indx = LBound(iFiles) To UBound(iFiles)&lt;BR /&gt;
          DwgName = iFiles(indx)&lt;BR /&gt;
          oDbx.Open DwgName&lt;BR /&gt;
&lt;BR /&gt;
          For Each objFnd In oDbx.PaperSpace&lt;BR /&gt;
               If TypeOf objFnd Is AcadBlockReference Then&lt;BR /&gt;
                    Set oblkRef = objFnd&lt;BR /&gt;
                    If StrComp(UCase(oblkRef.Name), "TITLEBLOCK", 1) = 0 Then&lt;BR /&gt;
                         Exit For&lt;BR /&gt;
                    End If&lt;BR /&gt;
               End If&lt;BR /&gt;
          Next objFnd&lt;BR /&gt;
&lt;BR /&gt;
          With oblkRef&lt;BR /&gt;
               Dim atts As Variant&lt;BR /&gt;
               Dim strData As String&lt;BR /&gt;
               strData = .Name&lt;BR /&gt;
               atts = .GetAttributes&lt;BR /&gt;
               For i = 0 To UBound(atts)&lt;BR /&gt;
                    strData = strData &amp;amp; "," &amp;amp; atts(i).TextString&lt;BR /&gt;
               Next i&lt;BR /&gt;
          End With&lt;BR /&gt;
&lt;BR /&gt;
          WriteToCSVFile "C:\Temp\Test.csv", strData     '// CHANGE TEXT FILE NAME HERE&lt;BR /&gt;
&lt;BR /&gt;
          Set oDbx = Nothing&lt;BR /&gt;
&lt;BR /&gt;
     Next indx&lt;BR /&gt;
&lt;BR /&gt;
End Sub</description>
      <pubDate>Wed, 26 Sep 2007 12:45:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076853#M23226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T12:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076854#M23227</link>
      <description>Thanks for the reply.  I can paste Tony's code in here, if it'll help, but my tweaks make up about 5% of the code, so the vast majority of it is Tony's.  I wish we could hire him, or one of you guys to do this, but by the time I did all the paperwork to illustrate the need for the program, to justify the time and cost, plus all of the normal back and forth to fine tune it, I know I can write it myself, with the help of you guys.  Plus, they'd probably turn down the request, and I'd be back to square one.&lt;BR /&gt;
&lt;BR /&gt;
I've written a half dozen programs, mostly on my lunch half-hours, about 15 minutes a day.  There's over a dozen people in my department and we use two or three of my programs every day, all day long.  I've looked at VB programs out there, and I rate as a beginning programmer at best, but I write these for myself, to make me more efficient, and if they work well enough, I pass them around and everybody gets new toys.  I feel like a big geeky Santa.:)&lt;BR /&gt;
&lt;BR /&gt;
One of them turned a data entry job that might take a day and a half into a thirty-second browse and click.  Made my day.&lt;BR /&gt;
&lt;BR /&gt;
I'll integrate your code changes into the mix, and try to do some testing today.  Hopefully it'll work, but if not, I'm sure I'll come whining back with some error documentation.&lt;BR /&gt;
&lt;BR /&gt;
One thing:  Tony wrote this as a VBA.  I'm planning on using this in VB, with a browser and all.  Is there some in-between code that I need to set up for the hand-off between VBA and VB?  I guess I'll know more as I test it today.  Wish me luck.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again to Tony and Jeff, and all you guys.  The stuff I learn from this will go a long way toward better programs in future lunch half-hours.:)</description>
      <pubDate>Wed, 26 Sep 2007 13:21:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076854#M23227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T13:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076855#M23228</link>
      <description>Gadzooks!  Fatty, wow, thanks.  Talk about above and beyond.  I'll hook this up, plug it in and let you know how it goes.&lt;BR /&gt;
&lt;BR /&gt;
I love code snippets.  I recognize some of these from my searches, and want to thank everybody on these message boards for sharing the wealth.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again Fatty.</description>
      <pubDate>Wed, 26 Sep 2007 13:36:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076855#M23228</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076856#M23229</link>
      <description>Hi Steve&lt;BR /&gt;
&lt;BR /&gt;
Let me know if you want something&lt;BR /&gt;
to change there&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Wed, 26 Sep 2007 15:24:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076856#M23229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T15:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076857#M23230</link>
      <description>Okay, this is where my lack of experience comes in.  When I get to the SubBatchReadTitleBlock, it chokes on the following:&lt;BR /&gt;
&lt;BR /&gt;
Dim oDbx As New AxDbDocument&lt;BR /&gt;
&lt;BR /&gt;
It gives "User-defined type not defined."&lt;BR /&gt;
&lt;BR /&gt;
I'm assuming that something hasn't been registered.  Registering is something I've never had to do, so I really don't understand much about it.&lt;BR /&gt;
&lt;BR /&gt;
I used the following code from the thread on importing layouts using ObjectDBX:&lt;BR /&gt;
&lt;BR /&gt;
Sub regObjectDBX()&lt;BR /&gt;
Shell "REGSVR32 /s " + Chr$(34) + Tools.findfile("AXDB16.DLL", True) + Chr$(34), 0&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
but I'm still getting the same error.&lt;BR /&gt;
&lt;BR /&gt;
I'm going to go look thru the boards, but if someone wants to throw me a bone, I'll wag my tail when I get back. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 26 Sep 2007 15:49:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076857#M23230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T15:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076858#M23231</link>
      <description>Hi again, Steve,&lt;BR /&gt;
Just a thoughts, did you add the reference&lt;BR /&gt;
to AutoCAD/ObjectDBX Common 16.0 Type Library &lt;BR /&gt;
and to Microsoft Scripting Runtime?&lt;BR /&gt;
I can't test it in A2006 &lt;BR /&gt;
Try also to declare ODbx as Jeff Mishler said&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Wed, 26 Sep 2007 16:41:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076858#M23231</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T16:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076859#M23232</link>
      <description>How do I add a reference to these things?  I'm pretty sure that this is my stumbling block.  I've been looking, and others talk about Tools/References, but I can't find ... ok, it's not in AutoCAD.  It's in VBA.  Ok, now it's doing stuff.  Came up with a blank cvs file, but let me dig into it a bit...&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Wed, 26 Sep 2007 18:09:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076859#M23232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T18:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076860#M23233</link>
      <description>Okay, let's go, but do  not dig too deep &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Wed, 26 Sep 2007 18:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076860#M23233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076861#M23234</link>
      <description>[Dancing in my cubicle]&lt;BR /&gt;
[Doing Tiger Woods fist pump]&lt;BR /&gt;
It's alive!!  Muahahaha!  Ok, now everybody's staring...&lt;BR /&gt;
&lt;BR /&gt;
Fatty, you're my hero.&lt;BR /&gt;
I now have a text file called CutList.txt, that has several lines of text items, separated by semicolons.  I'll run that thru a program to format our cutlists without re-typing all the info.&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much.</description>
      <pubDate>Wed, 26 Sep 2007 18:30:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076861#M23234</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T18:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076862#M23235</link>
      <description>Sounds like you've arrived here pretty much the same way I did.&lt;BR /&gt;
&lt;BR /&gt;
When working with ObjectDbx you must have a running session of Autocad open &lt;BR /&gt;
anyway, so I've found it best to just use VBA. Far easier to debug that way &lt;BR /&gt;
and you don't end up running out-of-process which slows things down.&lt;BR /&gt;
&lt;BR /&gt;
Looks like Fatty's got you hooked up, your in good hands with the Russian &lt;BR /&gt;
with a strange handle. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Good Luck!&lt;BR /&gt;
&lt;BR /&gt;
"StevieLee" wrote in message news:5732215@discussion.autodesk.com...&lt;BR /&gt;
.... I know I can write it myself, with the help of you guys.  Plus, they'd &lt;BR /&gt;
probably turn down the request, and I'd be back to square one.&lt;BR /&gt;
&lt;BR /&gt;
I've written a half dozen programs, mostly on my lunch half-hours, about 15 &lt;BR /&gt;
minutes a day.</description>
      <pubDate>Wed, 26 Sep 2007 18:35:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076862#M23235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T18:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076863#M23236</link>
      <description>Glad to help&lt;BR /&gt;
Happy coding,&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Wed, 26 Sep 2007 18:54:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076863#M23236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T18:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076864#M23237</link>
      <description>Wait...&lt;BR /&gt;
On closer inspection of the text file, it looks like something's amiss...&lt;BR /&gt;
I put three drawings in the folder, SS001.DWG, SS002.DWG and SS003.DWG.&lt;BR /&gt;
I got three lines of info, but they're all from SS001.DWG.&lt;BR /&gt;
&lt;BR /&gt;
I'll go ahead and post the code before I dig back into it:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Public Function BrowseForFolderF(ByVal msg As String) As String&lt;BR /&gt;
Dim oBrowser, folderObj, folderAcpt As Object&lt;BR /&gt;
Dim folderStr As String&lt;BR /&gt;
&lt;BR /&gt;
Set oBrowser = ThisDrawing.Application.GetInterfaceObject("Shell.Application")&lt;BR /&gt;
Set folderAcpt = oBrowser.BrowseForFolder(vbOKOnly, msg, vbDefaultButton3, 0)&lt;BR /&gt;
&lt;BR /&gt;
With folderAcpt&lt;BR /&gt;
Set folderObj = .Self&lt;BR /&gt;
folderStr = folderObj.Path&lt;BR /&gt;
End With&lt;BR /&gt;
Set folderObj = Nothing&lt;BR /&gt;
Set folderAcpt = Nothing&lt;BR /&gt;
Set oBrowser = Nothing&lt;BR /&gt;
BrowseForFolderF = folderStr&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Public Function CheckFolder(ByVal strPath As String) As Variant&lt;BR /&gt;
Dim objFolder ''As Scripting.Folder&lt;BR /&gt;
Dim objFile ''As Scripting.File&lt;BR /&gt;
Dim objSubdirs ''As Scripting.Folders&lt;BR /&gt;
Dim objLoopFolder ''As Scripting.Folder&lt;BR /&gt;
Dim varFs() As Variant&lt;BR /&gt;
Dim m_objFSO, n, m_lngFileCount&lt;BR /&gt;
&lt;BR /&gt;
Set m_objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
Set objFolder = m_objFSO.GetFolder(strPath)&lt;BR /&gt;
'&lt;BR /&gt;
' Check files in this directory&lt;BR /&gt;
'&lt;BR /&gt;
n = -1&lt;BR /&gt;
For Each objFile In objFolder.Files&lt;BR /&gt;
If UCase$(Right$(objFile.ShortPath, 4)) = ".DWG" Then&lt;BR /&gt;
m_lngFileCount = m_lngFileCount + 1&lt;BR /&gt;
n = n + 1&lt;BR /&gt;
ReDim Preserve varFs(n)&lt;BR /&gt;
varFs(n) = objFile.Path&lt;BR /&gt;
End If&lt;BR /&gt;
Next objFile&lt;BR /&gt;
&lt;BR /&gt;
' Loop through all subdirectories and&lt;BR /&gt;
' do the same thing.&lt;BR /&gt;
'&lt;BR /&gt;
Set objSubdirs = objFolder.SubFolders&lt;BR /&gt;
For Each objLoopFolder In objSubdirs&lt;BR /&gt;
CheckFolder objLoopFolder.Path&lt;BR /&gt;
Next objLoopFolder&lt;BR /&gt;
&lt;BR /&gt;
Set objSubdirs = Nothing&lt;BR /&gt;
Set objFolder = Nothing&lt;BR /&gt;
CheckFolder = varFs&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CreateCSVFile(fso As Variant, strFname As String)&lt;BR /&gt;
Dim tf&lt;BR /&gt;
If Not fso.FileExists(strFname) Then&lt;BR /&gt;
Set tf = fso.CreateTextFile(strFname, True)&lt;BR /&gt;
Set tf = Nothing&lt;BR /&gt;
End If&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Private Sub WriteToCSVFile(strFname As String, strData As String)&lt;BR /&gt;
Open strFname For Append As #1&lt;BR /&gt;
Write #1, strData&lt;BR /&gt;
Close #1&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Sub BatchReadTitleBlock()&lt;BR /&gt;
Dim oblkRef As AcadBlockReference&lt;BR /&gt;
Dim objFnd As AcadEntity&lt;BR /&gt;
Dim indx As Integer&lt;BR /&gt;
Dim iFiles() As Variant&lt;BR /&gt;
Dim m_objFSO&lt;BR /&gt;
Dim fold, DwgName, cnt As Integer, nm As String&lt;BR /&gt;
&lt;BR /&gt;
fold = BrowseForFolderF("Select Folder for CutList Generation")&lt;BR /&gt;
Set m_objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
&lt;BR /&gt;
iFiles = CheckFolder(fold)&lt;BR /&gt;
&lt;BR /&gt;
CreateCSVFile m_objFSO, "C:\AutoLoft\CutList.txt" &lt;BR /&gt;
&lt;BR /&gt;
Dim oDbx As AxDbDocument&lt;BR /&gt;
&lt;BR /&gt;
Set oDbx = GetInterfaceObject("ObjectDBX.AxDbDocument.16") '/// or 17 for A2007-8&lt;BR /&gt;
&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
For indx = LBound(iFiles) To UBound(iFiles)&lt;BR /&gt;
DwgName = iFiles(indx)&lt;BR /&gt;
oDbx.Open DwgName&lt;BR /&gt;
&lt;BR /&gt;
For Each objFnd In oDbx.PaperSpace&lt;BR /&gt;
If TypeOf objFnd Is AcadBlockReference Then&lt;BR /&gt;
Set oblkRef = objFnd&lt;BR /&gt;
If StrComp(UCase(oblkRef.Name), "TITLEBLOCK", 1) = 0 Then&lt;BR /&gt;
Exit For&lt;BR /&gt;
End If&lt;BR /&gt;
End If&lt;BR /&gt;
Next objFnd&lt;BR /&gt;
&lt;BR /&gt;
With oblkRef&lt;BR /&gt;
Dim atts As Variant&lt;BR /&gt;
Dim strData As String&lt;BR /&gt;
strData = .Name&lt;BR /&gt;
atts = .GetAttributes&lt;BR /&gt;
For i = 0 To UBound(atts)&lt;BR /&gt;
strData = strData &amp;amp; ";" &amp;amp; atts(i).TextString&lt;BR /&gt;
Next i&lt;BR /&gt;
End With&lt;BR /&gt;
&lt;BR /&gt;
WriteToCSVFile "C:\AutoLoft\CutList.txt", strData &lt;BR /&gt;
Set oDbx = Nothing&lt;BR /&gt;
&lt;BR /&gt;
Next indx&lt;BR /&gt;
&lt;BR /&gt;
MsgBox "Text File Created: C:\AutoLoft\CutList.txt"&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
It almost has to be in the latter part of BatchReadTitleBlock.&lt;BR /&gt;
&lt;BR /&gt;
I'm goin' in...</description>
      <pubDate>Wed, 26 Sep 2007 19:00:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076864#M23237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T19:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076865#M23238</link>
      <description>Steve, I can test it tomorrow&lt;BR /&gt;
Hope this is not urgent work for you&lt;BR /&gt;
Later,&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Wed, 26 Sep 2007 19:33:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076865#M23238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T19:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076866#M23239</link>
      <description>Yes, you are right&lt;BR /&gt;
This was my mistake there&lt;BR /&gt;
I 've release DBX object too early&lt;BR /&gt;
Try this instead&lt;BR /&gt;
&lt;BR /&gt;
Option Explicit&lt;BR /&gt;
&lt;BR /&gt;
Public Function BrowseForFolderF(ByVal msg As String) As String&lt;BR /&gt;
Dim oBrowser, folderObj, folderAcpt As Object&lt;BR /&gt;
Dim folderStr As String&lt;BR /&gt;
&lt;BR /&gt;
Set oBrowser = ThisDrawing.Application.GetInterfaceObject("Shell.Application")&lt;BR /&gt;
Set folderAcpt = oBrowser.BrowseForFolder(vbOKOnly, msg, vbDefaultButton3, 0)&lt;BR /&gt;
&lt;BR /&gt;
With folderAcpt&lt;BR /&gt;
Set folderObj = .Self&lt;BR /&gt;
folderStr = folderObj.Path&lt;BR /&gt;
End With&lt;BR /&gt;
Set folderObj = Nothing&lt;BR /&gt;
Set folderAcpt = Nothing&lt;BR /&gt;
Set oBrowser = Nothing&lt;BR /&gt;
BrowseForFolderF = folderStr&lt;BR /&gt;
&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Public Function CheckFolder(ByVal strPath As String) As Variant&lt;BR /&gt;
Dim objFolder ''As Scripting.Folder&lt;BR /&gt;
Dim objFile ''As Scripting.File&lt;BR /&gt;
Dim objSubdirs ''As Scripting.Folders&lt;BR /&gt;
Dim objLoopFolder ''As Scripting.Folder&lt;BR /&gt;
Dim varFs() As Variant&lt;BR /&gt;
Dim m_objFSO, n, m_lngFileCount&lt;BR /&gt;
&lt;BR /&gt;
Set m_objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
Set objFolder = m_objFSO.GetFolder(strPath)&lt;BR /&gt;
'&lt;BR /&gt;
' Check files in this directory&lt;BR /&gt;
'&lt;BR /&gt;
n = -1&lt;BR /&gt;
For Each objFile In objFolder.Files&lt;BR /&gt;
If UCase$(Right$(objFile.ShortPath, 4)) = ".DWG" Then&lt;BR /&gt;
m_lngFileCount = m_lngFileCount + 1&lt;BR /&gt;
n = n + 1&lt;BR /&gt;
ReDim Preserve varFs(n)&lt;BR /&gt;
varFs(n) = objFile.Path&lt;BR /&gt;
End If&lt;BR /&gt;
Next objFile&lt;BR /&gt;
&lt;BR /&gt;
' Loop through all subdirectories and&lt;BR /&gt;
' do the same thing.&lt;BR /&gt;
'&lt;BR /&gt;
Set objSubdirs = objFolder.SubFolders&lt;BR /&gt;
For Each objLoopFolder In objSubdirs&lt;BR /&gt;
CheckFolder objLoopFolder.Path&lt;BR /&gt;
Next objLoopFolder&lt;BR /&gt;
&lt;BR /&gt;
Set objSubdirs = Nothing&lt;BR /&gt;
Set objFolder = Nothing&lt;BR /&gt;
CheckFolder = varFs&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Private Sub CreateCSVFile(fso As Variant, strFname As String)&lt;BR /&gt;
Dim tf&lt;BR /&gt;
If Not fso.FileExists(strFname) Then&lt;BR /&gt;
Set tf = fso.CreateTextFile(strFname, True)&lt;BR /&gt;
Set tf = Nothing&lt;BR /&gt;
End If&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Private Sub WriteToCSVFile(strFname As String, strData As String)&lt;BR /&gt;
Open strFname For Append As #1&lt;BR /&gt;
Write #1, strData&lt;BR /&gt;
Close #1&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Sub BatchReadTitleBlock()&lt;BR /&gt;
Dim oblkRef As AcadBlockReference&lt;BR /&gt;
Dim objFnd As AcadEntity&lt;BR /&gt;
Dim indx As Integer&lt;BR /&gt;
Dim iFiles() As Variant&lt;BR /&gt;
Dim m_objFSO&lt;BR /&gt;
Dim fold, DwgName, cnt As Integer, nm As String&lt;BR /&gt;
&lt;BR /&gt;
fold = BrowseForFolderF("Select Folder for CutList Generation")&lt;BR /&gt;
Set m_objFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
&lt;BR /&gt;
iFiles = CheckFolder(fold)&lt;BR /&gt;
&lt;BR /&gt;
CreateCSVFile m_objFSO, "C:\AutoLoft\CutList.txt"&lt;BR /&gt;
&lt;BR /&gt;
Dim oDbx As AxDbDocument&lt;BR /&gt;
&lt;BR /&gt;
Set oDbx = GetInterfaceObject("ObjectDBX.AxDbDocument.16") '/// or 17 for A2007-8&lt;BR /&gt;
&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
For indx = LBound(iFiles) To UBound(iFiles)&lt;BR /&gt;
DwgName = iFiles(indx)&lt;BR /&gt;
oDbx.Open DwgName&lt;BR /&gt;
&lt;BR /&gt;
For Each objFnd In oDbx.PaperSpace&lt;BR /&gt;
If TypeOf objFnd Is AcadBlockReference Then&lt;BR /&gt;
Set oblkRef = objFnd&lt;BR /&gt;
If StrComp(UCase(oblkRef.Name), "TITLEBLOCK", 1) = 0 Then&lt;BR /&gt;
Exit For&lt;BR /&gt;
End If&lt;BR /&gt;
End If&lt;BR /&gt;
Next objFnd&lt;BR /&gt;
&lt;BR /&gt;
With oblkRef&lt;BR /&gt;
Dim atts As Variant&lt;BR /&gt;
Dim strData As String&lt;BR /&gt;
Dim i&lt;BR /&gt;
strData = .Name&lt;BR /&gt;
atts = .GetAttributes&lt;BR /&gt;
For i = 0 To UBound(atts)&lt;BR /&gt;
strData = strData &amp;amp; ";" &amp;amp; atts(i).TextString&lt;BR /&gt;
Next i&lt;BR /&gt;
End With&lt;BR /&gt;
&lt;BR /&gt;
WriteToCSVFile "C:\AutoLoft\CutList.txt", strData&lt;BR /&gt;
&lt;BR /&gt;
Next indx&lt;BR /&gt;
&lt;BR /&gt;
Set oDbx = Nothing&lt;BR /&gt;
&lt;BR /&gt;
MsgBox "Text File Created: C:\AutoLoft\CutList.txt"&lt;BR /&gt;
&lt;BR /&gt;
End Sub</description>
      <pubDate>Wed, 26 Sep 2007 19:42:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076866#M23239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T19:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076867#M23240</link>
      <description>That was it.  I was called away and didn't get to dig into it.&lt;BR /&gt;
&lt;BR /&gt;
I did add a sub to clear out the text file before filling it up.  Otherwise, it'd always just append onto the old file.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again for everything.  And I hope this code benefits others out there.&lt;BR /&gt;
&lt;BR /&gt;
One thing I'd like to suggest for everybody posing questions on the message boards - Try to be specific in your subject.  There's a whole slew of posts with one word - "ObjectDBX" as a subject.  One has to open all of them to see what they are about.  If you put important words relating to your question, then they can be found with different searches, and are easier to sort thru.&lt;BR /&gt;
&lt;BR /&gt;
Thanks again, Fatty.</description>
      <pubDate>Wed, 26 Sep 2007 21:19:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076867#M23240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-26T21:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Block Att with ObjectDBX</title>
      <link>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076868#M23241</link>
      <description>Glad you figured it out&lt;BR /&gt;
Youre welcome&lt;BR /&gt;
&lt;BR /&gt;
~'J'~</description>
      <pubDate>Thu, 27 Sep 2007 04:24:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/extract-block-att-with-objectdbx/m-p/2076868#M23241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-09-27T04:24:46Z</dc:date>
    </item>
  </channel>
</rss>

