protected void DecideIfWeShouldCloseInventorAfterCompletion()
 {
     if (InventorInstance.NumberOfRunningInventorInstances() == 0)
     {
         _closeInventorAfterCompletion = true;
     }
 }
 protected Inventor.Application GetInventorInstance()
 {
     try
     {
         Inventor.Application i = InventorInstance.GetInventorAppReference();
         return(i);
     }
     catch (Exception e)
     {
         throw new SystemException("The Inventor application could not be started on this computer.  Is it installed?  Process aborted, press any key to continue...", e);
     }
 }