Hide Table of Contents
GetForceComponentValues2 Method (ICWForce)

Gets the force component values.

.NET Syntax

Visual Basic (Declaration) 
Sub GetForceComponentValues2( _
   ByRef B1 As System.Boolean, _
   ByRef B2 As System.Boolean, _
   ByRef B3 As System.Boolean, _
   ByRef D1 As System.Double, _
   ByRef D2 As System.Double, _
   ByRef D3 As System.Double _
) 
Visual Basic (Usage) 
Dim instance As ICWForce
Dim B1 As System.Boolean
Dim B2 As System.Boolean
Dim B3 As System.Boolean
Dim D1 As System.Double
Dim D2 As System.Double
Dim D3 As System.Double
 
instance.GetForceComponentValues2(B1, B2, B3, D1, D2, D3)
C# 
void GetForceComponentValues2( 
   out System.bool B1,
   out System.bool B2,
   out System.bool B3,
   out System.double D1,
   out System.double D2,
   out System.double D3
)
C++/CLI 
void GetForceComponentValues2( 
&   [Out] System.bool B1,
&   [Out] System.bool B2,
&   [Out] System.bool B3,
&   [Out] System.double D1,
&   [Out] System.double D2,
&   [Out] System.double D3
) 

Parameters

B1
-1 or true if force in the X direction exists, 0 or false if not (see Remarks)
B2
-1 or true if force in the Y direction exists, 0 or false if not (see Remarks)
B3
-1 or true if force in the Z direction exists, 0 or false if not (see Remarks)
D1
Force in the X direction
D2
Force in the Y direction
D3
Force in the Z direction

Remarks

This method is valid if ICWForce::ForceType is set to swsForceType_e.swsForceTypeForceOrMoment.

This method returns booleans or integers in out parameters B1, B2, and B3, depending on their prior declarations.

If out parameters B1, B2, and B3 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.
 

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:   GetForceComponentValues2 Method (ICWForce)
*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.