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: 

Error Getting Simulation Results via API

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
jd.gomez242
214 Views, 2 Replies

Error Getting Simulation Results via API

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

2 REPLIES 2
Message 2 of 3
henderh
in reply to: jd.gomez242

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



Hugh Henderson
QA Engineer (Fusion Simulation)
Message 3 of 3
henderh
in reply to: henderh

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



Hugh Henderson
QA Engineer (Fusion Simulation)

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

Post to forums  

Autodesk Design & Make Report