TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: BazzaCAD on April 21, 2016, 03:21:58 PM

Title: AcRxClassName entry is not in the system registry
Post by: BazzaCAD on April 21, 2016, 03:21:58 PM
AutoCAD 2015 SP2.
My code has been running fine for years with no issues, now all of a sudden I'm getting 2 different "AcRxClassName entry is not in the system registry" errors.

I've narrowed this down to 2 sections of code:

1) When Acad starts up I create some layer filters:
Code - Auto/Visual Lisp: [Select]
  1.         (vlax-Get-Acad-Object)
  2.       )
  3.     )
  4.   )
  5.   "ACAD_LAYERFILTERS"
  6.   "AcDbDictionary"
  7. )

Here I get "error: Automation Error. AcRxClassName entry is not in the system registry" from vla-addobject.
The layer filters commands seem to run fine from the layer properties manager palette.

2) I have commands to draw MLeaders with a specific style, the code check to make sure the styles are already there & if not, creates them.
Code - Auto/Visual Lisp: [Select]
  1. (setq mldrdict (vla-item (vla-get-dictionaries *doc*) "ACAD_MLEADERSTYLE"))
  2. (setq newmldrstyle (vlax-invoke mldrdict 'addobject "BIGARROW" "AcDbMLeaderStyle"))

Here I get "error: AutoCAD.Application: AcRxClassName entry is not in the system registry" from vlax-invoke.
If I just type MLEADER it runs fine.

I've already re-installed Autocad from scratch.
Any other ideas?

Title: Re: AcRxClassName entry is not in the system registry
Post by: Alexander Rivilis on April 21, 2016, 04:08:16 PM
Check registry branch:
Code: [Select]
REGEDIT4

[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}"

Code: [Select]
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\ObjectDBX\R20.1\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}"
Title: Re: AcRxClassName entry is not in the system registry
Post by: BazzaCAD on April 21, 2016, 04:13:50 PM
Thanks for the reply.
No I don't have any of those....

Title: Re: AcRxClassName entry is not in the system registry
Post by: Alexander Rivilis on April 21, 2016, 04:33:11 PM
Thanks for the reply.
No I don't have any of those....
So save code in .reg file, import it and reboot Windows.
P.S.: The same problem was solved: http://forums.autodesk.com/t5/visual-basic-customization/autocad-2015-2016-create-new-tablestyle-method-throwing-error/td-p/6227306
Title: Re: AcRxClassName entry is not in the system registry
Post by: BazzaCAD on April 21, 2016, 06:26:37 PM
So save code in .reg file, import it and reboot Windows.
P.S.: The same problem was solved: http://forums.autodesk.com/t5/visual-basic-customization/autocad-2015-2016-create-new-tablestyle-method-throwing-error/td-p/6227306

Yap that did it thanks.
I wonder what caused it to disappear...
Title: Re: AcRxClassName entry is not in the system registry
Post by: Jeff_M on April 21, 2016, 07:02:23 PM
Yap that did it thanks.
I wonder what caused it to disappear...
Did you do any AutoCAD 2017 Beta testing?
Title: Re: AcRxClassName entry is not in the system registry
Post by: BazzaCAD on April 21, 2016, 07:03:38 PM
Did you do any AutoCAD 2017 Beta testing?

Yap. ;-(
Title: Re: AcRxClassName entry is not in the system registry
Post by: Jeff_M on April 21, 2016, 07:10:15 PM
Yeah, the uninstaller graciously wiped out the ObjectDBX entries for ALL installed versions instead of just the one it was uninstalling. There were many other entries in there....SheetSetManager, TableStyles, etc. I have a good REG file I exported after correcting all of the ones I have installed and lost.
Title: Re: AcRxClassName entry is not in the system registry
Post by: BazzaCAD on April 21, 2016, 07:21:39 PM
Is it only in [HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\ObjectDBX\R20.0\ActiveXCLSID]
or are there other locations too?
I can get a reg from another machine.
Title: Re: AcRxClassName entry is not in the system registry
Post by: Jeff_M on April 21, 2016, 07:38:11 PM
Everything here should be added back from a good install:
[HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\ObjectDBX\R20.0\]

Mine has 4 keys, each with multiple entries. I'm pretty sure that 2 of the keys are C3D related, the other one is SheetSetManager.