Every Inventor OEM application requires at least one add-in. The primary add-in is the first add-in that Inventor OEM loads. The function of the primary add-in is to verify licensing, and implement functionality in the OEM application.
When you activate your add-in, use the licensing technology you chose to verify that the license is valid. Perform the check in the Activate method of your add-in. If the license is valid, your add-in continues to run normally. If the license is not valid, call the Application Quit method to shut down Inventor OEM. Inventor OEM continues to load, but once loaded, it immediately terminates.
Implement any other functionality in the OEM application.
The iBlock application demonstrates both of these concepts.
Primary add-ins, and any other add-ins used with Inventor OEM are standard Inventor add-ins. However, there are some differences between most primary and other add-ins.
The Inventor Add-In wizard delivered as part of the Inventor 2012 SDK creates registry-free add-ins. To convert an existing add-in that is not registry-free to registry-free, see the step-by-step directions in appendix A.