Hide Table of Contents
AddInitialConditionForDynamicStudy Method (ICWLoadsAndRestraintsManager)

Creates the initial (time = 0) displacements, velocities, or accelerations in modal time history and nonlinear dynamic studies.

.NET Syntax

Visual Basic (Declaration) 
Function AddInitialConditionForDynamicStudy( _
   ByVal NType As Integer, _
   ByVal NSelectionType As Integer, _
   ByVal DispArray As Object, _
   ByVal RefEntity As Object, _
   ByVal NUnits As Integer, _
   ByVal BDir1 As Integer, _
   ByVal DVal1 As Double, _
   ByVal BDir2 As Integer, _
   ByVal DVal2 As Double, _
   ByVal BDir3 As Integer, _
   ByVal DVal3 As Double, _
   ByRef ErrorCode As Integer _
) As CWDynamicInitialCondition
Visual Basic (Usage) 
Dim instance As ICWLoadsAndRestraintsManager
Dim NType As Integer
Dim NSelectionType As Integer
Dim DispArray As Object
Dim RefEntity As Object
Dim NUnits As Integer
Dim BDir1 As Integer
Dim DVal1 As Double
Dim BDir2 As Integer
Dim DVal2 As Double
Dim BDir3 As Integer
Dim DVal3 As Double
Dim ErrorCode As Integer
Dim value As CWDynamicInitialCondition
 
value = instance.AddInitialConditionForDynamicStudy(NType, NSelectionType, DispArray, RefEntity, NUnits, BDir1, DVal1, BDir2, DVal2, BDir3, DVal3, ErrorCode)
C# 
CWDynamicInitialCondition AddInitialConditionForDynamicStudy( 
   int NType,
   int NSelectionType,
   object DispArray,
   object RefEntity,
   int NUnits,
   int BDir1,
   double DVal1,
   int BDir2,
   double DVal2,
   int BDir3,
   double DVal3,
   out int ErrorCode
)
C++/CLI 
CWDynamicInitialCondition^ AddInitialConditionForDynamicStudy( 
&   int NType,
&   int NSelectionType,
&   Object^ DispArray,
&   Object^ RefEntity,
&   int NUnits,
&   int BDir1,
&   double DVal1,
&   int BDir2,
&   double DVal2,
&   int BDir3,
&   double DVal3,
&   [Out] int ErrorCode
) 

Parameters

NType
Type of dynamic initial condition as defined in swsDynamicInitialConditionType_e
NSelectionType
Type of selection as defined in swsSelectionType_e
DispArray
Array of components, bodies, or faces to which to apply the initial condition
RefEntity
Face, edge, plane, or axis reference geometry
NUnits
BDir1
1 to set a value along plane direction 1 or along a radial direction, 0 to not; valid only if RefEntity is set to a planar face, reference plane, cylindrical face, cylindrical axis, or null
DVal1
Value along plane direction 1 or along a radial direction; valid only if BDir1 = 1
BDir2
1 to set a value along plane direction 2 or along a circumferential direction, 0 to not; valid only if RefEntity is set to a planar face, reference plane, cylindrical face, cylindrical axis, or null
DVal2
Value along plane direction 2 or along a circumferential direction; valid only if BDir2 = 1
BDir3
1 to set a value along the normal to the plane or along a cylindrical axis or along an edge, 0 to not; valid only if RefEntity is set to a planar face, reference plane, cylindrical face, cylindrical axis, edge, or null
DVal3
Value along the normal to the plane or along a cylindrical axis or along an edge; valid only if BDir3 = 1
ErrorCode

Error code as defined in swsDynamicInitialConditionError_e

Return Value

ICWDynamicInitialCondition
 

See Also

Availability

SolidWorks Simulation API 2012 SP0


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:   AddInitialConditionForDynamicStudy Method (ICWLoadsAndRestraintsManager)
*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.