Confused and frustrated

Confused and frustrated

Anonymous
Not applicable
416 Views
3 Replies
Message 1 of 4

Confused and frustrated

Anonymous
Not applicable
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
0 Likes
417 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
One thing which perhaps helps: Have you checked if there were any instances of Inventor running in the back ground after a crash? These things will sometimes prevent the Addin from being loaded (at least, that's what I sometimes experience) That's all that I can come up with... Teun "Kent Keller" wrote in message news:420d076a$1_1@newsprd01... > 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 > >
0 Likes
Message 3 of 4

Anonymous
Not applicable
Thanks for the reply Teun Inventor running in the background is usually the first thing I check when I start running into odd problems. I haven't had a chance to look at it today yet, but hopefully a new day will bring some new clues. -- Kent Keller Autodesk Discussion Forum Facilitator "Teun Ham (IV9 SP2)" wrote in message news:42105c59_2@newsprd01... > One thing which perhaps helps: > > Have you checked if there were any instances of Inventor running in the back > ground after a crash? > > These things will sometimes prevent the Addin from being loaded (at least, > that's what I sometimes experience) > > That's all that I can come up with... > > Teun
0 Likes
Message 4 of 4

Anonymous
Not applicable
Could it also be some type of conflict with an un-mentionable upcoming software release of you know what, or are you only running one version of Inventor on the machine in question? I realize you can't really answer that here, but it is something to think about. "Kent Keller" wrote in message news:4210d1ec$1_1@newsprd01... > Thanks for the reply Teun > > Inventor running in the background is usually the first thing I check when I > start running into odd problems. > > I haven't had a chance to look at it today yet, but hopefully a new day will > bring some new clues. > > -- > Kent Keller > Autodesk Discussion Forum Facilitator > > > "Teun Ham (IV9 SP2)" wrote in > message news:42105c59_2@newsprd01... >> One thing which perhaps helps: >> >> Have you checked if there were any instances of Inventor running in the > back >> ground after a crash? >> >> These things will sometimes prevent the Addin from being loaded (at least, >> that's what I sometimes experience) >> >> That's all that I can come up with... >> >> Teun > >
0 Likes