Reaction Force Visualizing

Hi,
If I have exported forces about a certain joint, how to make it visualize in the model? Because I want to know the exact place of the force.
Part of my .xml file shows like this:

</Force>
<Force index=“16”>
<Name value=“Main.HumanModel.BodyModel.Left.Leg.Jnt.Hip.Constraints.Reaction” type=“string”/>
<Class value=“AnyMainFolder.AnyFolder.AnyFolder.AnyFolder.AnyFolder.AnyFolder.AnySphericalJoint.AnyKinEq.AnyReacForce” type=“string”/>
<SegmentName value=“Main.HumanModel.BodyModel.Trunk.SegmentsLumbar.PelvisSeg” type=“string”/>
<SegmentID value=“0” type=“int”/>
<Pos type=“vector” z="-8.516957779359803e-002" y=" 9.009281261246194e-001" x="-1.027217608559621e-002"/>
<RefFrame value=“Main.HumanModel.BodyModel.Trunk.SegmentsLumbar.PelvisSeg.Left.HipJoint” type=“string”/>
<Components count=“3”>
<F type=“vector” z="-5.920975986137223e-013" y=" 7.574765536811257e-002" x="-4.436310925073418e+000" index=“0”/>
<M type=“vector” z=" 3.090226938229537e-018" y=" 3.090226938229537e-018" x=" 3.090226938229537e-018" index=“0”/>
<F type=“vector” z=" 3.036724554273826e-011" y=" 2.527166873369841e+002" x=" 4.315003357853268e+000" index=“1”/>
<M type=“vector” z=" 1.076036928912519e-016" y=" 1.076036928912519e-016" x=" 1.076036928912519e-016" index=“1”/>
<F type=“vector” z="-9.667740652110917e+000" y=" 1.139338793137966e-012" x=" 1.309777043847029e-012" index=“2”/>
<M type=“vector” z=" 3.079009126002447e-020" y=" 3.079009126002447e-020" x=" 3.079009126002447e-020" index=“2”/>
</Components>

Hi,

Please update your profile with name and affiliation. This is a professional forum and we would like to know who we are helping.

Secondly,
All the information is given in the text:

<Pos type="vector" z="-8.516957779359803e-002" y=" 9.009281261246194e-001" x="-1.027217608559621e-002"/>

This is where the exported force would act in the output reference frame that you specified in AnyMechOutputFileForceExport object.

Kind regards,
Pavel

Hi,
First, I am sorry about the profile, I just don’t know how to update it, and I wil have it done later.

I know the directions of the forces are showed in the output file, I just want to draw arrows in the model , is that possible?

Yes, you could use AnyDrawVector inside the code (no need to export), something like this:

AnyDrawVector drF = {
 Vec = .Fout/200; // Scale the length down
 Line = {
 Style = Line3DStyleFull;
 Thickness = 0.01;
 RGB = {1, 0, 0};
 End = {
 Style = Line3DCapStyleArrow; // This specifies the end to be an arrowhead
 RGB = {1, 0, 0};
 Thickness = 0.02; // The head begins with twice the thickness of the shaft
 Length = 0.05;
 };
 };
// attach the arrow to the hand
 AnyRefFrame &Palm = Main.ArmModel.Segs.ForeArm.PalmNode;
 }; 

Please adjust to your situation.

Kind regards,
Pavel

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.