Comments on If This, Then…Leveraging iLogic. Using a While Loop to “Backsolve” a calculation.In this scenario I have some geometry that must maintain a particular weight as my design changes or progresses. The diameter of the outer cylinder is the variable that can change to meet the target weight.TypePad2011-12-15T22:25:59ZIMAGINiT Technologieshttps://blogs.rand.com/manufacturing/tag:typepad.com,2003:https://blogs.rand.com/manufacturing/2011/12/if-this-thenleveraging-ilogic-using-a-while-loop-to-backsolve-a-calculation/comments/atom.xml/Carl commented on 'If This, Then…Leveraging iLogic. Using a While Loop to “Backsolve” a calculation.'tag:typepad.com,2003:6a0115711b8d26970b016761928a67970b2012-02-02T21:46:33Z2012-02-02T21:46:33ZCarlhttp://www.imaginit.comHi Kenneth, The .031 is the fraction I am increasing/decreasing the diameter. Using this method I am only only going...<p>Hi Kenneth,</p>
<p>The .031 is the fraction I am increasing/decreasing the diameter. Using this method I am only only going to get close (although very close) to the true Target Mass value.</p>
<p>If you are looking to get an exact match, then a formula involving your equation of volume*density would be the way to go.</p>
<p>That "vParam_Designer" parameter is just something leftover from another experiment and has nothing to do with this exercise. Sorry for the confusion.</p>Kenneth commented on 'If This, Then…Leveraging iLogic. Using a While Loop to “Backsolve” a calculation.'tag:typepad.com,2003:6a0115711b8d26970b0163009786e2970d2012-02-02T14:45:50Z2012-02-02T14:45:50ZKenneth Hi. Im just wondering about somethin in the iLogic. I see in the rule that you have an expression saying...<p>Hi.</p>
<p>Im just wondering about somethin in the iLogic.</p>
<p>I see in the rule that you have an expression saying that </p>
<p>While iProperties.Mass < TargetMass<br />
Diameter = Diameter + .031<br />
RuleParametersOutput()<br />
InventorVb.DocumentUpdate(True)<br />
End While</p>
<p>What does the number .031 stands for? </p>
<p>Correct me if i'm wrong. <br />
As im thinking you need an formula that calculates the volume of the part and then multiple it with the density of the material to get the correct mass. </p>
<p>Where is this formula? </p>
<p>Another question;</p>
<p>I see in the paramaters that you have an line that says vParam_Designer. What is this?</p>
<p><br />
As you already have guessed i am pretty new to iLogic. Do you know about any good tutorials or where to begin? </p>
<p>You must excuse my English because I am just an ordinary Norwegian ;-)</p>