Hi,
I'm having some difficulties with iLogic and reference parameters.
I have made a tube with a weird shape and I want to measure the longest length. So I have to cut the tube in a certain angle in relation with the center to measure the length.
The problem is that this angle is really hard to calculate...
So I tried making a rule where I can make my angle shift x degree and then measure the longest length. If the measurement is larger the previous measurement the angle will shift x degree again until the measurement is smaller than the previous.
So I made my starting angle 0 degree, I know this is for a fact not the longest length. And then I tried this rule. (before making a While rule).
And I noticed that on screen the measurement changes. But the reference - paramter stays the same. So it gives me the measurement on the starting angle & after rotating it again gives me the starting angle.
How can I get the parameter to update itself in between? I tried some snippets as you see but no cheers..
Dim measurement_length As Double Dim measurement_length2 As Double MessageBox.Show("Start angle ", "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1) angle_measurement_spec = 0 RuleParametersOutput() InventorVb.DocumentUpdate() measurement_length = Ref_meting_spec_hoek_plus MessageBox.Show("measurement on starting angle: " & measurement_length, "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1) MessageBox.Show("rotate plane ", "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1) angle_measurement_spec = angle_measurement_spec - 10 RuleParametersOutput() InventorVb.DocumentUpdate() measurement_length2 = Ref_meting_spec_hoek_plus MessageBox.Show("measurement 2: " & measurement_length2, "My iLogic Dialog", MessageBoxButtons.OK, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1)
Thanks.