Hello,
I'm running several dynamic simulations via the API. Then I am getting the results to write in a text file.
I want to know the force in a joint so I get the vector of values via
Dim oResults As DSResults
Dim oResult As DSResult
Dim value() as Double
Call oResult.GetResultValues(value())
this vector is a time, force vector but when I verify mi data against the Output Grapher all the decimal points from the force information are gone.
Example:
In Output Grapher
Time (s)Force(N)
0.0118955.66
0.0219500.88
In the vector from API
0.01
1895566
0.02
1950088
is there a way to correct this? I'm getting many force and movement info, so I don't know which ones are reliable.
Thank you
Juan Diego Gómez
Solved! Go to Solution.
Solved by henderh. Go to Solution.
Hi Juan,
We appreciate you bringing this to our attention.
I've passed the info along to Development. We should get a response soon.
Best regards, -Hugh
Hi Juan,
I consulted with Development and this is working as expected for double value output.
The reason it appears that the decimal is getting dropped is because we express API outputs in Inventor's internal units (cm, kg, second, radian, Kelvin).
Since Force in the UI is express in kg*m/s^2, and the internal unit for length is the centimeter, this explains the shift of the decimal to the right two places (i.e. converting the meters => centimeter) [Edit: for the API output]
There are API's available to convert from internal units to user-specified units if that is desired.
Hope this helps...please let us know if you have additional questions or comments.
Thanks, -Hugh