Round value calculated by equation
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Round value calculated by equation

 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks
Author Message
Sam
Guest





Posted: Wed Nov 23, 2005 5:10 pm    Post subject: Round value calculated by equation Reply with quote

Is there a way to have the value calculated by an equation
automatically round to the nearst whole inch? We have some equations
that we use to locate some components in an assembly but the equation
never results in a nice whole number and the location of these
components is not so critical that we want to dimension them to the
16th or 32nd. If we just set the dimension in the drawing to round the
dimensions will look ok but the dimension string will not add up to
equal the actual overall dimension.

Thanks,

Sam

Back to top
That70sTick
Guest





Posted: Wed Nov 23, 2005 5:10 pm    Post subject: Re: Round value calculated by equation Reply with quote

Look in the help under "Equatins --> Functions". There is an integer
function, "INT". INT gives the lowest whole integer of a decimal
number,
i.e. INT(10.666 ) = 10.
For rounding to nearest (up or down), you can add 0.5 to the final,
i.e. INT(10.222 + 0.5) = 10,
INT(10.666 + 0.5) = 11
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> SolidWorks All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB