Hi,. I made some change in the parameters of an assembly,it will affect the assembly and will change the parameter.but its mass and other iproperties didn't updated with respect to the parametr change.here is my code for change the parameter.
Dim oPartDoc As Document = inventorApp.ActiveDocument
Dim oParameters As Parameters
oParameters = oPartDoc.ComponentDefinition.Parameters()
Dim oLengthParam As Parameter
oLengthParam = oParameters.Item("dim_L")
oLengthParam.Expression = TextBox1.Text
Oodc2.Update()
I try to update mass by calling the mass like this code
Dim mass As Double = Oodc2.ComponentDefinition.MassProperties.Mass
but it can't help me.
Anybody help?
--- *AM* ----