Adds a uniform base excitation to all locations restrained in the specified directions for dynamic studies.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddUniformBaseExcitation( _
ByVal NType As Integer, _
ByVal DirectionEntity 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 CWBaseExcitation |
Visual Basic (Usage) | |
---|
Dim instance As ICWLoadsAndRestraintsManager
Dim NType As Integer
Dim DirectionEntity 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 CWBaseExcitation
value = instance.AddUniformBaseExcitation(NType, DirectionEntity, NUnits, BDir1, DVal1, BDir2, DVal2, BDir3, DVal3, ErrorCode)
|
Parameters
- NType
- Type of excitation as defined in swsBaseExcitationType_e
- DirectionEntity
- Face, edge, or plane of direction for the excitation
- NUnits
If NType is ... |
Then units are as defined in ... |
swsBaseExcitationType_e.swsBaseExcitationType_Displacement |
swsLinearUnit_e |
swsBaseExcitationType_e.swsBaseExcitationType_Velocity |
swsVelocityUnit_e |
swsBaseExcitationType_e.swsBaseExcitationType_Acceleration |
swsAccelerationUnit_e |
- BDir1
- 1 to add excitation along plane direction 1, 0 to not; valid only if DirectionEntity is a face, plane, or unspecified
- DVal1
- Excitation along plane direction 1; valid only if BDir1 = 1 and DirectionEntity is a face, plane, or unspecified (see Remarks)
- BDir2
- 1 to add excitation along plane direction 2; 0 to not; valid only if DirectionEntity is a face, plane, or unspecified
- DVal2
- Excitation along plane direction 2; valid only if BDir2 = 1 and DirectionEntity is a face, plane, or unspecified (see Remarks)
- BDir3
- 1 to add excitation along normal to the plane or along an edge; 0 to not; valid only if DirectionEntity is a face, edge plane, or unspecified
- DVal3
- Excitation along normal to the plane or along an edge; valid only if BDir3 = 1 and DirectionEntity is a face, edge, plane, or unspecified (see Remarks)
- ErrorCode
Error code as defined in swsRestraintError_e
Return Value
ICWBaseExcitation
Example
Remarks
See Also
Availability
SolidWorks Simulation API 2012 SP0