Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with Pressure parameter

1 REPLY 1
Reply
Message 1 of 2
Anonymous
224 Views, 1 Reply

Problem with Pressure parameter

I have a following problem. I have a user defined Parameter called pressure of value: 123456789 Pa (units set to Pa).

 

 

When for example I use MessageBox to display it's value or when I want to use the value for some calculations it returns: 123456,789 - why is that ?

 

Tags (2)
1 REPLY 1
Message 2 of 2
johnsonshiue
in reply to: Anonymous

Hi! This behavior has something to do with compound unit type like Watt or Pa. The display value via Inventor API is done in database unit (not document unit). So everything is converted based on mass = Kg, length = cm, time = sec, temperature = kelvin, and angle = radian.

 

Pa = Kg/(m*sec^2) = 1/100 * Kg/(cm*sec^2)

 

So the display value via API would look 100 times smaller than the parameter value.

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report