Inventor does not work normally when created with Activator.CreateInstance

Inventor does not work normally when created with Activator.CreateInstance

mucahid.tdk
Explorer Explorer
299 Views
0 Replies
Message 1 of 1

Inventor does not work normally when created with Activator.CreateInstance

mucahid.tdk
Explorer
Explorer
Hello everyone,
I am developing an application that assembles parts in Inventor. I am using .Net 6.0.
The application works as follows using Autodesk.Inventor.Interop.dll;

1-) Information on how to assemble and the features of the parts comes to the application as a request.
2-) the inventor opens.
3-) The assembly file is created.
4-) The parts to be assembled are copied and added to the project.
5-) The parameters of the parts are updated.
6-) Assembly operations such as Mate flush are done

The piece of code I used to open inventor in step 2 is as follows:

 

 

Type type = Type.GetTypeFromProgID("Inventor.Application");
Inventor.Application app = (Inventor.Application)Activator.CreateInstance(type);​

 

 

When I run inventor this way through my application, it doesn't work like a normal inventor.
 
A. When I want to turn off the inventor, I cannot turn it off. It remains open in "TaskManager".
similar thread

 

B. When the inventor performs an action with ilogic, it uses a cookie at "C:\Users\username\AppData\Local\Temp\iLogic Rules" (ScreenShot2).
This causes conflict of ilogic rules triggered when there is more than one request while changing the parameters of the parts.(ScreenShot1)

 

In order to solve these problems, I need to start the inventor better or find a way to not use cookies. How can I overcome these problems? I look forward to your help and thoughts.
0 Likes
300 Views
0 Replies
Replies (0)