AddRestraint Method (ICWLoadsAndRestraintsManager)
Creates a restraint.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddRestraint( _
ByVal NRestraintType As System.Integer, _
ByVal DispArray As System.Object, _
ByVal RefGeom As System.Object, _
ByRef ErrorCode As System.Integer _
) As CWRestraint |
Visual Basic (Usage) | |
---|
Dim instance As ICWLoadsAndRestraintsManager
Dim NRestraintType As System.Integer
Dim DispArray As System.Object
Dim RefGeom As System.Object
Dim ErrorCode As System.Integer
Dim value As CWRestraint
value = instance.AddRestraint(NRestraintType, DispArray, RefGeom, ErrorCode) |
Parameters
- NRestraintType
- Type of restraint as defined in swsRestraintType_e
- DispArray
- Array of entities to which to apply the restraint
- RefGeom
- Reference geometry entity for direction; valid only if NRestraintType is set to swsRestraintType_e.swsRestraintTypeReferenceGeometry
- ErrorCode
- Error code as defined in swsRestraintError_e
Return Value
Restraint
Example
See Also
Availability
SOLIDWORKS Simulation API 2008 SP1.0