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

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

.NET Syntax

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

Parameters

Time
Output time when the event is fired
MotorNames
Array of strings containing the names of the external motors
Position
Array of doubles indicating the position of each external motor; the order of these valeus corresponds to the order of the names of MotorNames
Velocity
Array of doubles indicating the velocity of each external motor; the order of these values corresponds to the order of the names in MotorNames
Acceleration
Array of doubles indicating the acceleration of each external motor; the order of these values corresponds to the order of the names in MotorNames
ForceOrTorque
Array of doubles indicating if an external motor is a linear motor (force) or a rotary motor (torque); the order of these values corresponds to the order of the names in MotorNames
MotorValue
Array of doubles indicating the value of the motor (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 MotorNames

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 MotorOutputTimeStepChangeNotify 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 swMotionStudyMotorOutputTimeStepChangeNotify to register for this notification.

Availability

SOLIDWORKS 2009 FCS, Revision Number 17.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_MotorOutputTimeStepChangeNotifyEventHandler 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) 2015 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.