Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi to all,
I'm quite new to this forum. I tried, but I did not find any similar topic, so I'm asking your help.
I'm using Inventor 2019 and I need to manage pressure in bar ( Pascall x 100000 )
I store this value in a unitless param called "pressure_bar".
Now I have to fill the param "pressur_psig" that is in [psi]
I expected to be able to write something like :
Parameter("PRESSURE_BAR") = ThisApplication.UnitsOfMeasure.ConvertUnits(Parameter("PRESSURE_PSI"),UnitsTypeEnum.kPSIPressureUnits, UnitsTypeEnum.kPascalPressureUnits) * 10^5
After a ton of attempts, that's what I find that works
Parameter("PRESSURE_BAR") = ThisApplication.UnitsOfMeasure.ConvertUnits(Parameter("DESIGN_PRESSURE_PSIG"), UnitsTypeEnum.kPSIPressureUnits, UnitsTypeEnum.kPSIPressureUnits)/ 10^2
Why? 😲
Can anyone explain it to me?
Thanks a lot!
Solved! Go to Solution.