Hide Table of Contents
GetRotationComponentsValues2 Method (ICWRestraint)

Gets the rotational components of this restraint.

.NET Syntax

Visual Basic (Declaration) 
Sub GetRotationComponentsValues2( _
   ByRef BVal1 As System.Boolean, _
   ByRef BVal2 As System.Boolean, _
   ByRef BVal3 As System.Boolean, _
   ByRef DVal1 As System.Double, _
   ByRef DVal2 As System.Double, _
   ByRef DVal3 As System.Double _
) 
Visual Basic (Usage) 
Dim instance As ICWRestraint
Dim BVal1 As System.Boolean
Dim BVal2 As System.Boolean
Dim BVal3 As System.Boolean
Dim DVal1 As System.Double
Dim DVal2 As System.Double
Dim DVal3 As System.Double
 
instance.GetRotationComponentsValues2(BVal1, BVal2, BVal3, DVal1, DVal2, DVal3)
C# 
void GetRotationComponentsValues2( 
   out System.bool BVal1,
   out System.bool BVal2,
   out System.bool BVal3,
   out System.double DVal1,
   out System.double DVal2,
   out System.double DVal3
)
C++/CLI 
void GetRotationComponentsValues2( 
&   [Out] System.bool BVal1,
&   [Out] System.bool BVal2,
&   [Out] System.bool BVal3,
&   [Out] System.double DVal1,
&   [Out] System.double DVal2,
&   [Out] System.double DVal3
) 

Parameters

BVal1
-1 or true to use DVal1 , 0 or false to not (see Remarks)
BVal2
-1 or true to use DVal2, 0 or false to not (see Remarks)
BVal3
-1 or true to use DVal3, 0 or false to not (see Remarks)
DVal1
(see Remarks)
DVal2
(see Remarks)
DVal3
(see Remarks)

Remarks

This method is valid only for beams and shell meshes with ICWRestraint::RestraintType set to:

 

  • swsRestraintType_e.swsRestraintTypeCylindricalFaces
  • swsRestraintType_e.swsRestaintTypeReferenceGeometry
  • swsRestraintType_e.swsRestraintTypeSphericalSurface
    - or -
  • swsRestraintType_e.swsRestraintTypeFlatFace

This method returns booleans or integers in out parameters BVal1-3, depending on their prior declarations.

If out parameters BVal1-3 are cast as:

  • Booleans, true or false is returned in each out parameter.
  • Longs or integers, -1 (=true) or 0 (=false) is returned in each out parameter.

 

If the direction reference of this restraint is... Then...
An axis or cylindrical face
  • DVal1 is in the radial direction,
  • DVal2 is in the circumferential direction, and
  • DVal3 is in the axial direction.
A spherical face
  • DVal1 is in the radial direction,
  • DVal2 is in the longitudinal direction, and
  • DVal3 is in the latitudinal direction.
A flat face
  • DVal1 is about face direction 1,
  • DVal2 is about face direction 2, and
  • DVal3 is about the normal to the face.
A model edge
  • DVal3 is about the edge.

 

Call ICWRestraint::SetReferenceGeometry to set the direction reference of this restraint.

 

See Also

Availability

SOLIDWORKS Simulation API 2021 SP04


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:   GetRotationComponentsValues2 Method (ICWRestraint)
*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) 2021 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.