- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
Solved! Go to Solution.