By Adam Nagy
Using Apprentice from inside the Inventor process is not supported. So using it from anything that is running in-process with Inventor like VBA, an Add-In dll or an iLogic code, is also not supported.
Before 64 bit VBA became available, the 64 bit version of Inventor was using the 32 bit VBA environment which had to run in a separate process. In that case you could get away with using Apprentice from VBA. Now (I think since Inventor 2014) VBA is running in-process with 64 bit Inventor, so now you cannot use Apprentice from VBA.
Easiest solution is to wrap all the Apprentice related functionality into your own exe and call that from inside Inventor, or just rely on the Inventor API to achieve what you need. E.g. for quite a few releases now ReplaceReference has been available in Inventor API too.