Message 1 of 7
Not applicable
03-21-2016
03:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are creating the table from Excel 2010 - everything used to work until AutoCAD 2016 was installed or so we think.
Error message received:
---------------------------
Microsoft Excel
---------------------------
AcRxClassName entry is not in the system registry
Error Number: -2145320940
---------------------------
OK
---------------------------
Code Excerpts
' 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)Function to check for Table Style
' 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
Registry Settings
Pulling my hair out...or perhaps I'm just going bald?
Anyway, anybody have any words of wisdom?
Thanks in advance.
Mike
Solved! Go to Solution.