Applies a base excitation to the specified restraint along the specified directions for dynamic studies.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddSelectedBaseExcitation( _
ByVal NType As System.Integer, _
ByVal SFixtureName As System.String, _
ByVal NUnits As System.Integer, _
ByVal BDir1 As System.Integer, _
ByVal DVal1 As System.Double, _
ByVal BDir2 As System.Integer, _
ByVal DVal2 As System.Double, _
ByVal BDir3 As System.Integer, _
ByVal DVal3 As System.Double, _
ByRef ErrorCode As System.Integer _
) As CWBaseExcitation |
Visual Basic (Usage) | |
---|
Dim instance As ICWLoadsAndRestraintsManager
Dim NType As System.Integer
Dim SFixtureName As System.String
Dim NUnits As System.Integer
Dim BDir1 As System.Integer
Dim DVal1 As System.Double
Dim BDir2 As System.Integer
Dim DVal2 As System.Double
Dim BDir3 As System.Integer
Dim DVal3 As System.Double
Dim ErrorCode As System.Integer
Dim value As CWBaseExcitation
value = instance.AddSelectedBaseExcitation(NType, SFixtureName, NUnits, BDir1, DVal1, BDir2, DVal2, BDir3, DVal3, ErrorCode) |
Parameters
- NType
- Type of excitation as defined in swsBaseExcitationType_e
- SFixtureName
- Model entity to which the restraint is applied
- 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
- DVal1
- Excitation along plane direction 1 (see Remarks)
- BDir2
- 1 to add excitation along plane direction 2, 0 to not
- DVal2
- Excitation along plane direction 2 (see Remarks)
- BDir3
- 1 to add excitation along normal to plane, 0 to not
- DVal3
- Excitation along normal to the plane (see Remarks)
- ErrorCode
Error code as defined in swsRestraintError_e
Return Value
ICWBaseExcitation
Remarks
See Also
Availability
SOLIDWORKS Simulation API 2012 SP0