Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventor does not work normally when created with Activator.CreateInstance

0 REPLIES 0
Reply
Message 1 of 1
mucahid.tdk
126 Views, 0 Replies

Inventor does not work normally when created with Activator.CreateInstance

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.
Tags (2)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report