Results 1 to 10 of 54

Thread: VBA and ObjectDbx - AutoCAD to Excel Attribute Extraction Tool

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Member
    Join Date
    2008-08
    Location
    Tacoma, WA
    Posts
    3
    Login to Give a bone
    0

    Default VBA and ObjectDbx - AutoCAD to Excel Attribute Extraction Tool

    I have created a visual basic program in microsoft Excel using ObjectDbx that will currently do the following:
    - Generate a list of AutoCAD dwgs in the current directory (where excel file is saved) and display the list in Excel
    - Search the drawings in the list for a specified block and display the attributes of the block in Excel
    - You can then change the attributes shown in Excel and send them back to the listed AutoCAD dwgs
    - Search the drawings in the list and display all external references in Excel

    This program works fine with the following exceptions:
    Issue #1: When attributes are updated with this program, they will appear left justified until the block is refreshed (known issue)
    Issue #2: The program will only find a single instance of the specified block in each drawing. This issue occurs if you have multiple Paperspace tabs with the specified block inserted in each tab.

    QUESTIONS:
    Has anyone out there been able to resolve Issue #2 using ObjectDbx?
    or
    Will I need to go through the AutoCAD interface and generate selection sets somehow?

    ATTACHMENT:
    I attached my Excel file to this posting for reference. It is a very useful tool given the above issues. I am sure that it could have been a little cleaner but at least I have some commenting. Feel free to post questions or comments regarding the program and I will do my best to answer them.

    Notes:
    - In Excel VBA, need to reference: Microsoft Scripting Runtime, AutoCAD 2008 type Library, AutoCAD/ObjectDbx Common 17.0 Type Library
    - Compatibility: AutoCAD 2008, Excel 2003+
    Attached Files Attached Files

Similar Threads

  1. CP214-3: All Things Extraction: From AutoCAD to Databases, Excel, and XML Using .NET
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2014-12-01, 02:08 AM
  2. Help needed with Attribute extraction and import into MS Excel
    By Lee Buckmaster in forum Productstream - General
    Replies: 0
    Last Post: 2012-04-30, 08:23 PM
  3. Attribute extraction to Word or Excel
    By KristiS in forum CAD Management - General
    Replies: 6
    Last Post: 2009-01-06, 09:16 PM
  4. attribute extraction to excel
    By jbortoli in forum VBA/COM Interop
    Replies: 5
    Last Post: 2008-02-07, 01:58 PM
  5. Block attribute extraction to an AutoCAD Table
    By DFlynn in forum AutoCAD Tables
    Replies: 2
    Last Post: 2006-02-13, 01:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •