Hi, you'll have to open the part if you want to write in it, but you can open it as "hiden", so:
Dim FName As String = "C:\MyFolder\Mypart.ipt"
Dim MyPara As String = "MyParameter"
Dim oValue As String = "MyNewValue"
Dim oDoc As Inventor.Document = ThisApplication.Documents.Open(FName, False)
Dim oParams As Inventor.Parameters = oDoc.ComponentDefinition.Parameters
Dim oPara As Inventor.Parameter = oParams.Item(MyPara)
oPara.Expression = oValue
oDoc.Update
oDoc.Save
oDoc.Close(True)
Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods