Пример #1
0
 protected void DecideIfWeShouldCloseInventorAfterCompletion()
 {
     if (InventorInstance.NumberOfRunningInventorInstances() == 0)
     {
         _closeInventorAfterCompletion = true;
     }
 }
Пример #2
0
 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);
     }
 }