The Sample Invetor Add in program worked.
The attached zip file contains a working Inventor Add-in sample program. I have also attached a image showing that the InventorSampleProg worked successfully. I changed the Message from
Some cool stuff happenin' here...
to
Some cool stuff happenin' here... Successfully Launched Inventor Sample Prog
This is what I did
I took the modified Template Addin_Template.zip provided by
Owner2229
I did the following steps
1) Modified _New Inventor Addin.bat in which the last line was modified : replaced %InputFile4% with %InputFile5%
2) Ran the _New Inventor Addin.bat and created the InventorSampleProg project/solution
3) Launched Visual Studio 2012
4) Opened the solution InventorSampleProg.sln. There were few Visual Studio pop-up messages (like One Way Upgrade), which I accepted
5) Ensured that the reference Autodesk.Inventor.Interop.dll added correctly (the path)
6) Then opened the Compile tab of the Project Properties by right clicking on the project. Scrolled to the bottom and clicked on the "Build Events" button on the right side
7) Deleted all the lines in "Post-build event command line" and clicked on "OK". This post-build event was causing the error of "Error 1 The command "call "C:\Program File.........."
8) Successfully ran the "Build Solution" which compiled and created the InventorSampleProg.dll
9) Read the "Getting Started with Inventor's API" by clicking on the Help-->Community Resources--> Programming Help . Created a folder named InventorSampleProg in C:\Users\<UserID>\AppData\Roaming\Autodesk\ApplicationPlugins . In the InventorSampleProg folder I copied the InventorSampleProg.dll and the SVOS.InventorSampleProg.Inventor.addin.
10) Renamed SVOS.InventorSampleProg.Inventor.addin to Autodesk.InventorSampleProg.Inventor.addin
11) Edited the Autodesk.InventorSampleProg.Inventor.addin file. In the <Assembly> tag removed the Folder Location (Path) to InventorSampleProg.dll.
The line should look like this <Assembly>InventorSampleProg.dll</Assembly>
12) Launched Inventor 2014 Pro
13) Opened an assembly and in the Assemble Tab, saw the InventorSampleProg button with "I" ICON.
14) Clicked on the InventorSampleProg button and got the message " Some cool stuff happenin' here... ". Then modified the message, and repeated the process and successfully saw the updated message.
Thanks a lot for Owner2229 for providing the updated / fixed AddIn Templates and for Jef_E pointing out to the possible issue.
PV Subramanian