Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Parameter Equations

Parameter Equations

Parameter Equations

I am trying to run an equation within the parameter/formula editor of v5. The equation is used to determine the minimum length of a part based upon an angular variable and length (in other words a trigonometric equation is applied). However, whilst in its simple form the equation works as soon as I try to round the figures down to a useful value (eg whole number), the system responds with the non-homogeneous units message. Below is a sample of the equation I am running.

min_flange_length=int (((beam_size /2)/sin (beam_angle))+ offset_constant)

I have also tried by changing the 2 to both a parameter with a real value and by applying it as a 2in, all to no avail.

Any help would be appreciated. Thanks

Gary W.

RE: Parameter Equations


You indeed need to homogenize units
int function returns (unitless) real number and your lenght parameter requires a unit of length. You need to multiply the int result with lenght unit like 1in (or 1mm or whatever length units you're using)

min_flange_length=(int (((beam_size /2)/sin (beam_angle))+ offset_constant)*1in

RE: Parameter Equations

Thanks Eklunja,
Your help was much appreciated, I had missed the conversion of the real value back to a length, your solution solved the homogeneous units issue, however, it did result in another rather strange fault. The process of converting the equation to a real value changed the lengths from inches to metres such that a length of 3.39 inches would return a value of;-


I fixed this by multiplying the length by 39.37, but this is a rather awkward fix for what should be a simple equation process.

Gary W.

RE: Parameter Equations

All V5 Calculations are in metric (usually milimeters, not meters).  This is especially true when using VB and KWA/KWE.  The conversion to inches is done on the fly by the user interface.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close