AnsweredAssumed Answered

Change force in simulation (ForceBeginEdit, ForceEndEdit)

Question asked by Jake Kittell on Aug 1, 2013
Latest reply on Aug 2, 2013 by Jared Conway

Hi Folks,

 

Has anyone used ForceBeginEdit and ForceEndEdit on a icwforce object successfully?  It seems to be broken.

 

Here is a bit of the code:

 

 

MyCWForce.GetForceComponentValues B1, B2, B3, D1, D2, D3

MsgBox B1 & "  " & B2 & "  " & B3 & "  " & D1 & "  " & D2 & "  " & D3

MyCWForce.ForceBeginEdit

MyCWForce.SetForceComponentValues 0, 0, 1, 1, 1, 7

value = MyCWForce.ForceEndEdit()

MsgBox value

MyCWForce.GetForceComponentValues B1, B2, B3, D1, D2, D3

MsgBox B1 & "  " & B2 & "  " & B3 & "  " & D1 & "  " & D2 & "  " & D3

 

The first msgbox correctly reports 0,0,1,1,1,23  where 23 is the starting force

The second msgbox correctly reports that it has been changed to 0,0,1,1,1,7 

 

But looking at the force in the application window shows no change.

 

Any help would be most appreciated.

 

Thanks,

 

Jake

Outcomes