PDA

View Full Version : Unit Convertions (angular -> linear)



bweir
2004-11-24, 05:27 PM
Is there a way to convert from angle units to linear units?

I have a parameter Length, two lines in a sketch with an arc between them. I wanted the first line to be 3/4 of Length, lets say d0=Length*.75. The second line would be dimensioned to be:

Length - d0 - d1*3.14/180*d2

Where d1 is the radius of the arc and d2 is the angle between the two lines.

So basically the length of line1 + length of line2 + length of arc1 = Length parameter

My assumption was that I wouldn't have any problems with the formula but Inventor doesn't seem to allow combinations of units (linear & angular). Is there some way to work around this?


Also a side note: How can I use a VBA function in an equation. I have a function Pi to calculate of course Pi and would rather use that in the equation then 3.14.

Teun Ham
2004-11-30, 10:34 AM
Create 3 user parameters:

TotalLength (mm) = 100mm
ArcLength (mm) = ( d0 / 360 deg ) * 2 ul * d3
EndLength (mm) = TotalLength - ArcLength - d1

with...

d0 = Arc Angle
d1 = Length of first line
d2 = Length of last line
d3 = Arc Radius

And you can use PI (capital) for Pi (ul) :-)

Teun Ham
2004-12-14, 09:47 AM
bweir --> Did this solve your problem?

bweir
2004-12-15, 06:28 AM
Yes it seems to work but I hoped for a more stream lined solution.