- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I'm having an update issue when I try to vary a parameter by a step.
I'm trying to retrieve the part's masses by varying a parameter.
For example, I have a rectangular Sheet Metal part with a length of "Length." If I create a rule and add this code:
Length += 200 iLogicVb.UpdateWhenDone = True MessageBox.Show(iProperties.Mass)
Each time I run the rule, the part changes visually and the mass changes.
However, if I insert this code into a for Each loop, it no longer works.
For Length = 200 To 1000 Step 200 iLogicVb.UpdateWhenDone = True MessageBox.Show(iProperties.Mass) Next
I tried:
ThisApplication.CommandManager.ControlDefinitions.Item("PartRebuildAllCmd").Execute
ThisApplication.CommandManager.ControlDefinitions.Item("AppUpdateMassPropertiesCmd").Execute
But without success. I'm out of ideas.
Does anyone have any suggestions?
My goal is to get all the part's masses for each configuration.
Thanks.
Vincent.
Solved! Go to Solution.