RegEdit Lanucher is a widget of the AutoCAD .NET Addin Widget group of AutoCAD .NET Addin Wizard (AcadNetAddinWizard). It can be found from the menu group of AutoCAD .NET Addin Widget under the Tools main menu or the toolbar:
After the RegEdit Launcher menu item or toolbar button is clicked, the AutoCAD RegEdit Launcher window will pup up:
All installed AutoCAD versions and flavors are listed out in the Product combo box. When one is chosen, its detailed information, both for internal purposes such as Major Version, Minor Version and X64 bitness and for display purposes such as the well known yearly Version Name and the Language, will be displayed in the nice dialog. The most important of all, the registry key of the AutoCAD product is also shown at the bottom, and if the Launch button is pressed, a Windows Registry Editor will be opened up and navigated to the particular AutoCAD registry key of interest right away automatically.
The leading edge AutoCAD .NET Addin Wizard (AcadNetAddinWizard) provides some more cool widgets to facilitate the development work using AutoCAD .NET API.
Just installed the Wizard on Windows 7 64-bit with VS 2010 and when starting a new project I only get "Object reference not set to an instance of an object" and status says "project creation failed". Any ideas?
Posted by: Jimmy Bergmark (JTB World) | 02/26/2012 at 12:12 AM
Please make sure the SP1 has been applied to the VS 2010. Just tried to create a C# AutoCAD .NET addin project using the AcadNetAddinWizard in the environment as you mentioned and verified it worked well.
If it still fails, please make sure an AutoCAD has been installed, lib path correctly pointed to, and other options properly set. It seems the Project Wizard appeared fine on your side but the VS project generation failed due to some setting issues. Feel free to provide details about the problem anyway.
Posted by: Spiderinnet1 | 02/26/2012 at 02:52 AM
Tried the VB.NET project wizard too and it worked also well on my side. BTW, I tried those all for AutoCAD 2012.
If you are using a different AutoCAD version or a vertical product, please point it out. Though the AutoCAD .NET Addin Wizard has been tested on various AutoCAD versions and flavors, it's likely that something has not been in consideration for some particularities of AutoCAD like an old version or not so popular a flavor.
Posted by: Spiderinnet1 | 02/26/2012 at 03:06 AM
It might be that there is something in the registry that cannot be handled. I tried the AutoCAD locator and the Product dropdown is empty.
I can see that the key HKEY_LOCAL_MACHINE\Wow6432Node\SOFTWARE\Autodesk\AutoCAD is tried to be opened but it does not exists. I only have things below HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD
Posted by: Jimmy Bergmark (JTB World) | 02/27/2012 at 06:28 AM
That's weird. Are you having some 32bit AutoCAD on the Windows 7 64bit?
BTW, what build of AcadNetAddinWizard are you using? The latest is v0.3.0.0. If it's a bit earlier on your side, please get the new build downloaded from the latest posts.
Also wonder if the VS 2010 matters. SP1 has been applied, right? It's 32bit, isn't it? I haven't heard of VS 2010 64bit, but it may be worth of checking.
Posted by: Spiderinnet1 | 02/27/2012 at 04:59 PM
I only had 64-bit AutoCADs installed and VS 2010 SP1 applied. Version downloaded was 0.2.8. Guess downloading from older posts was not a good idea. Hm, just downloaded from the second latest post and the version is still 0.2.8. The link from the latest post required login.
Posted by: Jimmy Bergmark (JTB World) | 03/03/2012 at 10:50 AM
Fixed the login issue and updated the link to the latest build. Tried to download the AcadNetAddinWizard from the latest three posts and found it's version was 0.3.0 and worked fine. Here is the link for convenience:
https://docs.google.com/open?id=0B13_dQJqHUAjYTA5OTQ5MjUtZTYwMC00ZGI0LWEwOWUtODkxYzQ0M2NkOTA4
Posted by: Spiderinnet1 | 03/03/2012 at 11:01 PM
Tired again and still the version shows as 0.2.8 in Windows uninstall list. But I checked the About dialog box and found it was 0.3.0.
Unfortunately the problem is still the same.
I think the problem is that since Visual Studio 2010 is 32-bit your code does not look in the registry for the 64-bit applications. See http://msdn.microsoft.com/en-us/library/aa384129(v=vs.85).aspx
Posted by: Jimmy Bergmark (JTB World) | 03/04/2012 at 08:04 AM
Ah, the installer version has not been updated from 0.2.8 to 0.3.0.
In terms of accessing to registry keys either 64bit or 32bit, AcadNetAddinWizard has taken it into account. The wizard has also been tested in the same environment as you mentioned. The only thing is that the AutoCAD versions are new, 2012 and 2011 as demonstrated in the post.
If you are using an old version of AutoCAD, things should be still fine, but it would be helpful for trouble shotting if details were given.
Another good idea is to find a different computer, a different VS (e.g. 2008), and/or a different AutoCAD and give the wizard one more try there.
Posted by: Spiderinnet1 | 03/04/2012 at 04:26 PM
Not sure how to enumerate the registry but maybe it can help you to try with my copy of HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD and see if you can reproduce it.
https://www.yousendit.com/download/M3Buc0x5eFVreEFzeHNUQw
Posted by: Jimmy Bergmark (JTB World) | 03/05/2012 at 04:59 AM
Typo. Meant to say "Not sure how you enumerate..."
Posted by: Jimmy Bergmark (JTB World) | 03/05/2012 at 12:02 PM
Thanks for the hints and the reg file. It did remind me something. As mentioned earlier, if there were some 32 bit AutoCAD products on your Windows 7 64bit, the registry enumeration in AcadNetAddinWizard including its Project Wizard, the AutoCAD Locator and the RegEdit Launcher likely would cause issues.
It has been improved, tested in such an environment, and verified to work fine. Please give the latest build with #0.3.1 a try and see how it works this time on your side. It can be found from the same link as appended earlier.
Posted by: Spiderinnet1 | 03/06/2012 at 04:45 AM
Unfortunately still no go. Same error. I do see a few more things in the menu but that might be new features. Some of them are grayed out. And then after restarting VS I cannot get them to show at all.
Posted by: Jimmy Bergmark (JTB World) | 03/06/2012 at 01:16 PM
Oh, that is odder. May I know some details about the problem then?
Not sure if you checked on the following post:
http://spiderinnet1.typepad.com/blog/2011/11/create-autocad-net-c-addin-in-visual-studio-2008-using-acadnetaddinwizard.html#tp
and if you had a chance to see all the wizard dialogs listed out there and which one did not look so good, like the AutoCAD version or flavors combo box had nothing or some weird chars somewhere in the Command Flags listbox.
If everthing looked good but the error came up after the Finish button in the Summary dialog was pressed, there must be something wrong with the project auto-setup or code auto-generation. Then you may tick something off such as Start AutoCAD when Debugging and Use AutoCAD COM in the wizard options and see if things change.
In addition, if you have a chance, please try the AutoCAD Locator and the RegEdit Launcher as well and see what exact problems they have and what differences between them.
If some images could be captured and uploaded somewhere, I would like to look at and hopefully get some other ideas about what may be going on.
In terms of the Menu and the Toolbar of the AcadNetAddinWizard, they could be got back from the right click Toolbar Context menu in VS IDE or through resetting the AcadNetAddinCoder and/or AcadNetAddinWizard connections like:
devenv /resettaddin AcadNetAddinCoder.Connect
devenv /resetaddin AcadNetAddinWizard.Connect
Posted by: Spiderinnet1 | 03/06/2012 at 08:11 PM
I repaired the installation and got the menu items show up again.
AutoCAD Locator dialog box showed up empty with nothing in the dropdown and when closed both the locator and the RegEdit Launcher where grayed out.
Running the Wizard immediately shows"Object reference not set to an instance of an object."
Posted by: Jimmy Bergmark (JTB World) | 03/07/2012 at 05:56 AM
That really indicated the AutoCAD product list was not properly populated then. Could you check that all the 64 bit AutoCAD can be launched properly and there is nothing under the following 32 bit registry key?
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Autodesk\AutoCAD
Another thing worth of trying is lanuch VS as Adminstrator and make sure the current user has the administrator previledge and see if it makes any difference.
In terms of the grey out of the icons/menu items of the AutoCAD Locator and the RegEdit Launcher, I believe at that moment no project has been opened. If a C# project for example is opened and set as active, the icons/menu items will be back to life.
Posted by: Spiderinnet1 | 03/08/2012 at 12:14 AM
The AutoCAD registry search code has been carefully reviewed and enhanced and a new build posted to the same link as appended earlier.
Though it is not clear that why you got the error in your environment, the new code should allow the AcadNetAddinWizard to continue so that you can see the wizard pages this time. Please feel free to report back if something still does not look or behave normal.
The version number stays the same.
Posted by: Spiderinnet1 | 03/08/2012 at 03:37 AM
The latest update you make solved things so I can start trying it out further. Thanks!
Posted by: Jimmy Bergmark (JTB World) | 03/09/2012 at 12:48 PM
You are welcome.
Glad to hear the problem finally went away. Please feel free to report back anything else in the future, good or bad.
Posted by: Spiderinnet1 | 03/09/2012 at 09:44 PM