Hide Table of Contents
DMotionStudyEvents_ForceOutputTimeStepChangeNotifyEventHandler Delegate (SolidWorks.Interop.swmotionstudy)

Fired at every integrator or output time step when a motion simulation is occurring and external forces exist.

.NET Syntax

Visual Basic (Declaration) 
Public Delegate Function DMotionStudyEvents_ForceOutputTimeStepChangeNotifyEventHandler( _
   ByVal Time As Double, _
   ByVal ForceNames As Object, _
   ByVal Displacement As Object, _
   ByVal Velocity As Object, _
   ByVal Acceleration As Object, _
   ByVal ForceOrTorque As Object, _
   ByRef ForceTorqueValue As Object _
) As Integer
Visual Basic (Usage) 
Dim instance As New DMotionStudyEvents_ForceOutputTimeStepChangeNotifyEventHandler(AddressOf HandlerMethod)
C# 
public delegate int DMotionStudyEvents_ForceOutputTimeStepChangeNotifyEventHandler( 
   double Time,
   object ForceNames,
   object Displacement,
   object Velocity,
   object Acceleration,
   object ForceOrTorque,
   ref object ForceTorqueValue
)
C++/CLI 
public delegate int DMotionStudyEvents_ForceOutputTimeStepChangeNotifyEventHandler( 
&   double Time,
&   Object^ ForceNames,
&   Object^ Displacement,
&   Object^ Velocity,
&   Object^ Acceleration,
&   Object^ ForceOrTorque,
&   Object^% ForceTorqueValue
)

Parameters

Time
Output time when the event is fired
ForceNames
Array of strings containing the names of the external forces
Displacement
Array of doubles indicating the position of each external force; the order of these values corresponds to the order of the names in ForceNames
Velocity
Array of doubles indicating the velocity of each external force; the order of these values corresponds to the order of the names in ForceNames
Acceleration
Array of doubles indicating the acceleration of each external force; the order of these values corresponds to the order of the names in ForceNames
ForceOrTorque
Array of doubles indicating if an external force is a linear force or a rotary force (torque); the order of these values corresponds to the order of the names in ForceNames
ForceTorqueValue
Array of doubles indicating the value of the force (position, velocity, or acceleration) at the next output time step; these values are used internally for doing interpolation during the integrator time steps; the order of these values corresponds to the order of the names in ForceNames

Example

Remarks

When the motion simulation is occurring, the solver takes two types of time steps:

  • integrator
  • output

Integrator time steps are taken during the solve; thus, it is not guaranteed that the solver will actually converge at that step. Output time steps are taken after the solver has converged. By default, the ForceOutputTimeStepChangeNotify event is fired at integrator time steps. If you want to fire this event at output time steps, then set IMotionStudy::SetFireOutputTimeStepEvents to true.

If developing a C++ application, then use swMotionStudyForceOutputTimeStepChangeNotify to register for this notification.

Availability

SolidWorks 2011 FCS, Revision Number 19.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   DMotionStudyEvents_ForceOutputTimeStepChangeNotifyEventHandler Delegate (SolidWorks.Interop.swmotionstudy)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.