Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
bhattarai_suyesh
908 Views, 12 Replies

Access parameters without Inventor running in the background

I currently have code that opens an Inventor session in the background and takes inputs from the user in a customized .net interface. The code that allows access into the Inventor parameters is as follows:


System.Type oType = System.Type.GetTypeFromProgID("Inventor.Application"); // Start new Inventor session.
inventorApp = (Inventor.Application)System.Activator.CreateInstance(oType);
inventorApp.Visible = false; // Make Inventor invisible.

inventorModel = inventorApp.Documents.Open("C:\\filename.ipt", false) as Inventor.Document;

PartDocument partDocument = inventorModel as PartDocument;

Parameters parameters = partDocument.ComponentDefinition.Parameters; //define parameters variable
parameters["x"].Value =  10; //change parameter value

 

This code opens the Inventor application and the active document in the background. 

 

Is there any option where we can change the parameter value without running Inventor at all?