Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mass didn't updated while changing the parameters.

0 REPLIES 0
Reply
Message 1 of 1
arunkgvm
286 Views, 0 Replies

Mass didn't updated while changing the parameters.

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* ----
Tags (1)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums