Message 1 of 4
Confused and frustrated

Not applicable
02-11-2005
11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Making a new addin
1. saved to DLL
2. Ran Addin Script Builder from Charles site
3. copied clsid from Registry to toolbutton controls in the Class Module
4. Made sure Binary compatibility was on and made new DLL
5. tried running Inventor, but nothing showed up.
6. Many times ran regsvr32.exe, the .reg file, but still nothing shows up.
7. Tried install program a few times but nothing shows up.
8. Clean registry of every sign of the addin name and clsid
9. deleted old dll, and removed compatibility check.
10. Created dll
11. Ran Regsvr32.exe on it
12. found in Registry and copied clsid to reg file and class module button
calls.
13. Restored compatibility check and re-created dll
14. Ran Regsvr32.exe on it, and ran reg file
15. Still nothing shows up when starting Inventor.
16. Ran Addin Script builder, (It always asks if I want to add to registry
and I always say yes)
17. Ran install Exe and let it install to default dir.
18. toolbutton and toolbar show up when starting Inventor but fail when
button pressed. (I know I have problems in the button code that I would like
to debug)
19. Tried running in Debug mode, but nothing shows up in Inventor.
20. Uninstalled using add/remove programs, ran regsvr32.exe on dll in the vb
project folder, and ran reg file.
21. Still nothing shows up in Inventor.
22. Edited NSI script to install to my VB Project folder, and renamed old
dll for safety
23. Installed and toolbar and button show up when starting Inventor
24. Closed Inventor, and tried to run project in Debug mode. .... Nothing
shows up in Inventor.
25. Edited Registry, and found clsid in Command Owner IDs and changed HasRun
to 0
26. Started not in Debug mode, and toolbar and button show up. Press and
program fails
27. Nothing I do ... changing Has run to 0, registering dll, etc causes it
to show up again.
The above may not be the "Exact" steps I have taken, but are close as best
my memory works.
What am I doing wrong? This type of thing has happened on every addin I
have worked with since the changed UI stuff in R9. Once it starts working
generally it will keep working, but not this time.
Am I the only one that is running into problems with the new UI calls? But
I am not even sure that is part of this problem. If when trying to run in
Debug mode, I put a break on "Private Sub
ApplicationAddInServer_Activate(ByVal AddInSiteObject As
Inventor.ApplicationAddInSite, ByVal FirstTime As Boolean)" it never even
gets that far.
I have one addin that most the time it works, but occasionally it won't
install on the toolbar, and you have to go into customize and find it and
drag it to the toolbar.
The sad thing is I know if I went back to the R8 methods I could be working
on this in minutes, but I don't have a good feeling about the old methods
being supported in the future.
--
Kent Keller