Mass didn't updated while changing the parameters.

Mass didn't updated while changing the parameters.

Anonymous
Not applicable
347 Views
0 Replies
Message 1 of 1

Mass didn't updated while changing the parameters.

Anonymous
Not applicable

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?

 

 

348 Views
0 Replies
Replies (0)