<?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: Autocad 2015/2016 - Create new tablestyle method throwing error in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6229485#M9042</link>
    <description>&lt;P&gt;Have you checked your project's references to make sure you're still referencing the correct libary versions?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2016 23:26:44 GMT</pubDate>
    <dc:creator>Ed__Jobe</dc:creator>
    <dc:date>2016-03-22T23:26:44Z</dc:date>
    <item>
      <title>Autocad 2015/2016 - Create new tablestyle method throwing error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6227306#M9039</link>
      <description>&lt;P&gt;We are creating the table from Excel 2010 - everything used to work until AutoCAD 2016 was installed or so we think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error message received:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Microsoft Excel&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;AcRxClassName entry is not in the system registry&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Error Number: -2145320940&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;OK&amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;---------------------------&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code Excerpts&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;' Grab the tablestyle dictionary object
 Set oDict = adoc.Database.Dictionaries.Item("ACAD_tablestyle")

 sClassName = "AcDbTableStyle"
.
.
.
    ' Check to see if the substation tablestyle has already been created
    If Not (tblStyleChkFlag(adoc, "DwgList")) Then
        'create the TableStyle object in the dictionary
        Set oTblSty = oDict.AddObject("DwgList", sClassName)&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Function to check for Table Style&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;' Function to check and see if a table style exists in a drawing
Public Function tblStyleChkFlag(acadDoc As AcadDocument, tblStyleChk As String) As Boolean

Dim sKeyname As String
Dim sClassName As String

Dim oDict As AcadDictionary
Dim oTblSty As acadTableStyle

' Grab the tablestyle dictionary object
     Set oDict = acadDoc.Database.Dictionaries.Item("acad_tablestyle")
    
    ' Check to see if the tablestyle already exists
    For Each oTblSty In oDict
        If oTblSty.name = tblStyleChk Then
            tblStyleChkFlag = True
            Exit For
        Else
            tblStyleChkFlag = False
        End If
    Next oTblSty

End Function&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Registry Settings&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/226274i9D1D17282F995E79/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="acdbtablestyle-excerpt.JPG" title="acdbtablestyle-excerpt.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pulling my hair out...or perhaps I'm just going bald?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, anybody have any words of wisdom?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:17:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6227306#M9039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-21T22:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad 2015/2016 - Create new tablestyle method throwing error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6228386#M9040</link>
      <description>&lt;P&gt;Probably due to the fact that Office 2010 is 32bit and acad is 64bit.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 14:33:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6228386#M9040</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2016-03-22T14:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad 2015/2016 - Create new tablestyle method throwing error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6228445#M9041</link>
      <description>Used to work - last month. With AutoCAD 2015 - never had an issue until I installed 2016.</description>
      <pubDate>Tue, 22 Mar 2016 14:58:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6228445#M9041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad 2015/2016 - Create new tablestyle method throwing error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6229485#M9042</link>
      <description>&lt;P&gt;Have you checked your project's references to make sure you're still referencing the correct libary versions?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 23:26:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6229485#M9042</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2016-03-22T23:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad 2015/2016 - Create new tablestyle method throwing error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6230206#M9043</link>
      <description>&lt;P&gt;We are showing three library references to the axdblib all of which give the same error when loaded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; AXDBLib | C:\Program Files (x86)\Common Files\Autodesk Shared\axdb20enu.tlb&lt;/P&gt;&lt;P&gt;2) AXDBLib | C:\Program Files\Common Files\Autodesk Shared\axdb20enu.tlb&lt;/P&gt;&lt;P&gt;3) AXDBLib | C:\Program Files\Common Files\Autodesk Shared\axdb21enu.tlb&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/226632i3D7A4FE0C1299A4B/image-size/original?v=lz-1&amp;amp;px=-1" alt="temp-axdb-lib-error.JPG" title="temp-axdb-lib-error.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not installed ACAD 2017, but I _did_ have a beta copy of INV 2017 installed.&amp;nbsp; INV 2017 has been removed - but the problem remains.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IT installed a fresh copy of ACAD 2015 (Vanilla) on a PC running Windows 10 and Office 2010&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That PC is using the AXDBlib from C:\Program Files\Common Files\Autodesk Shared\axdb20enu.tlb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately that PC is having issues with the Listview control from VB6 - MSCOMCTL.ocx - so I'm unable to test at this time until that problem is resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Registry settings from a PC with only ACAD 2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\ObjectDBX\R20.0\ActiveXCLSID]
"AcDbSortentsTable"="{5EB6721F-506E-4817-B3BF-A4902DDB21AE}"
"AcDbTableStyle"="{73157A89-ABE5-40A5-88E6-C0C94BC718C7}"
"AcDbMLeaderStyle"="{E2C1822C-791C-48BB-AFD0-00890DE860C1}"
"AcDbDictionary"="{8F61C491-AA22-4AB8-8B2D-E24B0AA4303D}"&lt;/PRE&gt;&lt;P&gt;Once the IT guy (or I) can get the form control issue resolved on the testing PC I'll report back my findings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 12:16:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6230206#M9043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-23T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad 2015/2016 - Create new tablestyle method throwing error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6232208#M9044</link>
      <description>&lt;P&gt;Success creating new table styles in ACAD 2015 on a 64bit PC running WIN10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is the ACAD2017 arxdb leftover in the my Registry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least I've narrowed down the problem to ACAD not Windows.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 11:48:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6232208#M9044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T11:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Autocad 2015/2016 - Create new tablestyle method throwing error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6232396#M9045</link>
      <description>&lt;P&gt;Did a reinstall of 2015 - stil getting the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally decided to export the registry from the R20.0 ActiveXCLSID on the computer with the fresh install of ACAD 2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Before importing the export registry keys I checked each data string to make sure it was a valid key on my PC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After verifying that the four data strings existed in the Registry on my PC the registry export was imported into my PC and a reboot was performed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the reboot the Excel VBA program was again able to function correctly and create new table styles in an ACAD drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I just need to port the VBA program to Dot Net...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:07:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-2015-2016-create-new-tablestyle-method-throwing-error/m-p/6232396#M9045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-24T13:07:39Z</dc:date>
    </item>
  </channel>
</rss>

