See the top rated post in this thread. Click here

Results 1 to 5 of 5

Thread: Multiply a value in mm with a unit-less value (type ul) the result is 10 times larger, why?

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2022-07
    Posts
    1
    Login to Give a bone
    0

    Default Multiply a value in mm with a unit-less value (type ul) the result is 10 times larger, why?

    Hi!

    I'm using parameters in my design to speed up changes and run into a strange problem.

    If I multiply a value in mm with a unitless value (type ul) the result is 10 times larger than it suppose to be. Why?

    See my attachment for understanding.

    Patrik
    Attached Files Attached Files

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,409
    Login to Give a bone
    0

    Default Re: Multiply a value in mm with a unit-less value (type ul) the result is 10 times larger, why?

    Welcome to AUGI.

    What happens if you add some more parenthesis? (PlateW - (((NoRows-1mm) * 8 ul) + 4 mm) * 4 ul) /AA

    Also, instead of posting a Word file, please use the forum tools to post a picture (jpeg or png). That way users don't have to download anything. They can use the forum's image preview.
    C:> ED WORKING....


    LinkedIn

  3. #3
    Woo! Hoo! my 1st post
    Join Date
    2022-07
    Posts
    1
    Login to Give a bone
    0

    Default Re: Multiply a value in mm with a unit-less value (type ul) the result is 10 times larger, why?

    Quote Originally Posted by patrik.hertel801199 View Post
    Hi!

    I'm using parameters in my design to speed up changes and run into a strange problem.

    If I multiply a value in mm with a unitless value (type ul) the result is 10 times larger than it suppose to be. Why?

    See my attachment for understanding.

    Patrik
    Adist (mm) = Cdist (mm) * Arel (mm)

    Try to modify the equation this way:

    Adist (mm) = Cdist (mm) * Arel (mm) / 1 mm

  4. #4
    Woo! Hoo! my 1st post
    Join Date
    2006-04
    Posts
    1
    Login to Give a bone
    1

    Default Re: Multiply a value in mm with a unit-less value (type ul) the result is 10 times larger, why?

    Quote Originally Posted by patrik.hertel801199 View Post
    Hi!
    If I multiply a value in mm with a unitless value (type ul) the result is 10 times larger than it suppose to be. Why?
    Patrik
    Simple, Inventor internally calculates distances in cm (centimeters). That's 10mm:=)))
    ul (unitless) means use native units, cm!

    See VBA programming examples or some API manual.

  5. #5
    Woo! Hoo! my 1st post
    Join Date
    2000-11
    Posts
    1
    Login to Give a bone
    1

    Default Re: Multiply a value in mm with a unit-less value (type ul) the result is 10 times larger, why?

    Quote Originally Posted by patrik.hertel801199 View Post
    Hi!

    I'm using parameters in my design to speed up changes and run into a strange problem.

    If I multiply a value in mm with a unitless value (type ul) the result is 10 times larger than it suppose to be. Why?

    See my attachment for understanding.

    Patrik
    Hi Patrik

    first of all , always make sure your unit settings are OK for all parameters. The red text in the entry-cells is red for a reason!!
    example : you calculate Adist (a distance or length with unit mm) from multiplying Cdist and Arel (both distance or length) : the result actually has a unit of square mm. you could either devide the result by 1 mm (since mm^2/mm = mm), but i think it is more likely that one of your inputs (Arel) is not a distance but just a number (unitless)

    cheers

    rob sman

Similar Threads

  1. After install imperial unit template, library and want to add metric unit
    By 01chang in forum Revit Architecture - General
    Replies: 0
    Last Post: 2009-12-03, 09:14 PM
  2. Replies: 6
    Last Post: 2008-05-23, 12:41 PM
  3. Why, Why ohhh Why can I not properly paint a split face...
    By luigi in forum Revit Architecture - General
    Replies: 10
    Last Post: 2005-04-09, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •