
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to automate some ducting designs, but am having some problems because of an equation that I am worried Inventor may not be able to handle on its own, of if it can, I do not know how to make it work. The attached file has the equation on it (some recognize it as a circular section area).
A, and Ro are known, and i need it to solve for h3 (specifically in my test file, A = 235737.589 mm^2 and Ro = 735 mm, so h3 should be about 288.96). Since h3 doesn't need an exact number, and could be rounded to the nearest mm, I had been trying to make a loop that would test h3 from 1 mm to a sensible upper limit and stop when it would cross the threshold of A and that value would be used, but the loops do not seem to be working for me. I have tried to set them up as below. I had also tried laying it out as a sketch and stopping when the sketch's area is about the same, but the document doesn't want to update the sketch mid loop.
A=235737.6 mm^2
Ro=735 mm
Atest=0 mm^2
h3=0 mm
While h3<reasonableupperlimit
h3=h3+1 mm
Atest=the linked equation
If Atest>=A then
Exit while
end if
end while
and I figured that at the end of this, Atest and A should be sufficiently close, and h3 should be within 1 mm of the ideal value, but instead it is returning the upper limit every time and not exiting the while loop. I had tried structuring it the other way arround and saying while Atest < A, but that has given me problems as well, and I do not know why.
Does anyone see what i have done wrong here, or does anyone know the right way to go about solving this? I apologize in advance if the answer is very simple, because I have almost no actual training in inventor.
Solved! Go to Solution.