Applies the specified prescribed displacement to the specified geometric entities to create a fixture.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddPrescribedDisplacement( _
ByVal Displacements As System.Object, _
ByVal NLengthUnit 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 Displacements As System.Object
Dim NLengthUnit As System.Integer
Dim DispArray As System.Object
Dim RefGeom As System.Object
Dim ErrorCode As System.Integer
Dim value As CWRestraint
value = instance.AddPrescribedDisplacement(Displacements, NLengthUnit, DispArray, RefGeom, ErrorCode) |
Parameters
- Displacements
Array: [disp_x_coord, disp_y_coord, disp_z_coord, x_bool, y_bool, z_bool]
where:
Array Element |
Value |
Description |
disp_x_coord |
Double |
Prescribed displacement in the x direction |
disp_y_coord |
Double |
Prescribed displacement in the y direction |
disp_z_coord |
Double |
Prescribed displacement in the z direction |
x_bool |
0 or 1 |
Whether to use disp_x_coord (1 to use, 0 to not) |
y_bool |
0 or 1 |
Whether to use disp_y_coord (1 to use, 0 to not) |
z_bool |
0 or 1 |
Whether to use disp_z_coord (1 to use, 0 to not) |
(see Remarks)
- NLengthUnit
- Units of length as defined in swsLinearUnit_e
- DispArray
- Array of entities to which to apply the prescribed displacement specified in Displacements
- RefGeom
- Reference entity for prescribed displacement direction
- ErrorCode
- Error code as defined in swsRestraintError_e
Return Value
ICWRestraint
Example
Remarks
See Also
Availability
SOLIDWORKS Simulation API 2015 SP3